Thanks to HP who wrote a module specifically for HP ILO (Integradted LIghts Out). Sometimes we need to inventory the servers and we need to export the information like Server Model, Serial Numbers and UUID etc
Below is a PowerShell script that will generate basic information from ILO enabled devices and export it as a CSV.
$IPs = Get-Content C:\CSV\ip.txt
foreach ($IP in $IPs)
$iLO = Find-HPiLO $IP.IPAddressToString -Timeout 100
$ILO | Export-Csv C:\CSV\iLO_Information.CSV -Append -NoTypeInformation
You can also use Find-HPILO and provide it with the range of IP addresses and get that information. Below is a simple output of the command: