pass_persist with ksh script timeout

2015-02-02 Thread clearcom0
Hello, I am trying to extend snmpd with a ksh script on netbsd. The line I have in snmpd.conf is: pass_persist .1.3.6.1.4.1.8072.. /usr/pkg/bin/stdbuf --input=0 --output=0 --error=0 /root/kshtest When I run my script with stdbuf from the command line, it works like so: - PING

Fwd: pass_persist with ksh script timeout

2015-02-02 Thread clearcom0
Hello again, Well, I found that if I run 'snmpd -f' from another terminal, and just leave it in the foreground on that terminal, I can then run my snmpget -v 2c -c public 127.0.0.1 .1.3.6.1.4.1.8072...1.1 successfully in the other terminal. I do not remember seeing anything that said

Fwd: pass_persist with ksh script timeout

2015-02-02 Thread clearcom0
Hello, I forgot to mention that I also have the following line in snmpd.conf: view all included .1.3.6.1.4.1.8072.. Thank you for any help or insight. Original Message SUBJECT: pass_persist with ksh script timeout

Fwd: pass_persist with ksh script timeout

2015-02-02 Thread clearcom0
My final question: snmpwalk -v 2c -c public .1.3.6.1.4.1.8072.. returns 'NET-SNMP-MIB::netSnmpPlaypen = No Such Instance currently exists at this OID' and snmpwalk -v 2c -c public .1.3.6.1.4.1.8072...1.1 returns 'NET-SNMP-MIB::monoCount = INTEGER: 35' - which is the same

Re: snmptrap unsigned type not working as expected

2015-02-02 Thread Bill Fenner
On Sun, Feb 1, 2015 at 5:40 AM, Ashwini Pagade ashwinipag...@gmail.com wrote: Hi Bill, Thank you for your response. I think it is not just the dump/log error and incorrect value is propagated further down the line. I have an snmpV3 adapter which receives the value. This adapter too gets

Re: snmptrap unsigned type not working as expected

2015-02-02 Thread Ashwini Pagade
Hi Bill, I found below line is priting the wroung value. DEBUGMSG((dumpv_recv, UInteger:\t%ld (0x%.2lX)\n, value, value)); Changing %ld to %lu in above line worked for me. I am also considering SNMPV3 adapter code which might be doing the wrong conversion. Thank you..!! Ashwini On 2

net-snmp 5.2.1 64bit issue

2015-02-02 Thread Abhayadev S
Hi, I was using the 5.2.1 version on 32bit x86 and now i need to use the same software on a x86_64 machine running suse 13.1. I am trying to bring-up the net-snmp and traps in it but facing issues. Upon research found that some fixes have been added to this code to make it work on 64bit machine

net-snmp 5.7.3 lmsensors numeration

2015-02-02 Thread Andrew
Hi. Why sensors are numbered globally, not per-group? In 5.4.2.1 sensors had per-group index numeration: LM-SENSORS-MIB::lmTempSensorsIndex.1 = INTEGER: 0 LM-SENSORS-MIB::lmTempSensorsIndex.2 = INTEGER: 1 LM-SENSORS-MIB::lmTempSensorsIndex.3 = INTEGER: 2 LM-SENSORS-MIB::lmTempSensorsIndex.4 =