Using the watch Command for Troubleshooting


The watch command allows you to continuously run any Linux command in fullscreen. It also allows for changing the timing between the command runs as well as highlighting the differences between each run.



Use the -n option to set the interval in seconds between each running of the command. (-n0 sets the interval to .1 seconds, which is the fastest available refresh rate; the default interval is 2 seconds and the longest interval is 4294 seconds)
Use the --differences option to highlight the changes between command runs.


cl-rctl ip route

This command displays the Cumulus Linux routing table.

watch -n0 --differences sudo cl-rctl ip route

ip -s link show up

This command displays interface packet counters.

watch -n0 --differences sudo ip -s link show up

Have more questions? Submit a request


Powered by Zendesk