Skip to content

Commit

Permalink
readme examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tenox7 committed Oct 11, 2018
1 parent 05efd63 commit a04701d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down

0 comments on commit a04701d

Please sign in to comment.