Server Management - Remote Server Management
1864609 Members
966 Online
110469 Solutions
New Discussion

Re: Changing ILO hostname with ILOREST

 
SOLVED
Go to solution
-mike-
Established Member

Changing ILO hostname with ILOREST

Hello, I hope someone can point me in the right direction as I've seen conflicting information on this.  In the ILO GUI we can change the hostname here:

ILO-hostname.jpgILO-hostname.jpg

If I want to do this with ILOREST, what is the correct resource to modify?  Is it HostName under EthernetInterface, or ManagerNetworkProtocol?  Or something else?

4 REPLIES 4
support_s
System Recommended

Query: Changing ILO hostname with ILOREST

-mike-
Established Member

Re: Query: Changing ILO hostname with ILOREST

Thanks, but those links aren't related to what I'm asking.  I'm attempting to do something like this:

ilorest login xx.xx.xx.xx -u admin -p password
ilorest select EthernetInterface.
ilorest set HostName=ILO-NewHostname

I'm wondering if EthernetInterface is the correct resource to use for this purpose, or if should it be ManagerNetworkProtocol, or something else?  This would be for ILO5 or ILO6.

Harshitha_K
HPE Pro
Solution

Re: Changing ILO hostname with ILOREST

Hi @-mike- ,

For HPE iLO, the hostname you see in the iLO GUI is typically the management controller hostname and is exposed through the Manager Ethernet Interface resource, not ManagerNetworkProtocol. The relevant property is usually:

HostName
 

under:

/redfish/v1/Managers/1/EthernetInterfaces/1

(or the appropriate EthernetInterface instance for your iLO). This follows the Redfish EthernetInterface schema, which includes HostName and FQDN as network identity properties.

With iLOREST, the workflow is generally:

ilorest login <ilo-ip> -u <user> -p <password>
ilorest select EthernetInterface.
ilorest set HostName=my-new-hostname
ilorest commit
ilorest logout
 

Or via Redfish PATCH:

PATCH /redfish/v1/Managers/1/EthernetInterfaces/1
{
"HostName": "my-new-hostname"
}
 

ManagerNetworkProtocol is used for enabling/configuring management services such as HTTPS, SSH, SNMP, Virtual Media, etc., and is not the resource that stores the iLO hostname itself.

If you're unsure on your particular firmware version, a quick way to verify is:

ilorest get HostName --select EthernetInterface.
ilorest select EthernetInterface.
ilorest get
 

and compare it to the value shown in the GUI.

Thank you!
Hope this information has helped you, Please click on the "Thumbs Up/Kudo" icon as a token of appreciation. Also, if this post has helped to solve your issue, consider marking this as an "Accepted Solution".



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]
Accept or Kudo
-mike-
Established Member

Re: Changing ILO hostname with ILOREST

OK great, thanks for confirming.