Context
general
Related Commands
banner
login,
banner
terminal
length,
hostname
Use the hostname command to change the Command Line Interface (CLI) prompt. The prompt
is written as hostname-registration, where the hostname is the value entered with the
hostname command, and registration is the media gateway registration information. If the
device is registered, the current media gateway number appears. If the device is not registered,
question marks are displayed.
Use the hostname command with no parameters to display the current prompt value. Use the
no form of this command to return the CLI prompt to the default.
Syntax
hostname [hostname_string]
no hostname
Parameters
Parameter
hostname_
string
User Level
read-write
Context
general
Example
To set the CLI prompt to "GTW-HQ":
G450-001(super)# hostname GTW-HQ
GTW-HQ-001(super)# hostname
Session hostname is 'GTW-HQ'
post-login, hostname, line,
terminal width
Description
The hostname
show banner
login,
show banner
Possible
Values
A string of up to
20 characters
Issue 1 January 2008
Display
post-login,
Default
Value
G450
335