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