At times, you might need to display the output of an operational mode show
or other command while configuring the software. While in configuration mode, you can execute a single operational mode command by issuing the configuration mode run
command and specifying the operational mode command:
[edit]
user@host#run
operational-mode-command
Example: Run an Operational Mode CLI Command
from Configuration Mode
Display the priority value of the VRRP master router while you are modifying the VRRP configuration for a backup router:
[edit interfaces ge-4/2/0 unit 0 family inet vrrp-group 27]
user@host# show
virtual-address [ 192.168.1.15 ];
[edit interfaces ge-4/2/0 unit 0 family inet vrrp-group 27]
user@host# run show vrrp detail
Physical interface: ge-5/2/0, Unit: 0, Address: 192.168.29.10/24
Interface state: up, Group: 10, State: backup
Priority: 190, Advertisement interval: 3, Authentication type: simple
Preempt: yes, VIP count: 1, VIP: 192.168.29.55
Dead timer: 8.326, Master priority: 201, Master router: 192.168.29.254
[edit interfaces ge-4/2/0 unit 0 family inet vrrp-group 27]
user@host# set priority ...
No comments:
Post a Comment