User guide

Procedure to Create a Parser File Trap Parser
11-11
AlliedView NMS Administration Guide (Built-in Browsers - SNMP MIB and CWMP)
2 - linkdown
3 - linkup
4 - authentication failure
5 - egpNeighbourloss
6 is for enterprise specific
Specific Type - This field can have values from 0-64k. When this field is to be matched, the Generic Type must always be
enterprise specific.
Enterprise OID - The enterprise field is the SNMP enterprise identifier in the trap, which is used to uniquely identify
traps for a particular application. The parser is applied only when the trap enterprise field starts with the enterprise field
you specify. The only exception is that when the enterprise field is left blank, the trap is allowed to be parsed.
OID and Value - This extends the match criteria. There must be a match for all the OID:Value pairs (specified in the list
box) in the Trap PDU of the receiving trap.
Agent and Port - This also extends the match criteria. The trap must be sent by an Agent specified in the Agent:Port list
box. If the Port is 0, then the source can send the trap from any port.
For each match criterion, a name is given called the Trap Name. The fields in the event details are configured in the Output
Event Parameters section. Once the Trap is matched by the match criteria, the trap is added to the Trap Table. The Output
Event parameters are shown as the Trap Details, which gives more specific information regarding the trap.
By default, some of the field of the Output Event parameters are filled by a variable called parser variables, usually starting
with $. These variables substitute a specific characteristic of the parser in the Trap Details.
Values for field are:
$Community - This token is replaced by the community string of the received trap.
$Source - This token is replaced by the source name/address of the received trap.
$Enterprise - This token is replaced by the enterprise ID of the received trap.
$Agent - This token is replaced by the agent address of the received trap.
$SpecificType - This token is replaced by the specific type of the received trap.
$GenericType - This token is replaced by the generic type of the received trap.
$Uptime - This token is replaced by the uptime value in the received trap.
$* - This token is replaced by all the variable bindings of the received trap, including the OID and the variable values of
each variable binding.
$# - This token is replaced by all the SNMP variable values in the variable bindings of the received trap.
$N - This token is replaced by the (N-1) SNMP variable value in the variable bindings of the received trap.
@* - This token is replaced by all the OID values in the variable bindings of the received trap.
@N - This token is replaced by the (N-1) OID value in the variable bindings of the received trap.
11.8.2 Procedure to Create a Parser File
1. Click ParserEditor in the Trap Viewer.
2. Enter the Match Criteria, which includes Trap Parser Name, Generic Type, Specific Type, Enterprise OID, OID and
Value pair (optional) and Agent and port pair (optional). (The Generic Type - means, it will match any value for this
field).
3. Click the OutPut Event Parameters tab and fill in the event parameters. These include Severity, Failure Object, Commu-
nity, Node, Source, Help URL, Message, and Severity Color. If left blank, the following fields will default as follows:
Community - Name
Node - $Source