home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.questions:15878 comp.dcom.lans.ethernet:3068
- Newsgroups: comp.unix.questions,comp.dcom.lans.ethernet
- Path: sparky!uunet!UB.com!uni!brucek
- From: brucek@uni.ins.com (Bruce Klein)
- Subject: How to determine ethernet utilization using UNIX?
- Message-ID: <1993Jan22.223703.394@uni.ins.com>
- Organization: International Network Services
- Date: Fri, 22 Jan 1993 22:37:03 GMT
- Lines: 35
-
- A friend and I have been debating about how to use a UNIX workstation
- to determine the ethernet utilization of the segment that the
- workstation is on.
-
- I have seen programs that can do this. For example, sun's traffic
- program will graph utilization (but unfortunately has no command line
- interface). I am further guessing that there is some device independent
- method, because there are a few Macintosh programs floating around
- that will tell you utilization and don't seem to care what kind of
- Ethernet card you have.
-
- Here are the strategies we've considered so far:
-
- 1. Run an SNMP agent on the workstation and query it. Unfortunately,
- the standard MIBs don't have Ecarrier or Etime, which is what we
- really want. Alternatively, we thought we could put the card in
- promiscuous mode and query InOctets and OutOctets, but that doesn't
- sound like its exactly what we're looking for. Even worse, the only
- public domain UNIX snmpd that we've seen so far won't report InOctets
- anyway.
-
- 2. Use standard utilities like netstat. The problem here is that
- all the ones we've seen report packets, not actual bits on the wire.
- I guess you could perform a rough estimate based on packets, but
- you'd never really know how accurate you were.
-
- Does anyone know how this is done in practice? Any tips or pointers
- would be greatly appreciated.
-
- Thanks,
-
- Bruce Klein
- Systems Engineer
- International Network Services
- brucek@ins.com (408)-496-1404
-