Example: Enabling Configuration Breadcrumbs
The output of show configuration operational mode command and show configuration mode commands can be configured to display configuration breadcrumbs that indicate the exact location in the hierarchy of the output being viewed.
Before enabling the configuration breadcrumbs feature, check the output of the show configuration command.
user@host> show configuration
... } } } } } fe-4/1/2 { description "FA4/1/2: mxxj1-mr6 (64.12.137.160/27) (T=bblan, bbmail, bbowmtc)"; unit 0 { family inet { filter { output 151mj; } address 64.12.137.187/27 { vrrp-group 1 { virtual-address 64.12.137.189; ---(more 18%)-----------------------------------------------------
In the output, there is no clear indication about the section of the configuration being viewed.
To enable the configuration breadcrumbs feature:
- Define a class at the [edit system login] hierarchy
level. [edit system login]user@host# set class breadclass idle-timeout 10
- Add a user to the defined login class to enable the breadcrumbs
output view when this user enters the show configuration operational
mode command.[edit system login user user1]user@host# set class breadclass
- Configure the configuration-breadcrumbs statement
at the [edit system login class <class name>] hierarchy level.[edit system login class breadclass]user@host# set configuration-breadcrumbs
- Confirm the configuration.[edit]user@host# commit
On enabling configuration breadcrumbs in the CLI, User1 (the user added to the login class) can verify the feature in the output by entering the show configuration command.
user1@host> show configuration
... } } } } } fe-4/1/2 { description "FA4/1/2: mxxj1-mr6 (64.12.137.160/27) (T=bblan, bbmail, bbowmtc)"; unit 0 { family inet { filter { output 151mj; } address 64.12.137.187/27 { vrrp-group 1 { virtual-address 64.12.137.189; ---(more 18%)---[groups main interfaces fe-4/1/2 unit 0 family inet address 64.12.137.187/27 vrrp-group 1]---
The new output indicates the exact location of the configuration hierarchy being viewed. User1 is currently viewing the interface configuration of a group.
Note: If you are enabling configuration breadcrumbs for your own user account, you should log out and log in again to see the changes.