The MD-CLI command prompt displays on two lines. The first line contains the following information:
baseline status indicator
This indicator displays an exclamation mark (!) to indicate an out-of-date baseline when in a configuration mode.
uncommitted changes indicator
This indicator displays an asterisk (*) to indicate uncommitted configuration changes when in a configuration mode.
configuration mode reference
When in a configuration mode, a configuration mode reference is displayed:
in round brackets for an explicit configuration workflow
prepended to the context, separated by a colon for an implicit configuration workflow
The configuration mode reference can be one of the following:
ex — exclusive mode
gl — global mode
pr — private mode
ro — read-only mode
context
The present working context is displayed in square brackets ([]) when in operational or configuration mode.
For an explicit configuration workflow, the format of the first line is as follows:
<baseline status indicator > <uncommitted changes indicator> (<configuration mode>) [context]
Examples:
(ro)[/]
(ex)[/configure router "Base" bgp]
For an implicit configuration workflow, the format of the first line is as follows:
<baseline status indicator > <uncommitted changes indicator> [<configuration mode>:context]
Examples:
[ro:/configure]
*[ex:/configure]
The second line contains the following information:
CPM
The active CPM slot can be A or B on 7450 ESS and 7750 SR routers, and A,B,C, or D on 7950 XRS routers.
user
The user is the name of the current user for this session.
name
The name is the system name, as configured with the configure system name command. The system name can change dynamically during the session if it is configured to a different name.
The format of the second line is as follows:
CPM:user@name#
The following examples display the two-line prompt in different modes.
prompt in operational mode
[/]
A:admin@node-2#
prompt in the operational root, with exclusive configuration mode
(ex)[/]
A:admin@node-2#
prompt in operational mode show router bgp
[/show router "Base" bgp]
A:admin@node-2#
prompt in exclusive configuration mode configure router bgp
(ex)[/configure router "Base" bgp]
A:admin@node-2#
prompt in exclusive configuration mode configure router bgp with uncommitted changes
*(ex)[/configure router "Base" bgp]
A:admin@node-2#
implicit configuration workflow prompt for a session in private configuration mode, with present working context of configure router bgp with uncommitted changes in the private candidate datastore, and the baseline datastore out-of-date
!*[pr:/configure router "Base" bgp]
A:admin@node-2#