digitalo_

updated

2 years ago

D

digitalo_

2 Intern

14 Posts

0

3170

May 19th, 2020 03:00

iDrac Redfish - Set static ip address for mgmt interface

Hi,

I'm trying to configure a static ipv4 address on the idrac mgmt interface.

I do that as follows:

REDFISH_OBJ.patch('Managers/iDRAC.Embedded.1/EthernetInterfaces/NIC.1',[{ 'IPv4Addresses' : [{ 'Address': '10.XXX.X.XX', 'AddressOrigin': 'Static', 'Gateway': '10.XXX.X.X', 'SubnetMask': '255.255.252.0' }])
 
But I get a result that the "Feature dhcp is enabled":
 
    {        "Message": "The feature DHCP is enabled.",         "MessageArgs": [            "DHCP"        ],         "MessageArgs@odata.count": 1,         "MessageId": "IDRAC.2.1.ISM0013",         "RelatedProperties": [            "IPv4Addresses"        ],         "RelatedProperties@odata.count": 1,         "Resolution": "No response action is required.",         "Severity": "Informational"    }

I can't find any property under

 Managers/iDRAC.Embedded.1/EthernetInterfaces/NIC.1

 to disable dhcp.

So how do I set the static ipv4 address?

@DELL-Shine K