In this blog we can find the various firmware version of HP Enclosure c7000 by using the HP powershell cmdlet and download the HP cmdlet from the below link .
http://www8.hp.com/us/en/products/server-software/product-detail.html?oid=5440657#!tab=features
To find the HP OA firmware , make sure to install the HPOACmdlets-x64.msi and look for the pdf for the installation steps.
Get-Help *hp* – It will show all the commands related to the HP
Get-Help *hpoa* – It will show all the commands related to the HP-onboard administrator.
We need Get-HPOAFWSummary to find the Firmware version of OA.
By using the below script we can get the firmware version of the below components.I have provided three scripts which does the same job with different options according to our requirement and comfort.
OnboardAdministratorFirmwareInformation
EnclosureComponentFirmwareInformation
InterconnectFirmwareInformation
DeviceFirmwareInformation.
Download the powershell script and provide the OA IPs in a text file and also the location to save the out-put for each OA IPs provided.
Below is the another version of the script similar to the above and here it will show the menu option to select the components.
Below is the same script , just different version in which out-put will be saved automatically with the OA IPs and make sure to provide the correct path in the script out-put location.
Change only the bold item in the script to the appropriate path.
( “C:\tmp\” + $dd + “_device_firmware.txt” )
( “C:\tmp\” + $dd + “_EnclosureComponent_Firmware.txt” )
( “C:\tmp\” + $dd + “_Interconnect_Firmware.txt” )
( “C:\tmp\” + $dd + “_OnboardAdministrator_Firmware.txt” )
Pingback: Powershell script to find the ilo firmware of the blades running on HP Enclosure. | Techbrainblog
Pingback: Powershell Script to update the ilo firmware from the list of IPs. | Techbrainblog
Pingback: Powershell script to update the Onboard Administrator firmware. | Techbrainblog
The following script doesn’t work.
https://raw.githubusercontent.com/Ganeshsekarbabu/HP-OA-Firmware/master/Find%20the%20firmware%20version%20using%20the%20specific%20outout%20format.ps1
$OA = Get-Content (“E:\HP Bladesystem Powershell\Scripts\list.txt” )
Foreach ( $dd in $OA ) {
$d = connect-HPOA $dd | Get-HPOAFWSummary
$d | Select-Object -ExpandProperty DeviceFirmwareInformation | Format-List -Property Bay,DeviceFWDetail | Out-File -encoding unicode ( “C:\tmp\” + $dd + “_device_firmware.txt” )
$d | Select-Object -ExpandProperty EnclosureComponentFirmwareInformation | Format-List -Property Device,Name,Location,version | Out-File -encoding unicode ( “C:\tmp\” + $dd + “_EnclosureComponent_Firmware.txt” )
$d | Select-Object -ExpandProperty InterconnectFirmwareInformation | Format-List -Property Bay,DeviceModel,FirmwareVersion | Out-File -encoding unicode ( “C:\tmp\” + $dd + “_Interconnect_Firmware.txt” )
$d | Select-Object -ExpandProperty OnboardAdministratorFirmwareInformation | Format-List | Out-File -encoding unicode ( “C:\tmp\” + $dd + “_OnboardAdministrator_Firmware.txt” )
}
Get the following error:
Select-Object : Property “DeviceFirmwareInformation” cannot be found.
At line:23 char:6
+ $d | Select-Object -ExpandProperty DeviceFirmwareInformation | Format-List -Prop …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (@{IP=10.144.33….alid Arguments}:PSObject) [Select-Object], PSArgumentException
+ FullyQualifiedErrorId : ExpandPropertyNotFound,Microsoft.PowerShell.Commands.SelectObjectCommand
Select-Object : Property “EnclosureComponentFirmwareInformation” cannot be found.
At line:25 char:6
+ $d | Select-Object -ExpandProperty EnclosureComponentFirmwareInformation | Forma …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (@{IP=10.144.33….alid Arguments}:PSObject) [Select-Object], PSArgumentException
+ FullyQualifiedErrorId : ExpandPropertyNotFound,Microsoft.PowerShell.Commands.SelectObjectCommand
Select-Object : Property “InterconnectFirmwareInformation” cannot be found.
At line:27 char:6
+ $d | Select-Object -ExpandProperty InterconnectFirmwareInformation | Format-List …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (@{IP=10.144.33….alid Arguments}:PSObject) [Select-Object], PSArgumentException
+ FullyQualifiedErrorId : ExpandPropertyNotFound,Microsoft.PowerShell.Commands.SelectObjectCommand
Select-Object : Property “OnboardAdministratorFirmwareInformation” cannot be found.
At line:29 char:6
+ $d | Select-Object -ExpandProperty OnboardAdministratorFirmwareInformation | For …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (@{IP=10.144.33….alid Arguments}:PSObject) [Select-Object], PSArgumentException
+ FullyQualifiedErrorId : ExpandPropertyNotFound,Microsoft.PowerShell.Commands.SelectObjectCommand
LikeLike