You can view current event notifications,
show event notification history, and set notification filters from
the message center with the xscmd utility.
Procedure
- Display the event notification history with the xscmd utility.
The output displays in a tabular format.
xscmd -c showNotificationHistory -cep hostname:port(,hostname:port)
- Listen for new notifications.
xscmd -c listenForNotifications -cep hostname:port(,hostname:port)
The
output is in raw format and runs until you stop the command. You can
write additional scripts to parse the output.
- Enable filtering on all future log entries, including INFO,
WARNING, and SEVERE log entries. By default, the message center &
commands only show WARNING errors, SEVERE errors, and events. You
can set the filter for all servers in the environment or a single
server. This setting affects future results only.
xscmd -c setNotificationFilter -fs <regular expression> [-server <servername>]
- Display the current notification filters for all the servers
in your environment or a single server.
xscmd -c getNotificationFilter [-s servername]