Re: IP-MIB: ipSystemStatsTable working but ipIfStatsTable not working

2012-08-07 Thread Madhu Sudhana Rao
I enabled --enabled-ipv6 in ./configure script but still didn't see anything while snmpwalking ipIfStatsTable... I found the below code in ip-mib/ , it looks like either ipSystemStatsTable or ipIfStatsTable will be loaded for both ipv4 ipv6, is this true? .. /* * Based on load_flags, load

OID name to numeric mapping.

2012-08-07 Thread Siva Esana -X (sesana - Tech Mahindra at Cisco)
Hi All, We have a product running net-snmp. I would like to know whether the net-snmp derives and keeps an array of all the OID names to OID number. I know a simple walk from the root will give all the OIDs implemented in this agent. But what I am interested is the OID name to numeric

Re: OID name to numeric mapping.

2012-08-07 Thread Dave Shield
On 7 August 2012 12:16, Siva Esana -X (sesana - Tech Mahindra at Cisco) ses...@cisco.com wrote: I would like to know whether the net-snmp derives and keeps an array of all the OID names to OID number. I know a simple walk from the root will give all the OIDs implemented in this agent. But

RE: OID name to numeric mapping.

2012-08-07 Thread Siva Esana -X (sesana - Tech Mahindra at Cisco)
Hi Dave, But do the net-snmp agent also keeps the mapping array for its own purpose? I know some agent keeps an array where it maps all the OID names and the associated numeric identifiers. Likewise do net-snmp maintains any such array of all the registered objects? For example, {

Re: OID name to numeric mapping.

2012-08-07 Thread Dave Shield
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

RE: OID name to numeric mapping.

2012-08-07 Thread Siva Esana -X (sesana - Tech Mahindra at Cisco)
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

Re: OID name to numeric mapping.

2012-08-07 Thread Dave Shield
On 7 August 2012 15:59, Siva Esana -X (sesana - Tech Mahindra at Cisco) ses...@cisco.com wrote: No, the MIB modules are written by my group. I have the source code. The OIDs that I am working are enterprises OIDs. If these are enterprise OIDs being written by your own group, then I would have