set prompt

Use the set prompt command to change the prompt for the CLI.

set prompt prompt_string

Syntax Description
prompt_string  String to use as the command prompt. 
Default

The default configuration has the prompt set to Console>.

Command Type

Switch command.

Command Mode

Privileged.

Usage Guideline

In Catalyst 5000 series software release 4.1(1) and later, if you use the set system name command to assign a name to the switch, the switch name is used as the prompt string. However, if you specify a different prompt string using the set prompt command, that string is used for the prompt.

Example

This example shows how to set the prompt to system100>:

Console> (enable) set prompt system100>
system100> (enable)
  
Related Command

set system name