beautypg.com

Synchronizing local time using ntp, Setting the clock (date and time), Setting time zones – Brocade VDX 6710-54 Hardware Reference Manual User Manual

Page 36

background image

18

Brocade VDX 6710-54 Hardware Reference Manual

53-1002390-08

Setting the date and time

3

Synchronizing local time using NTP

Perform the following steps to synchronize the local time using NTP.

1. Log in to the switch using the default password (the default password is password).

2. Enter the ntp server

"<

IPv4 address

>"

command

,

where is the IP address of

the first NTP server in IPv4 format, which the switch must be able to access. The address> variable is optional. By default, this value is LOCL, which uses the local clock of the
principal switch as the clock server.

switch:admin> ntp server "132.163.135.131"

To display the NTP server IP address, use the show ntp status [switchid <switchid> | all]
command.

switch:admin> show ntp status switchid 132.163.135.131

The request is for the local switch unless a switch ID is specified. Specify the all parameter to
send the request to all switches in the cluster.

If you need to remove an NTP server, use the no form of the ntp server command.

switch:admin> no ntp server "132.163.135.131"

Setting the clock (date and time)

The following procedure sets the local clock date and time. An active NTP server, if configured,
automatically updates and overrides the local clock time. Time values are limited to between
January 1, 1970 and January 19, 2038.

NOTE

You should set the clock only if there are no NTP servers configured. Time synchronization from NTP
servers override the local clock.

1. Log in to the switch using the default password (the default password is password).

2. Enter the clock set <year>-<month>-<day>T<hours>:<minutes>:<seconds> command.

The following example sets the clock to March 17, 2010, 15 minutes past noon:

switch:admin > clock set 2010-03-17T12:15:00

3. To show the clock and time zone settings, use the show clock [switchid | all]

command.

switch:admin > show clock switchid 1

Setting time zones

You must perform this procedure on all switches for which the time zone must be set. However, you
only need to set the time zone once on each switch, because the value is written to nonvolatile
memory. While not necessary for switch operation, setting a time zone is part of ensuring accurate
logging and audit tracking. Time zone changes take effect after a reboot.