pass_persist timing out!?

Jean-Sebastien Morisset <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi everyone,

I wrote a script that was working very well with the "pass" config
option. In order to improve it's speed (mostly perl load times), I
changed it to support the "pass_persist" option instead. As I understand
this config option, the script should run like so (note: I manually
added the ">" and "<" prefix to show input/output):

# ./snmp-psbyname-persist.pl
> PING
< PONG
> GET
> .1.3.6.1.4.1.8072.100.1.4.7.13
< .1.3.6.1.4.1.8072.100.1.4.7.13
< integer
< 1045
> QUIT
#

I added support for a QUIT/EXIT command just to make it nicer. The man
page doesn't explain how Net-SNMP will terminate the running script, but
I expect it just kills it instead of issuing a QUIT/EXIT command.

When I add the pass_persist script to Net-SNMP, I get the following
result:

# snmpget -c * -O s -v 2c devunix7 .1.3.6.1.4.1.8072.100.1.4.7.13
Timeout: No Response from devunix7.

It works fine manually though... Any ideas where I might have gone
wrong? :-)

Thanks!
js.
-- 
Jean-Sebastien Morisset, Sr. UNIX Administrator <[email protected]>
Personal Home Page <http://jsmoriss.mvlan.net/>
Underwater and Travel Photographs <http://www.mvpix.com/>


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.