This reference includes examples for syntax information for the ntp command.

Command Description Usage Examples
ntp show To show the current configuration and status
ntp sync To force the sync
ntp set To reset the servers ntp set [--ip-fqdn] [--secure]

ntp set --ip-fqdn "a.b.me,x.y.z.local"

ntp set --ip-fqdn "a.b.me,x.y.z.local" --secure

ntp diagnose To print debug data

Syntax

Positional arguments for the ntp set command:

Flag Description

ip-fqdn

IP addresses or FQDN details of the NTP servers.

secure

(Optional) If the IP addresses or FQDN details are of secure NTP servers.