2009/5/4 Kang Chen <[email protected]>:
> I use the mib2c.iterator.conf to generate the c code, and in the function
> initialize_table_exampleTable(), I add
>     reg->contextName = strdup("interface")

Yup - that looks about right.

Just to make sure, try walking the nsModuleName object.
You should see something registered for your "interface"
context (as well as all of the standard stuff).

> But when I try to get some information within this table, snmpd hints ‘Error
> in packet
>
> Reason: authorizationError (access denied to that object)’

That may well be access control, then.
Please post the full snmpd.conf file (suitably sanitised, if need be),
so we can check it looks OK.

Dave

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to