show switchname
S e n d c o m m e n t s t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
show switchname
To display the hostname for the device, use the show switchname command.
Syntax Description
This command has no arguments or keywords.
Command Default
None
Command Modes
EXEC mode
Command History
Release
4.0(0)N1(1a)
Usage Guidelines
The show hostname command also displays the switch hostname.
Examples
This example shows how to display the hostname for the switch:
switch# show switchname
Related Commands
Command
hostname
show hostname
switchname
Cisco Nexus 5000 Series Command Reference
1-104
show switchname
Modification
This command was introduced.
Description
Configures the hostname for the switch.
Displays the hostname.
Configures the hostname for the switch.
Chapter 1
Basic System Commands
OL-16599-01