Changing NTP Secondary Server During Switch Setup
From Netvisor ONE version 6.0.0 and later release, you can undo or unset a configured NTP secondary server by using the switch-setup-modify command along with an empty string ("") as parameter. You can use either single-quotes ('') or double-quotes ("") to indicate the empty string.
In Netvisor ONE version 6.1.0, an additional third NTP server is introduced as part of the Common Criteria compliance process.
First, view the switch setup details using the command:
CLI (network-admin@switch) > switch-setup-show
switch-name: switch
mgmt-ip: 10.13.0.55/23
mgmt-ip-assignment: static
mgmt-ip6: fe80::e6f0:4ff:fec9:dcbb/64
mgmt-ip6-assignment: autoconf
mgmt-link-state: up
mgmt-link-speed: 1g
in-band-ip: 192.168.66.3/24
in-band-ip6: fe80::640e:94ff:fe69:5fd8/64
in-band-ip6-assign: autoconf
gateway-ip: 10.13.0.1
dns-ip: 10.135.2.13
dns-secondary-ip: 10.20.4.1
domain-name: pluribusnetworks.com
ntp-server: 0.ubuntu.pool.ntp.org
ntp-secondary-server: 1.ubuntu.pool.ntp.org
timezone: America/Los_Angeles
date: 2021-01-11,21:57:43
hostid: 184558697
location-id: 2
enable-host-ports: yes
To remove or unset the secondary NTP server, use the command with an empty string in single quotes or double quotes as below:
CLI (network-admin@switch) > switch-setup-modify ntp-secondary-server
Server ip or host-name / empty string to unset
CLI (network-admin@switch) > switch-setup-modify ntp-secondary-server ""
or
CLI (network-admin@switch) > switch-setup-modify ntp-secondary-server ''
Additionally, from Netvisor ONE version 6.1.0 onward, you can add a tertiary NTP server using the switch-setup-modify command:
CLI (network-admin@switch) > switch-setup-modify ntp-tertiary-server 3.ubuntu.pool.ntp.org
CLI (network-admin@switch) > switch-setup-show
switch-name: switch
mgmt-ip: 10.13.0.55/23
mgmt-ip-assignment: static
mgmt-ip6: fe80::e6f0:4ff:fec9:dcbb/64
mgmt-ip6-assignment: autoconf
mgmt-link-state: up
mgmt-link-speed: 1g
in-band-ip: 192.168.66.3/24
in-band-ip6: fe80::640e:94ff:fe69:5fd8/64
in-band-ip6-assign: autoconf
gateway-ip: 10.13.0.1
dns-ip: 10.135.2.13
dns-secondary-ip: 10.20.4.1
domain-name: pluribusnetworks.com
ntp-server: 0.ubuntu.pool.ntp.org
ntp-secondary-server:
ntp-tertiary-server: 3.ubuntu.pool.ntp.org
timezone: America/Los_Angeles
date: 2021-01-11,21:57:43
hostid: 184558697
location-id: 2
enable-host-ports: yes
Note: Netvisor ONE logs the changes such as the current time, new time, and the origin of the change into the audit log file. For example:
CLI (network-admin@switch) > log-audit show
audit 2021-01-11,21:57:31.077766-08:00 user_command 11001 info network-admin 10.140.0.129 Command "switch-setup-modify ntp-tertiary-server 3.ubunt
u.pool.ntp.org" result success
audit 2021-01-11,22:00:35.036675-08:00 user_command 11001 info network-admin 10.140.0.129 Command "switch-setup-modify ntp-tertiary-server 7.ubunt
u.pool.ntp.org" result failure: "Could not resolve NTP server's name/addr"