Skip to main content
Viptela is now part of Cisco.
Support
Product Documentation
Viptela Documentation

prompt2

prompt2—Set the configuration mode prompt.

Command Syntax

prompt2 string

Options

Operational Prompt
"string"
Set the operational prompt. The prompt can contain regular ASCII characters and the following special characters. Enclose the entire string in quotation marks:
\d—Current date in the format yyyy-mm-dd (for example, 2013-12-02).
\h—Hostname up to the first period (.). You configure the hostname with the system hostname command.
\H—Full hostname. You configure the hostname with the system hostname command.
\s—Source IP address of the local device.
\t—Current time in 24-hour hh:mm:ss format.
\A—Current time in 24-hou hh:mm​ format.
\T—Current time in 12-hour hh:mm:ss​ format.
\@—Current time in 12-hour hh:mm​ format.
\u—Login username of the current user.
\m—Mode name.
\m{n}—Mode name, but the number of trailing components in the displayed path is limited to be a maximum of n, which is an integer. Characters removed are replaced with an ellipsis (...).
\M—Mode name in parentheses.
\M{n}—Mode name in parentheses, but the number of trailing components in the displayed path is limited to be a maximum of n, which is an integer. Characters removed are replaced with an ellipsis (...).

Output Fields

None

Example Output

Viptela# prompt2 "\A on \h# "
Viptela# config
Entering configuration mode terminal
15:09 on Viptela#

Release Information

Command introduced in Viptela Software Release 14.1.

Additional Information

prompt1
show cli

  • Was this article helpful?