#!/bin/csh -f # written by Kevin P. Inscoe (kevin@inscoe.org) # http://www.inscoe.org/ondemand # April 1, 1999 # Fetches the OnDemand System Log into unix ascii file # Global Variables set host = `/bin/hostname` set logfile = "/var/log/ars_system.log" set ADMIN = "admin" set PASSWORD = "jazman11" set tmp = "/tmp/ars_system.tmp" # Annouce ourselves /bin/echo "+++++++++++++++++++++++++++++++++++++++++++" /bin/echo $0 "Starting at `/usr/bin/date`" # cleanup from last time /bin/rm -f $tmp # Using Named Query method /usr/lpp/ars/bin/arsquery -h $host -u $ADMIN -p $PASSWORD -v -o $tmp -q SystemLog -f "System Log" /bin/cat $tmp >> $logfile /usr/bin/chmod 755 $logfile # Using query method #/usr/lpp/ars/bin/arsquery -h $host -u $ADMIN -p $PASSWORD -c -v -o $logfile -f "System Log" -i "where time_stamp > 19990301" # # put a fork in me..I'm done... # /bin/echo $0 "exiting at `/usr/bin/date`" exit 0