|
Post by amithalperin on Sept 28, 2023 6:57:02 GMT
Hello, I try to add ntp server ip address to my hp server and it doesn't work for me, i try to patch that: { "NTPServers": [ "IP.ADDRESS" ] } to /redfish/v1/Managers/1/DataTime/ and it gives me in the response: "PropertyNotWritableOrUnknown"
there is a way to configure this purpose?
|
|
|
Post by mraineri on Sept 28, 2023 12:08:50 GMT
Yes there is. "/redfish/v1/Managers/1/DataTime" is not a valid URI. NTP configuration, and other network protocol configurations for a manager, is found at /redfish/v1/Managers/1/NetworkProtocol. That resource is broken down into objects for the various protocols supported by the manager.
{ "@odata.id": "/redfish/v1/Managers/1/NetworkProtocol", "@odata.type": "#ManagerNetworkProtocol.v1_9_1.ManagerNetworkProtocol", "Id": "NetworkProtocol", "Name": "Manager Network Protocol", "Description": "Manager Network Service", "Status": { "State": "Enabled", "Health": "OK" }, "HostName": "web483-bmc", "FQDN": "web483-bmc.dmtf.org", "HTTP": { "ProtocolEnabled": true, "Port": 80 }, "HTTPS": { "ProtocolEnabled": true, "Port": 443, "Certificates": { "@odata.id": "/redfish/v1/Managers/BMC/NetworkProtocol/HTTPS/Certificates" } }, "NTP": { "ProtocolEnabled": true, "NTPServers": [ "pool.ntp.org" ] } } So, since all NTP info is in the "NTP" property, you would form a PATCH request like this to /redfish/v1/Managers/1/NetworkProtocol
{ "NTP": { "NTPServers": [ "IP ADDRESS OF NEW SERVER" ] } }
|
|
|
Post by amithalperin on Sept 28, 2023 12:38:33 GMT
Thank you, I tried to PATCH that and I get "PropertyNotWritableOrUnknown" response, when i try to POST it I get "PropertyMissing". in default I have no "NTP" property inside /redfish/v1/Managers/1/NetworkProtocol. What can I do more to solve it? thank you very mutch.
|
|
|
Post by mraineri on Sept 28, 2023 12:42:16 GMT
It sounds like the service you're using either doesn't support NTP or at least doesn't surface the data to make it configurable. You'd have to contact the vendor to see why it's not supported.
|
|
|
Post by amithalperin on Sept 28, 2023 13:00:25 GMT
I just use the hp ilo5. in the ui it is no problem to configure it, but with the redfish api I don't understand how it can be done...
|
|
|
Post by mraineri on Sept 28, 2023 13:11:38 GMT
Using the "NTP" property I showed earlier is the standard way. Unfortunately it looks like iLO didn't implement NTP support the way it was defined in Redfish. It's possible iLO has it mapped to OEM functionality in Redfish; if you're able to find the OEM properties in their Redfish interface, I could help further for what the PATCH operation should look like in that case.
|
|
|
Post by jautor on Sept 28, 2023 13:39:07 GMT
Hello, I try to add ntp server ip address to my hp server and it doesn't work for me, i try to patch that: { "NTPServers": [ "IP.ADDRESS" ] } to /redfish/v1/Managers/1/DataTime/ and it gives me in the response: "PropertyNotWritableOrUnknown" there is a way to configure this purpose? On iLO5, yes, this is accomplished using the HPE OEM resource "DateTime" that you've found already at /redfish/v1/Managers/1/DateTime The "NTPServers" property is a read-only property that reports the NTP servers in use.
To set your (static) NTP Server addresses, PATCH to the "StaticNTPServers" property also in that resource:
{ "StaticNTPServers": [ "<IP ADDRESS>", "" ] }
Let me know if you have any issues with that. Jeff
|
|
|
Post by amithalperin on Oct 1, 2023 6:26:53 GMT
Hello, I try to add ntp server ip address to my hp server and it doesn't work for me, i try to patch that: { "NTPServers": [ "IP.ADDRESS" ] } to /redfish/v1/Managers/1/DataTime/ and it gives me in the response: "PropertyNotWritableOrUnknown" there is a way to configure this purpose? On iLO5, yes, this is accomplished using the HPE OEM resource "DateTime" that you've found already at /redfish/v1/Managers/1/DateTime The "NTPServers" property is a read-only property that reports the NTP servers in use.
To set your (static) NTP Server addresses, PATCH to the "StaticNTPServers" property also in that resource:
{ "StaticNTPServers": [ "<IP ADDRESS>", "" ] }
Let me know if you have any issues with that. Jeff Thank you very much, It worked. I think the dhcp properties should be false to edit "StaticNTPServers" property.
|
|