Configure NTP at Device and Fabric Levels

Use the native commands to configure the NTP server on the SLX device. The configuration is persisted in the XCO database. DRC is supported.

Procedure

  1. 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
    
  2. 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
  3. 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
  4. Run the efa inventory device ntp server list command to display the list of NTP servers configured using XCO.
    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
  5. 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