Thursday, December 03, 2015

HP OA Powershell CMDlets parsing data

I had a request to produce information from all my chassis, so I thought what a perfect time to try the HP Powershell CMDlets 


So first I run Get-HPOAServerInfo and get the following results:



I can see that "ServerBlade" contains a array, so I use the following command to get exactly what I want:

(Get-HPOAServerInfo $con).ServerBlade | foreach { $_ } | Select Bay,ServerName,SerialNumber,ProductName,Partnumber | Format-Table -AutoSize


No comments: