show hostname
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 hostname
To display the hostname for the switch, use the show hostname 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 switchname command also displays the switch hostname.
Examples
This example shows how to display the hostname for the switch:
switch# show hostname
Related Commands
Command
hostname
show switchname
switchname
Cisco Nexus 5000 Series Command Reference
1-84
show hostname
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