Logs event information generated by the Event Response resource manager to a specified log file.
logevent [ -h ] LogFile
The logevent command captures event information that is posted by the Event Response resource manager in environment variables that are generated by the Event Response resource manager when an event occurs. The logevent command can be used as an action that is executed by an Event Response resource. It can also be used as a template to create other user-defined actions.
The event information includes:
The logevent command uses the alog command to write event information to the specified LogFile. The LogFile is treated as a circular log and has a fixed size of 64KB. When LogFile already exists, event information is appended to it. When LogFile is full, new entries are written over the oldest existing entries. If LogFile does not exist, it is created so that event information can be written to it.
Note: The following restrictions apply:
- This command must be executed on the node where the Event Response resource manager is running.
- The user who runs this command must have write permission for the LogFile where the event information is logged.
- The alog command is used to read the file.
|LogFile||Specifies the name of the file where event information is logged. An absolute path for the LogFile parameter should be specified.|
|-h||Writes help information about this script to standard out. No further processing is performed.|
|0||Script has run successfully.|
|1||A required logfile is not specified.|
|2||The logfile path is invalid.|
Note: The /tmp/event.log file need not exist when the command is run.
alog -f /tmp/event.log -o
The following example shows how a warning event for the /var file system (a file system resource):
=========================================================================================== Event reported at Mon Mar 27 16:38:03 2000 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
|/usr/bin/rsct/bin/logevent||Location of logevent command|
The alog command.