H Commands
This chapter describes the basic Cisco NX-OS system commands that begin with H.
hostname
To configure the hostname for the switch, use the hostname command. To revert to the default, use the no form of this command.
Syntax Description
Hostname for the switch. The name is alphanumeric, case sensitive, can contain special characters, and can have a maximum of 32 characters. |
Command Default
Command Modes
Command History
|
|
---|---|
Usage Guidelines
The Cisco NX-OS software uses the hostname in command-line interface (CLI) prompts and in default configuration filenames.
The hostname command performs the same function as the switchname command.
Examples
This example shows how to configure the hostname for a Cisco Nexus 5500 Series switch:
This example shows how to revert to the default hostname:
Related Commands
|
|
---|---|