Cisco Nexus 6000 Series NX-OS Fundamentals Command Reference
H Commands
Downloads: This chapterpdf (PDF - 73.0KB) The complete bookPDF (PDF - 1.19MB) | Feedback

H Commands

Table Of Contents

H Commands

hostname


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.

hostname name

no hostname

Syntax Description

name

Hostname for the switch. The name is alphanumeric, case sensitive, can contain special characters, and can have a maximum of 32 characters.


Command Default

"switch" is the default hostname.

Command Modes

EXEC mode

Command History

Release
Modification

6.0(2)N1(1)

This command was introduced.


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 5000 Series switch:

switch# configure terminal 
switch(config)# hostname Engineering2 
Engineering2(config)# 
 
   

This example shows how to revert to the default hostname:

Engineering2# configure terminal 
Engineering2(config)# no hostname 
switch(config)# 
 
   

Related Commands

Command
Description

show hostname

Displays the switch hostname.

show switchname

Displays the switch hostname.

switchname

Configures the switch hostname.