Re: SNMPv1 traps in SMIv2 MIB (TRAP-TYPE to NOTIFICATION-TYPE)
- From: "Dr. Juergen Schoenwaelder" <schoenw@xxxxxxxxxxxxxxx>
- Date: 25 Feb 2008 17:46:09 GMT
eric.voisard@xxxxxxxxx wrote:
I'm trying to make an SMIv2 MIB for an SNMPv1 agent, therefore I must
translate the TRAP-TYPE to NOTIFICATION-TYPE.
I used the rule in RFC2576: take the SNMPv1 trap's ENTERPRISE OID,
append a .0 and then the enterprise specific trap number.
In my case, the SNMPv1 agent's ENTREPRISE parameter is not simply the
enterprise OID but it has a .2 appended (afaik, it's allowed). A
simplified SMIv1 MIB would look something like:
[...]
This translates back to SMIv1 as follows (smidump output):
myTraps OBJECT IDENTIFIER
::= { my 2 }
myTrapPrefix OBJECT IDENTIFIER
::= { myTraps 0 }
myTrap8 TRAP-TYPE
ENTERPRISE myTraps
-- STATUS mandatory
DESCRIPTION
"Test trap, specific number 8"
::= 8
myTrap9 TRAP-TYPE
ENTERPRISE myTraps
-- STATUS mandatory
DESCRIPTION
"Test trap, specific number 9"
::= 9
I guess this is indeed what you wanted.
I've loaded this MIB onto two different SNMP Managers (Network
Instruments' Observer and MG Soft's MIB Browser) and then I sent fake
SBMPv1 traps identical to the real agent's ones. While both managers
indeed received the traps, they have been unable to translate them. I
don't know if it's due to an error in my MIB or if the managers are
simply not capable of doing the translation...
Not sure what you mean by "translate them". The MIB module looks fine
as far as I can tell.
/js
--
Juergen Schoenwaelder Jacobs University Bremen gGmbH
Phone: +49 421 200 3587 Campus Ring 1, 28759 Bremen, Germany
Fax: +49 421 200 3103 <http://www.jacobs-university.de/>
.
- References:
- SNMPv1 traps in SMIv2 MIB (TRAP-TYPE to NOTIFICATION-TYPE)
- From: eric . voisard
- SNMPv1 traps in SMIv2 MIB (TRAP-TYPE to NOTIFICATION-TYPE)
- Prev by Date: SNMPv1 traps in SMIv2 MIB (TRAP-TYPE to NOTIFICATION-TYPE)
- Next by Date: I have some questions for using agent++.(SNMP Tool)
- Previous by thread: SNMPv1 traps in SMIv2 MIB (TRAP-TYPE to NOTIFICATION-TYPE)
- Next by thread: Re: SNMPv1 traps in SMIv2 MIB (TRAP-TYPE to NOTIFICATION-TYPE)
- Index(es):
Relevant Pages
- [NEWS] Linksys Routers Found to be Vulnerable to SNMP Issues
... Enterprise Specific Trap Uptime: 2 days, 19:00:23.36, ... Linksys
MIBS found on the Internet id'd/confirmed the software switch as: ... (Securiteam) - Re: Event to Trap Translator reports "Unknown" for category
... I've configured the Windows Event To Translator to send traps for system ...
We receive a trap with the enterprise id set to the ascii code of the ... the 2nd varbind
of the trap reports "Unknown" where I ... The 1st varbind is the correct message
text and the third is the correct ... (microsoft.public.win32.programmer.networks)