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.9999.9999.1.1 successfully
in the other terminal. I do not remember seeing anything that said you
have to run snmpd in the foreground for pass_persist to work. Does
anyone know how to make pass_persist work without running snmpd in the
foreground or is this required? 

Thank you, 

David Durham 

-------- Original Message -------- 

                SUBJECT:
                Fwd: pass_persist with ksh script timeout

                DATE:
                2015-02-02 18:33

                FROM:
                clearc...@lycos.com

                TO:
                net-snmp-users@lists.sourceforge.net

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.9999.9999

Thank you for any help or insight. 

-------- Original Message -------- 

                SUBJECT:
                pass_persist with ksh script timeout

                DATE:
                2015-02-02 16:23

                FROM:
                clearc...@lycos.com

                TO:
                net-snmp-users@lists.sourceforge.net

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.9999.9999 "/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 

-> PONG 

<- get 

<- .1.3.6.1.4.1.8072.9999.9999.1.1 

-> .1.3.6.1.4.1.8072.9999.9999.1.1 

-> integer 

-> 35

<- getnext 

<- .1.3.6.1.4.1.8072.9999.9999.1.1 

-> .1.3.6.1.4.1.8072.9999.9999.1.2 

-> integer 

-> 21 

but when I try to snmpget -v 2c -c public 127.0.0.1
.1.3.6.1.4.1.8072.9999.9999.1.1 from the command line, I get
'NET-SNMP-MIB::monoCount = No Such Instance currently exists at this
OID' 

I also tried modifying the script so it works like this when run with
stdbuf from the command line: 

<- PING 

-> PONG 

<- get 

<- .1.3.6.1.4.1.8072.9999.9999.1.1 

-> .1.3.6.1.4.1.8072.9999.9999.1.1 

-> integer 

-> 35

<- PING 

-> PONG 

<- getnext 

<- .1.3.6.1.4.1.8072.9999.9999.1.1 

-> .1.3.6.1.4.1.8072.9999.9999.1.2 

-> integer 

-> 21 

but I still get 'NET-SNMP-MIB::monoCount = No Such Instance currently
exists at this OID'. 

Can anyone help troubleshoot what I am doing wrong? 

Thank you,David Durham 
 
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to