Difference between revisions of "Monitor command (command)"

From VyOS Wiki
Jump to: navigation, search
(Added a link back to the Command tree page)
m (Cbrjack moved page Monitoring commands to Monitor command (command): Standardization)
(No difference)

Latest revision as of 02:51, 27 March 2017

The "monitor command" command allows you to repeatedly run a command to view a continuously refreshed output. The command is run and output every 2 seconds, allowing you to monitor the output continuously without having to re-run the command. This can be useful to follow routing adjacency formation.


monitor command "<command>"


Running this command:

vyos@router:~$ monitor command "show interfaces"

Will clear the screen and show you the output of "show interfaces" every 2 seconds.

Every 2.0s: /opt/vyatta/bin/vyatta-op-cmd-wrapper s...  Sun Mar 26 02:49:46 2017

Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
Interface        IP Address                        S/L  Description
---------        ----------                        ---  -----------
eth0                       u/u
eth0.5                    u/u  WAN
lo                            u/u
vti0                      u/u
vti1                      u/u

Monitor (command)

Command tree