ProLiant Servers (ML,DL,SL)
1821985 Members
3505 Online
109638 Solutions
New Discussion

using ilorest to set SNTP IP

 
capmarvel
Occasional Advisor

using ilorest to set SNTP IP

I figured out how to use ilorest to set our ILO's IP:

/opt/tools/ilorest ethernet --network_ipv4 X.X.X.X,Y.Y.Y.Y,Z.Z.Z.Z
/opt/tools/ilorest iloreset

But...I can not figure out how to set the SNTP "Primary Time Server" IP with ilorest.   What would the ilorest syntax be to set the "Primary Time Server"?

(These are HP ML350 G10 running ILO 5)

 

 

 

9 REPLIES 9
Sham82
HPE Pro

Re: using ilorest to set SNTP IP

Hello,

please find below link for reference:
https://hewlettpackard.github.io/ilo-rest-api-docs/ilo5/#introduction

 

Regards
HPE



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

Re: using ilorest to set SNTP IP

2 things: 

I've already looked at the documentation and couldn't find the exact syntac I'd use for command line setting SNTP settnigs...so I'm asking for the answer here.

And secondly, going to your link that page comes up but becomes "unresponsive", so is useless to me anyway.

Can someone just post the syntax to setting the SNTP IP here?

capmarvel
Occasional Advisor

Re: using ilorest to set SNTP IP

Your doucumention says NTP things like below....but nowhere do I see where it tells me how to set this with ilorest, hence my question.  How ould I do this with your ilorest utility?

Documentation is below:

The currently configured Network Time Protocol (NTP) servers are available in the DateTime resource at /redfish/v1/Managers/{id}/DateTime.

GET /redfish/v1/Managers/{id}/DateTime

If NTP is not being managed by DHCP, you may PATCH server addresses into the StaticNTPServers array.
Sham82
HPE Pro

Re: using ilorest to set SNTP IP

Hello,

From the link I shared, please try below :

PATCH /redfish/v1/Managers/{id}/DateTime

{

    "StaticNTPServers": [

        "<NTP server 1>",

        "<NTP server 2>"       

    ]

}

 

Regards

HPE



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

Re: using ilorest to set SNTP IP

Again, you're missing the point - we need to do this command line not from the ilorest interface.

I can do the ILO's IP with this syntax:

/opt/tools/ilorest ethernet --network_ipv4 X.X.X.X,Y.Y.Y.Y,Z.Z.Z.Z

Now what is the syntax for doing the SNTP IP from command line?

Sham82
HPE Pro

Re: using ilorest to set SNTP IP

Hello, 
please refer to below document:

 

Page 103 onwards, and page 108 also
https://www.hpe.com/psnow/doc/a00018323en_us

 

Regards

HPE



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

Re: using ilorest to set SNTP IP

Your refusal to just give me the syntax on how to do this with ilorest is puzzling.    Can confirm it an even be done with ilorest?

capmarvel
Occasional Advisor

Re: using ilorest to set SNTP IP

Also, we are on ESX 7..0.3   and HP documentation, we can't use the old hponcfg utiliy anymore....you tell us here we must use ilorest:

https://support.hpe.com/hpesc/public/docDisplay?docLocale=en_US&docId=sf000091060en_us

Sham82
HPE Pro

Re: using ilorest to set SNTP IP

Hello, 
to further assist you on the issue.

We would request you to please log a support case with HPE

Regards
HPE



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