Oracle Light Weight Availability Collection Tool User Guide

cause-code

You can set the cause-codes for the outages post event. This enables the user to have more control in maintaining the availability metrics for the host. There are two modes you can use for a cause code:


Note –

The following cause code example is the same in both the interactive and non-interactive modes.


For example, you should mark a weekly planned upgrade or a planned power outage as a Planned outage with the appropriate reason behind it. In such cases, you can use the logtime utility to modify the originally logged outage event and attach a suitable cause code to it. You can attach up to three levels of cause codes for an outage event.

  1. You can modify any outage event that has already occurred by invoking the logtime as shown:

    logtime -M <event# that has to be modified> <L1,L2,L3 causecodes>

    This can be done interactively or non-interactively, as described above.

  2. There is also another invocation of logtime with -L option. This allows you to modify the cause code for the last occurred outage.

    logtime -M -L <L1, L2, L3 cause codes>

  3. You can get a list of all permissible cause codes for each level by invoking the logtime as shown:

    logtime -M