Re: How to manipulate variables outside of SNMP gets / sets?

2013-01-22 Thread Guillermo Veneranda
Hi, I try what you say and... It's Works! :) Let's go now for the SET! Thanks Dave and Claus for your time and help Regards. Guille $ snmptranslate -IR -Of netSnmpExampleIntegerII.0 .iso.org.dod.internet.private.enterprises.netSnmp.netSnmpExamples.netSnmpExampleScalars.netSnmpExampleIntegerII.0

agentx/master: unexpected callback op 4 message

2013-01-22 Thread Claus Klein
Hi, when I stop, and start the agentx master agent again while the agentx client is still running, I got this messages: NET-SNMP version 5.4.4 agentx/master: unexpected callback op 4 agentx/master: handle pdu (req=0x166,trans=0x0,sess=0x0) agentx/master: open 0x451500 agentx/master: opened 0x

missing macro timerisset() while crosscompile

2013-01-22 Thread Claus Klein
Hi, I had an unresolved function timerisset() with net-snmp v5.4.4 code with our embeded OS. Looking around, I found more then one definitions of this macros, but timerisset() was missing. This patch helps and prevent warnings of unused vars at snmplib/ snmp_api.c. fix_missing_timeri

Re: Problem in receiving traps

2013-01-22 Thread Dave Shield
On 22 January 2013 10:23, Geet Bhatia wrote: > I am trying to build a simple C trap receiver. Is there any reason why you don't wish to use the standard 'snmptrapd' application? > Here I am calling function netsnmp_transport_open_server with application > name and udp:162 as parameters. But thi

Problem in receiving traps

2013-01-22 Thread Geet Bhatia
Hi, I am trying to build a simple C trap receiver. Here I am calling function netsnmp_transport_open_server with application name and udp:162 as parameters. But this function is returning NULL every time. I am not able to find the problem. Please tell me what could be the possible problem. Thank

Re: How to manipulate variables outside of SNMP gets / sets?

2013-01-22 Thread Dave Shield
On 21 January 2013 20:20, Guillermo Veneranda wrote: > Hi, > I'm reading the files examples/netSnmpHostsTable* but I find these quite > difficult to understand, This is going to take a while. Maybe I should try > something easier that use subhandler function. > > Could you please show me a sim