Editing Parser Files

 

The Parser file created by Trap Parser editor can also be edited using any text editor. When the Parser file is opened in any text editor, the contents of the Parser file would look like this.

 

customMatchDefn=

color=-39424

severity=2

helpDefn=$GenericType-$SpecificType.html

GT=1

ST=0

agentAddressDefn=

enterprise = .1.3.6.1.2.11

textDefn=\\ifIndex\:\ $0\ \\,rate\=$1

name=a

 

The content of the parser file reveals the various vital parameters of Trap Parser. The table below lists the various parameters and the ways to configure them.

 

Parameter

Configuration

customMatchDefn

This has the OID:Value pair as the match criteria.

Example: .1.3.6.1.2.1.1.1.0\:abcd;.1.3.6.1.2.1.1.2.0\acme

"\" is required before ":" for every OID value pair and each pair is separated by a ";"

color

This depicts the color of the trap entry in the trap table. The value of the color ranges from

-1 to -16777216

entityDefn

This is the machine name from where the trap is originated.

severity

This field shows the severity or the intensity of the trap. 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 denotes All

1 denotes Critical

2 denotes Major

3 denotes Minor

4 denotes Warning

5 denotes Clear

6 denotes Info.

By default, 5 is assigned.

helpDefn

The URL of the document associated with the trap is specified here. By default, it is <generic-type value>-<specific-type value>.html

GT

This depicts the Generic Type trap and the value ranges from 0 to 6.

0 denotes coldStart.

1 denotes warmStart.

2 denotes linkDown.

3 denotes linkUp.

4 denotes authenticationFailure.

5 denotes egpNeighborLoss.

6 denotes enterprise-specific.

ST

This is the Specific Type trap. The value can range from 0 to 2147483647.

agentAddressDefn

This will contain the agent:port pair, as the match criteria.

Example: 127.0.0.1\:0;192.168.1.2:0

"\" is required before ":" for every agent port pair and each pair is separated by a ";"

enterprise

This is the enterprise OID of the trap.

textDefn

This is the message text for this event in the ListTraps and logs.

name

The name of the parser is given here.

 



Copyright © 1996-2006, AdventNet Inc. All Rights Reserved.