Skip to content

feat: Implement API to set NTP servers#87

Open
hanyux-nv wants to merge 1 commit into
NVIDIA:mainfrom
hanyux-nv:ntp_server_config
Open

feat: Implement API to set NTP servers#87
hanyux-nv wants to merge 1 commit into
NVIDIA:mainfrom
hanyux-nv:ntp_server_config

Conversation

@hanyux-nv

Copy link
Copy Markdown

Added a new Redfish API method set_ntp_servers that configures a list of NTP servers of the BMC.

See issue #548.

Signed-off-by: Felicity Xu <hanyux@nvidia.com>

@spydaNVIDIA spydaNVIDIA left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@krish-nvidia

Copy link
Copy Markdown

For Dells, you have to issue the following redfish call. Out of experience, setting them in NetworkProtocols doesn't work 😅

curl -sku "username:password" \
  -X PATCH \
  -H "Content-Type: application/json" \
  -d '{
    "Attributes": {
      "NTPConfigGroup.1.NTPEnable": "Enabled",
      "NTPConfigGroup.1.NTP1": "pool.ntp.org",
      "NTPConfigGroup.1.NTP2": "time.google.com"
    }
  }' \
  "https://<iDRAC_IP>/redfish/v1/Managers/iDRAC.Embedded.1/Attributes"

@krish-nvidia krish-nvidia left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comment above ^

@krish-nvidia

Copy link
Copy Markdown

For HPEs, you have to use /redfish/v1/Managers/1/DateTime to set the NTP servers. Other vendors might require other paths as well so I'd try them out on each machine to make sure it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants