Today I had a frozen ESXi server that was physically located in a different country so manually resetting it was not an option and when I tried to connect to its ILO using https with my web browser I’ve received an error and could not even get the ILO login screen.
I’ve tried to reset the ILO using SSH which usually worked for me in the past with no sucess, by the way it’s done by:
- SSH (using putty for example) to the ILO IP
- After you enter username and password you type: cd /map1
- Type: reset
That short process resets the ILO and usually is enough to login and update the firmware from the web UI which is a lot simpler.
But in my case two things happend:
- Resetting didn’t help
- After a few tries i couldn’t even login to the ILO using ssh because it was frozen as well
So, first of all if you have blade servers like in my case you can do many very nice things directly from SSH directly to the enclosure.
One very important thing is to reset the specific blade ILO from the enclosure using:
Reset ILO [bay number of server]
And now for updating the firmware (Finding the right bin file is at the end of this post):
There are two options that I saw, one is to use http (which didn’t work for me) and the other one is with using TFTP server (very easy once you have a guide like this one).
For the first option:
- Connect to the ILO using putty
load –source http://192.168.0.1/ilo4_240.bin
***Like I said this option didn’t work for me
The second option have two parts:
- Downloading HP Lights-Out XML Scripting Sample for Windows which can be useful for many other things as well
- Inside this package you will find “Update_Firmware.xml” which looks like this (Without the comments):
<LOGIN USER_LOGIN="username" PASSWORD="password">
You need to change only the username, password, and path to the location of the bin file
Second you need to setup the TFTP server:
- Download Pumpkin
- After the installation in “C:\Program Files\Klever\Nothings” you can just take this folder and copy it to wherever you want (in case you don’t want to install on your servers and can’t access your PC from the ILO)
- put the XML file in the same directory as the EXE file of Pumpkin, together with the ILO firmware bin file
Now you should open Pumpkin and than click Options
And make sure that the folder location is right and also push the radio button to “Give all files” (this is not a must but will help you to do not be have to click for confirmation)
Now for the actual work:
- SSH to the enclosure IP
hponcfg [bay number of server] tftp://TFTP_SERVER/update_firmware.xml
And that is it, basically what we did is pointed the enclosure to download from the TFTP server an update script that tells it to download a firmware bin from the TFTP server.
in case you don’t know where to download the right bin file:
you just need to know what is your ILO version and than you search google for:
“ILO4 firmware” for example, the first result should bring you to here:
Download the version for any windows server and when you run it you can select “Extract”, pick a folder and inside of the extracted content you will find the Bin file.
Hope I was able to help someone.