NTP Commands

The NTP commands are not supported on connector AMI.

connectorctl ntp config

To configure the Network Time Protocol (NTP) server, use the connectorctl ntp config command.

connectorctl ntp config { -n comma-separated-list-of-servers | -d }

Syntax Description

Keywords and Variables Description
-n comma-separated-list-of-servers

List of NTP servers. Ensure that you separate each server name with a comma.

-d

Deletes the current NTP configurations.

Command History

Release 3

This command is introduced.

Examples

The following example shows how to configure the NTP server:
[spacesadmin@hostname ~]$ connectorctl ntp config -d
Executing command:ntp
Command execution status:Success
-----------------------
Cleaning NTP Servers entries and stopping chrony/ntp daemon
NTP configuration: success
[spacesadmin@hostname ~]$ connectorctl ntp config -n ntp.esl.cisco.com
Executing command:ntp
Command execution status:Success
-----------------------
Doing NTP configuration
Checking status for server: ntp.esl.cisco.com
Status check successful for server: ntp.esl.cisco.com
NTP configuration: success

connectorctl ntp show

This command shows the Network Time Protocol (NTP) server.

connectorctl ntp show

Syntax Description

This command has no keywords or arguments.

Command History

Release 3

This command is introduced.

Examples

The following is a sample output of the command:
[spacesadmin@hostname ~]$ connectorctl ntp show
Executing command:ntp
Command execution status:Success
-----------------------
=================chrony conf output=================
server ntp.esl.cisco.com
========================end=========================

connectorctl ntp status

To observe the status of chrony or Network Time Protocol (NTP) service, sources details, and NTP data details, use the connectorctl ntp restart command.

connectorctl ntp status

Syntax Description

This command has no keywords or arguments.

Command History

Release 3

This command is introduced.

Examples

The following is a sample output of the command:
[spacesadmin@hostname ~]$ connectorctl ntp status
Executing command:ntp
Command execution status:Success
-----------------------
=================chrony service status=================
● chronyd.service - NTP client/server
     Loaded: loaded (/usr/lib/systemd/system/chronyd.service; disabled; preset: enabled)
    Drop-In: /etc/systemd/system/chronyd.service.d
             └─overrides.conf
     Active: active (running) since Tue 2025-10-14 10:49:27 PDT; 9s ago
       Docs: man:chronyd(8)
             man:chrony.conf(5)
    Process: 886714 ExecStart=/usr/sbin/chronyd $OPTIONS (code=exited, status=0/SUCCESS)
   Main PID: 886716 (chronyd)
      Tasks: 1 (limit: 48406)
     Memory: 1.2M
        CPU: 31ms
     CGroup: /system.slice/chronyd.service
             └─886716 /usr/sbin/chronyd -F 2
Oct 14 10:49:27 hostname systemd[1]: Starting NTP client/server...
Oct 14 10:49:27 hostname chronyd[886716]: chronyd version 4.6.1 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 +DEBUG)
Oct 14 10:49:27 hostname chronyd[886716]: Loaded 0 symmetric keys
Oct 14 10:49:27 hostname chronyd[886716]: Using right/UTC timezone to obtain leap second data
Oct 14 10:49:27 hostname chronyd[886716]: Frequency -1.547 +/- 0.049 ppm read from /var/lib/chrony/drift
Oct 14 10:49:27 hostname chronyd[886716]: Loaded seccomp filter (level 2)
Oct 14 10:49:27 hostname systemd[1]: Started NTP client/server.
=========================end===========================
=================chrony sources=================
MS Name/IP address         Stratum Poll Reach LastRx Last sample               
===============================================================================
^? sjc12-cd1-dcm02n-ntp2.ci>     1   6     1     9   -965ns[ -965ns] +/-  421us
=====================end========================
=================chrony ntpdata=================
Remote address  : 171.68.38.66 (AB442642)
Remote port     : 123
Local address   : 10.22.244.45 (0A16F42D)
Leap status     : Normal
Version         : 4
Mode            : Server
Stratum         : 1
Poll interval   : 6 (64 seconds)
Precision       : -19 (0.000001907 seconds)
Root delay      : 0.000000 seconds
Root dispersion : 0.000000 seconds
Reference ID    : 474E5353 (GNSS)
Reference time  : Tue Oct 14 17:49:04 2025
Offset          : +0.000000965 seconds
Peer delay      : 0.000829288 seconds
Peer dispersion : 0.000006305 seconds
Response time   : 0.001353897 seconds
Jitter asymmetry: +0.00
NTP tests       : 111 111 1111
Interleaved     : No
Authenticated   : No
TX timestamping : Kernel
RX timestamping : Kernel
Total TX        : 1
Total RX        : 1
Total valid RX  : 1
Total good RX   : 1
Total kernel TX : 1
Total kernel RX : 1
Total HW TX     : 0
Total HW RX     : 0
=======================end======================

connectorctl ntp restart

To restart the chrony or the Network Time Protocol (NTP) server, use the connectorctl ntp restart command.

connectorctl ntp restart

Syntax Description

This command has no keywords or arguments.

Command History

Release 3

This command is introduced.

Examples

The following is a sample output of the command:
[spacesadmin@hostname ~]$ connectorctl ntp restart
Executing command:ntp
Command execution status:Success
-----------------------
Restarted ntp/chronyd service