System Clock

The system clock is used for timestamps in log messages. Timestamps and other time displays are in local time.

Display the Time

To display the current time, time-zone setting and time synchronization status use the show clock command.

admin@NX-3550-T# show clock
Tue Sep  1 01:05:00 2020
Timezone is Australia/Sydney
Time source is NTP

Configure the Time-zone

To configure the time-zone, use the clock timezone command in config mode. For example, to set the time-zone to US Eastern time use the following command:

admin@NX-3550-T(config)# clock timezone US/Eastern
Time zone set to US/Eastern
admin@NX-3550-T(config)# show clock
Mon Aug 31 21:05:33 2020
Timezone is US/Eastern
Time source is NTP

Synchronize the Time by Using NTP

The Cisco Nexus 3550-T Programmable Switch Platform supports synchronizing the system clock by using NTP.

  • To add a server to the list of NTP server, use the ntp server command. You can specify multiple servers by using this command.

  • To designate some of the servers as preferred servers use the prefer keyword. In this case, the other servers are used if no preferred servers are available.

    admin@NX-3550-T(config)# ntp server 172.16.0.251 prefer
    Added NTP server 172.16.0.251
    admin@NX-3550-T(config)# ntp server 172.16.0.252
    Added NTP server 172.16.0.252
    
  • To view the status of NTP time synchronization, use the show ntp status command.

    admin@NX-3550-T# show ntp status
    Synchronized to NTP server (172.16.0.251) at stratum 4
    Time correct to within 63 ms
    Polling server every 2048 s
    
  • To remove a NTP server from the list, use the no ntp server command.

    admin@NX-3550-T(config)# no ntp server 172.16.0.251
    Removed NTP server 172.16.0.251