Hi Magnus,
Thanks for your response on this. I tried my hands on the delayed_instance
example but when I fire the following snmpget command: snmpget -v 2c -c
public 172.16.105.14 1.3.6.1.4.1.8072.2.1.2.0 , I happen to get this as the
result:
NET-SNMP-MIB::netSnmp.2.1.2.0 = No Such Object available on this agent at
this OID
I am not able to debug why my OID is not getting registered with snmpd. I
have used the delayed_instance.c and delayed_instance.h files from the
netSNMP site. I couldnt find the MIB for this example and I believe once the
code is generated for a MIB, we dont need the MIB file itself. Or is it that
we need to keep the respective MIB file at certain path.
Any pointers from you in this regard will be helpful. Thanks.
Shivani
On 5/31/07, Magnus Fromreide <[EMAIL PROTECTED]> wrote:
On ons, 2007-05-30 at 14:28 +0530, Shivani Garg wrote:
> Hi,
>
> I am building a netSNMP sub-agent which accepts SNMP Get from master
> daemon and has to forward the request to an external process (say
> myModule). My sub-agent will wait for a response to this SNMP Get from
> myModule and will fill the values for objects in var_<myObject>()
> functions { which are generated by mib2c for my MIB }. To achieve
> this, I want to send a UDP buffer to myModule and make a call to
> select() inside var_<myObject>() function.
This sounds like a job for a delegated handler.
Please see agent/mibgroup/examples/delayed_instance.c for an example.
/MF
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders