Trap Browser is used for receiving the traps. Using this you can view the incoming traps to the specified port. The traps can be sent from any host. The port number and the community name has to be set in the Trap Browser. The trap originator should send the trap to the port no specified in the Trap Browser.
The Trap Browser displays the trap information in a table format.
The trap browser has the following four columns:
All the received traps are displayed in rows. Clicking on any of the column headings pops up a dialog box which contains more additional information on the received trap. Right-clicking on the any of the column headings pops up a menu "Delete the selected Rows", which can be used to delete any of the selected rows. Clicking on the ParserEditor opens up a TrapParser which is used to parse the trap events.
The configuration of the Trap Parsers can be done by the below steps:
The trap parser is used to configure and parse the trap events. Since Traps typically contain cryptic information not easily understandable to the users, trap parsers are required to translate or parse traps into understandable information.
Trap Parsers files
Parsing traps is achieved by configuring a list of trap parser files. Only one trap parser file can be applied to a given trap. The match criteria in a parser determines whether a specific trap matches a trap parser. The search for matching trap parsers is done from the trap parsers list starting at the top. Once a matching trap parser is found, an event is generated and no other trap parsers will be used on that trap.
The match criteria determines whether the trap will be parsed by the given trap parser. All fields must match for the trap parser to be applied to a trap. The three fields are:
The enterprise field is the SNMP enterprise identifier in the trap, which is used to uniquely identify traps for a particular application. If you specify this field, the parser will only be applied if the trap enterprise field starts with the enterprise field you specify. The only exception is when the enterprise field is left blank, in which case the trap will be allowed to be parsed.
Each trap should specify one among the following:
Each trap has a specific type number. This number must be specified for the trap parser, and only when this matches, the trap parser be applied to a trap. The only exception is when the specific field is left blank or filled with negative value , in which case the trap will be allowed to be parsed
Setting Trap Parser Parameters
The following are some important fields and information on how to configure them for a given trap.
In Trap Parser the match criteria can also be customized to parse based on an oid and value or the agent Address and port number. For example to parse the oid and value: