Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Sets the time zone. timezone is the three letter time zone
(PST for Pacific Standard), the hours offset from UTC
switch(config)# clock timezone
timezone hours_offset
minutes_offset
Step 2
(-8 for the PST offset), and minutes offset (needed for
time zones such as Newfoundland Standard (NST) or
India Standard (IST)).
Returns to EXEC mode.switch(config)# exit
Step 3
Verifies the time zone configuration.switch# show clock
Step 4
Displays changes made to the time zone configuration
along with other configuration information.
switch# show run
Step 5
Adjusting for Daylight Saving Time or Summer Time
You can configure your switch to adjust for daylight saving time (or summer time). By default, Cisco NX-OS
does not automatically adjust for daylight saving time. You must manually configure the switch to adjust to
the daylight saving time.
For example, following U.S. standards (defined by the Energy Policy Act of 2005), you can have the switch
advance the clock one hour at 2:00 a.m. on the second Sunday in March and move back the clock one hour
at 2:00 a.m. on the first Sunday in November. You can also explicitly specify the start and end dates and times
and whether or not the time adjustment recurs every year.
To enable the daylight saving time clock adjustment, perform this task:
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configure terminal
Step 1
Sets the daylight savings time for a specified time
zone.
switch(config)# clock summer-time
timezone start_week start_day
Step 2
start_month start_time end_week
end_day end_month end_time offset
The start and end values are as follows:
• Week ranging from 1 through 5
• Day ranging from Sunday through Saturday
• Month ranging from January through December
The daylight offset ranges from 1 through 1440
minutes, which are added to the start time and deleted
time from the end time.
Disables the daylight saving time adjustment feature.switch(config)# no clock summer-time
Step 3
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
42 OL-16597-01
Configuring the Switch
Adjusting for Daylight Saving Time or Summer Time