HP Scripting Tools for Windows PowerShell manual Using the Update-HPiLOFirmware cmdlet

Models: Scripting Tools for Windows PowerShell

1 25
Download 25 pages 12.04 Kb
Page 14
Image 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-HPiLOFirmwarecmdlet 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: http://www.hp.com/go/ilo .

2.Execute the downloaded firmware package CPxxxxxx.exe and extract the package to a local folder.

3.Execute Update-HPiLOFirmwarewith 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 server1

1.Whether a server turns off or not when using Set-HPiLOHostPowerdepends 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-HPiLOVirtualPowerButtoncmdlet with parameter –PressType HOLD.

14 HP Scripting Tools for Windows PowerShell cmdlets

Page 14
Image 14
HP Scripting Tools for Windows PowerShell Using the Update-HPiLOFirmware cmdlet, Using iLO cmdlets on multiple targets

Scripting Tools for Windows PowerShell specifications

HP Scripting Tools for Windows PowerShell is a powerful suite designed to enhance the management and automation of HP devices and services within a Windows environment. With a robust approach to system administration, it allows IT professionals and system administrators to streamline their workflows, manage resources more effectively, and reduce manual interventions.

One of the main features of HP Scripting Tools is the integration of HP's extensive hardware and software management capabilities into PowerShell. By leveraging PowerShell's scripting abilities, users can automate the configuration, monitoring, and reporting of HP devices at scale. This is particularly beneficial in enterprise settings, where managing a large fleet of devices can become cumbersome and prone to human error.

Among the technologies utilized by HP Scripting Tools is the HP Management Interface, which provides a comprehensive set of cmdlets tailored for handling various HP hardware components, such as servers, printers, and storage solutions. These cmdlets facilitate operations such as retrieving device status, updating firmware, and managing device configurations. This integration simplifies the process of interacting with HP hardware compared to traditional methods, enabling users to perform complex tasks with simple scripts.

Another critical characteristic of HP Scripting Tools is its emphasis on ease of use and accessibility. The tools provide detailed documentation and examples to guide users in writing scripts that address specific needs. Whether automating routine maintenance tasks or deploying configurations across multiple devices, users can rely on the resources provided to optimize their scripting efforts.

Furthermore, HP Scripting Tools supports the management of HP’s software solutions, including HP Smart Admin and HP System Software Manager. This allows for the central management of software updates and configurations, ensuring that systems remain up-to-date and secure with minimal effort.

Additionally, HP Scripting Tools promote collaboration by enabling scripts to be shared across teams, facilitating consistent administration practices. This collaborative environment ensures that best practices are followed and reduces the redundancy of script-writing efforts.

In conclusion, HP Scripting Tools for Windows PowerShell is an invaluable asset for organizations utilizing HP devices, offering essential features to automate management tasks, enhance operational efficiency, and optimize resource utilization. With its powerful cmdlets and seamless integration into PowerShell, it empowers IT professionals to take full control of their HP equipment in a more productive and efficient manner.