AIX - How to Enable and Disable the particular "Event" in errpt

Enabling and disabling logging for an event
You can disable logging or reporting of a particular event by modifying the Log or the Report field of the error template for the event. You can use the errupdate command to change the current settings for an event.
Showing events for which logging is disabled
To list all events for which logging is currently disabled, type:
errpt -t -F Log=0 
Events for which logging is disabled are not saved in the error log file.
Showing events for which reporting is disabled
To list all events for which reporting is currently disabled, type:
errpt -t -F Report=0 
Events for which reporting is disabled are saved in the error log file when they occur, but they are not displayed by the errpt command.
Changing the current setting for an event
To change the current settings for an event, you can use the errupdate command The necessary input to the errupdate command can be in a file or from standard input.
The following example uses standard input. To disable the reporting of the ERRLOG_OFF event (error ID 192AC071), type the following to run the errupdate command:
errupdate "Press Enter"
=192AC071: "Press Enter" 
Report=False "Press Enter"
ctrl+d
ctrl+d  

No comments:

Post a Comment