home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / question / 15878 < prev    next >
Encoding:
Internet Message Format  |  1993-01-23  |  1.8 KB

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