< Back

Get-HPESysInfoMemory

Tue Jan 14, 2020 2:26 am

NAME Get-HPESysInfoMemory



SYNOPSIS

Get all or specific memory device information.





SYNTAX

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



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





DESCRIPTION

The Get-HPESysInfoMemory cmdlet provides detailed information about the memory devices on the system such as DIMM

size, type, location, total memory size, and operating frequency.





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 HPESysInfoMemory object and list information for all of the DIMMs.PS C:\\> $mem = Get-HPESysInfoMemory

-Username username -Password password

PS C:\\> $mem | fl





MEMORY : {@{DIMMSize=; DIMMNonVolatileSize=-1; DIMMType=; DIMMLocation=; DIMMStatus=; VendorName=0;

OperatingFrequency=Not Available; OperatingVoltage=0; OperatingMode=Not Available; PartNumber=Not

Available; SerialNumber=Not Available}, @{DIMMSize=; DIMMNonVolatileSize=-1; DIMMType=;

DIMMLocation=; DIMMStatus=; VendorName=0; OperatingFrequency=Not Available; OperatingVoltage=0;

OperatingMode=Not Available; PartNumber=Not Available; SerialNumber=Not Available}, @{DIMMSize=;

DIMMNonVolatileSize=0; DIMMType=; DIMMLocation=; DIMMStatus=; VendorName=44288;

OperatingFrequency=2666; OperatingVoltage=12; OperatingMode=Not Available; PartNumber=840756-091;

SerialNumber=Not Available}, @{DIMMSize=; DIMMNonVolatileSize=0; DIMMType=; DIMMLocation=;

DIMMStatus=; VendorName=44288; OperatingFrequency=2666; OperatingVoltage=12; OperatingMode=Not

Available; PartNumber=840756-091; SerialNumber=Not Available}...}

TotalMemorySize : @{Status=System.Collections.Generic.List`1[System.Object]; TotalSystemMemoryGiB=8}

AmpInfo : @{AmpModeActive=AdvancedECC; AmpModeStatus=AdvancedECC; AmpModeSupported=System.Object[]}

Status : OK





EXAMPLE 2



Get an HPESysInfoMemory object and use array index to retrieve information about a specific DIMM.PS C:\\> $mem =

Get-HPESysInfoMemory -Credential $credential

PS C:\\> $mem.MEMORY[2]



DIMMSize : @{CapacityMiB=16384; DataWidthBits=64}

DIMMNonVolatileSize : 0

DIMMType : @{BaseModuleType=RDIMM; MemoryDeviceType=DDR4}

DIMMLocation : @{MemoryLocation=; DeviceLocator=PROC 1 DIMM 3}

DIMMStatus : @{MemoryLocation=; Status=; DIMMStatus=GoodInUse}

VendorName : 44288

OperatingFrequency : 2666

OperatingVoltage : 12

OperatingMode : Not Available

PartNumber : 840756-091

SerialNumber : Not Available





EXAMPLE 3



Get an HPESysInfoMemory object and display DIMMLocation of a specific DIMM.PS C:\\> $mem = Get-HPESysInfoMemory

PS C:\\> $mem.MEMORY[0].DIMMLocation



MemoryLocation DeviceLocator

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

@{Channel=6; MemoryController=2; Slot=1; Socket=1} PROC 1 DIMM 1





EXAMPLE 4



Get an HPESysInfoMemory object and get the total memory size on the system.PS C:\\> $mem = Get-HPESysInfoMemory

PS C:\\> $mem.TotalMemorySize



Status TotalSystemMemoryGiB TotalSystemPersistentMemoryGiB

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

{@{HealthRollup=OK}} 128 -1







RELATED LINKS

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