User guide

Configuring Trap Parsers Loading from a MIB
AlliedView NMS Administration Guide (Setting Up Fault Management)
9-8
9.3.2 Loading from a MIB
To load a MIB with defined traps that can then be translated to trap parsers, click Add Trap Parser, and then click Load from
MIB. A dialog box prompts for the filename of the MIB.
The filename path should be relative to the <Web NMS Home>/servlets directory. If the MIB depends on (imports) other MIB
files, they should be listed in order, separated by spaces.
For example, if A-MIB imports B-MIB imports C-MIB (all files in the <Web NMS Home>/mis directory, then enter the fol-
lowing:
Input: ../mibs/C-MIB ../mibs/B-MIB ../mibs/A-MIB
The trap parsers are created only from the last MIB file. Clicking Create Parsers will load the MIBs and create trap parsers
from the last file. You can then set the event object fields for the created parsers. If no severities are specified, the default Info
will be used.
9.3.3 Loading from a File
To load a set of trap parsers previously saved by the Save to File button and add them to the list of Trap Parsers, click Load
From File, and in the dialog box, enter the filename on the server that contains the trap parsers. The trap parsers are usually
stored in
<Web NMS Home>/conf/trap.parsers. Clicking Load will load the trap parsers from the file. Parsers with the
$AgentMO This tag (or token) facilitates the accessing of managed object properties.The tag can be used to access
any properties of the Parent managed object for the interface object corresponding to the agent address
of the received trap. (Fetching the Managed Object is similar to the $Agent tag mechanism). For exam-
ple, if the user wants to access the “pollInterval” property of the Parent Managed object corresponding
to the agent address of the received trap and then assign it to some property of the Eventobject gener-
ated, the user should specify the tag as $AgentMO(pollInterval) against the specific property of the
Event.
Usage:- $AgentMO(PropertyName)
$IF-
AgentMO
This tag is similar to $AgentMO, except that the properties of the interface managed object’s corre-
sponding agent address of the received trap could be accessed using this tag. In the case of SNMP V2c
traps, it will be exactly the same as $IF-SourceMO.
Usage:- $IF-AgentMO(PropertyName)
$IF-Agent This is similar to $Agent, except for that it results in the interface managed object name corresponding
to the agent address of the trap received. In the case of SNMP V2c traps, it will be exactly the same as
$IF-Source.
Usage:- $IF-Agent
$SourceMO The tag can be used to access any properties of the Parent managed object for the interface object corre-
sponding to the source address of the received trap. (Fetching the Managed Object is similar to the
$Source tag mechanism). For example, if the user wants to access the “pollInterval” property of the
Parent Managed object corresponding to the source address of the received trap, in order to assign it to
some property of the Event, the user has to specify the tag as $SourceMO(pollInterval) against the spe-
cific property of the Event.
Usage:- $SourceMO(PropertyName)
$IF-
SourceMO
This tag is similar to $SourceMO, except that the properties of the interface managed object corre-
sponding to the source address of the received trap could be accessed using this tag.
Usage:- $IF-SourceMO(PropertyName)
$IF-Source This is similar to $Source, except that it results in the interface object name corresponding to the source
address of the trap received.
Usage:- $IF-Source
TABLE 9-3 Tokens to Access the Properties of the Trap PDU (Continued)
Token Description