>>>>> "N" == Nicky  <[EMAIL PROTECTED]> writes:

N> Dear net-snmp coders: The function snmp_varlist_add_variable can be
N> used to add a variable to the notification_vars.I can add my define
N> oid and its value to notification_vars.But if I want to add the
N> implemented oid by net-snmp and the net-snmp's value,how do I get
N> these values?For example,if I want to add
N> sysLocation,sysContact,sysUptime,and so on to the notification pdu,I
N> don't know how to get their values by code(Of course,I can parser the
N> snmpd.conf ^_^) .Some function can be called with OID parameter as a
N> input,or use another way?Thanks everybody.

You need to go look in the code for the objects you want to return and
do similar work in your code to get the value.  Or add a better wrapper
function that you can call from you code.
-- 
Wes Hardaker
Sparta, Inc.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to