The value is stored at *(requests->requestvb->val.integer); so you might
copy that value in your handler function in the case MODE_SET_ACTION.



________________________________

Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von
Hals, Daniel
Gesendet: Mittwoch, 17. September 2008 19:07
An: [email protected]
Betreff: Subagent handler function



I have a question regarding writing a handler function for use within a
subagent program.  I have registered my handler with the
netsnmp_create_handler_registration function.  I can handle any get
requests but I am having trouble with the set requests.  How can I
determine the value passed into the snmpset call within the handler
function?  For instance, say the following command was issued: "snmpset
-v1 -c public localhost testOID.0 i 3"  How can I retrieve the 3 within
the handler function?



Thanks,
Daniel

* * *
Hirschmann Automation and Control GmbH, Neckartenzlingen
Register court: Stuttgart, Trade register No.: HRB 225927
VAT No.: DE 814 212 604
Managing Director: Dr. Wolfgang Babel
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to