Cisco Systems MDS 9020 manual Configuring Date and Time, Configuring the Time Zone

Page 11

Chapter 3 Initial Configuration

Configuring Date and Time

Se n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a ck - d o c @ c i s c o . c o m

Configuring Date and Time

A Cisco MDS 9020 Fabric Switch uses Universal Coordinated Time (UTC), which is the same as Greenwich Mean Time (GMT). To change the default time on the switch, enter the clock command from EXEC mode.

switch# clock set <HH:MM:SS> <DD> <Month in words> <YYYY>

The following example sets the time on the switch:

switch# clock set 15:58:09 23 May 2005

Mon May 23 15:58:09 UTC 2005

Where HH represents hours in military format (15 for 3 p.m.), MM is minutes (58), SS is seconds (09),

DDis the date (23), Month is the month in words (May), and YYYY is the year (2005).

Note The clock command changes are saved across system resets.

Configuring the Time Zone

You can specify a time zone for the switch.

To specify the local time without the daylight savings feature, perform this task:

 

Command

Purpose

Step 1

 

 

switch# config t

Enters configuration mode.

Step 2

 

 

switch(config)# clock timezone <timezone

Sets the time zone with a specified name,

 

name> <-23 to 23 hours offset from UTC time>

specified hours, and specified minutes.

 

<0 to 50 minutes offset from UTC>

This example sets the time zone to Pacific

 

 

 

Example:

Standard Time (PST) and offsets the UTC time by

 

switch(config)# clock timezone PST -8 0

negative eight hours and 0 minutes.

 

 

Step 3

 

 

switch(config)# exit

Returns to EXEC mode.

 

switch#

 

Step 4

 

 

switch# show clock

Verifies the time zone configuration.

Step 5

 

 

switch# show run

Displays changes made to the time zone

 

 

configuration along with other configuration

 

 

information.

 

 

 

Cisco MDS 9020 Fabric Switch Configuration Guide and Command Reference

 

OL-6988-02

3-11

 

 

 

Image 11
Contents Initial Configuration Initial Setup Routine Starting a Cisco MDS 9020 Fabric SwitchDefault Login Preparing to Configure the SwitchSubnetwork Setup OptionsEnter yes to enter the setup mode Assigning Setup InformationEnter the default gateway IP address Enter yes no is the default to create additional accountsEnter the user password Enter a name for the switchEnter yes yes is default to use and save this configuration Enter no no is the default to disable the SSH serviceEnter no no is the default to not configure the NTP server Using the setup Command 2illustrates serial console access and out-of-band access Accessing the SwitchVerifying the Status of the Switch Assigning a Switch NameWhere Do You Go Next? Configuring the Time Zone Configuring Date and TimeAdjusting for Daylight Saving Time NTP Configuration Management Interface ConfigurationUsing the force Option Obtaining Remote Management AccessConfiguring the Default Gateway Default Gateway ConfigurationDisabling a Telnet Connection Working with Configuration FilesDisables the Telnet server Telnet Server ConnectionDisplaying Configuration Files Initial Configuration Working with Configuration Files Saving Configuration Files to an External Device Downloading Configuration Files to the SwitchCopying Files Saving the ConfigurationBacking Up the Current Configuration Deleting Files Rolling Back to a Previous ConfigurationInitial Configuration Deleting Files