Setting the time zone, Setting the clock (date and time) – Brocade VDX 8770-8 Hardware Reference Manual User Manual

Page 56

Advertising
background image

36

Brocade VDX 8770-8 Hardware Reference Manual

53-1002564-04

Setting the date and time

3

3. Enter the ntp server

"

IPv4 address

"

command

,

where IPv4 address is the IP address of the

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

switch(config)# ntp server "132.163.135.131"

To display the NTP server IP address, use the show ntp status [rbridge-id rbridge-id | all]
command. If you are in global configuration mode, you must use do before the show
command.

switch(config)# do show ntp status rbridge-id 1

The request is for the local switch unless an RBridge 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(config)# no ntp server "132.163.135.131"

Setting the time zone

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 persist through a reboot without having to save the
current running configuration.

Use the clock timezone command to set the time zone.

1. Log in to the switch using an account that has the admin role.

2. Enter the clock timezone region/city command while in privileged EXEC mode.

The following example changes the time zone to US/Pacific Standard Time.

switch# clock timezone America/Los_Angeles

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 overrides the local clock.

1. Log in to the switch using an account that has the admin role.

2. Enter the clock set year-month-dayT hours:minutes:seconds command while in privileged EXEC

mode.

The following example sets the clock to March 17, 2012, 15 minutes past noon.

switch# clock set 2012-03-17T12:15:00

Advertising