hostname

Last Updated : Nov 06, 2012 |

Displays the current prompt value. Use no hostname to return the CLI prompt to the default.

Changes 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 Branch Gateway registration information. If the device is registered, the current Branch Gateway number appears. If the device is not registered, question marks are displayed.

Syntax

hostname [hostname_string]

no hostname

Parameters

Parameter

Description

Possible Values

Default Value

hostname_string

The hostname

A string of up to 20 characters

Branch Gateway

User level

read-write

Context

general

Examples

To set the CLI prompt to GTW-HQ:
Gxxx-001(super)# hostname GTW-HQ
GTW-HQ-001(super)# hostname
Session hostname is 'GTW-HQ'
To reset the CLI prompt to the default:
GTW-HQ-001(super)# no hostname
Gxxx-001(super)#