Server Management - Remote Server Management
1748209 Members
2688 Online
108759 Solutions
New Discussion юеВ

Re: HPEBios Cmdlets 2.1.0.1 - Set-HPEBiosServerInfo giving an error

 
SOLVED
Go to solution
rookie1082
Frequent Advisor

HPEBios Cmdlets 2.1.0.1 - Set-HPEBiosServerInfo giving an error

Hello,

I use the HPEBIOSCmdlets for configuring many BIOS settings on my servers.

I have a batch of 10 DL380 Gen10 server models (BIOS Firmware 1.36 U30 and ILO Firmware 1.20).

I am using the following bit of code.  I imported a CSV file with all of my information (asset tag, username, password, etc).  Ths CSV file works perfectly with many HPEILO and HPEBIOS commands.

When i try to set asset tag information, i get the following error:

Failed for x.x.x.x (IP OF SERVER): Object reference not set to instance of object

 

foreach ($Server in $csv1) { 
    $ConnectBIOS = Connect-HPEBIOS -IP $Server.DHCPIP -Username "Administrator" -Password $Server.DefaultPW -DisableCertificateAuthentication -WarningAction SilentlyContinue
    Write-Host "Setting Asset Tag Number $($Server.AssetTag) on Server $($server.Serialnum)" -ForegroundColor Yellow
    Set-HPEBIOSServerInfo -Connection $ConnectBIOS -AssetTagProtection Unlocked
    Set-HPEBIOSServerInfo -Connection $ConnectBIOS -ServerAssetTag $Server.AssetTag
    Disconnect-HPEBIOS $ConnectBIOS | out-null
}

i have tried running both of those Set-HPEBIOS commands separately, but both fail with the above error.

Any ideas?  I don't have any other issues using the CSV and the information inside of it with other cmdlets.


Also,

When i have tried messing with the code, i'll get a warning that "Pipeline input was ignored from [0], [1], [2], all the way up to 9 to include my 10 servers.

10 REPLIES 10
B_Rajesh
Frequent Advisor

Re: HPEBios Cmdlets 2.1.0.1 - Set-HPEBiosServerInfo giving an error

Thank you Rookie for reporting this issue.

Please provide the following information.

1. Are you able to run any other BIOS cmdlets?

2. Enable the log using Enable-HPEBIOSLog

3. Establish the Gen10 connection for single server (where it is failing) using Connect-HPEBIOS

Example: $con = Connect-HPEBIOS -IP <IP> -Username <username> -Password <password> -DisableCertificateAuthentication -Verbose

4. Send us the output ($con) of Connect-HPEBIOS cmdlet.

5. Execute Set-HPEBIOSBootMode with $con object and share the log

Example: $con | Set-HPEBIOSBootMode -BootMode LegacyBootMode -Verbose 

 

 

Regards
Rajesh Balakrishnan
I am a HPE Employee
rookie1082
Frequent Advisor

Re: HPEBios Cmdlets 2.1.0.1 - Set-HPEBiosServerInfo giving an error

1.  Yes, I have been using the same workflow for over a year now.  With some Gen10 models (like this post I created), there are weird errors such as the one referenced in the post.  But it isn't consistent.  I was able to successfully configure many Gen10 models with the same workflow, just days prior without making any changes.

I will run the steps when I have more time.

Question, Does the new SPP (2018.03 and 2018.06) "Lock" the ILO when booting to the ISO via the ILO Virtual Media?

The reason I ask is that i'm constantly running a HOST POWER check in the background that constantly checks when the servers are powered down, and I notice that when the ISO is booting, my powershell script will prompt me that the USERNAME AND PASSWORD is incorrect while the SPP ISO is booting and it will cause issues.  

Also that username and password error will continue until the ILO is rebooted.  So I was wondering if there was any new behavior in the 2018 SPP iso's that are available. 

rookie1082
Frequent Advisor

Re: HPEBios Cmdlets 2.1.0.1 - Set-HPEBiosServerInfo giving an error

Here is the output of the steps you asked for:


VERBOSE: Performing the operation "Connect-HPEBIOS" on target "IP: 10.10.17.76".
VERBOSE: [Connect-HPEBIOS] Executing the cmdlets with 1 task serially.
VERBOSE: 10.10.17.76 : Checking whether the input target IP or Hostname is iLO or Windows server IP.
VERBOSE: 10.10.17.76 : Creating Redfish connection for target IP.
VERBOSE: 10.10.17.76 : Initializing Redfish connection properties.
WARNING: 10.10.17.76: The host name could not be resolved in DNS.

