Administrator Guide

Switch Management Commands 2192
This command takes effect only after rebooting the switch.
hostname
Use the hostname command in Global Configuration mode to specify or
modify the switch host name. To restore the default host name, use the no
form of the command.
Syntax
hostname
name
no hostname
name
— The name of the host. (Range: 1–255 characters) The command
allows spaces in the host name when specified in double quotes. For
example, #snmp-server v3-host “host name”.
Default Configuration
No host name is configured.
Command Mode
Global Configuration mode
User Guidelines
The hostname, if configured, is advertised in the LLDP system-name TLV.
The hostname may include any printable characters except a question mark.
Enclose the string in double quotes to include spaces within the name. The
surrounding quotes are not used as part of the name. The CLI does not filter
illegal characters and may truncate entries at the first illegal character or
reject the entry entirely.
Example
The following example specifies the switch host name.
console(config)# hostname Dell
2CSNXXX_SWUM204.book Page 2192 Monday, January 25, 2016 1:25 PM