Managing HP Enterprise Servers using PowerShell


Are you looking for a way to automate your HPE Server configuration tasks using Windows PowerShell?
The “HPE Scripting Tools for Windows PowerShell” is a powerful set of utilities that can be used to perform various configuration tasks on HPE Servers.

Scripting Tools for Windows PowerShell

HPE

The “Scripting Tools for Windows PowerShell” provide a simplified and consistent infrastructure management experience.
This set of PowerShell utilities will grow over time to provide a comprehensive set of Hewlett Packard Enterprise integration tools.

It is designed for IT experts with experience in PowerShell scripting and configuring ProLiant server hardware.

Starting with HPE Integrated Lights-Out (iLO), HPE Onboard Administrator (OA) for HPE BladeSystem Enclosures and the system BIOS of HPE ProLiant servers, this set of PowerShell utilities will grow over time to provide a comprehensive set of Hewlett Packard Enterprise integration tools.

image

Currently, these 3 PowerShell modules are available:

  • HPBIOScmdlet – BIOS/UEFI cmdlets (91 cmdlets)
  • HPiLOcmdlets – iLO cmdlets (130 cmdlets)
  • HPOAcmdlets – OA cmdlets (206 cmdlets)

 

#1 – BIOS/UEFI PowerShell cmdlets

BIOS Cmdlets for Windows PowerShell provides the following features:

  • Support for legacy BIOS and UEFI configuration.

This v1.0 release supports Hewlett Packard Enterprise ProLiant Gen8 and Gen9 servers’ BIOS configuration (except DL580) using HPBIOSCmdlets PowerShell module.

The HPBIOSCmdlets are supported by help, which is used in the same way as other PowerShell cmdlets.
If you want to see a complete list of the HPBIOSCmdlets after installation, in PowerShell type:

   Get-Help *HPBIOS*

   Get-Command –Module HPBIOSCmdlets

   Get-Help Connect-HPBIOS –Examples

 

#2 – iLO PowerShell cmdlets

iLO Cmdlets for Windows PowerShell provide the following features:

  • Support for iLO 3 and iLO 4 configuration.
  • Support for iLO Federation cmdlets.
  • Enhanced security support for all cmdlets with Server Certificate check.
  • Uses proven PowerShell technology to provide consistent and reliable server configuration.
  • Built-in online help for all PowerShell cmdlets, documenting syntax and usage examples.

Some examples:

Cmdlet Description
Get-HPiLODriveInfo Gets the drive details for the server
Get-HPiLOERSSetting Gets the Insight Remote Support setting
Get-HPiLOEventLog Gets the iLO event logs
Get-HPiLOFan Gets the Fan health details from the server
Get-HPiLOFederationGroup Gets a list of all iLO Federation group names
Get-HPiLOFirmwareInfo Gets the Firmware details for the iLO
Get-HPiLOFirmwareVersion Gets the iLO Firmware version
Get-HPiLOGlobalSetting Gets the iLO Global Settings
Get-HPiLOHealthSummary Gets the health information summary of the host server
Get-HPiLOHostPower Gets the power state of the server
Get-HPiLOIML Gets the Integrated management logs
Get-HPiLOLicense Gets license types and keys
Get-HPiLOMemoryInfo Gets the Memory details for the host server where the iLO is located
Get-HPiLONetworkSetting Gets the current network settings
Get-HPiLONICInfo Gets the NIC details for the System NIC and the iLO NIC
Get-HPiLOOneTimeBootOrder Gets the current state of the one-time boot
Get-HPiLOPowerOnTime Gets the virtual clock value since the server was last powered on
Get-HPiLOProcessor Gets the processor details for the host server
Get-HPiLOTemperature Gets the temperature health details of the server
Get-HPiLOUserList Gets the list of local users

 

#3 – OA (Onboard Administrator) PowerShell cmdlets

OA Cmdlets for Windows PowerShell provide the following features:

  • Support for configuration of Blade Enclosure C3000 and C7000 running Onboard Administrator version 3.11 and later.

Some examples:

Cmdlet Description
Connect-HPOA Connects to an OA and creates an SSH session.
Find-HPOA Find list of OA in a specified subnet.
Get-HPOAConfig Gets the script required to recreate the settings of the enclosure.
Get-HPOAEBIPA Gets EBIPA information.
Get-HPOAEnclosureFan Gets information for current status of the specified enclosure fan.
Get-HPOAEnclosureInfo Gets enclosure information.
Get-HPOAEnclosureLCD Gets information about the Insight Display screen.
Get-HPOAEnclosureStatus Gets the basic health and status of the enclosure subsystem.
Get-HPOAEnclosureTemp Gets the highest ambient temperature being reported.
Get-HPOAFWSummary Gets a summary of enclosure firmware components.
Get-HPOAInfo Gets information about the OA.
Get-HPOAInterconnectStatus Gets interconnect status information; UID state and health state.
Get-HPOAPower Gets the current power configuration.
Get-HPOAServerInfo Gets server settings and details.
Get-HPOAServerStatus Gets power, health, thermal and UID setting of the server blade.
Get-HPOAUpTime Gets uptime for the OA.
Reset-HPOA Restarts OA, server, interconnect specified by bay number.
Update-HPOAFirmware Update OA firmware by multi methods.
Update-HPOAiLO Downloads a new flash image from the network and uses it to update the firmware for the iLO.

NOTE: The HPOACmdlets are supported by help, which is used in the same way as other PowerShell cmdlets.
To display a complete list of the HP OA cmdlets in PowerShell, type:

   Get-Help *HPOA*

   Get-Command –Module HPOACmdlets

 

Software & Documentation

Download HPE Scripting Tools for Windows PowerShell here.

Download HPE Scripting Tools for Windows PowerShell User Guide BIOS Cmdlets.

Download HPE Scripting Tools for Windows PowerShell User Guide iLO Cmdlets.

Download HPE Scripting Tools for Windows PowerShell User Guide OA Cmdlets.

 

Related viewing:

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s