> If you don't have the MIB - then there is no way to (automatically) convert
> OIDs to names.   That's the main purpose of the MIB file - without that,
> there's nothing for the APIs to work with.

I was thinking, the registration functions like snmp_AddMibToListInternal(We 
are using net-SNMP 5.4.1 ), I can use to print the OIDs as well as the names.
But looks like there is no data structure that links a OID name to its numeric 
counterpart.
The nearest thing that I can get is from which module that a particular object 
is being registered.

> Is this a MIB module that your group has written yourselves?
> Or is it something from elsewhere?
> Do you have the source code for the MIB module, or just binaries?
> What are the OIDs that you are concerned with?

No, the MIB modules are written by my group.
I have the source code.
The OIDs that I am working are enterprises OIDs.

-----Original Message-----
From: dave.shi...@gmail.com [mailto:dave.shi...@gmail.com] On Behalf Of Dave 
Shield
Sent: Tuesday, August 07, 2012 6:29 PM
To: Siva Esana -X (sesana - Tech Mahindra at Cisco)
Cc: net-snmp-coders@lists.sourceforge.net
Subject: Re: OID name to numeric mapping.

On 7 August 2012 13:09, Siva Esana -X (sesana - Tech Mahindra at
Cisco) <ses...@cisco.com> wrote:
> The situation is we do not have MIB files as such and I want to generate the 
> MIB from the code.
> Some kind of reverse engineering the MIB to say...

If you don't have the MIB - then there is no way to (automatically) convert
OIDs to names.   That's the main purpose of the MIB file - without that,
there's nothing for the APIs to work with.

Is this a MIB module that your group has written yourselves?
Or is it something from elsewhere?
Do you have the source code for the MIB module, or just binaries?

What are the OIDs that you are concerned with?


Dave

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to