Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site dciem.UUCP Path: utzoo!dciem!tim From: tim@dciem.UUCP (Tim Pointing) Newsgroups: net.sources Subject: Re: UUCP analysis Message-ID: <472@dciem.UUCP> Date: Tue, 8-Nov-83 08:48:38 EST Article-I.D.: dciem.472 Posted: Tue Nov 8 08:48:38 1983 Date-Received: Wed, 9-Nov-83 01:29:17 EST References: 16@trwspp.UUCP Organization: D.C.I.E.M, Toronto, Canada Lines: 75 Long, long ago, in a newsgroup far, far away... Way back in April, zemon@trwspp submitted a couple of awk scripts for analyzing the information in the uucp LOGFILE and SYSFILE. Since this site is in the process of setting up several new connections, we wanted to keep track of how well the connections were being made. Since the awk script mentioned above provided success/failue/locked counts for each site, it seemed reasonable to extract this from the output from awk. At this site, the LOGFILE and SYSFILE are backed-up and zero'ed every morning. zemon's awk scripts are run just before this to get the information on the previous day's activity, with the output concatenated to a permanent log file. The awk script below uses this log file to provide a summary of connection statuses. ---------------------------------------------------------------------------- # USAGE: awk -f thisfile logfilefromuucpanalysis BEGIN { nsystems = 0; } /summary/,/AVAILABLE/ { if (insummary == 0) { insummary = 1; next; } if (insummary) { if (NF == 3 && $1 != "NO" && $1 != "UUCP") { system=$1 for(i=0; i