summaryrefslogtreecommitdiff
path: root/docs/troubleshooting.rst
diff options
context:
space:
mode:
authorKim <kim.sidney@gmail.com>2019-04-08 15:41:16 +0200
committerGitHub <noreply@github.com>2019-04-08 15:41:16 +0200
commite838b4e34227fd4dcba3e8bf591289b747dbcbcd (patch)
tree149e5da7cff0dab0360c65eeb12d574bc5bde826 /docs/troubleshooting.rst
parent6d5be22da37ad236405e828952e901c9c17b52cc (diff)
parent3b4e992346e0c6f8d75f9d283086922e3348f0af (diff)
downloadvyos-documentation-e838b4e34227fd4dcba3e8bf591289b747dbcbcd.tar.gz
vyos-documentation-e838b4e34227fd4dcba3e8bf591289b747dbcbcd.zip
Merge pull request #30 from rebortg/add/monitoring_command
add monitor command
Diffstat (limited to 'docs/troubleshooting.rst')
-rw-r--r--docs/troubleshooting.rst24
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/troubleshooting.rst b/docs/troubleshooting.rst
index 6c5d1ba5..04cb9d80 100644
--- a/docs/troubleshooting.rst
+++ b/docs/troubleshooting.rst
@@ -229,7 +229,31 @@ To take a look on the network bandwith between two nodes, the ``monitor bandwidt
<h:h:h:h:h:h:h:h>
+Monitor command
+^^^^^^^^^^^^^^^
+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.
+
+.. code-block:: sh
+
+ vyos@router:~$ monitor command "show interfaces"
+
+Will clear the screen and show you the output of ``show interfaces`` every 2 seconds.
+
+.. code-block:: sh
+
+ Every 2.0s: /opt/vyatta/bin/vyatta-op-cmd-wrapper s... Sun Mar 26 02:49:46 2019
+
+ Codes: S - State, L - Link, u - Up, D - Down, A - Admin Down
+ Interface IP Address S/L Description
+ --------- ---------- --- -----------
+ eth0 192.168.1.1/24 u/u
+ eth0.5 198.51.100.4/24 u/u WAN
+ lo 127.0.0.1/8 u/u
+ ::1/128
+ vti0 172.32.254.2/30 u/u
+ vti1 172.32.254.9/30 u/u
Clear Command
-------------