Files: AAAREADME.TXT - this file HOT_START.COM _ restart logger on the fly if it was shut off for some unusual reason or for the end of the month report LOGGER.FOR _ the main program, runs detached LOGGER_MONTH.COM- runs at the beginning of each month, runs log_report.com LOG_REPORT.FOR - Generates monthly uptime reports START_LOGGER.COM- starts logger within systartup STOP_LOGGER.COM - stops logger within syshutdwn VAXA.WORK - sample work file (timestamp) VAXA_88_LOG.DAT - sample data archive file VAXA_REPORT.DAT - sample monthly uptime report LOGGER Logger is a program that logs shutdowns, startups, crashes and reasons for crashes to a file. It is a rework of the original program written by someone else in the C language. These programs produce a useful monthly uptime report. Logger runs in two modes. On shutdown and startup it passes a parameter (either Shutdown or Startup) which is written to a file along with a timestamp. During normal operation, logger timestamps a work file every ten minutes and a log file once a day. Thus the logfile would look something like this: 20-DEC-1987 08:03:35 Startup 21-DEC-1987 11:31:15 Timestamp 22-DEC-1987 23:03:01 Timestamp 23-DEC-1987 08:22:42 Timestamp 23-DEC-1987 09:33:55 Shutdown 23-DEC-1987 10:01:01 Startup 24-DEC-1987 01:09:17 Timestamp 25-DEC-1987 00:00:35 Timestamp 26-DEC-1987 08:03:35 Crash? 26-DEC-1987 09:37:29 OPERATOR, Operator requested system Shutdown 26-DEC-1987 09:47:11 Timestamp The logfile should contain ONE timestamp per day as well as any crash/shutdown and startup messages. In addition to the logfile (named nodename_LOG_FILE.DAT) and the work file (named nodename.WORK) Logger also depends on a startup and shutdown file. The startup file, START_LOGGER.COM is activated within Systartup. It Checks the logfile to see if the last entry was indeed a Shutdown timestamp. If not, it assumes that a crash occurred and analyzes the crash dump to get the time and reason. It then enters a startup time- stamp into the logfile and starts logger up as a detached process using the /INTERVAL qualifier to have Logger re-executed every ten minutes. The shutdown procedure STOP_LOGGER.COM, merely writes a shutdown timestamp to the logfile and stops logger. It is triggered from syshutdwn.com The source code for Logger can either get the nodename and construct the proper file names or can use the logicals defined in START_LOGGER. But in either case, the work and logfiles MUST be present upon startup and they MUST NOT be empty. Finally, all crashes are saved in the subdirectory [syslog.crash] and are labeled by the day and month of the crash. On a monthly basis LOGGER_MONTH.COM closes out the datafile, appends it to the annual datafile and runs LOG_REPORT.EXE to generate uptime statistics