Tool    : a7log
Version : 1.4
Purpose : 
 - Format output of p7alarmview and p7dumperror to ONE LINE per event
 - Collect output files into one compressed tarfile per host,
   to be able to analyse the logfiles offline and to provide 
   the information to TIER1 and TIER2 Support
 - perform p7dumperror remotely from the Central Server without login
   into the target system (e.g. Site Processor, Workstation, ..)

Directory contains four scripts
-alarm
-error
-collectfiles
-loop

and the used 'awk' filters
-alarm.awk
-error.awk


Script : alarm
---------------
dumps the two RECENT system status log files
using the standard a7 tool: p7alarmview 
the output will be 
a) *.raw unformated output from p7alarmview
b) *.csv comma separated file, one line per event usable in excel

additional parameter can be used to dump ARCHIVED system status logfiles
or to reformated already dumped system status logfiles

First Example:
  archived logfiles

./alarm -i /var/opt/platform7/logs/archived/alarm_log_200403021111111
will create
./alarm_log_200403021111111.raw   output from p7alarmview
./alarm_log_200403021111111.csv   reformated online output


Second Example:
  output text files from p7alarmview

./alarm -i /home/a7users/user/textfile-2-Mar-2004
will create
  /home/a7users/user/textfile-2-Mar-2004.csv  
the reformated online output file


Script : error
---------------
dumps the two local exception log files
using the standard a7 tool: p7dumperror
the output will be 
a) *.raw unformated output from p7dumperror
b) *.csv comma separated file, one line per event


Script : collectfiles
----------------------
collect information using alarm and error,

The output is one tar file which contains the two
files from alarm and the two files from error


Script : loop
----------------
starts script collectfiles on specified hosts
no manual interaction needed on remote hosts
hosts are specified by the following parameters
  -s  all Site Server
  -w  all Workstations/Application Servers
  -d  all DataStoreProcessors
  -p  all Probe Processors
  -h hostname   specified host
all combinations are allowed.
