beautypg.com

Displaying the current local clock and time zone, Removing the time zone setting – Brocade Network OS Administrator’s Guide v4.1.1 User Manual

Page 99

background image

Refer to refer to

Using Network Time Protocol

on page 97 for a complete list of configurable regions and

cities.

Enter the clock timezone region/city command.

Example of setting and displaying the date and time in standalone mode:

switch# clock timezone America/Los_Angeles

Example of setting and displaying the date and time in VCS mode:

switch# clock timezone America/Los_Angeles rbridge-id all

NOTE
After upgrading your switch firmware, you might need to reconfigure the time zone information.

Displaying the current local clock and time zone

The show clock command returns the local time, date, and time zone.

NOTE
This command is currently supported on the local switch.

This example shows the local switch clock time:

switch# show clock

rbridge-id 1: 2012-05-04 16:01:51 America/Los Angeles

This example shows the clock time for all switches in the cluster (logical chassis cluster mode only):

switch# show clock rbridge-id all

2012-05-04 17:31:41 America/Los Angeles

This example shows the clock time for the switch with rbridge-id 16:

switch# show clock rbridge-id 16

rbridge-id 16: 2012-05-04 18:18:51 America/Los Angeles

Removing the time zone setting

Use the no clock timezone command to remove the time zone setting for the local clock. This
operation returns the local time zone to the default value (GMT). When using the no operand, you do
not need to reference a timezone setting.

Enter the no clock timezone command.

This example removes the time zone setting in standalone mode:

switch# no clock timezone

This example removes the time zone setting in VCS mode:

switch# no clock timezone rbridge-id 5

Synchronizing the local time with an external source

Use the ntp server command to synchronize the local switch time with an NTP server. You can
configure up to five IP address. At least one IP address in the list must be a reachable, configured NTP
server or the request will fail.

The following example synchronizes the time on the local switch with the ntp server at 192.168.10.1.

Displaying the current local clock and time zone

Network OS Administrator’s Guide

99

53-1003225-04