how to pass args to C program in snmptrapd.conf ?

2005-06-12 Thread wanxia qu
hi,all   I want to call a C program to handle supposed traps, and also know it should be configured in snmptrapd.conf as follow: traphandle OID program args   but  how to define the args passed to C program? Is there any examples avaliable?   environment: Net-snmp version:  win32 binary release of

why snmpget always returned "timeout' ?

2005-06-06 Thread wanxia qu
hello,everyone   I install win32 binary release of Net-SNMP 5.2.1, and start it from command line as follow:   net start "Net-SNMP Agent"   And, "NET START" command also displays Net-SNMP Agent is started.   But when issuing any snmpget, "Timeout:No Response from localhost" is returned.   What sho

Now, traps directly using IP address of NMS, are received as quickly as those using 'localhost' ?

2005-06-02 Thread wanxia qu
hello,everyone   Traps ,using IP address of NMS in snmptrap command directly, are received very slowly, so I suspect it's related with DNS. Aftering adding the followig lines to DNS, traps, sent from localhost and wxqu, which using IP address of NMS, reach NMS immediately !    172.26.4.44  localhos

traps directly using IP address of NMS, are received more slowly than those using 'localhost' on the same machine?

2005-06-01 Thread wanxia qu
 good morning,everyone:   I replaced "localhost" with the IP address of the NMS(172.26.4.44), and  it works. But snmptrapd received it very slowly,after about 20 seconds!   The snmptrapd.conf, under /usr/local/etc/snmp, includes the following statement:    traphandle 1.3.6.1.4.1.705 /usr/wxqu/mypr

traps, directly using IP address of NMS, are received more slowly than those using 'localhost' on the same machine?

2005-05-31 Thread wanxia qu
hi,all I replaced "localhost" with the IP address of the NMS(172.26.4.44), and  it works. But snmptrapd received it very slowly,after about 20 seconds! :-( The snmptrapd.conf, under /usr/local/etc/snmp, includes the following statement:    traphandle 1.3.6.1.4.1.705 /usr/wxqu/mypro/ups-trap-handle.

problem is solved "traps are sent to local, rather than their destination"!

2005-05-31 Thread wanxia qu
i replace "localhost" with the IP address of the NMS(172.26.4.12) in snmptrapd, and it works very well. Thanks for Thomas and Dave. ---------wanxia qu wrote:> But how can i send this trap to d

traps are sent to local, rather than their destination?

2005-05-31 Thread wanxia qu
hi,all   i have generated a snmpd.conf , using snmpconf script, and moved it to /usr/local/share/snmp and /usr/local/etc/snmp. In this configure file, there are three lines: trapsink   172.26.4.12trap2sink   172.26.4.12informsink  172.26.4.12   But when i issue the following trap, it was received