Configuring the Switch
This guide refers to a switch in the Cisco Nexus 5000 Series switch as switch , and it uses the switch#
Note
prompt.
To change the name of the switch, perform this task:
Procedure
Step 1
Step 2
This example shows how to change the name of a switch and change it back:
switch# configure terminal
switch(config)# switchname myswitch1
myswitch1(config)#
...
myswitch1(config)# no switchname
switch(config)#
Configuring Date and Time
The Cisco Nexus 5000 Series switches use Universal Coordinated Time (UTC), which is the same as Greenwich
Mean Time (GMT). To change the default time on the switch, perform this task:
Procedure
Step 1
The following example sets the time for the switch:
switch# clock set 15:58:09 29 June 2009
Mon Jun 20 15:58:09 UTC 2009
The clock command changes are saved across system resets.
Note
Configuring Time Zone
The Cisco Nexus 5000 Series switches use Universal Coordinated Time (UTC), which is the same as Greenwich
Mean Time (GMT). You can specify a time zone for the switch. To specify the local time without the daylight
saving time feature, perform this task:
OL-16597-01
Command or Action
switch# configure terminal
switch(config)# [no] switchname name
Command or Action
switch# clock set HH:MM:SS DD
Month YYYY
Purpose
Enters configuration mode.
Changes the switch name prompt to the specified
name. The no command reverts the switch name
prompt to its default.
Purpose
Sets the default time on the switch. HH represents hours in
24-hour time (15 for 3 P.M.), MM is minutes (58), SS is seconds
(09), DD is the date (29), Month is the month in words
(February), and YYYY is the year (2008).
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
Configuring Date and Time
41