Output of Connect-HPEBIOS

PS C:\WINDOWS\system32> $connectbios


DisableServerCertificateAuthenticationFlag : True
Location : https://10.10.17.76/redfish/v1/SessionService/Sessions/administrator000000005b37040824189315/
RootUri : https://10.10.17.76/redfish/v1/Sessions/
RootData :
AttributeRegistry : BiosAttributeRegistryU30.v1_1_36
ConnectionType : Redfish
IP : 10.10.17.76
Hostname :
IsConnected : True
Username : Administrator
ProductName : ProLiant DL380 Gen10
CurrentROMFamily : U30
CurrentROMDate : 02/15/2018
CurrentROMVersion : U30 v1.36 (02/15/2018)
BackupROMFamily : U30
BackupROMDate : 02/15/2018
BackupROMVersion : U30 v1.36 (02/15/2018)
ProcessorInfo : Intel(R) Xeon(R) Gold 5118 CPU @ 2.30GHz

OUTPUT OF Set-HPEBIOSServerInfo

VERBOSE: Performing the operation "Set-HPEBIOSServerInfo" on target "IP: 10.10.17.76".
VERBOSE: [Set-HPEBIOSServerInfo] Executing the cmdlets with 1 task serially.
VERBOSE: 10.10.17.76 : Validating the connection object.
VERBOSE: 10.10.17.76 : Validating input parameters for Set-HPEBIOSServerInfo.
VERBOSE: 10.10.17.76 : Reading BIOS firmware data.
VERBOSE: 10.10.17.76 : Checking whether the input parameters of Set-HPEBIOSServerInfo are supported in 10.10.17.76.
Set-HPEBIOSServerInfo : Failed for 10.10.17.76: Object reference not set to an instance of an object.
At line:1 char:16
+ $ConnectBIOS | Set-HPEBIOSServerInfo -ServerAssetTag 4198332 -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ReadError: (:) [Set-HPEBIOSServerInfo], Exception
+ FullyQualifiedErrorId : HPE.BIOS.Cmdlet.SetHPEBIOSServerInfo

I also get the same Object reference error when trying to to Set-HPEBIOSBootMode.

All DL380 Gen10 servers that I have on the bench, 10 of them, have the same hardware, firmware configuration and all get this error.  

I also had a lot of BL460 Gen10 models that had this same issue last week.

OUTPUT OF LOG FILE

