"TTG is a small command-line utility to display the throughput (bandwidth usage) on an interface of a remote device such as a router, switch, etc., over SNMP.
Unlike tools like MRTG which sample bandwidth over a relatively long
interval (often 5 minutes), TTG is normally used to display throughput
over as little as one second."
OK?
(depends on Net-SNMP)
$ ttg $somehost public list
1 : "em0" [up/unkn]
2 : "em1" [up/unkn]
3 : "bge0" [up/up]
4 : "enc0" [down/down]
5 : "lo0" [up/unkn]
6 : "trunk0" [up/up]
7 : "vlan2" [up/up]
8 : "vlan3666" [up/up]
9 : "vlan5" [up/up]
10 : "pflog0" [up/unkn]
$ ttg $somehost public trunk0
Found "trunk0" at index 6:
[21:47:24] current throughput: in 1.2 kB/s out 478.0 B/s
[21:47:25] current throughput: in 2.5 kB/s out 380.0 B/s
[21:47:26] current throughput: in 12.9 MB/s out 453.7 kB/s
[21:47:27] current throughput: in 29.0 MB/s out 930.6 kB/s
[21:47:28] current throughput: in 58.2 MB/s out 1.8 MB/s
[21:47:29] current throughput: in 58.6 MB/s out 1.8 MB/s
[21:47:30] current throughput: in 48.0 MB/s out 1.5 MB/s
[21:47:31] current throughput: in 48.9 MB/s out 6.8 MB/s
[21:47:32] current throughput: in 39.2 MB/s out 24.7 MB/s
[21:47:33] current throughput: in 31.2 MB/s out 32.7 MB/s
[21:47:34] current throughput: in 20.5 MB/s out 38.9 MB/s
[21:47:35] current throughput: in 26.0 MB/s out 37.0 MB/s
[21:47:36] current throughput: in 17.1 MB/s out 46.7 MB/s
[21:47:37] current throughput: in 18.1 MB/s out 50.7 MB/s
[21:47:38] current throughput: in 23.4 MB/s out 22.7 MB/s
[21:47:40] current throughput: in 13.0 MB/s out 37.5 MB/s
[21:47:41] current throughput: in 1.4 MB/s out 58.0 MB/s
[21:47:42] current throughput: in 1.5 MB/s out 63.1 MB/s
[21:47:43] current throughput: in 1.5 MB/s out 65.5 MB/s
[21:47:44] current throughput: in 1.4 MB/s out 62.3 MB/s
[21:47:45] current throughput: in 1.4 MB/s out 62.4 MB/s
^C
---- ttg statistics ----
in out
maximum throughput: 58.6 MB/s 65.5 MB/s
average throughput: 21.5 MB/s 29.3 MB/s
minimum throughput: 1.2 kB/s 380.0 B/s
ttg.tgz
Description: application/tar-gz
