dell / iDRAC-Redfish-Scripting

Python and PowerShell scripting for Dell EMC PowerEdge iDRAC REST API with DMTF Redfish
GNU General Public License v2.0
609 stars 279 forks source link

Memory #260

Closed ddcdk closed 1 year ago

ddcdk commented 1 year ago

Hi, Is there a way to get the system maximum capacity size for memory ? This data is retrieved by racadm hwinventory, on retieved values there is "SysMemMaxCapacitySize" which get the data i am looking for.

Regards, Delfim Da Costa

texroemer commented 1 year ago

Hi @ddcdk

GET on URI "redfish/v1/Systems/System.Embedded.1?$select=Oem/Dell/DellSystem/MaxSystemMemoryMiB" should return the same data as RACADM command.

Thanks Tex

ddcdk commented 1 year ago

Hi @texroemer

MaxSystemMemoryMiB is not present on Oem/Dell/DellSystem. No other parameter name that give the max capacity for memory is present. Tests made on R650, R350 and T440.

Thanks, Delfim

texroemer commented 1 year ago

Which iDRAC version are you using? I just tested on 6.10.80 which is the latest posted on Dell support site and this OEM property is supported.

[root@SCPexport ~]# curl -k -u root:calvin -X GET 'https://192.168.0.130/redfish/v1/Systems/System.Embedded.1?$select=Oem/Dell/DellSystem/MaxSystemMemoryMiB' --insecure
{"@odata.context":"/redfish/v1/$metadata#ComputerSystem.ComputerSystem","@odata.id":"/redfish/v1/Systems/System.Embedded.1","@odata.type":"#ComputerSystem.v1_20_0.ComputerSystem","Oem":{"Dell":{"DellSystem":{"MaxSystemMemoryMiB":12582912}}}}
[root@SCPexport ~]#
[root@SCPexport ~]# curl -k -u root:calvin -X GET 'https://192.168.0.130/redfish/v1/Managers/iDRAC.Embedded.1?$select=FirmwareVersion' --insecure
{"@odata.context":"/redfish/v1/$metadata#Manager.Manager","@odata.id":"/redfish/v1/Managers/iDRAC.Embedded.1","@odata.type":"#Manager.v1_17_0.Manager","FirmwareVersion":"6.10.80.00"}
[root@SCPexport ~]#

Thanks Tex

ddcdk commented 1 year ago

I have version 6.10.30.20. I'll try with 6.10.80.

Thanks Delfim.

texroemer commented 1 year ago

I went back to 6.10.30.20 and confirmed not supported.

[root@SCPexport ~]# curl -k -u root:calvin -X GET 'https://192.168.0.130/redfish/v1/Managers/iDRAC.Embedded.1?$select=FirmwareVersion' --insecure
{"@odata.context":"/redfish/v1/$metadata#Manager.Manager","@odata.id":"/redfish/v1/Managers/iDRAC.Embedded.1","@odata.type":"#Manager.v1_15_0.Manager","FirmwareVersion":"6.10.30.20"}
[root@SCPexport ~]#
[root@SCPexport ~]# curl -k -u root:calvin -X GET 'https://192.168.0.130/redfish/v1/Systems/System.Embedded.1?$select=Oem/Dell/DellSystem/MaxSystemMemoryMiB' --insecure
{"error":{"@Message.ExtendedInfo":[{"Message":"Unable to complete the operation because the value entered for the query parameter is invalid.","MessageArgs":[],"MessageArgs@odata.count":0,"MessageId":"IDRAC.2.8.SYS457","RelatedProperties":[],"RelatedProperties@odata.count":0,"Resolution":"Enter a valid value for the query parameter and retry the operation. For information about recommended values for the query parameters, see the Redfish Users Guide available on the support site.","Severity":"Informational"}],"code":"Base.1.8.GeneralError","message":"A general error has occurred. See ExtendedInfo for more information"}}
[root@SCPexport ~]#
ddcdk commented 1 year ago

Hi @texroemer,

After upgrading IDRAC to 6.10.80.0, this value is present. Thanks, Delfim.