A-7
Appendix A Event Log Scripts
Redline Communications Inc.. Confidential and Proprietary
Script – checkTime.pl
Overview
This script is used to generate a report on de-registration rates per hour each day. For
example, if the syslog files provided, encompasses 15 days, this script will allow you to
determine the total number of de-registrations encountered between 9h00 and 10h00 on
each day, during that time period.
Input Requirements
This script scans every file within the working directory with the extension of .log.
Usage
To use the script, enter the following command at the command line:
perl checkTime.pl
Once processing is complete, the results will be printed to the screen. You can store the
report directly to file, by redirecting the output to a file using the following command:
perl checkTime.pl > checkTime.txt
Output
This script prints the total number of de-registrations recorded at a given hour. It does not
print any time periods for which no de-registrations were found, so keep this in mind when
you are importing this data into another application for further analysis.
Example A-5
Sample Output from checkTime.pl
00 hrs: 15551
01 hrs: 13102
02 hrs: 12250
03 hrs: 6235
04 hrs: 5191
…
20 hrs: 17615
21 hrs: 16607
22 hrs: 16635
23 hrs: 18429