[Top] [All Lists]

Re: [nv-l] snmpv2 and mib2trap

To: nv-l@lists.tivoli.com
Subject: Re: [nv-l] snmpv2 and mib2trap
From: jshanks@us.ibm.com
Date: Wed, 26 Jun 2002 11:57:36 -0400
You are mistaken about what the error message means.  This has nothing to 
do with Notification-Type.  It means that your MIB is incomplete.
In order for mib2trap to work correctly, your MIB file must define your 
enterprise starting with iso.org.dod.internet.private.enterprises number. 
That what it is looking for. 
For example, in a Cisco MIB you would need to find
        cisco   OBJECT IDENTIFIER ::= { enterprises 9 }
and whatever else is required to define the entire OID that this MIB 
refers to.  For example, the MIB might define a sub-class from there, such 
        ciscoMgmt  OBJECT IDENTIFIER ::= { cisco  9 } 
as well. If your MIB starts with something like  " xxx  OBJECT IDENTIFIER 
::= { ciscoMgmt  n }", then mib2trap would need to find both 
        cisco   OBJECT IDENTIFIER ::= { enterprises 9 }
        ciscoMgmt  OBJECT IDENTIFIER ::= { cisco  9 } 
in the MIB file in order to determine the correct enterprise id.
        Since mib2trap works on an individual MIB file, and not on the 
compiled database, if part of the OID tree is missing, because it is in 
some other MIB, you get the message that the enterprise id cannot be 

What to do?   Either of two things.  Look at the IMPORTS section of the 
MIB and determine what other MIBs from the same vendor are required to 
parse this one.  Then obtain them and concatenate them in order into one 
big MIB file for mib2trap to work on.  Or look in those prior MIBs and 
find the enterprise definitions required and add them by edit to the MIB 
you have so that mib2trap can find it the complete OID beginning with 

Still unsure?  Support will be glad to help you, or you can tell us all 
what MIB(s) you are having difficulty with (and what level of NetView you 
have) and  what's in the imports section and maybe someone else can 
suggest the remedy.

James Shanks
Level 3 Support  for Tivoli NetView for UNIX and NT
Tivoli Software / IBM Software Group

"Brad Martin" <bmartin@MetLife.com>
06/26/2002 11:08 AM

        To:     nv-l@lists.tivoli.com
        cc:     "Peter Kalamaras" <pkalamaras@MetLife.com>
        Subject:        [nv-l] snmpv2 and mib2trap


I'm trying to convert an snmpv2 MIB file to addtrap commands, but the
mib2trap utility is complaining that the enterprise id is missing? From
what I can tell, the standard for Notification-Type doesn't include the
keyword Enterprise like the TRAP-TYPE did in snmpv1. If this is true, how
do you determine the enterprise id?

Brad Martin

To unsubscribe, e-mail: nv-l-unsubscribe@lists.tivoli.com
For additional commands, e-mail: nv-l-help@lists.tivoli.com

This is not an Offical Tivoli Support forum. If you need immediate
assistance from Tivoli please call the IBM Tivoli Software Group
help line at 1-800-TIVOLI8(848-6548)

<Prev in Thread] Current Thread [Next in Thread>

Archive operated by Skills 1st Ltd

See also: The NetView Web