Let me point out a basic distinction here that might help clarify the
situation. While the definition of variables (OBJECT-TYPE, etc) is
required (probably by some standard or other that James can name),
the definition of traps in mib files is not. The variables are defined in
the mib files so that snmp managers like Netview can query and set
them. The inclusion of TRAP-TYPE entries is purely a convenience,
a form of documentation using the same notation as the rest of the
mib. It is meant for human use. The inclusion of the mib2trap command
in Netview is an attemt to automate that human use. Sometimes it
works better, sometime worse. If the agent vendor decides not to
document his traps in this way, then it works not at all. Traps often
include variables in them, and having the mibs loaded allows Netview
to inlcude the names of the variables in the full-blown trap in the events
display, but that is all. Hope this helps.
Cordially,
Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Detroit
---------------------- Forwarded by Leslie Clark/Southfield/IBM on
04/07/2000 08:45 AM ---------------------------
James_Shanks@tivoli.com@tkg.com on 04/07/2000 06:57:31 AM
Please respond to IBM NetView Discussion <nv-l@tkg.com>
Sent by: owner-nv-l@tkg.com
To: IBM NetView Discussion <nv-l@tkg.com>
cc:
Subject: Re: [NV-L] how do I load the traps for a new enterprise
Ken -
Most of the MIB tools provided in NetView expect that the user is very
familiar
with MIB syntax and usage, and as such they do not go into detail about MIB
constructs. But unless a MIB contains TRAP-TYPE statements, or
NOTIFICATION-TYPE statements, then it does not define a trap, and there is
nothing for mib2trap to do. Many MIBs contain information about variables
the
MIB agent will populate, and that you can obtain via snmpGet, but that does
not
mean that the agent will send a trap if those values change.
James Shanks
Tivoli (NetView for UNIX and NT) L3 Support
"Ken Karasek" <KGKARASE@hewitt.com> on 04/06/2000 06:36:14 PM
Please respond to IBM NetView Discussion <nv-l@tkg.com>
To: IBM NetView Discussion <nv-l@tkg.com>
cc: (bcc: James Shanks/Tivoli Systems)
Subject: Re: [NV-L] how do I load the traps for a new enterprise
Thanks James, this is not clear in the MAN page for mib2trap.
After reviewing several MIB files, including IBM's, it appears most are
based as
OBJECT_TYPE. Is there a reason that the mib2trap file only looks for
TRAP_TYPE
or NOTIFICATION-TYPE and wouldn't include the others? Most of the other
keywords mib2trap looks for seem to be present.
It looks like the only recourse is addtrap from here.
|