4 Command Line Interface

Device Designation Commands

Table 4-8 Device Designation Commands

Command

Function

Mode

Page

 

 

 

 

prompt

Customizes the prompt used in PE and NE mode

GC

4-24

 

 

 

 

hostname

Specifies the host name for the switch

GC

4-24

 

 

 

 

snmp-server contact

Sets the system contact string

GC

4-113

 

 

 

 

snmp-server location

Sets the system location string

GC

4-114

 

 

 

 

prompt

This command customizes the CLI prompt. Use the no form to restore the default prompt.

Syntax

prompt string no prompt

string - Any alphanumeric string to use for the CLI prompt. (Maximum length: 255 characters)

Default Setting

Console

Command Mode

Global Configuration

Example

Console(config)#prompt RD2

RD2(config)#

hostname

This command specifies or modifies the host name for this device. Use the no form to restore the default host name.

Syntax

hostname name no hostname

name - The name of this host. (Maximum length: 255 characters)

Default Setting

None

Command Mode

Global Configuration

4-24