H Commands
This chapter describes the basic Cisco NX-OS system commands that begin with H.
hostname
To configure the hostname for the device, use the hostname command. To revert to the default, use the no form of this command.
Syntax Description
Name for the device. The name is alphanumeric, case sensitive, can contain special characters, and can have a maximum of 63 characters. |
Defaults
Command Modes
Command History
|
|
---|---|
This command was modified. The character limit of a hostname is increased from 32 to 63 alphanumeric characters. |
|
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 device hostname:
This example shows how to revert to the default device hostname:
Related Commands
|
|
---|---|