This is a discussion on Re: 5.4.1 won't talk within the SNMP Coders forums, part of the Networking and Network Related category; --===============0219880646== Content-Type: multipart/alternative; boundary="----=_Part_7723_28029747.1208373820445" ------=_Part_7723_28029747.1208373820445 Content-Type: text/plain; charset=ISO-8859-1 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============0219880646==
Content-Type: multipart/alternative; boundary="----=_Part_7723_28029747.1208373820445" ------=_Part_7723_28029747.1208373820445 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline /etc/edgeware-subagent.pl IS the subagent. I think the "perl do" thing was an attempt to trigger the starting of the subagent from within the running of the agent via the the snmpd.conf file; but now we trigger snmpd and edgeware-subagent.pl in sequence, each explicitly in the Linux startup script. The latter worked for net-snmp 5.2.1 ; I'm not sure the "perl do" ever worked (it was before my time). I tried it again using underscore in place of dash, and it still said Bareword and did not start the subagent (according to ps ax). Starting the subagent by hand gave same results as before. Where is the code by which the agent is supposed to learn about the subagent's subtree? All I see is "$agent->register" called by the subagent. It seems to relate to "sub new" in perl/agent/agent.pm but I can't trace it any farther; somewhere in the codebase surely it must trigger a communication, presumably across the socket "master", to tell the agent it exists? Larry On 4/16/08, Dave Shield <D.T.Shield@liverpool.ac.uk> wrote: > > On 16/04/2008, Larry Dickson <ldickson@cuttedge.com> wrote: > > the next three are after I took out the "perl > > do" line, which I do not understand the need of > > What is in this file? > It certainly sounds as if it might be relevant to subagent processing? > > Try renaming the file to be /etc/edgeware_subagent.pl > (and tweak the snmpd.conf file accordingly). > That should keep the perl interpreter happy. > > > > > > There is nowhere any hint that the agent has learned about our subtree > > (22782), even though we call "my $regoid = new > > NetSNMP::OID('.1.3.6.1.4.1.22782')" and later register the subagent. > > Try running the (master) agent with '-Dagentx' > What does that display? > > Dave > ------=_Part_7723_28029747.1208373820445 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline <div>/etc/edgeware-subagent.pl IS the subagent. I think the "perl do" thing was an attempt to trigger the starting of the subagent from within the running of the agent via the the snmpd.conf file; but now we trigger snmpd and edgeware-subagent.pl in sequence, each explicitly in the Linux startup script. The latter worked for net-snmp 5.2.1 ; I'm not sure the "perl do" ever worked (it was before my time). I tried it again using underscore in place of dash, and it still said Bareword and did not start the subagent (according to ps ax). Starting the subagent by hand gave same results as before.</div> <div> </div> <div>Where is the code by which the agent is supposed to learn about the subagent's subtree? All I see is "$agent->register" called by the subagent. It seems to relate to "sub new" in perl/agent/<a href="http://agent.pm">agent.pm</a> but I can't trace it any farther; somewhere in the codebase surely it must trigger a communication, presumably across the socket "master", to tell the agent it exists?</div> <div> </div> <div>Larry<br><br> </div> <div><span class="gmail_quote">On 4/16/08, <b class="gmail_sendername">Dave Shield</b> <<a href="mailto:D.T.Shield@liverpool.ac.uk">D.T.Shiel d@liverpool.ac.uk</a>> wrote:</span> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On 16/04/2008, Larry Dickson <<a href="mailto:ldickson@cuttedge.com">ldickson@cutte dge.com</a>> wrote:<br> > &nbs p; the next three are after I took out the "perl<br>> do" line, which I do not understand the need of<br><br>What is in this file?<br>It certainly sounds as if it might be relevant to subagent processing?<br> <br>Try renaming the file to be /etc/edgeware_subagent.pl<br>(and tweak the snmpd.conf file accordingly).<br>That should keep the perl interpreter happy.<br><br><br><br><br>> There is nowhere any hint that the agent has learned about our subtree<br> > (22782), even though we call "my $regoid = new<br>> NetSNMP::OID('.1.3.6.1.4.1.22782')" and later register the subagent.<br><br>Try running the (master) agent with '-Dagentx'<br>What does that display?<br> <br>Dave<br></blockquote></div><br> ------=_Part_7723_28029747.1208373820445-- --===============0219880646== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757...un.com/javaone --===============0219880646== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders --===============0219880646==-- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|