Tried the patch , and it did worked for TRAP-TYPE, but it is creating entries
as TRAP-TYPE for the parent module of the Traps i.e.
For the MIB below:
************************************************************************************************************************
MUSE-DEFAULT-NBI DEFINITIONS ::= BEGIN
IMPORTS
OBJECT-TYPE FROM RFC1155-SMI
TRAP-TYPE FROM RFC-1215
enterprises, NetworkAddress,IpAddress, Counter, Gauge,
TimeTicks
FROM RFC1155-SMI;
-- In order for this trap to work correctly, the snmp trap forwarder
-- must be used with the following gate writer configuration:
--
-- START WRITER SNMP_WRITER
-- (
-- TYPE = SNMP,
-- REVISION = 1,
-- GATEWAY = 'myManager',
-- MAP = SNMP_MAP
-- OID = '1.3.6.1.4.1.1279.20'
-- );
microMuse OBJECT IDENTIFIER ::= { enterprises 1279 }
museSnmpTrapForwarder OBJECT IDENTIFIER ::= { microMuse 20 }
museDefaultTrap TRAP-TYPE
ENTERPRISE museSnmpTrapForwarder
--VARIABLES { museIdentifier, museSerial, museNode,
museNodeAlias, museManager, museAgent,
museAlertGroup,museAlertKey,museSeverity,museSummary,
museStateChange,museFirstOccurrence,museLastOccurrence,museInternalLast,musePoll,museType,museTally,museClass,museGrade,museLocation,museOwnerUID,museOwnerGID,
museAcknowledged,museFlash,museServerName,museServerSerial }
DESCRIPTION
"All information regarding an event which exists in the
OMNIbus alerts.status table."
--REFERENCE
--"http://support.micromuse.com/documentation/supplementals/gateways/SNMP.pdf"
::= 1
END
************************************************************************************************************************
After executing snmpTranslate with the patch provided we get the proper
TRAP-TYPE but the Object-Identifier is getting converted into TRAP-TYPE i.e.
museSnmpTrapForwarder
museSnmpTrapForwarder# TRAP-TYPE
-- FROM MUSE-DEFAULT-NBI
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1)
microMuse(1279) museSnmpTrapForwarder(20) 0 }
Waiting for your reply
Regards,
Nitin R.
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Dave Shield
Sent: Monday, May 17, 2010 5:13 PM
To: Rathod, Nitin
Cc: [email protected]
Subject: Re: snmpTranslate
On 17 May 2010 11:48, Rathod, Nitin <[email protected]> wrote:
> I'm using snmptranslate utility for converting MIB
> files into textual description specially for TRAPS. But using the
> snmpTranslate utility netsnmp version 5.5 it is unable to convert
> TRAP-TYPE data types. It is successfully able to convert the
> NOTIFICATION-TYPE.
>
> Instead for TRAP-TYPE it is converting it to OBJECT-TYPE.
Try the attached patch.
Dave
------------------------------------------------------------------------------
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders