On 25 May 2012 07:03, Vincent Bernat <[email protected]> wrote: >>> I would like to issue an internal GET request. > >> Try >> netsnmp_query_get( netsnmp_variable_list *list, >> netsnmp_session *session)
> I am unsure on how to use it. If I use a regular session, I will query > myself through the network with snmp_synch_response() and will get > stuck since I won't be in a state where I can process incoming requests. Don't use a regular session - use a "callback" session. Have a look at agent/mibgroup/disman/event/ This uses internal queries to retrieve the object(s) being monitored. The simplest would be to use netsnmp_query_get_default_session() to retrieve the internal callback session, though you may need to ensure that it's properly configured. (See 'man snmpd.conf(5)' and look for iqueryUser) Dave ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users
