2009/2/13 B V Narasimhulu <[email protected]>:
> >From my code, the mib is displyes as (IF-MIB::ifTable.2.1.7.1 = INTEGER: 1)
Where does that '2' come from?
The OID of ifAdminStatus is IF-MIB::ifTable.1.7
> My code snapshot is:
> --------------------
> ....
> {IFADMINSTATUS, ASN_INTEGER, RWRITE, var_ifEntry, 3, {2, 1, 7}},
> .....
Get rid of the '2'
You probably need
{IFADMINSTATUS, ASN_INTEGER, RWRITE, var_ifEntry, 2, {1, 7}},
(assuming you want to stick with the old-fashioned v4 UCD-style code).
> I have found the same code snapshot even in the net-snmp interface.c file.
interface.c is implementing the *whole* of the interface group,
not just the ifTable. The OID that it registers, and the per-object suffixes
in the variable3 structre reflect this.
That code has also been superceded by 'mibgroup/if-mib'
which uses a very different style of coding.
Dave
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders