> On 25/03/2008, Mike Ayers <[EMAIL PROTECTED]> wrote: >> Please clarify - there is no "ping" in SNMP. What exactly are >> you doing. > > Remember that Olivier is using the "pass_persist" mechanism. > The initial handshake uses a "PING"/"PONG" request/response. > (See snmpd.conf(5)). > > It sounds as if this is working, but the subsequent SNMP requests > are not. > > Olivier, > the thing that worries me slightly is that you say you are using > version 5.0.7. This is a *very* old release (and not even the most > recent on the 5.0.x line). > It would probably be worth installing 5.4.1, and trying the same > pass_persist script. If nothing else, this would indicate whether > your problem is related to the version of Net-SNMP you are using, > or your Solaris environment. > > It might also be worth running the agent using > snmpd -f -Le -Ducd-snmp/pass_persist > > and see what that reports. > > Dave >
Thanks for your help, I've run the snmpd daemon with those option and get the following messages : (/tmp)# /usr/local/sbin/snmpd -f -L -Ducd-snmp/pass_persist NET-SNMP version 5.0.7 ucd-snmp/pass_persist: open_persist_pipe(1,'/export/home/ncadmin/selfmon/bin/NSExtend.pl -c /export/home/ncadmin/selfmon/conf/selfmonitor.conf -d 9 -l /tmp/NSExtend.log 2>>/tmp/stderr_NSExtend.log') ucd-snmp/pass_persist: persistpass-sending: get .1.3.6.1.4.1.776.102.3.1.1.3.1 So my script obvoiusly answers the the first PING\n request properly, in the logs of my script I see the following [2008/03/26 11:55:44] HELLO: NExtend.pl started [2008/03/26 11:55:44] CORE: MAIN: Starting main loop [2008/03/26 11:55:44] CORE: MAIN: starting a new read loop [2008/03/26 11:55:44] REQUEST: recieved: PING [2008/03/26 11:55:44] Ouput to STDOUT: PONG [2008/03/26 11:55:44] REQUEST: recieved: get [2008/03/26 11:55:44] REQUEST: got a GET or GETNEXT request [2008/03/26 11:55:44] REQUEST: requested OID: .1.3.6.1.4.1.776.102.3.1.1.3.1 [2008/03/26 11:55:44] Tested OID: 1 [2008/03/26 11:55:44] LIB: DEBUG: Found .1.3.6.1.4.1.776.102.3.1.1.3.1 entry in the support hashtable [2008/03/26 11:55:44] Output to STDOUT: .1.3.6.1.4.1.776.102.3.1.1.3.1 [2008/03/26 11:55:44] Output to STDOUT: string [2008/03/26 11:55:44] Output to STDOUT: squirm [2008/03/26 11:55:44] CORE: MAIN: NSExtend terminated cannot read from STDIN And when I launche the script by hand with the exact same commande I can keep on sending it get request successfully ... Thanks all for your help ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ 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
