Filtering and routing event messages, Enabling and disabling logging – HP StorageWorks IP Storage Router User Manual
Page 207

Maintaining and Managing the Storage Router
207
IP Storage Router SR2122-2 User Guide
Filtering and Routing Event Messages
The storage router logging table allows messages to be filtered by their facility
and notification level and routed to the specified destination(s). When an event
message arrives, the logging table rules are searched by facility name and by level
until the first match is found. The message is sent to all the destinations specified
by the matching rule. If no match is found, the event message is discarded.
When a new routing rule is added, it is appended to the existing table. Use the
logging level
command to add a new routing rule to the logging table; use
the logging #? command to insert a routing rule into the logging table before
the specified entry.
Each facility can have eight notification levels. Each facility and notification level
pair can have up to seven destinations.
In
, the facility is SNMP, and the notification level is 5 (notice). If the
logging table included the entries in Example14, the event message in
would match on the first routing rule, and would be sent to all valid destinations.
Any message from the SNMP facility at notification level info, and any message
from another facility at notification level info (or lower) would match on the
second rule and be sent to the storage router console and log file. All messages
from any facility at notification level debug would be discarded.
Example 27: Example Log Route Entries List
Index Level
Priority Facility Route
1 notice
5
SNMP all
2
info
6
all
console log file
The logging table can be saved and retained across the storage router restart. The
order of the rules in the logging table is preserved when entries are deleted.
Enabling and Disabling Logging
Logging is enabled by default. By default, the storage router includes the
following routing rules in the logging table:
■
All messages at notification level notice or lower are logged to all valid
destinations.
■
All messages at notification level info are logged to the storage router log file.
■
All debug messages are discarded.