On 2012/06/10 21:24, Brad Smith wrote: > On Sun, Jun 10, 2012 at 04:40:17AM -0400, Brad Smith wrote: > > On Mon, May 28, 2012 at 10:00:47PM +0100, Stuart Henderson wrote: > > > "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? > > > > This seems to be buggy.. > > Never mind. Looking at the code I see why it is doing this. Kind of a > nice feature if you were only using this in a Cisco based environment > or with other vendor switches/routers with the same naming scheme for > interfaces, but annoying when using it against *BSD systems for example.
Updated tgz attached. This now looks up the interface id first
and, if it exists, doesn't bother with the Cisco abbrevations.
Any OKs to import?
$ ttg -x sym public vl5
Found "vlan5" at index 9:
[12:45:25] current throughput: in 352.0 B/s out 184.0 B/s
[12:45:27] current throughput: in 352.0 B/s out 184.0 B/s
[12:45:28] current throughput: in 352.0 B/s out 184.0 B/s
^C
---- ttg statistics ----
in out
maximum throughput: 352.0 B/s 184.0 B/s
average throughput: 352.0 B/s 184.0 B/s
minimum throughput: 352.0 B/s 184.0 B/s
$ ttg -x sym public vlan5
Found "vlan5" at index 9:
[12:45:30] current throughput: in 352.0 B/s out 184.0 B/s
[12:45:31] current throughput: in 412.0 B/s out 184.0 B/s
[12:45:32] current throughput: in 258.0 B/s out 184.0 B/s
^C
---- ttg statistics ----
in out
maximum throughput: 412.0 B/s 184.0 B/s
average throughput: 340.0 B/s 184.0 B/s
minimum throughput: 258.0 B/s 184.0 B/s
ttg.tgz
Description: application/tar-gz
