User guide
Built-in Browsers - SNMP MIB and CWMP Trap Parser
966
AlliedView NMS Administration Guide
8. Close the Trap Parser Editor. A parser file is now created.
11.8.3 Adding a Trap Definition from MIBs to a Parser File:
1. Choose the MIB file (standard or any other) in the MIB File text field.
2. The setting of the MIB is automatically shown on the MatchCriteria and Output Event parameters sections.
If any modification is made after saving to a file, you must click Mod below the Trap list box, and then choose the same file
from the Save option. This saves the modified information into the same file.
11.8.4 Filtering Incoming Traps
1. Create the parser file.
2. In the Trap Viewer window, load the parser file that is created.
Note: The parser files are saved with .parser extensions
3. Start the Trap Viewer. Now, the Trap Viewer will filter all the incoming traps according to the Match Criteria.
11.8.5 Setting Trap Parser Parameters
The following are some important fields and information on how to configure them for a given trap.
• name - The name of the parser.
• severity - This is used to specify the state of an event, which determines the severity shown in the ListTraps. This severity
determines how a fault is affected by this event. The type of this filed is an integer ranging from 0 to 6.
• 0 is for All.
• 1 is for Critical.
• 2 is for Major.
• 3 is for Minor.
• 4 is for Warning.
• 5 is for Clear.
• 6 is for Info. By default 6 will be assigned.
• textDefn - This is the message text seen for this event in the ListTraps and logs.
• categoryDefn - This is a type of the trap that can be used to categorize trap events.
• helpDefn - The associated document for this trap.
• ST - This is the specific type of the trap that has values from 0-64K.
• GT - This is the generic type of the trap that has values from 0-6.
• enterprise - This is the enterprise OID of the trap.
For example, you can try the following:
This command sends the trap using the sendtrap application (from the agent 192.168.1.1 at port 4001).
Input: java sendtrap -p 4001 -c public -m mibs/RFC-1213 192.168.1.1 .1.3.6.1.2.1.1.1.0 192.168.1.1 0 0 1000 .1.3.6.1.2.1.1.1.0
xyz
This matches the Match Criteria of the Trap Parser if it is:
• Generic Type - 0
• Specific Type - 0
• Enterprise oid - .1.3.1.6.1.2.1.1.1.0