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
switchname
To configure the hostname for the device, use the switchname command. To revert to the default, use
the no form of this command.
Syntax Description
name
Command Default
"switch" is the default hostname.
Command Modes
EXEC mode
Command History
Release
4.0(0)N1(1a)
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
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
Command
hostname
show hostname
show switchname
Cisco Nexus 5000 Series Command Reference
1-116
switchname name
no switchname
Hostname for the switch. The name is alphanumeric, case sensitive, can
contain special characters, and can have a maximum of 32 characters.
Modification
This command was introduced.
Description
Configures the switch hostname.
Displays the switch hostname.
Displays the switch hostname.
Chapter 1
Basic System Commands
hostname
command.
OL-16599-01
Need help?
Do you have a question about the AP775A - Nexus Converged Network Switch 5010 and is the answer not in the manual?
Questions and answers