2018-06-29 23:22:35,532 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Parameter processing started.
2018-06-29 23:22:35,595 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - IP.
2018-06-29 23:22:35,595 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Username.
2018-06-29 23:22:35,595 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Password.
2018-06-29 23:22:35,610 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - AdminPassword.
2018-06-29 23:22:35,610 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - ClientLoggedInUserPassword.
2018-06-29 23:22:35,610 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Credential.
2018-06-29 23:22:35,610 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - DisableCertificateAuthentication.
2018-06-29 23:22:35,610 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Port.
2018-06-29 23:22:35,610 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Timeout.
2018-06-29 23:22:35,688 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Executing the cmdlets with 1 task serially.
2018-06-29 23:22:35,688 HPE.Framework.Logging.Logger.LogMessage INFO - Connect-HPEBIOS ProcessCommand() -- Starts
2018-06-29 23:22:35,704 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationModel() -- Start
2018-06-29 23:22:35,704 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationProtocolType() -- Start
2018-06-29 23:22:35,720 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationProtocolType() -- End
2018-06-29 23:22:35,720 HPE.Framework.Logging.Logger.LogMessage INFO - LoadCmdletParameterConfigurationData() -- Start
2018-06-29 23:22:35,751 HPE.Framework.Logging.Logger.LogMessage INFO - LoadCmdletParameterConfigurationData() -- End
2018-06-29 23:22:35,751 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationModel() -- End
2018-06-29 23:22:35,766 HPE.Framework.Logging.Logger.LogMessage INFO - BuildCommand() -- Start
2018-06-29 23:22:35,766 HPE.Framework.Logging.Logger.LogMessage INFO - Connect() -- Start
2018-06-29 23:22:40,267 HPE.Framework.Logging.Logger.LogMessage INFO - CreateConnection() -- Start
2018-06-29 23:22:40,548 HPE.Framework.Logging.Logger.LogMessage INFO - InitializeConnectionProperties() -- Start
2018-06-29 23:22:40,923 HPE.Framework.Logging.Logger.LogMessage INFO - InitializeConnectionProperties() -- End
2018-06-29 23:22:40,923 HPE.Framework.Logging.Logger.LogMessage INFO - CreateConnection() -- End
2018-06-29 23:22:40,923 HPE.Framework.Logging.Logger.LogMessage INFO - Connect() -- End
2018-06-29 23:22:40,923 HPE.Framework.Logging.Logger.LogMessage INFO - BuildCommand() -- End
2018-06-29 23:22:40,923 HPE.Framework.Logging.Logger.LogMessage INFO - Connect-HPEBIOS ProcessCommand() -- Ends
2018-06-29 23:24:17,584 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Parameter processing started.
2018-06-29 23:24:17,584 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - IP.
2018-06-29 23:24:17,584 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Username.
2018-06-29 23:24:17,584 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Password.
2018-06-29 23:24:17,584 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - AdminPassword.
2018-06-29 23:24:17,584 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - ClientLoggedInUserPassword.
2018-06-29 23:24:17,584 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Credential.
2018-06-29 23:24:17,600 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - DisableCertificateAuthentication.
2018-06-29 23:24:17,600 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Port.
2018-06-29 23:24:17,600 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Timeout.
2018-06-29 23:24:17,600 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Executing the cmdlets with 1 task serially.
2018-06-29 23:24:17,600 HPE.Framework.Logging.Logger.LogMessage INFO - Connect-HPEBIOS ProcessCommand() -- Starts
2018-06-29 23:24:17,615 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationModel() -- Start
2018-06-29 23:24:17,615 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationProtocolType() -- Start
2018-06-29 23:24:17,787 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationProtocolType() -- End
2018-06-29 23:24:17,787 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationModel() -- End
2018-06-29 23:24:17,787 HPE.Framework.Logging.Logger.LogMessage INFO - BuildCommand() -- Start
2018-06-29 23:24:17,803 HPE.Framework.Logging.Logger.LogMessage INFO - Connect() -- Start
2018-06-29 23:24:22,303 HPE.Framework.Logging.Logger.LogMessage INFO - CreateConnection() -- Start
2018-06-29 23:24:22,522 HPE.Framework.Logging.Logger.LogMessage INFO - InitializeConnectionProperties() -- Start
2018-06-29 23:24:22,678 HPE.Framework.Logging.Logger.LogMessage INFO - InitializeConnectionProperties() -- End
2018-06-29 23:24:22,678 HPE.Framework.Logging.Logger.LogMessage INFO - CreateConnection() -- End
2018-06-29 23:24:22,694 HPE.Framework.Logging.Logger.LogMessage INFO - Connect() -- End
2018-06-29 23:24:22,694 HPE.Framework.Logging.Logger.LogMessage INFO - BuildCommand() -- End
2018-06-29 23:24:22,694 HPE.Framework.Logging.Logger.LogMessage INFO - Connect-HPEBIOS ProcessCommand() -- Ends
2018-06-29 23:24:26,288 HPE.Framework.Logging.Logger.LogMessage INFO - [Set-HPEBIOSServerInfo] Parameter processing started.
2018-06-29 23:24:26,288 HPE.Framework.Logging.Logger.LogMessage INFO - [Set-HPEBIOSServerInfo] Processing parameter - Connection.
2018-06-29 23:24:26,288 HPE.Framework.Logging.Logger.LogMessage INFO - [Set-HPEBIOSServerInfo] Processing parameter - AssetTagProtection.
2018-06-29 23:24:26,288 HPE.Framework.Logging.Logger.LogMessage INFO - [Set-HPEBIOSServerInfo] Processing parameter - PowerOnLogo.
2018-06-29 23:24:26,288 HPE.Framework.Logging.Logger.LogMessage INFO - [Set-HPEBIOSServerInfo] Processing parameter - ServerAssetTag.
2018-06-29 23:24:26,288 HPE.Framework.Logging.Logger.LogMessage INFO - [Set-HPEBIOSServerInfo] Processing parameter - ServerName.
2018-06-29 23:24:26,303 HPE.Framework.Logging.Logger.LogMessage INFO - [Set-HPEBIOSServerInfo] Processing parameter - ServerOtherInfo.
2018-06-29 23:24:26,303 HPE.Framework.Logging.Logger.LogMessage INFO - [Set-HPEBIOSServerInfo] Processing parameter - ServerPrimaryOS.
2018-06-29 23:24:26,303 HPE.Framework.Logging.Logger.LogMessage INFO - [Set-HPEBIOSServerInfo] Executing the cmdlets with 1 task serially.
2018-06-29 23:24:26,303 HPE.Framework.Logging.Logger.LogMessage INFO - Set-HPEBIOSServerInfo ProcessCommand() -- Starts
2018-06-29 23:24:26,303 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationModel() -- Start
2018-06-29 23:24:26,303 HPE.Framework.Logging.Logger.LogMessage INFO - TestConnection() -- Start
2018-06-29 23:24:26,319 HPE.Framework.Logging.Logger.LogMessage INFO - TestConnection() -- End
2018-06-29 23:24:26,319 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationModel() -- End
2018-06-29 23:24:26,319 HPE.Framework.Logging.Logger.LogMessage INFO - ValidateParameterRecord() -- Start
2018-06-29 23:24:26,335 HPE.Framework.Logging.Logger.LogMessage INFO - ValidateParameterRecord() -- End
2018-06-29 23:24:26,335 HPE.Framework.Logging.Logger.LogMessage INFO - BuildCommand() -- Start
2018-06-29 23:24:26,335 HPE.Framework.Logging.Logger.LogMessage INFO - InitializeConnectionInfo() -- Start
2018-06-29 23:24:26,335 HPE.Framework.Logging.Logger.LogMessage INFO - ReadBIOSRegistryData() -- Start
2018-06-29 23:24:26,350 HPE.Framework.Logging.Logger.LogMessage INFO - ReadBIOSRegistryData() -- End
2018-06-29 23:24:26,397 HPE.Framework.Logging.Logger.LogMessage INFO - InitializeConnectionInfo() -- End
2018-06-29 23:24:26,413 HPE.Framework.Logging.Logger.LogMessage INFO - ValidateParameterAndValue() -- Start
2018-06-29 23:24:26,444 HPE.Framework.Logging.Logger.LogMessage ERROR - Failed for 10.10.17.76: Object reference not set to an instance of an object.
2018-06-29 23:27:20,969 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Parameter processing started.
2018-06-29 23:27:20,969 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - IP.
2018-06-29 23:27:20,969 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Username.
2018-06-29 23:27:20,969 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Password.
2018-06-29 23:27:20,969 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - AdminPassword.
2018-06-29 23:27:20,969 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - ClientLoggedInUserPassword.
2018-06-29 23:27:20,969 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Credential.
2018-06-29 23:27:20,969 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - DisableCertificateAuthentication.
2018-06-29 23:27:20,969 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Port.
2018-06-29 23:27:20,984 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Processing parameter - Timeout.
2018-06-29 23:27:20,984 HPE.Framework.Logging.Logger.LogMessage INFO - [Connect-HPEBIOS] Executing the cmdlets with 1 task serially.
2018-06-29 23:27:20,984 HPE.Framework.Logging.Logger.LogMessage INFO - Connect-HPEBIOS ProcessCommand() -- Starts
2018-06-29 23:27:20,984 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationModel() -- Start
2018-06-29 23:27:21,000 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationProtocolType() -- Start
2018-06-29 23:27:21,000 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationProtocolType() -- End
2018-06-29 23:27:21,000 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationModel() -- End
2018-06-29 23:27:21,000 HPE.Framework.Logging.Logger.LogMessage INFO - BuildCommand() -- Start
2018-06-29 23:27:21,000 HPE.Framework.Logging.Logger.LogMessage INFO - Connect() -- Start
2018-06-29 23:27:25,516 HPE.Framework.Logging.Logger.LogMessage INFO - CreateConnection() -- Start
2018-06-29 23:27:25,719 HPE.Framework.Logging.Logger.LogMessage INFO - InitializeConnectionProperties() -- Start
2018-06-29 23:27:25,906 HPE.Framework.Logging.Logger.LogMessage INFO - InitializeConnectionProperties() -- End
2018-06-29 23:27:25,906 HPE.Framework.Logging.Logger.LogMessage INFO - CreateConnection() -- End
2018-06-29 23:27:25,906 HPE.Framework.Logging.Logger.LogMessage INFO - Connect() -- End
2018-06-29 23:27:25,906 HPE.Framework.Logging.Logger.LogMessage INFO - BuildCommand() -- End
2018-06-29 23:27:25,906 HPE.Framework.Logging.Logger.LogMessage INFO - Connect-HPEBIOS ProcessCommand() -- Ends
2018-06-29 23:27:27,203 HPE.Framework.Logging.Logger.LogMessage INFO - [Set-HPEBIOSBootMode] Parameter processing started.
2018-06-29 23:27:27,203 HPE.Framework.Logging.Logger.LogMessage INFO - [Set-HPEBIOSBootMode] Processing parameter - Connection.
2018-06-29 23:27:27,203 HPE.Framework.Logging.Logger.LogMessage INFO - [Set-HPEBIOSBootMode] Processing parameter - BootMode.
2018-06-29 23:27:27,219 HPE.Framework.Logging.Logger.LogMessage INFO - [Set-HPEBIOSBootMode] Executing the cmdlets with 1 task serially.
2018-06-29 23:27:27,219 HPE.Framework.Logging.Logger.LogMessage INFO - Set-HPEBIOSBootMode ProcessCommand() -- Starts
2018-06-29 23:27:27,219 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationModel() -- Start
2018-06-29 23:27:27,219 HPE.Framework.Logging.Logger.LogMessage INFO - TestConnection() -- Start
2018-06-29 23:27:27,235 HPE.Framework.Logging.Logger.LogMessage INFO - TestConnection() -- End
2018-06-29 23:27:27,235 HPE.Framework.Logging.Logger.LogMessage INFO - GetCommunicationModel() -- End
2018-06-29 23:27:27,235 HPE.Framework.Logging.Logger.LogMessage INFO - ValidateParameterRecord() -- Start
2018-06-29 23:27:27,235 HPE.Framework.Logging.Logger.LogMessage INFO - ValidateParameterRecord() -- End
2018-06-29 23:27:27,235 HPE.Framework.Logging.Logger.LogMessage INFO - BuildCommand() -- Start
2018-06-29 23:27:27,235 HPE.Framework.Logging.Logger.LogMessage INFO - InitializeConnectionInfo() -- Start
2018-06-29 23:27:27,235 HPE.Framework.Logging.Logger.LogMessage INFO - ReadBIOSRegistryData() -- Start
2018-06-29 23:27:27,250 HPE.Framework.Logging.Logger.LogMessage INFO - ReadBIOSRegistryData() -- End
2018-06-29 23:27:27,250 HPE.Framework.Logging.Logger.LogMessage INFO - InitializeConnectionInfo() -- End
2018-06-29 23:27:27,250 HPE.Framework.Logging.Logger.LogMessage INFO - ValidateParameterAndValue() -- Start
2018-06-29 23:27:27,266 HPE.Framework.Logging.Logger.LogMessage ERROR - Failed for 10.10.17.76: Object reference not set to an instance of an object.

 

 

