ttyplot

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

commit 986b8e4ab6832a0a9c65569f818a8ed8fe2865eb
parent 8ce87e225df6502067fd898a1a834ce4369ed621
Author: Antoni Sawicki <as@tenoware.com>
Date:   Thu, 11 Oct 2018 14:07:29 -0700

readme examples

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

diff --git a/README.md b/README.md @@ -31,14 +31,14 @@ 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 (in/out combined) +### local network throughput for all interfaces from sar ``` -sar -n DEV 1 | gawk '{ if($6 ~ /rxkB/) { print tot; tot=0; fflush(); } tot=tot+$6+$7 }' | ttyplot -u "kB/s" +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 -u "MB/s" ``` ### snmp network throughput for an interface using [ttg](https://github.com/tenox7/ttg) and two line plot ``` -ttg -i 10 -u Mb 10.23.73.254 public 9 | gawk '{ print $5,$8; fflush(); } | ttyplot -2 -u Mb/s +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