Skip to content
valebru edited this page Dec 8, 2017 · 3 revisions

Watch

VPP1704:

#show run and clean counter every 2 secs
watch "sudo $SFLAG $BINS/vppctl -p `vppprefix` show run && sudo $SFLAG $BINS/vppctl -p `vppprefix` clear run"
#show interfaces and clean counters every 10 secs
watch -n 10 "sudo $SFLAG $BINS/vppctl -p `vppprefix` show int && sudo $SFLAG $BINS/vppctl -p `vppprefix` clear interfaces"
#show Hardware and clean counters every 10 secs
watch -n 10 "sudo $SFLAG $BINS/vppctl -p `vppprefix` show hardware && sudo $SFLAG $BINS/vppctl -p `vppprefix` clear hardware-interfaces"

VPP1710

#show interfaces and clean counters every 10 secs
watch -n 10 "sudo -E $BINS/vppctl -s /tmp/cli.sock show int && sudo -E $BINS/vppctl -s /tmp/cli.sock clear interfaces"
#show Hardware and underline differences between updates
watch -d  "sudo -E $BINS/vppctl -s /tmp/cli.sock show hardware"

http://www.linfo.org/watch.html

Clone this wiki locally