Servers - General

Ilorest Change IP conf

 
deshark
Occasional Visitor

Ilorest Change IP conf

Hello,

we try to change the IP addresses via Ilorest. Unfortunately we get only error codes:

iLOrest > set IPv4StaticAddresses/SubnetMask=255.255.252.0
ERROR: 'list' object has no attribute 'keys'

iLOrest > set IPv4StaticAddresses=[255.255.252.0,10.22.22.0,10.33.33.21]
ERROR: 'dict' object has no attribute 'lower'

We want to make the change with the ilorest not via a jason download. any ideas ?

 

 

 

3 REPLIES 3
I_AN
HPE Pro

Re: Ilorest Change IP conf

Hello deshark,

Please try the commands seperately for IP address, subnet mark......:

ex:

set Ipv4Address  (Enter a static IP address using dotted-decimal notation (for example, 10.33.33.21))
set Ipv4Gateway (Enter a gateway IP address using dotted-decimal notation (for example, 10.33.33.21))
set Ipv4SubnetMask (Enter a subnet mask address using dotted-decimal notation (for example, 255.255.255.0))

Regards,

 


I am a HPE Employee

Accept or Kudo

deshark
Occasional Visitor

Re: Ilorest Change IP conf

I Tried the command but i still not working

 

iLOrest > get IPv4Addresses --filter "@odata.id=/redfish/v1/Managers/1/EthernetInterfaces/1/"
IPv4Addresses=
SubnetMask=255.255.255.0
AddressOrigin=Static
Gateway=10.44.16.254
Address=10.44.16.75
iLOrest > set Ipv4Address=10.44.16.98 --filter "@odata.id=/redfish/v1/Managers/1/EthernetInterfaces/1/"
Skipping property ipv4address, not found in current server.
ERROR : Setting for 'ipv4address' is the same as the current value.

I_AN
HPE Pro

Re: Ilorest Change IP conf

Hello deshark,

Please try selecting the ethernet interface and then setting the IPv4 address as per the screenshots attached.

screen1.PNGScreen2.PNG

Regards,


I am a HPE Employee

Accept or Kudo