B_Rajesh
Frequent Advisor

Re: HPEBios Cmdlets 2.1.0.1 - Set-HPEBiosServerInfo giving an error

Thank you Rookie for providing more informations.

From your log and verbose data, we are suspecting the BIOS data from underlying Redfish API is not available. It looks like the bios is not installed properly.

Please use any REST client (example : POSTMAN or restlet clients) and navigate to followings URLs.

1. https://<iLO_IP>/redfish/v1/Registries/

2. https://<iLO_IP>/redfish/v1/systems/1/bios/settings/

Let us know whether the payload is loaded or not.

Regards
Rajesh Balakrishnan
I am a HPE Employee
B_Rajesh
Frequent Advisor

Re: HPEBios Cmdlets 2.1.0.1 - Set-HPEBiosServerInfo giving an error

Hi Rookie,

This issue is not related to PowerShell issue and looks like iLO issue. Please create a new thread for closer purpose since the reported issues are different.

I am not an iLO expert. Here are my in sights.

Are you creating a new session to iLO (Connect-HPEiLO) everytime you the PowerShell script? if yes, are you closing the session (Disconnect-HPEiLO) after the host power check?

 

Regards
Rajesh Balakrishnan
I am a HPE Employee
rookie1082
Frequent Advisor

Re: HPEBios Cmdlets 2.1.0.1 - Set-HPEBiosServerInfo giving an error

