Using the update-hpilofirmware cmdlet, Using ilo cmdlets on multiple targets – HP Scripting Tools for Windows PowerShell User Manual
Page 14
http://www.hp.com/go/powershell.
Do you want to go there to download the new version?(Y/N): Y
If you respond Yes to the download prompt, a browser window opens and you can download
and install the newer version.
Using the Update-HPiLOFirmware cmdlet
The Update-HPiLOFirmware cmdlet is used to update a firmware image on iLO. To update the
firmware, perform the following steps:
1.
Locate and download the iLO firmware package from the following website:
2.
Execute the downloaded firmware package CPxxxxxx.exe and extract the package to a
local folder.
3.
Execute Update-HPiLOFirmware with the Location parameter set to the full path of the
bin image that was extracted from the download.
The command will be similar to the following:
PS C:\> Update-HPiLOFirmware -Server ilomx2232004p.company.net -Username admin
-Password "admin123" -Location C:\ilo3_165.bin
PS C:\>
If the firmware is updated successfully, no other message is displayed. If an error occurs, an output
message similar to the following is displayed.
PS C:\> Update-HPiLOFirmware -Server ilomx2232004p.company.net -Username admin
-Password "admin123" -Location C:\aaaa.bin
IP HOSTNAME STATUS_TYPE STATUS_MESSAGE
-- -------- ----------- --------------
192.168.1.1 ilomx2232004p.company.net ERROR {Firmware flash failed.}
NOTE:
Updating the firmware version should take no more than 5 minutes.
Using iLO cmdlets on multiple targets
There are several ways to operate on multiple iLOs with one command. If there are many iLOs on
which the same commands must be performed, a simple method is to use a CSV file containing
some or all of the command parameters. A CSV file can be created using a Microsoft Excel
spreadsheet saved in CSV format. The following examples demonstrate the use of an input CSV
file.
The following examples use the Set-HPiLOHostPower and Get-HPiLOHostPower cmdlets.
They operate on only two iLOs, but more iLOs could be included. The cmdlet parameter values
are read from a CSV file with the following headings:
•
Server—IP address or Hostname of the iLO
•
Username and Password—credentials to login to the iLO
•
HostPower—value which can be Yes to power on the server, or No to power off the server
1
1. Whether a server turns off or not when using Set-HPiLOHostPower depends on the operating system power button
setting and state of the system. The operating system may ignore a power off request using this command. To force
power off, use the Set-HPiLOVirtualPowerButton cmdlet with parameter –PressType HOLD.
14
HP Scripting Tools for Windows PowerShell cmdlets