Server Management - Remote Server Management
1752822 Members
4227 Online
108789 Solutions
New Discussion

Help getting the SerialNumber using PowerShell

 
SOLVED
Go to solution
PhS-
Regular Advisor

Help getting the SerialNumber using PowerShell

Hello,

Pretty simple, I want to get the serial number using powershell from the iLO and it works ... but only for some of my servers (all are Proliant Gen 9)

Scripts>
Connect-HPEBIOS -IP 10.xx.xx.xx -Username $ILOUsername -Password $ILOPassword -Verbose:$false |Get-HPEBIOSSystemInfo |fl

IP         : 10.xx.xx.xx
Hostname   : ILONAME.fq.dn
Status     : Warning
StatusInfo : @{Category=PropertySupportability; Message=The property or properties listed in AffectedAttribute are not supported on the target server 
             ProLiant DL380 Gen9. For more details about supported properties, see the cmdlet help or the Troubleshooting chapter of BIOS Cmdlets user 
             guide.; AffectedAttribute=System.Collections.Generic.List`1[System.String]}


Scripts>  $iLOBiosConnection  = Connect-HPEBIOS -IP 10.xx.xx.xx -Username $ILOUsername -Password $ILOPassword -Verbose:$false
Scripts> $iLOBiosConnection


DisableServerCertificateAuthenticationFlag : False
Location                                   : https://iloname.fq.dn/rest/v1/SessionService/Sessions/administrator5bf6a452074f8d09
RootUri                                    : https://iloname.fq.dn/rest/v1
RootData                                   : 
AttributeRegistry                          : HpBiosAttributeRegistryP89.1.1.60
ConnectionType                             : REST
IP                                         : 10.xx.xx.xx
Hostname                                   : ILONAME.fq.dn
IsConnected                                : True
Username                                   : Administrator
ProductName                                : ProLiant DL380 Gen9
CurrentROMFamily                           : P89
CurrentROMDate                             : 05/21/2018
CurrentROMVersion                          : P89 v2.60 (05/21/2018)
BackupROMFamily                            : P89
BackupROMDate                              : 10/25/2017
BackupROMVersion                           : P89 v2.52 (10/25/2017)
ProcessorInfo                              : Intel(R) Xeon(R) CPU E5-2698 v4 @ 2.20GHz



And of course on some servers it's working great

Scripts> Connect-HPEBIOS -IP 10.xx.xx.yy -Username $ILOUsername -Password $ILOPassword -Verbose:$false |Get-HPEBIOSSystemInfo |fl

IP           : 10.xx.xx.yy
Hostname     : ilo2name.fq.dn
Status       : OK
ProductID    : 767032-B21
SerialNumber : CZJxxxx

Can some one help / explain ?

 

6 REPLIES 6
B_Rajesh
Frequent Advisor

Re: Help getting the SerialNumber using PowerShell

Thank you Reporting the issue,

We could not able to reproduce this issue in our Lab. Can you please provide us the HPEBIOSCmdlets version.

Regards
Rajesh Balakrishnan
I am a HPE Employee
PhS-
Regular Advisor

Re: Help getting the SerialNumber using PowerShell

Hello,

 

I am using version HPEBIOSCmdlets 2.1.0.1

Again, what is really strange is that it is affecting only some of my servers.

 

 

B_Rajesh
Frequent Advisor
Solution

Re: Help getting the SerialNumber using PowerShell

Thanks for information, we couldnt able to reproduce the same in our Lab, Please share the followings to us via a private message by clicking here.

1. Install "HPEiLOCmdlets" and share the "Find-HPEiLO" cmdlet output.

2. Use any REST client like PostMan/Restlet clients, share us the JSON data for "https://10.x.x.x/rest/v1/systems/1/bios".

Regards
Rajesh Balakrishnan
I am a HPE Employee
PhS-
Regular Advisor

Re: Help getting the SerialNumber using PowerShell

"Find-HPEiLO" does give back the good result (and it's much faster than the method I wanted to use as it does not requieres authentication.

Still do not understand why HPEBIOSSystemInfo does not give back the excpected result on some machines only.

PhS

B_Rajesh
Frequent Advisor

Re: Help getting the SerialNumber using PowerShell

Hi PhS,

As per error message, it looks like the SerialNumber and ProductNumber details are not supported on the target server.

Category=PropertySupportability; Message=The property or properties listed in AffectedAttribute are not supported on the target server 
             ProLiant DL380 Gen9.

In order to confrim this, I want to look at the JSON data for "https://10,x,x,x/rest/v1/systems/1/bios" URL. Please share it via mail.

Regards
Rajesh Balakrishnan
I am a HPE Employee
J_Vijay
Frequent Visitor

HPCMDBIOSCMDLETS DL360 Gen10 help with PCI device configuration

Module version =3.0.0.0

get-HPEBIOSPCIDeviceConfiguration

I get error "listed in AffectedAttribute are not supported on the target server ProLiant DL360 Gen10" , i think it should support please confirm.