Saturday, March 5, 2016

Powershell get HP Enclosure details through OA API

#make sure you have HP OA API is installed
$con = Connect-HPOA -OA 172.16.10.20 -Username tech-jockey-Password tech-jock-pass
$ssta = Get-HPOAServerStatus -Bay All $con
$ssta.Blade | Select-Object -Property Bay, Power, CurrentWattageUsed, Health, UnitIdentificationLED, VirtualFan | Format-Table *
Disconnect-HPOA $con
Find-HPOA -Range 172.16.10.10-254 -Role Active
$ssta.Hostname

No comments:

Post a Comment

Thanks for showing interest in tech-jockey.

Content of this blog has been moved to GITHUB

Looking at current trends and to make my content more reachable to people, I am moving all the content of my blog https://tech-jockey.blogsp...