>>>>> On Wed, 24 Nov 2004 12:28:15 -0800, "Fong Tsui" <[EMAIL PROTECTED]> said:

Fong> 1) register callback function and open a callback session in init_XXX
Fong> function
Fong> If it is inside a subagent, what callback_master_num should be in
Fong> netsnmp_callback_open()?

The same as a master.  Note: you can not query the master agent using
a callback.  You can only query yourself.

Fong> 3) call snmp_synch_response() to get a response. From here, get the
Fong> value of the OID.

Yes, but calling snmp_async_send would actually be better off.  In
fact, synch may even lead to problems.  This is actually what the
agentx code does internally.  And the proxy code.  The mte code should
actually be rewritten to support this (sigh).

-- 
Wes Hardaker
Sparta


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
Net-snmp-coders mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to