From: rat@ruth.UUCP (David Douthitt)
Newsgroups: comp.bbs.waffle
Subject: AWK scripts for system log analysis
Date: Sat, 02 Jan 93 14:00:08 CST
Organization: Network XXIII - +1 608 222 9253

These scripts were created for use with MAWK, an MSDOS awk clone.  They could
be used with standard UNIX awk I suppose - I don't believe I do anything
unbecoming :-)

The callers log analysis script has the unfortunate limit of being able to
scan only about 2 weeks of data - 32,767 minutes.  Sharp-eyed programmers
out there will recognize a size limitation of integers (for mawk anyway).

This archive includes all of my scripts, the batch file which fires them
off, and an extern to use to access them.  Docs are weak and lacking....
but I just wanted to get this out so awkfolk could use it...

It's 4K in size, so here 'tis:

section 1 of uuencode 5.10 of file statics.lzh    by R.E.M.

begin 644 statics.lzh
M)$8M;&@T+34!``#``@``D(6=&2`!"U-4051)0U,N0D%4D/A-```!*6-ZT;3L
M8;U*O_U4JS,"&M6$LPS7WF6&0#"%O2V(LG&DE0M\<NEUH9(6:W50*U&U[%7<
M8-:YY@`Q8HIVT;J*!:<3&$"\CQ>I:V5Y''T5]>3W%'0MJF7Z&)6'063].!6J
M^^'Z;XR2K[#GF@4;S3F8GI(.RE[K*N*?EWEQ58UCN/<SFQWX9SS*5VZ#T6*4
M`IIVZY3>HI3BI+/,3K,K%/-C@*`2CJS2Z2IZ^\(WP5:50="*HP'#)0^2'#_(
MB>Q$T&0@8ZLTR&T+>;0>#Q<<(P\4SS[@G;Y9R?_!O,GHY@ZJKZ$EKM.5*C<\
M\+;D2C2C29O.CRQ,-*$LU@(GLQPI-;?_=_-OI4/?UO-5FSW/LZ4":DLWM5%A
MNT[^+NY8!\,:0-U['%J1!B^<"=$2X*8#J!1KUXK;BNHAJBUL:#0M,P$``%\#
M``"+<>(8(`$(34%)3"Y!5TO`4DT```#P6I>MM2[GH7O^1U#5TJW*8$UXT<H\
M#AX,\3=P4S8$#61)8\"47QMDEOY;45%XWC>-XVZ!&VF[SZNKKUA8'BHZ%FRD
MG1V4'W@M5!C'W!7Y554*\],Z"1S0P``Q$\,!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X#'+F+%//W2DR[>=>B<G;7G7HKS67IOT
M/E06,*.NGRJ2TL-RYC2L57E_EZH$#1Q2)G/UD=%,4/C3`EZRC4.*ZF-*G=+;
M4!PX^0<TP\*M6>]PO321N?&\9=TR`MR[;U!?VM^[Q*_SNZ@OX_'GU!>GEN>(
M6[H8-;P,?[@_1-GKH@&5>8V'?O3`LO4R3X1$_<GBH[D[E(\76H[DZ%'<G*I[
MW>CTL2PH:71EU5ZD2/.YT2TL(EH,_4RSI@N)B#$T+9D)78\`-C6Q^(P1NX\C
MY@[G8RR@IA_"-N1=2VQUDXYD>J--Y*VB\$D.C!.C:>I%#C,RCI=!D:?$9AD>
6#,U6HL@ER7-KW&[I>9#X9@&*/11``!1`
`
end
sum -r/size 8861/4216 section (from "begin" to "end")
sum -r/size 13708/3037 entire input file


--
UUCP: ....!fullfeed.com!ruth!rat        |  Network XXIII - +1 608 222 9253
InterNet: rat@ruth.UUCP                 |  80Megs+ of Usenet/Fido programs!
Fidonet: David Douthitt 1:121/23        |  ... Files via Fidonet FREQ,
"...because appealing to the masses has |  anon uucp, first time login,
 never appealed to us."                 |  mail to fileserver@ruth.uucp