Networking NVIDIA NVOS User Manual for InfiniBand Switches

NTP Commands

nv show system ntp


nv show system ntp

Shows the NTP configuration and status.
The output includes the synchronization status (offset and reference), authentication state, listening interface, NTP state, DHCP state, and VRF.

Syntax Description

N/A


Default

N/A

History

25.02.2002 
25.02.3000 Updated command output

Example

admin@nvos:~$ nv show system ntp
                operational           applied
--------------  --------------------  --------------------
reference       84.254.80.94
offset          516 ms
status          synchronised
[listen]        eth1                  eth1
state           enabled               enabled
dhcp            enabled               enabled
vrf             default               default
authentication  disabled              disabled
[server]        ntp0.ntp-servers.net  ntp0.ntp-servers.net
[server]        ntp1.ntp-servers.net  ntp1.ntp-servers.net
[server]        ntp2.ntp-servers.net  ntp2.ntp-servers.net

REST API

GET https://<ip>/nvue_v1/system/ntp

Related Commands

nv show system ntp server

Notes

NTP DHCP is enabled by default: if the DHCP server provides NTP servers, the switch synchronizes with them.

nv show system ntp server


nv show system ntp server [<server-id> | detail]

Shows the NTP server configuration and synchronization details.
The output includes the aggressive polling (iburst) state, association type, authentication key, resolved IP address, server state, trust, and protocol version.

Syntax Description

server-id

Hostname or IP address of the NTP server.
Shows the configuration of one NTP server.

detail

Shows synchronization details for the NTP servers.

Default

N/A

History

25.02.2002 
25.02.5002 Added the detail option and updated output

Example

admin@nvos:~$ nv show system ntp server
NTP server       Aggressive  Type    KeyID  Resolve as       Source       State    Trusted  Ver
---------------  ----------  ------  -----  ---------------  -----------  -------  -------  ---
37.53.71.213                 server         37.53.71.213     pool
46.173.175.211               server         46.173.175.211   pool
162.159.200.123              server         162.159.200.123  pool
193.84.22.254                server         193.84.22.254    pool
time.google.com  disabled    server         216.239.35.0     user-config  enabled  no       4
ua.pool.ntp.org  disabled    pool           N/A              user-config  enabled  no       4
admin@nvos:~$ nv show system ntp server detail
NTP server       Auth  Delay   Jitter  Offset   Peer State      Poll  Reach  Ref clock      Stratum  Peer  When
---------------  ----  ------  ------  -------  --------------  ----  -----  -------------  -------  ----  ----
37.53.71.213     none  98.736  21.749  +0.337   reject-outlier  128   377    17.253.14.253  2        u     4
46.173.175.211   none  87.295  13.791  +4.291   candidate       64    377    17.253.38.125  2        u     60
162.159.200.123  none  59.550  1.401   +2.900   candidate       64    377    192.168.1.17   3        u     62
193.84.22.254    none  98.181  20.997  +11.218  reject-outlier  128   377    .PPS.          1        u     1
time.google.com  none  63.111  30.026  +2.891   sys-peer        64    377    .GOOG.         1        u     65
ua.pool.ntp.org  none  0.000   0.000   +0.000   reject-other    64    0      .POOL.         16       p     -
admin@nvos:~$ nv show system ntp server 192.168.0.254
                    operational     applied
------------------  --------------  --------
iburst              disabled        disabled
state               enabled         enabled
trusted             no              no
version             4               4
association-type    server          server
resolve-as          192.168.0.254
auth-state          none
delay               98.736
jitter              21.749
offset              +0.337
peer-state          reject-outlier
poll                128
reach               377
ref-clock           17.253.14.253
stratum             2
peer                u
when                4

REST API

GET https://<ip>/nvue_v1/system/ntp/server
GET https://<ip>/nvue_v1/system/ntp/server/<server-id>

Related Commands

nv set system ntp server

Notes


nv show system ntp key


nv show system ntp key [<key-id>]

Shows the NTP authentication keys.
The output includes the key ID, trust state, key type, and the masked value.

Syntax Description

key-id

NTP authentication key ID.
Shows the configuration of one authentication key.

Default

N/A

History

25.02.2002 

Example

admin@nvos:~$ nv show system ntp key
KeyID  Trusted  Type  Value
-----  -------  ----  -----
1      yes      md5   *
42     yes      sha1  *
admin@nvos:~$ nv show system ntp key 42
         operational  applied
-------  -----------  -------
trusted  yes          yes
type     sha1         sha1
value    *            *

REST API

