roy@phri.UUCP (Roy Smith) (09/05/87)
I want to be able to write a simple shell script to look through the uucp log files and produce a simple summary: how many bytes we sent to and received from each site we talk to, how long we were on the phone, and who paid for the calls. Unfortunately, there doesn't seem to be any simple, reliable way to tell from the uucp logs who paid for the call corresponding to a particular SYSLOG entry. You can try and read both the SYSLOG and the LOGFILE and correlate the times in both, but that's a real mess and not alway reliable (think about what happens when you have a call in progress when you run your daily uucp log cleanup). My solution was some minor hackery to cico.c to record if the "-r1" flag was set and to [fgt]io.c to add the word "Master" or "Slave" at the end of the SYSLOG lines as appropriate. I don't see any other way to get this information from the log files, but on the other hand, it seems like such an essential piece of information that I can't believe there isn't already a better way to do it. How do other sites do this? If it matters, our uucp machine is a Vax running 4.3BSD. -- Roy Smith, {allegra,cmcl2,philabs}!phri!roy System Administrator, Public Health Research Institute 455 First Avenue, New York, NY 10016