HewlettPackard / PowerShell-ProLiant-SDK

PowerShell sample scripts for managing HPE servers
https://www.hpe.com/servers/powershell
90 stars 42 forks source link

Get-HPEBIOSSetting: empty output #45

Closed pirx-de closed 4 years ago

pirx-de commented 4 years ago

Maybe I'm missing something very basic here, but Get-HPEBIOSSetting does not return any output. I want to check the BIOS settings of a DL380Gen10 server and tried the following commands:

PS D:\Software> Get-Module HPE*

ModuleType Version    Name                                ExportedCommands
---------- -------    ----                                ----------------
Binary     2.2.0.0    HPEBIOSCmdlets                      {Add-HPEBIOSiSCSIBootAttempt, Clear-HPEBIOSLog, Clear-HPEBIOSTLSCertificateInstallationQue...
Binary     3.0.0.0    HPEiLOCmdlets                       {Add-HPEiLODirectoryGroup, Add-HPEiLOFederationGroup, Add-HPEiLOInstallationQueueWaitTask,...
Binary     1.0.0.1    HPESmartArrayCmdlets                {Clear-HPESALog, Clear-HPESAPhysicalDrive, Connect-HPESA, Disable-HPESALog...}

$connection = Connect-HPEBIOS -IP xx.129.69.21 -Username Administrator -Password 'xxxxx' -DisableCertificateAuthentication

PS D:\Software> $connection

DisableServerCertificateAuthenticationFlag : True
X_Auth_Token                               : xxxx
Location                                   : https://xx.129.69.21/redfish/v1/SessionService/Sessions/administratorxxxx/
RootUri                                    : https://xx.129.69.21/redfish/v1/Sessions/
RootData                                   :
AttributeRegistry                          : BiosAttributeRegistryU30.v1_2_32
ConnectionType                             : Redfish
IP                                         : xx.129.69.21
Hostname                                   : xxxxx
IsConnected                                : True
Username                                   : Administrator
ProductName                                : ProLiant DL380 Gen10
CurrentROMFamily                           : U30
CurrentROMDate                             : 03/09/2020
CurrentROMVersion                          : U30 v2.32 (03/09/2020)
BackupROMFamily                            : U30
BackupROMDate                              : 11/13/2019
BackupROMVersion                           : U30 v2.22 (11/13/2019)
ProcessorInfo                              : Intel(R) Xeon(R) Gold 6248 CPU @ 2.50GHz

$BIOSSettings = $connection | Get-HPEBIOSSetting

$BIOSSettings.BaseConfig
$BIOSSettings.CurrentBIOSBootSettings
$BIOSSettings.CurrentBIOSSettings

$connection| Get-HPEBIOSSetting

$connection| Get-HPEBIOSInterfaceMode

IP           Hostname                                    Status StatusInfo
--           --------                                    ------ ----------
xx.129.69.21 xxxx  Error @{Category=CmdletSupportability; Message=**This cmdlet is not supported on the target** ..

PS D:\Software> $connection| Get-HPEBIOSAdminInfo

IP                : x.129.69.21
Hostname          : xxx
Status            : OK
AdminName         :
AdminPhoneNumber  :
AdminOtherInfo    :
AdminEmailAddress :
hp-powershell commented 4 years ago

Hi,

The results must populate in the properties. Currently we are unable to reproduce it. Could you please enable the log using Enable-HPEBIOSLog, execute the command and share the log file.