Hey Rajesh I spoke with Kelly the other day and he mentioned trying to add the same thing to the do/while loop.

I have added that and will hope for good results.

When i get more hardware to try the RedFish test with PostMan, I will let you know.

rookie1082
Frequent Advisor

Re: HPEBios Cmdlets 2.1.0.1 - Set-HPEBiosServerInfo giving an error

Rajesh, I have attached photo output of the PostMan commands you requested

download-1.jpg

 

download.jpg

 

 

B_Rajesh
Frequent Advisor

Re: HPEBios Cmdlets 2.1.0.1 - Set-HPEBiosServerInfo giving an error

Thank you Rookie for sharing the snapshots.

It looks like you are not used "Basic Auth" by entering iLO username and password to read the URL data.

Regards
Rajesh Balakrishnan
I am a HPE Employee
rookie1082
Frequent Advisor

Re: HPEBios Cmdlets 2.1.0.1 - Set-HPEBiosServerInfo giving an error

Rajesh,

Here you go:

 

Output of https://10.10.16.226/redfish/v1/systems/1/bios/settings/:

{

"@odata.context": "/redfish/v1/$metadata#Bios.Bios",
"@odata.etag": "W/\"E033E4D00E775454540D8CDFDC2D4EA7\"",
"@odata.id": "/redfish/v1/systems/1/bios/settings/",
"@odata.type": "#Bios.v1_0_0.Bios",
"AttributeRegistry": "BiosAttributeRegistryU30.v1_1_36",
"Attributes": {
"AcpiHpet": "Enabled",
"AcpiRootBridgePxm": "Enabled",
"AcpiSlit": "Enabled",
"AdjSecPrefetch": "Enabled",
"AdminEmail": "",
"AdminName": "",
"AdminOtherInfo": "",
"AdminPhone": "",
"AdvancedMemProtection": "AdvancedEcc",
"AsrStatus": "Enabled",
"AsrTimeoutMinutes": "Timeout10",
"AssetTagProtection": "Locked",
"AutoPowerOn": "RestoreLastState",
"BootMode": "Uefi",
"BootOrderPolicy": "RetryIndefinitely",
"ChannelInterleaving": "Enabled",
"CollabPowerControl": "Enabled",
"ConsistentDevNaming": "LomsAndSlots",
"CustomPostMessage": "",
"DaylightSavingsTime": "Disabled",
"DcuIpPrefetcher": "Enabled",
"DcuStreamPrefetcher": "Enabled",
"Dhcpv4": "Enabled",
"DirectToUpi": "Auto",
"DynamicPowerCapping": "Disabled",
"EmbNicEnable": "Auto",
"EmbNicLinkSpeed": "Auto",
"EmbNicPCIeOptionROM": "Enabled",
"EmbSas1Aspm": "Disabled",
"EmbSas1Boot": "TwentyFourTargets",
"EmbSas1Enable": "Auto",
"EmbSas1LinkSpeed": "Auto",
"EmbSas1PcieOptionROM": "Enabled",
"EmbSata1Aspm": "Disabled",
"EmbSata1PCIeOptionROM": "Enabled",
"EmbSata2Aspm": "Disabled",
"EmbSata2PCIeOptionROM": "Enabled",
"EmbVideoConnection": "Auto",
"EmbeddedDiagnostics": "Enabled",
"EmbeddedSata": "Ahci",
"EmbeddedSerialPort": "Com2Irq3",
"EmbeddedUefiShell": "Enabled",
"EmsConsole": "Disabled",
"EnabledCoresPerProc": 0,
"EnergyEfficientTurbo": "Enabled",
"EnergyPerfBias": "BalancedPerf",
"EraseUserDefaults": "No",
"ExtendedAmbientTemp": "Disabled",
"ExtendedMemTest": "Disabled",
"F11BootMenu": "Enabled",
"FCScanPolicy": "CardConfig",
"FanFailPolicy": "Shutdown",
"FanInstallReq": "EnableMessaging",
"FlexLom1Aspm": "Disabled",
"FlexLom1Enable": "Auto",
"FlexLom1LinkSpeed": "Auto",
"FlexLom1PCIeOptionROM": "Enabled",
"HttpSupport": "Auto",
"HwPrefetcher": "Enabled",
"IntelDmiLinkFreq": "Auto",
"IntelNicDmaChannels": "Enabled",
"IntelPerfMonitoring": "Disabled",
"IntelProcVtd": "Enabled",
"IntelTxt": "Disabled",
"IntelUpiFreq": "Auto",
"IntelUpiLinkEn": "Auto",
"IntelUpiPowerManagement": "Enabled",
"IntelligentProvisioning": "Enabled",
"InternalSDCardSlot": "Enabled",
"Ipv4Address": "0.0.0.0",
"Ipv4Gateway": "0.0.0.0",
"Ipv4PrimaryDNS": "0.0.0.0",
"Ipv4SecondaryDNS": "0.0.0.0",
"Ipv4SubnetMask": "0.0.0.0",
"Ipv6Address": "::",
"Ipv6ConfigPolicy": "Automatic",
"Ipv6Duid": "Auto",
"Ipv6Gateway": "::",
"Ipv6PrimaryDNS": "::",
"Ipv6SecondaryDNS": "::",
"LLCDeadLineAllocation": "Enabled",
"LlcPrefetch": "Disabled",
"LocalRemoteThreshold": "Auto",
"LogUefiDebugMessagesToMemory": "Enabled",
"MaxMemBusFreqMHz": "Auto",
"MaxPcieSpeed": "PerPortCtrl",
"MemClearWarmReset": "Disabled",
"MemFastTraining": "Enabled",
"MemMirrorMode": "Full",
"MemPatrolScrubbing": "Enabled",
"MemRefreshRate": "Refreshx1",
"MemoryRemap": "NoAction",
"MinProcIdlePkgState": "C6Retention",
"MinProcIdlePower": "C6",
"MixedPowerSupplyReporting": "Enabled",
"NetworkBootRetry": "Enabled",
"NetworkBootRetryCount": 20,
"NicBoot1": "NetworkBoot",
"NicBoot2": "Disabled",
"NicBoot3": "Disabled",
"NicBoot4": "Disabled",
"NicBoot5": "NetworkBoot",
"NicBoot6": "Disabled",
"NodeInterleaving": "Disabled",
"NumaGroupSizeOpt": "Flat",
"NvmeOptionRom": "Enabled",
"OpportunisticSelfRefresh": "Disabled",
"PciResourcePadding": "Normal",
"PciSlot1Aspm": "Disabled",
"PciSlot1Bifurcation": "Auto",
"PciSlot1Enable": "Auto",
"PciSlot1LinkSpeed": "Auto",
"PciSlot1OptionROM": "Enabled",
"PciSlot2Aspm": "Disabled",
"PciSlot2Bifurcation": "Auto",
"PciSlot2LinkSpeed": "Auto",
"PciSlot2OptionROM": "Enabled",
"PciSlot3Aspm": "Disabled",
"PciSlot3LinkSpeed": "Auto",
"PciSlot3OptionROM": "Enabled",
"PciSlot4Aspm": "Disabled",
"PciSlot4Bifurcation": "Auto",
"PciSlot4Enable": "Auto",
"PciSlot4LinkSpeed": "Auto",
"PciSlot4OptionROM": "Enabled",
"PciSlot5Aspm": "Disabled",
"PciSlot5Bifurcation": "Auto",
"PciSlot5LinkSpeed": "Auto",
"PciSlot5OptionROM": "Enabled",
"PciSlot6Aspm": "Disabled",
"PciSlot6Bifurcation": "Auto",
"PciSlot6Enable": "Auto",
"PciSlot6LinkSpeed": "Auto",
"PciSlot6OptionROM": "Enabled",
"PciSlot7Aspm": "Disabled",
"PciSlot7LinkSpeed": "Auto",
"PciSlot7OptionROM": "Enabled",
"PciSlot8Aspm": "Disabled",
"PciSlot8LinkSpeed": "Auto",
"PciSlot8OptionROM": "Enabled",
"PersistentMemAddressRangeScrub": "Enabled",
"PersistentMemBackupPowerPolicy": "WaitForBackupPower",
"PersistentMemScanMem": "Enabled",
"PostBootProgress": "Disabled",
"PostDiscoveryMode": "Auto",
"PostF1Prompt": "Delayed20Sec",
"PowerButton": "Enabled",
"PowerOnDelay": "NoDelay",
"PowerRegulator": "DynamicPowerSavings",
"PreBootNetwork": "Auto",
"PrebootNetworkEnvPolicy": "Auto",
"PrebootNetworkProxy": "",
"ProcAes": "Enabled",
"ProcHyperthreading": "Enabled",
"ProcTurbo": "Enabled",
"ProcVirtualization": "Enabled",
"ProcX2Apic": "Enabled",
"ProcessorJitterControl": "Disabled",
"ProcessorJitterControlFrequency": 0,
"ProductId": "868703-B21",
"RedundantPowerSupply": "BalancedMode",
"RemovableFlashBootSeq": "ExternalKeysFirst",
"RestoreDefaults": "No",
"RestoreManufacturingDefaults": "No",
"RomSelection": "CurrentRom",
"SataSecureErase": "Disabled",
"SaveUserDefaults": "No",
"SecStartBackupImage": "Disabled",
"SecureBootStatus": "Disabled",
"SerialConsoleBaudRate": "BaudRate115200",
"SerialConsoleEmulation": "Vt100Plus",
"SerialConsolePort": "Auto",
"SerialNumber": "2M2820000Q",
"ServerAssetTag": "",
"ServerName": "",
"ServerOtherInfo": "",
"ServerPrimaryOs": "",
"ServiceEmail": "",
"ServiceName": "",
"ServiceOtherInfo": "",
"ServicePhone": "",
"SetupBrowserSelection": "Auto",
"Slot6NicBoot1": "NetworkBoot",
"Slot6NicBoot2": "Disabled",
"Sriov": "Enabled",
"StaleAtoS": "Disabled",
"SubNumaClustering": "Disabled",
"ThermalConfig": "OptimalCooling",
"ThermalShutdown": "Enabled",
"TimeFormat": "Utc",
"TimeZone": "Unspecified",
"Tpm20SoftwareInterfaceOperation": "NoAction",
"Tpm20SoftwareInterfaceStatus": "Fifo",
"Tpm2Operation": "NoAction",
"TpmActivePcrs": "Sha1Sha256",
"TpmChipId": "StMicroGen10",
"TpmFips": "FipsMode",
"TpmFipsModeSwitch": "NoAction",
"TpmModeSwitchOperation": "NoAction",
"TpmState": "PresentEnabled",
"TpmType": "Tpm20",
"TpmUefiOpromMeasuring": "Enabled",
"TpmVisibility": "Visible",
"UefiOptimizedBoot": "Enabled",
"UefiSerialDebugLevel": "Disabled",
"UefiShellBootOrder": "Disabled",
"UefiShellScriptVerification": "Disabled",
"UefiShellStartup": "Disabled",
"UefiShellStartupLocation": "Auto",
"UefiShellStartupUrl": "",
"UefiShellStartupUrlFromDhcp": "Disabled",
"UncoreFreqScaling": "Auto",
"UpiPrefetcher": "Enabled",
"UrlBootFile": "",
"UrlBootFile2": "",

Output of  https://10.10.16.226/redfish/v1/Registries/:

{
"@odata.context": "/redfish/v1/$metadata#MessageRegistryFileCollection.MessageRegistryFileCollection",
"@odata.etag": "W/\"DA402EBA\"",
"@odata.id": "/redfish/v1/Registries/",
"@odata.type": "#MessageRegistryFileCollection.MessageRegistryFileCollection",
"Description": "Registry Repository",
"Name": "Registry File Repository",
"Members": [
{
"@odata.id": "/redfish/v1/Registries/Base/"
},
{
"@odata.id": "/redfish/v1/Registries/HpeCommon/"
},
{
"@odata.id": "/redfish/v1/Registries/iLO/"
},
{
"@odata.id": "/redfish/v1/Registries/iLOEvents/"
},
{
"@odata.id": "/redfish/v1/Registries/%23SmartStorageMessages.v2_0_0.SmartStorageMessages/"
},
{
"@odata.id": "/redfish/v1/Registries/BiosAttributeRegistryU30.v1_1_36/"
},
{
"@odata.id": "/redfish/v1/Registries/HpeBiosMessageRegistry.v1_0_0/"
}
],
"Members@odata.count": 7
}