Use the native commands to configure
the NTP server on the SLX device. The configuration is persisted in the EFA database. DRC is supported.
Procedure
-
Run the efa inventory device ntp
server create command to create an NTP server.
efa inventory device ntp server create ?
Flags:
--ip string Comma separated range of device IP addresses.
--ntp-ip string NTP server IP address
--auth-key int Authentication key ID. Values 1 to 65535
--auth-key-name string Key name
--encryption-type string Encryption type. Valid values are md5, sha1
--trusted-key bool Trusted key.
--fabric string fabric name
Example:
efa inventory device ntp server create –ntp-ip 3.3.3.3 –-auth-key 1 –-auth-key-name ntpsecret –-encryption-type md5 –trusted-key –-ip 10.20.246.10
efa inventory device ntp server create –ntp-ip 3.3.3.3 –-auth-key 1 –-auth-key-name ntpsecret –-encryption-type md5 –trusted-key –-fabic clos_fabric
-
On the SLX device, verify the
NTP configuration.
SLX# show running-config ntp
ntp authentication-key 1 md5 $9$750C7e0ayuI31YUga1Clmg== encryption-level 7
ntp authenticate
ntp server 3.3.3.3 key 1
-
Run the efa inventory device ntp
server delete command to delete an NTP server.
efa inventory device ntp server delete ?
Flags:
--ip string Comma separated range of device IP addresses.
--ntp-ip string NTP server IP address
--fabric string fabric name
Example:
efa inventory device ntp server delete –-ntp-ip 3.3.3.3 –-ip 10.20.246.10
efa inventory device ntp server delete –-ntp-ip 3.3.3.3 –-fabric clos_fabric
-
Run the efa inventory device ntp
server list command to display the list of NTP servers configured
using EFA.
efa inventory device ntp server list ?
Flags:
--ip string Comma separated range of device IP addresses.
--fabric string fabric name
Example:
efa inventory device ntp server ntp server list –-ip 10.20.246.10
efa inventory device ntp server ntp server list –-fabric clos_fabric
-
Run the efa inventory device ntp
disable-server command to disable SLX acting as an NTP servers to
other clients. SLX cannot be an NTP server to other hosts.
efa inventory device ntp disable-server ?
Flags:
--ip string Comma separated range of device IP addresses.
--enable Disable ntp server. Valid values are yes/no.
--list List disable-server on devices.
--fabric string fabric name
Example
- Disable the NTP server on given
device
efa inventory device ntp disable-server –-enable yes –-ip 10.20.246.10
- Enable the NTP server on given
device
efa inventory device ntp disable-server –-enable no –-ip 10.20.246.10
- Disable the NTP server at fabric
level
efa inventory device ntp disable-server –-enable yes –-fabric clos_fabric
- Enable the NTP server at fabric
level
efa inventory device ntp disable-server –-enable no –-fabric clos_fabric
- List the NTP disable-server on
given
device
efa inventory device ntp disable-server --list --ip 10.20.246.10
- List the NTP disable-server on at
fabric
level
efa inventory device ntp disable-server --list --fabric clos_fabric