- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Servers - General
- >
- Re: ILOREST: Modifying existing ILO IP
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-19-2022 06:31 AM - last edited on 04-24-2022 08:14 PM by support_s
04-19-2022 06:31 AM - last edited on 04-24-2022 08:14 PM by support_s
ILOREST: Modifying existing ILO IP
Hi HPE Support,
I'm trying to modify existing ILO IP but I'm getting an error.
iLOrest > get IPv4StaticAddresses -j --filter "@odata.id=/redfish/v1/Managers/1/EthernetInterfaces/1/"
Selected option(s): #EthernetInterface.v1_4_1.EthernetInterface
{
"IPv4StaticAddresses": [
{
"Address": "10.243.0.83",
"Gateway": "10.243.0.1",
"SubnetMask": "255.255.252.0"
}
]
}
iLOrest return code: 0
iLOrest > set IPv4StaticAddresses=[10.243.0.133,10.243.0.1,255.255.252.0] --filter=@odata.id=/redfish/v1/Managers/1/EthernetInterfaces
/1/
Selected option(s): #EthernetInterface.v1_4_1.EthernetInterface
ERROR: 'dict' object has no attribute 'lower'
iLOrest return code: 255
From API doc https://hewlettpackard.github.io/python-redfish-utility/#i-think-this-property-is-an-array-but-i-can-39-t-tell-by-the-get-list-output, it says to just put [ ] for array so I'm not sure what format it is asking.
iLOrest > info IPv4StaticAddresses
Selected option(s): #EthernetInterface.v1_4_1.EthernetInterface
NAME
IPv4StaticAddresses
DESCRIPTION
The IPv4 static addresses assigned to this interface.
TYPE
array
READ-ONLY
False
SUB-PROPERTIES
Address, AddressOrigin, Gateway, SubnetMask
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 12:08 AM - last edited on 04-14-2024 11:16 PM by Sunitha_Mod
04-20-2022 12:08 AM - last edited on 04-14-2024 11:16 PM by Sunitha_Mod
Re: ILOREST: Modifying existing ILO IP
Check out this, this might help : https://support.hpe.com/hpesc/public/docDisplay?docId=emr_na-a00020272en_us
[Moderator edit: Removed the broken link. Please refer to https://support.hpe.com/]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 12:16 AM
04-20-2022 12:16 AM
Re: ILOREST: Modifying existing ILO IP
Hello Lyke69,
We can do it via ILO GUI, thats not an issue. Our goal is to automate/speed up the process by using ILOREST tool which I'm having an issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 12:27 AM
04-20-2022 12:27 AM
Re: ILOREST: Modifying existing ILO IP
Hello,
Looks like something is wrong with the Syntax..
The error is 255
255 | GENERAL_ERROR | A general error occurred while manipulating server settings. See the error message for details. | Retry the operation. Report this issue for further investigation. |
The available document is this only as of now : https://hewlettpackard.github.io/python-redfish-utility/#overview
also you may refer to the below guide and find the alternate ways to modify the iLO IP
https://support.hpe.com/hpesc/public/docDisplay?docId=c03334058
Refer page : 100 onwards
If you still want to troubleshoot on this, i would suggest to log a support case with HPE.
Thanks,
TAM
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2022 01:28 AM
04-20-2022 01:28 AM
Re: ILOREST: Modifying existing ILO IP
Hi Tam,
Thanks for your inputs. I've already checked the python redfish document before posting the issue here so there's not much there.
I only need to know the ff:
-correct format/syntax in configuring IPv4StaticAddresses since its an array
-If its possible to reconfigure ILO IP even if it is currently has an IP configured.
Of course, this can easily be done by just logging in ILO GUI and do it from there but then again I want to automate it somehow.
As for the RIBCL, I haven't checked this one yet as I've only used ILOREST so far.
BR/ Kenn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2022 08:12 PM
04-24-2022 08:12 PM
Re: ILOREST: Modifying existing ILO IP
Hello,
I would request you to log a case with HPE support so that the concerned team can assist you on this.
Thanks,
TAM
I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2022 08:17 PM
04-24-2022 08:17 PM
Re: ILOREST: Modifying existing ILO IP
Hi Tam,
Thanks for your advice. I'll try to raise a ticket.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2023 06:38 AM - edited 03-17-2025 06:11 PM
03-10-2023 06:38 AM - edited 03-17-2025 06:11 PM
Re: ILOREST: Modifying existing ILO IP
I managed to get it to work by doing the following :
$ ilorest set --selector EthernetInterface.v1_4_1 --filter "@odata.id=/redfish/v1/Managers/1/EthernetInterfaces/1/" DHCPv4/DHCPEnabled=false Oem/Hpe/DHCPv4/Enabled=false --commit
$ ilorest rawpatch patch.json
$ ilorest iloreset
With patch.json containing the following :
{
"path": "/redfish/v1/Managers/1/EthernetInterfaces/1/",
"body": {
"IPv4StaticAddresses": [
{
"SubnetMask": "255.255.0.0",
"Gateway": "192.168.1.1",
"Address": "192.168.128.150"
}
}
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2023 10:26 PM - edited 05-29-2023 09:26 PM
05-28-2023 10:26 PM - edited 05-29-2023 09:26 PM
Re: ILOREST: Modifying existing ILO IP
To everyone coming here searching in vain, trying to figure out this horribly documented convoluted tool and that the above json did not work for either...
THIS is the command you need for ILOrest to change the ILO IP Address from CLI and move on with your life.
Behold...
/opt/tools/ilorest ethernet --network_ipv4 10.10.10.177,10.10.10.1,255.255.255.0
On ESXi with the HP image this is installed in /opt/tools
First field = IP
Second field = Gateway
Third field = Subnet mask.
Comma separated no spaces.
Also to save anyone else hours of looking, to change the ILO Administrator pass from ESXi command line use:
/opt/tools/ilorest iloaccount changepass Administrator
You're welcome.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2024 02:52 AM - last edited on 09-16-2024 02:21 AM by support_s
04-13-2024 02:52 AM - last edited on 09-16-2024 02:21 AM by support_s
Re: ILOREST: Modifying existing ILO IP
On an ESXi 7.0.3 box, when I try:
/opt/tools/ilorest ethernet --network_ipv4 10.10.10.177,10.10.10.1,255.255.255.0
I get:
ERROR: 'DHCPv4'
Is this because DHCP is enabled? If so, how do I disable it so I can set a static IP?
Can't even installl HPONCFG anymore - talk about making something simple into something complicated!
TIA
- Tags:
- Network Controller
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2024 11:46 PM
04-14-2024 11:46 PM
Re: ILOREST: Modifying existing ILO IP
Hello @RoganW,
Thank you for writing to us!
You might want to consider creating a new topic by utilizing the ""New Discussion"" button, as this will not only enhance visibility compared to the old topic but also boost your chances of receiving responses from experts.
Thanks,
Sunitha G
I'm an HPE employee.
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 02:10 PM
09-18-2024 02:10 PM
Re: ILOREST: Modifying existing ILO IP
Hello Rogan,
Were you ever able to find an answer to this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 06:28 PM - edited 09-18-2024 06:30 PM
09-18-2024 06:28 PM - edited 09-18-2024 06:30 PM
Re: ILOREST: Modifying existing ILO IP
You should be able to disable DHCP this way:
ilorest set --selector EthernetInterface.v1_4_1 --filter "@odata.id=/redfish/v1/Managers/1/EthernetInterfaces/1/" DHCPv4/DHCPEnabled=false Oem/Hpe/DHCPv4/Enabled=false --commit
This is what I am doing prior to reconfiguring the static IP.
(Note: I have tested the above on remote sessions)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2025 03:25 PM - edited 02-21-2025 03:28 PM
02-21-2025 03:25 PM - edited 02-21-2025 03:28 PM
Re: ILOREST: Modifying existing ILO IP
I was able to get the json file to work after I corrected some syntax errors. Here is the version that worked for me. This works on ilo6 server configured as a shared ilo port.
$ ilorest rawpatch patch.json
$ ilorest iloreset
Contents of patch.json are below:
{
"path": "/redfish/v1/Managers/1/EthernetInterfaces/2/",
"body": {
"IPv4StaticAddresses": [
{
"SubnetMask": "255.255.0.0",
"Gateway": "172.16.1.1",
"Address": "172.16.181.91"
}
]
}
}