ProLiant Servers (ML,DL,SL)
1833451 Members
2926 Online
110052 Solutions
New Discussion

Re: Ilorest - Change DNS Name for ILO - Error

 
SOLVED
Go to solution
Sylwek60
Occasional Advisor

Ilorest - Change DNS Name for ILO - Error

On a DL360 Gen11 server I get an error when I want to change the DNS Name with ilorest :

When I send the command :

ilorest set HostName=AAAA.BBBB --select EthernetInterface. --url XX.XX.XX.XX -u Administrator -p PASSWORD --commit

I have an error :

Committing changes...
Base.1.18.PropertyValueFormatError
ERROR: One or more types failed to commit. Run the status command to see uncommitted data. if you wish to discard failed changes refresh the type using select with the --refresh flag.

I think the error comes from the dot (.) in the HostName name AAAA.BBBB

However, when I enter the same Hostname in the BIOS in the ILO parameters, it works.

 

ilo.png

 

 
 

 

7 REPLIES 7
TVVJ
HPE Pro

Re: Ilorest - Change DNS Name for ILO - Error

Hello,

Please refer to the "RESTful Interface Tool User Guide" and see if it helps.

Regards,

 



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.
[All opinions expressed here are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
support_s
System Recommended

Query: Ilorest - Change DNS Name for ILO - Error

Hello,

 

Let us know if you were able to resolve the issue.

If you are satisfied with the answers then kindly click the "Accept As Solution" button for the most helpful response so that it is beneficial to all community members.

 

 

Please click on "Thumbs Up/Kudo" icon to give a "Kudo".


Accept or Kudo

Sylwek60
Occasional Advisor

Re: Query: Ilorest - Change DNS Name for ILO - Error

sorry I couldn't find anything on the ilorest user guide

Greeshma21
HPE Pro

Re: Ilorest - Change DNS Name for ILO - Error

Hi @Sylwek60 

I suggest checking for special character restrictions, iLO might require the hostname to follow a specific format, Try setting the hostname without the period (.) instead use underscore.

Use the --refresh flag: The error message suggests using the --refresh flag to discard failed changes. After modifying the command, retry with the following:

ilorest set HostName=AAAA_BBBB --select EthernetInterface. --url XX.XX.XX.XX -u Administrator -p PASSWORD --commit --refresh

Regards,
Greeshma


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
Sylwek60
Occasional Advisor

Re: Ilorest - Change DNS Name for ILO - Error

Hi @Greeshma21 ,

 

I have an error when executing the command :
set: error: The option --refresh is not available for set


usage: set [-h] [--url URL] [--sessionid SESSIONID] [-u USER] [-p PASSWORD] [-o LOGIN_OTP] [--biospassword BIOSPASSWORD] [--https HTTPS_CERT] [--usercert USER_CERTIFICATE] [--userkey USER_ROOT_CA_KEY]
[--userpassphrase USER_ROOT_CA_PASSWORD] [--includelogs] [--path PATH] [--force_vnic] [--logout] [--selector SELECTOR] [--filter FILTER] [--commit] [--reboot REBOOT] [--latestschema]
[--uniqueoverride]

there is no --refresh option with the set command

Sylwek60
Occasional Advisor
Solution

Re: Ilorest - Change DNS Name for ILO - Error

I've found the solution:

 

I use ilorest's rawpatch command to send the correct information to the ILO hostname via a JSON file

Sunitha_Mod
Honored Contributor

Re: Ilorest - Change DNS Name for ILO - Error

Hello @Sylwek60,

That's Excellent! 

We are delighted to know you were able to find the solution and we appreciate you for keeping us updated.