Oracle Light Weight Availability Collection Tool User Guide

Chapter 2 Oracle Lightweight Availability Collection Tool Utilities

The Oracle Lightweight Availability Collection Tool consists of the following three main binary utilities:

tictimed Utility

tictimed is a heartbeat daemon for the Oracle Lightweight Availability Collection Tool. It changes the modified time (the UTC) of the log file once a second, and updates the time event once a minute. This utility starts automatically via the /etc/rc2.d/S95lwact script. An entry in /etc/inittab makes sure that it is re-spawned even if it is killed or it crashes for an unknown reason. It writes the system halts, panic, and boot records to a log file to track system availability. If the update file (lwact.update) is present under the update directory, the tictimed also modifies the event to update cause codes.

tictimed captures the following five event types:

  1. epoch - the beginning of event tracking

  2. boot - UTC when system leaves run-level 2

  3. halt - UTC when system exits run-level 3

  4. panic - a boot event without a preceding halt recorded. Last modified time of the log file is used as the panic UTC

  5. time- the last recorded UTC for off-line reporting

The Oracle Lightweight Availability Collection Tool has init scripts which are invoked by the system during run level changes. If the you try to invoke these scripts manually, it logs the appropriate info log to /var/adm/messages:

logtime Utility

The logtime utility is used by the root user to update the cause code for events. This utility is also used by the system to create and update boot and halt events. Using -M option of this utility, only the root user can modify the cause code for the halt and panic events, whereas -B and -H options are used by the system (host process, such as init) itself. logtime can be executed in interactive and non-interactive mode. In the interactive mode, the user does not need to provide the cause code string; whereas in the non-interactive mode it does require the event number and cause code string (comma separated, triplet—For more information, see Setting Up Cause Codes).

ltreport Utility

ltreport is a command line, binary executable reporting tool that reads the datagram and calculates the system availability. The output is written to stdout.

ltreport calculates the following two availability figures:

ltreport reports three downtime categories:

For more information about these categories, see ltreport.