GET https://<ip>/nvue_v1/system/ntp/key
GET https://<ip>/nvue_v1/system/ntp/key/<key-id>

Related Commands

nv set system ntp key

Notes


nv set/unset system ntp


nv set system ntp [state {enabled,disabled} | dhcp {enabled,disabled} | vrf {default} | authentication {enabled,disabled}]
nv unset system ntp

Sets the global NTP configuration.
The unset form of the command restores the default global NTP configuration.

Syntax Description



state

Enables or disables NTP.

dhcp

Enables or disables the use of NTP servers that the DHCP server provides.

vrf

VRF to run NTP daemon in. Limited to "default" only.

authentication

Enables or disables NTP authentication.

Default



state

enabled

dhcp

enabled

vrf

default

authentication

disabled

History

25.02.2002 

Example

admin@nvos:~$ nv unset system ntp
admin@nvos:~$ nv set system ntp authentication enabled
admin@nvos:~$ nv unset system ntp state

REST API

PATCH https://<ip>/nvue_v1/system/ntp

Related Commands

nv set system ntp server

Notes


nv set/unset system ntp listen


nv set system ntp listen <interface-id>
nv unset system ntp listen

Sets the interface on which NTP listens.
The unset form of the command restores the default (eth0).

Syntax Description

interface-id

Management interface name, for example, eth0. You can set only one interface.

Default

eth0

History

25.02.5002

Example

admin@nvos:~$ nv set system ntp listen eth1
admin@nvos:~$ nv unset system ntp listen

REST API

PATCH https://<ip>/nvue_v1/system/ntp/listen

Related Commands

nv show system ntp

Notes


nv set/unset system ntp server


nv set system ntp server [<server-id> [iburst {enabled,disabled} | state {enabled,disabled} | key <1-65535> | trusted {yes,no} | version {3,4} | association-type {server,pool}]]
nv unset system ntp server

Configures NTP servers. You can configure up to 10 servers.
The unset form of the command removes NTP servers or restores the default value of a server setting.

Syntax Description





server-id

Hostname or IP address of the NTP server.

iburst

Aggressive polling: the switch sends a burst of eight packets when the server is unreachable, for faster synchronization.

state

Enables or disables the use of this NTP server.

key

ID (1–65535) of the key for authenticating this NTP server. You cannot assign a key to a pool.

trusted

Marks the NTP server as trusted. You cannot mark a pool as trusted.
If NTP authentication is enabled, the switch uses only trusted servers for time updates.

version

The NTP protocol version to communicate with the remote server.

association-type

NTP association type: server or pool

Default



iburst

disabled

state

enabled

trusted

no

version

4

association-type

server

History

25.02.2002 
25.02.5002 Updated command output. Updated command option (iburst)

Example

admin@nvos:~$ nv unset system ntp server
admin@nvos:~$ nv unset system ntp server 10.10.10.10
admin@nvos:~$ nv set system ntp server 10.10.10.10 trusted yes
admin@nvos:~$ nv unset system ntp server 10.10.10.10 key

REST API

PATCH https://<ip>/nvue_v1/system/ntp/server
PATCH https://<ip>/nvue_v1/system/ntp/server/<server-id>

Related Commands

nv set system ntp key

Notes

When NTP authentication is enabled, the switch uses incoming NTP packets for time synchronization only if they come from an authenticated time source.
The switch uses an authentication key only if all of the following are true:
1. The NTP server that sends the packets uses the same key.
2. The key is marked as trusted.
3. NTP authentication is enabled on the switch.

nv set/unset system ntp key


nv {set,unset} system ntp key [<key-id> [trusted {yes,no} | type {md5,sha1,sha256,sha384,sha512} | value <value>]]

Configures NTP authentication keys.

Syntax Description


key-id

NTP authentication key ID: 1–65535

trusted

Marks the key as trusted.

type

Key type: md5, sha1, sha256, sha384, or sha512

value

Secret key value: printable ASCII characters except #, or a hex string. A value longer than 20 characters is read as hex. The maximum key length is 32 bytes. If you omit the value, the switch prompts for it.

Default

trusted

no

type

md5

History

25.02.2002 

Example

admin@nvos:~$ nv unset system ntp key
admin@nvos:~$ nv unset system ntp key 3
admin@nvos:~$ nv set system ntp key 3 type sha1
admin@nvos:~$ nv unset system ntp key 3 type

REST API

PATCH https://<ip>/nvue_v1/system/ntp/key
PATCH https://<ip>/nvue_v1/system/ntp/key/<key-id>

Related Commands

nv set system ntp server

Notes


Last updated: