Logs event information generated by the event response resource manager (ERRM) to a specified log file.
elogevent [-h] log_file
The elogevent script always return messages in English. The language in which the messages of the logevent script are returned depend on the locale settings.
These scripts capture event information that is posted by the event response resource manager (ERRM) in environment variables that are generated by the ERRM when an event occurs. These scripts can be used as actions that are run by an event response resource. They can also be used as templates to create other user-defined actions. See the RSCT Guide and Reference to understand how an event response resource runs an action command.
Event information is returned about the ERRM environment variables that are described in the RSCT Guide and Reference, and also includes the following:
These scripts use the alog command to write event information to and read event information from the specified log_file.
The log_file is treated as a circular log and has a fixed size of 64KB. When log_file is full, new entries are written over the oldest existing entries.
If log_file already exists, event information is appended to it. If log_file does not exist, it is created so that event information can be written to it.
When the -h flag is specified, the script's usage statement is written to standard output.
/usr/sbin/rsct/bin/logevent/tmp/event.logThe /tmp/event.log file does not need to exist when the command is run.
cat /tmp/event.logThe following sample output shows a warning event for the /var file system (a file system resource):
============================================================================= Event reported at Mon Mar 27 16:38:03 2002 Condition Name: /var space used Severity: Warning Event Type: Event Expression: PercentTotUsed>90 Resource Name: /var Resource Class Name: IBM.FileSystem Data Type: CT_UINT32 Data Value: 91
Commands: alog
Books: see the RSCT Guide and Reference for information about the event response resource manager (ERRM) and about how to use ERRM environment variables