ttyplot

Realtime terminal plotter
git clone git://git.sgregoratto.me/ttyplot
Log | Files | Refs | README | LICENSE

commit a04701dbd148472734cf7e29bd885911a249b756
parent 05efd63981ba93808411c65a839291e882149d0b
Author: Antoni Sawicki <as@tenoware.com>
Date:   Thu, 11 Oct 2018 14:09:09 -0700

readme examples

Diffstat:
MREADME.md | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -31,17 +31,17 @@ sar 1 | gawk '{ print 100-int($NF); fflush(); }' | ttyplot -s 100 -t "cpu usage" ping 8.8.8.8 | gawk '{ gsub(/time=/,"",$(NF-1)); print $(NF-1); fflush(); }' | ttyplot -t "ping to 8.8.8.8" -u ms ``` -### local network throughput for all interfaces from sar +### local network throughput for all interfaces from sar using two lines ``` sar -n DEV 1 | gawk '{ if($6 ~ /rxkB/) { print iin/1000; print out/1000; iin=0; out=0; fflush(); } iin=iin+$6; out=out+$7; }' | ttyplot -2 -u "MB/s" ``` -### snmp network throughput for an interface using [ttg](https://github.com/tenox7/ttg) and two line plot +### snmp network throughput for an interface using [ttg](https://github.com/tenox7/ttg) and two lines plot ``` ttg -i 10 -u Mb 10.23.73.254 public 9 | gawk 'BEGIN { getline; } { print $5,$8; fflush(); } | ttyplot -2 -u Mb/s ``` -### snmp network throughput for an interface using snmpdelta with two line plot +### snmp network throughput for an interface using snmpdelta with two lines plot ``` snmpdelta -v 2c -c public -Cp 10 10.23.73.254 1.3.6.1.2.1.2.2.1.10.9 1.3.6.1.2.1.2.2.1.16.9 | gawk '{ print $NF/1000/1000/10; fflush(); }' | ttyplot -t "ifindex 9 throughput" -u Mb/s ```