Servers - General
1820055 Members
2867 Online
109608 Solutions
New Discussion юеВ

Re: Ilorest Change IP conf

 
deshark
Senior Member

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 ?

 

 

 

4 REPLIES 4
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
Senior Member

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

stephane_lapie
Occasional Advisor

Re: Ilorest Change IP conf

I managed to get it to work by doing the following : https://community.hpe.com/t5/servers-general/ilorest-modifying-existing-ilo-ip/m-p/7164497/highlight/false#M16738

I had to do it via raw JSON PATCH'ing, no other syntax would work.