Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)

Send comments to nx5000-docfeedback@cisco.com
1-116
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 1 Basic System Commands
switchname
switchname
To configure the hostname for the device, use the switchname command. To revert to the default, use
the no form of this command.
switchname name
no switchname
Syntax Description
Command Default “switch” is the default hostname.
Command Modes EXEC mode
Command History
Usage Guidelines The Cisco NX-OS software uses the hostname in command-line interface (CLI) prompts and in default
configuration filenames.
The switchname command performs the same function as the hostname command.
Examples This example shows how to configure the hostname for a Cisco Nexus 5000 Series switch:
switch# configure terminal
switch(config)# switchname Engineering2
Engineering2(config)#
This example shows how to revert to the default hostname:
Engineering2# configure terminal
Engineering2(config)# no switchname
switch(config)#
Related Commands
name Hostname for the switch. The name is alphanumeric, case sensitive, can
contain special characters, and can have a maximum of 32 characters.
Release Modification
4.0(0)N1(1a) This command was introduced.
Command Description
hostname Configures the switch hostname.
show hostname Displays the switch hostname.
show switchname Displays the switch hostname.