home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / 3b1 / 4388 < prev    next >
Encoding:
Text File  |  1993-01-24  |  2.0 KB  |  47 lines

  1. Newsgroups: comp.sys.3b1
  2. Path: sparky!uunet!cs.utexas.edu!uwm.edu!linac!unixhub!ditka!hico2!sonyd1.broadcast.sony.com!blilly.uucp!bruce
  3. From: bruce@blilly.uucp (Bruce Lilly)
  4. Subject: Re: Getting xfer stats from HDB
  5. References: <1993Jan22.025514.2843@toybox.raleigh.nc.us>
  6. Organization: Bruce Lilly
  7. Date: Sat, 23 Jan 93 16:38:13 GMT
  8. Message-ID: <1993Jan23.163813.24816@blilly.uucp>
  9. Reply-To: lilb@sony.compuserve.com (Bruce Lilly)
  10. Lines: 35
  11.  
  12. In article <1993Jan22.025514.2843@toybox.raleigh.nc.us>,
  13.  posted to comp.sys.3b1,
  14.  hruska@toybox.raleigh.nc.us (Bob Hruska) wrote:
  15. >  Is there some sort of accounting that
  16. >HDB does that I can use?
  17.  
  18. HDB UUCP maintains a file named /usr/spool/uucp/.Admin/xferstats.
  19.  
  20. Lines look like:
  21.  
  22. sonyd1!news S (1/23-1:56:58) (C,23359,1) [tty002] <- 1479 / 8.183 secs, 180 bytes/sec
  23. sonyd1!news S (1/23-1:57:02) (C,23359,2) [tty002] <- 137 / 1.866 secs, 73 bytes/sec
  24. sonyd1!news M (1/23-10:47:09) (C,24481,1) [dsi] -> 3601 / 15.233 secs, 236 bytes/sec
  25. sonyd1!news M (1/23-10:47:14) (C,24481,2) [dsi] -> 137 / 0.083 secs, 1650 bytes/sec
  26. sonyd1!Umonymsy M (1/23-10:50:36) (C,24481,3) [dsi] <- 37897 / 195.483 secs, 193 bytes/sec
  27. sonyd1!Umonymsy M (1/23-10:50:43) (C,24481,4) [dsi] <- 145 / 2.466 secs, 58 bytes/sec
  28.  
  29. Note that the bytes/sec field may be ridiculous for small
  30. transfers. There's no way to get 1650 bytes/sec over a 2400 baud
  31. link.  Generally, ignore lines with times less than about 20
  32. seconds to get a reasonable transfer rate number.
  33.  
  34. A simple awk script should suffice to summarize xferstats, if
  35. you feel a compelling urge to do anything other than eliminate
  36. the lines with short duration transfers (which can be done using
  37. the one-line command
  38. "awk '$9 >= 20 { print $0 }' /usr/spool/uucp/.Admin/xferstats").
  39.  
  40. You can find details of the individual fields of the line by
  41. looking at the SVR4 Systems Administrator's Guide, pages 7-67
  42. and 7-68, but ignore field 'k' in that description, as it
  43. doesn't apply to versions of HDB prior to SVR4.
  44.  
  45. -- 
  46.     Bruce Lilly        ...uupsi!monymsys!sonyd1!blilly!bruce
  47.