< Back
Get-HPESysInfoServerHealth
Post
NAME Get-HPESysInfoServerHealth
SYNOPSIS
Get information about server health.
SYNTAX
Get-HPESysInfoServerHealth [[-Username] <String>] [[-Password] <String>] [<CommonParameters>]
Get-HPESysInfoServerHealth [-Credential <PSCredential>] [<CommonParameters>]
DESCRIPTION
The Get-HPESysInfoServerHealth cmdlet provides detailed information about the server health including its network,
storage, processor, memory, power supply, cooling, management processor, and enclosure. The enclosure information
will be excluded if the system is not a blade system.
PARAMETERS
-Username [<String>]
Username to log onto the target iLO. Username needs to be provided as an input along with Password. This
parameter is required when the iLO security is enabled.
ParameterSetName: UsernamePasswordSet
Required? false
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Password [<String>]
Password to log onto the target iLO. Password needs to be provided along with Username. This parameter is
required when the iLO security is enabled.
ParameterSetName: UsernamePasswordSet
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Credential [<PSCredential>]
Holds the target iLO Credential in a secure manner. This parameter is required when the iLO security is
enabled.
ParameterSetName: CredentialSet
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
System.Object
NOTES
Status
The value returned in the "Status" property reflects the data retrieval operation of a cmdlet. It does not
reflect the component status. When a cmdlet returns ???????Status: Error??????? or ???????Status: Warning???????, it indicates that
the operation to retrieve the data was not successful. The ???????StatusInfo??????? message specifies the reason for the
data retrieval operation failure. If the data retrieval operation is successful, "Status: OK" is returned for
the cmdlet, and the component status is displayed in the Health property and/or other properties of the PS
object.
EXAMPLE 1
Get an HPESysInfoServerHealth object and show the overall information about the server.PS C:\\> $srvh =
Get-HPESysInfoServerHealth -Username username -Password password
PS C:\\> $srvh | fl
NetworkInfo : @{BASENETWORKADAPTERS=System.Management.Automation.PSObject[];
ETHERNETINTERFACES=System.Management.Automation.PSObject[]; IPAddress=System.String[];
StorageInfo : @{ARRAYCONTROLLERS=System.Management.Automation.PSObject[]}
ProcessorInfo : @{PROCESSORS=System.Management.Automation.PSObject[]; HyperThreading=Enabled}
MemoryInfo : @{MEMORY=System.Management.Automation.PSObject[]; TotalMemorySize=; AmpInfo=}
PowerSupplyInfo : @{PowerSupply=Not Available}
CoolingInfo : @{TemperatureSensors=System.Object[]; Fans=}
ManagementProcessorInfo : @{LICENSESERVICE=System.Management.Automation.PSObject[];
ETHERNETINTERFACES=System.Management.Automation.PSObject[]; Name=iLO 5 v1.10
; State=; FirmwareVersionAndReleaseDate=}
EnclosureInfo : @{EnclosureType=G1; EnclosureModelNumberAndProductId=; EnclosureSerialNumber=;
Manufacturer=HPE; ChassisDimensions=;
NumberOfBaySlotsAndInterconnectSlots=System.Object[]}
Status : OK
EXAMPLE 2
Get an HPESysInfoServerHealth object and show the chassis dimension of its enclosure.PS C:\\> $srvh =
Get-HPESysInfoServerHealth -Credential $credential
PS C:\\> $srvh.EnclosureInfo.ChassisDimensions | fl
ChassisWidth : 482
ChassisHeight : 442
EXAMPLE 3
Get an HPESysInfoServerHealth object and list the DIMMs that have capacity greater than zero.PS C:\\> $srvh =
Get-HPESysInfoServerHealth
PS C:\\> $srvh.MemoryInfo.MEMORY.DIMMSize | Where-Object -Property CapacityMiB -GT 0 | fl
CapacityMiB : 8192
DataWidthBits : 64
RELATED LINKS
http://www.hpe.com/servers/powershell
SYNOPSIS
Get information about server health.
SYNTAX
Get-HPESysInfoServerHealth [[-Username] <String>] [[-Password] <String>] [<CommonParameters>]
Get-HPESysInfoServerHealth [-Credential <PSCredential>] [<CommonParameters>]
DESCRIPTION
The Get-HPESysInfoServerHealth cmdlet provides detailed information about the server health including its network,
storage, processor, memory, power supply, cooling, management processor, and enclosure. The enclosure information
will be excluded if the system is not a blade system.
PARAMETERS
-Username [<String>]
Username to log onto the target iLO. Username needs to be provided as an input along with Password. This
parameter is required when the iLO security is enabled.
ParameterSetName: UsernamePasswordSet
Required? false
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Password [<String>]
Password to log onto the target iLO. Password needs to be provided along with Username. This parameter is
required when the iLO security is enabled.
ParameterSetName: UsernamePasswordSet
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Credential [<PSCredential>]
Holds the target iLO Credential in a secure manner. This parameter is required when the iLO security is
enabled.
ParameterSetName: CredentialSet
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
OUTPUTS
System.Object
NOTES
Status
The value returned in the "Status" property reflects the data retrieval operation of a cmdlet. It does not
reflect the component status. When a cmdlet returns ???????Status: Error??????? or ???????Status: Warning???????, it indicates that
the operation to retrieve the data was not successful. The ???????StatusInfo??????? message specifies the reason for the
data retrieval operation failure. If the data retrieval operation is successful, "Status: OK" is returned for
the cmdlet, and the component status is displayed in the Health property and/or other properties of the PS
object.
EXAMPLE 1
Get an HPESysInfoServerHealth object and show the overall information about the server.PS C:\\> $srvh =
Get-HPESysInfoServerHealth -Username username -Password password
PS C:\\> $srvh | fl
NetworkInfo : @{BASENETWORKADAPTERS=System.Management.Automation.PSObject[];
ETHERNETINTERFACES=System.Management.Automation.PSObject[]; IPAddress=System.String[];
StorageInfo : @{ARRAYCONTROLLERS=System.Management.Automation.PSObject[]}
ProcessorInfo : @{PROCESSORS=System.Management.Automation.PSObject[]; HyperThreading=Enabled}
MemoryInfo : @{MEMORY=System.Management.Automation.PSObject[]; TotalMemorySize=; AmpInfo=}
PowerSupplyInfo : @{PowerSupply=Not Available}
CoolingInfo : @{TemperatureSensors=System.Object[]; Fans=}
ManagementProcessorInfo : @{LICENSESERVICE=System.Management.Automation.PSObject[];
ETHERNETINTERFACES=System.Management.Automation.PSObject[]; Name=iLO 5 v1.10
; State=; FirmwareVersionAndReleaseDate=}
EnclosureInfo : @{EnclosureType=G1; EnclosureModelNumberAndProductId=; EnclosureSerialNumber=;
Manufacturer=HPE; ChassisDimensions=;
NumberOfBaySlotsAndInterconnectSlots=System.Object[]}
Status : OK
EXAMPLE 2
Get an HPESysInfoServerHealth object and show the chassis dimension of its enclosure.PS C:\\> $srvh =
Get-HPESysInfoServerHealth -Credential $credential
PS C:\\> $srvh.EnclosureInfo.ChassisDimensions | fl
ChassisWidth : 482
ChassisHeight : 442
EXAMPLE 3
Get an HPESysInfoServerHealth object and list the DIMMs that have capacity greater than zero.PS C:\\> $srvh =
Get-HPESysInfoServerHealth
PS C:\\> $srvh.MemoryInfo.MEMORY.DIMMSize | Where-Object -Property CapacityMiB -GT 0 | fl
CapacityMiB : 8192
DataWidthBits : 64
RELATED LINKS
http://www.hpe.com/servers/powershell