< Back

Get-HPESysInfoStorage

Tue Jan 14, 2020 2:32 am

NAME Get-HPESysInfoStorage



SYNOPSIS

Get all or specific information about storage.





SYNTAX

Get-HPESysInfoStorage [[-Username] <String>] [[-Password] <String>] [<CommonParameters>]



Get-HPESysInfoStorage [-Credential <PSCredential>] [<CommonParameters>]





DESCRIPTION

The Get-HPESysInfoStorage cmdlet provides detailed information about the storage such as smart storage

controllers, their model name, version, and the drives under them.





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 HPESysInfoStorage object and show the HostBusAdapters.PS C:\\> $s=Get-HPESysInfoStorage -Username username

-Password password



PS C:\\> $s.HOSTBUSADAPTERS





AdapterNameAndModel : Standard IDE Controller

ControllerStatus : @{Health=OK; State=Enabled}

FWVersion : Not Available

PhysicalLocation : @{Location=System Board; LocationFormat=PCISlot}

SmartArrayEncryptionInfo : Not Available

DISKDRIVES : {@{PhysicalLocation=; SerialNumber=9XG9NR0F; PhysicalDriveInfo=}}





EXAMPLE 2



Get an HPESysInfoStorage object and show the serial numbers of all the diskdrives under all HostBusAdapters.PS

C:\\> $s=Get-HPESysInfoStorage -Credential $credential



PS C:\\> $s.HOSTBUSADAPTERS.diskdrives.SerialNumber

9XG9NR0F





EXAMPLE 3



Get an HPESysInfoStorage object and show the physical location of the first diskdrive under first

HostBusAdapter.PS C:\\> $s=Get-HPESysInfoStorage

PS C:\\> $s.HOSTBUSADAPTERS[0].diskdrives[0].PhysicalLocation



Location LocationFormat

-------- --------------

SATA Device 0 Not Available





EXAMPLE 4



Get an HPESysInfoStorage object and show the SmartArrayControllers.PS C:\\> $s=Get-HPESysInfoStorage -Username

username -Password password



PS C:\\> $s.ARRAYCONTROLLERS





AdapterNameAndModel : HPE Smart Array P408i-a SR Gen10

PartNumber : 836260-001

SerialNumber : PEYHC0DRHBM80O

ControllerStatus : @{Health=OK; State=Enabled}

FWVersion : @{Current=System.Collections.Generic.List`1[System.Object]}

PhysicalLocation : @{Location=Slot 0; LocationFormat=PCISlot}

SmartArrayCacheModuleInfo : @{Model=HPE Smart Array P408i-a SR Gen10; Location=Slot 0; LocationFormat=PCISlot;

Health=Not Available;

CacheMemorySizeMiB=Not Available}

DISKDRIVES : {@{SmartArrayEncryptionInfo=False; PhysicalDriveInfo=},

@{SmartArrayEncryptionInfo=False; PhysicalDriveInfo=},

@{SmartArrayEncryptionInfo=False; PhysicalDriveInfo=},

@{SmartArrayEncryptionInfo=False; PhysicalDriveInfo=}...}

STORAGEENCLOSURES : {@{StorageEnclosureInfo=}, @{StorageEnclosureInfo=}}





EXAMPLE 5



Get an HPESysInfoStorage object and show the storages in chassis.PS C:\\> $s=Get-HPESysInfoStorage -Username

username -Password password



PS C:\\> $s.CHASSIS





AdapterNameAndModel PhysicalLocation SerialNumber

------------------- ---------------- ------------

MO003200KWJSQ @{Info=3:5; InfoFormat=Box:Bay} PHLE747500E13P2EGN

MO003200KWJSQ @{Info=3:6; InfoFormat=Box:Bay} PHLE747500RS3P2EGN

MO003200KWJSQ @{Info=3:7; InfoFormat=Box:Bay} PHLE7474013U3P2EGN

MO003200KWJSQ @{Info=3:8; InfoFormat=Box:Bay} PHLE747500VA3P2EGN







RELATED LINKS

http://www.hpe.com/servers/powershell