Emulation of error log entries

After you have added one or more error notification methods to the AIX® Error Notification facility, test your methods by emulating an error.

About this task

By inserting an error log entry into the AIX error device file (/dev/error), you cause the AIX error daemon to run the appropriate specified notify method. This enables you to determine whether your predefined action is carried through.

To emulate an error log entry:

Procedure

  1. Enter smit sysmirror.
  2. In SMIT, select Problem Determination Tools > PowerHA SystemMirror Error Notification > Emulate Error Log Entry.

    The Select Error Label shows a picklist of the notification objects for which notification methods have been defined. The list includes error notification objects generated by both the Automatic Error Notification facility and by the selective fallover facility for volume group loss. For volume group loss for the description of these methods, See error notification method used.

  3. Select a notification object and press Enter to begin the emulation.

    As soon as you press Enter, the emulation process begins: The emulator inserts the specified error into the AIX error log, and the AIX error daemon runs the notification method for the specified object.

Results

When the emulation is complete, you can view the error log by typing the errpt command to be sure the emulation took place. The error log entry has either the resource name EMULATOR or a name the user specified in the Resource Name field during the process of creating an error notify object.

You will now be able to determine whether the specified notify method was carried out.

Note: Remember that the actual notify method will be run. Whatever message, action, or executable you defined will occur. Depending on what it is, you might need to take some action.