Re: 5.4.1 won't talk

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


Go Back   Usenet Forums > Networking and Network Related > SNMP Coders

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2008
Larry Dickson
 
Posts: n/a
Default Re: 5.4.1 won't talk

--===============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 &quot;perl do&quot; thing was an attempt to trigger the starting of the subagent from within the running of the agent via the&nbsp;the snmpd.conf file; but now we trigger snmpd and edgeware-subagent.pl in sequence,&nbsp;each explicitly in the Linux startup script. The latter worked for net-snmp 5.2.1 ; I'm not sure the &quot;perl do&quot; 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>&nbsp;</div>
<div>Where is the code by which the agent is supposed to learn about the subagent's subtree? All I see is &quot;$agent-&gt;register&quot; called by the subagent. It seems to relate to &quot;sub new&quot; in perl/agent/<a href="http://agent.pm">agent.pm</a> but I can't trace it any farther; somewhere in the codebase&nbsp;surely it&nbsp;must trigger a communication, presumably across the&nbsp;socket &quot;master&quot;, to tell the agent it exists?</div>

<div>&nbsp;</div>
<div>Larry<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 4/16/08, <b class="gmail_sendername">Dave Shield</b> &lt;<a href="mailto:D.T.Shield@liverpool.ac.uk">D.T.Shiel d@liverpool.ac.uk</a>&gt; 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 &lt;<a href="mailto:ldickson@cuttedge.com">ldickson@cutte dge.com</a>&gt; wrote:<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp; the next three are after I took out the &quot;perl<br>&gt; do&quot; 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>&gt; There is nowhere any hint that the agent has learned about our subtree<br>
&gt; (22782), even though we call &quot;my $regoid = new<br>&gt; NetSNMP::OID('.1.3.6.1.4.1.22782')&quot; 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==--

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:49 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0