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; --===============1025366619== Content-Type: multipart/alternative; boundary="----=_Part_2441_9955663.1208469110304" ------=_Part_2441_9955663.1208469110304 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-17-2008
Larry Dickson
 
Posts: n/a
Default Re: 5.4.1 won't talk

--===============1025366619==
Content-Type: multipart/alternative;
boundary="----=_Part_2441_9955663.1208469110304"

------=_Part_2441_9955663.1208469110304
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Going on, I discovered man/snmpd.examples.5 suggested putting single quotes
(?) around do *.pl in the "perl do" line, and doing that made Bareword go
away, but still does not seem to do anything (like loading a subagent where
ps ax can see it). It further suggests some agentXPerms, which don't help,
and either putting a netsnmp_ds_set_string call into the subagent or an
agentXSocket line in the subagent's conf file (test.conf?). The latter did
not work and the former is beyond my Perl skills (there's a use
NetSNMP::agent (':all'); line high up in the subagent). If anyone knows of a
subagent that works in 5.4.1 it might help.

Larry

On 4/17/08, Larry Dickson <ldickson@cuttedge.com> wrote:
>
> Actually it was adding the agentXSocket directive that got me that far.
> Before, it just shot itself in the head. Now at least it stays alive along
> with the subagent, but they show no signs of ever communicating. In 5.2.1
> they used to talk happily and do snmpwalks and all kinds of nice things. The
> "perl do" seems to make no difference in either case - I think it just gets
> ignored.
>
> By the way, if you wander through the comments in perl/agent/agent.pm (in
> either 5.2.1 or 5.4.1) it suggests setting up a subagent in what looks to me
> like just the way my code snipped shows.
>
> Larry
>
> On 4/17/08, Magnus Fromreide <magfr@lysator.liu.se> wrote:
> >
> >
> > On ons, 2008-04-16 at 10:35 -0700, Larry Dickson wrote:
> >
> > > ::::::::::::::
> > > snmpd.conf-old
> > > ::::::::::::::
> > > #version 1
> > > rocommunity public
> > > rwcommunity private
> > > master agentx
> > > agentXSocket /var/agentx/master
> > > perl do /etc/edgeware-subagent.pl
> > > ::::::::::::::
> > > Dtdomain.out
> > > ::::::::::::::
> > > No log handling enabled - turning on stderr logging
> > > registered debug token tdomain, 1
> > > netsnmp_assert !"registration != duplicate" failed
> > > agent_registry.c:535 netsnmp_subtree_load()
> > > netsnmp_assert !"registration != duplicate" failed
> > > agent_registry.c:535 netsnmp_subtree_load()
> > > netsnmp_assert !"registration != duplicate" failed
> > > agent_registry.c:535 netsnmp_subtree_load()
> > > tdomain: netsnmp_tdomain_init() called
> > > tdomain: domain_list -> { iso.3.6.1.6.1.1, "udp" } ->
> > > { iso.3.6.1.2.1.100.1.5, "tcp" } -> { iso.3.6.1.2.1.100.1.13, "unix" }
> > > -> { iso.3.6.1.2.1.100.1.2, "udp6/ipv6/udpv6/udpipv6" } ->
> > > { iso.3.6.1.2.1.100.1.6, "tcp6/tcpv6/tcpipv6" } -> [NIL]
> > > Turning on AgentX master support.

> >
> > Here the agent failed to even try to open an agentx socket.
> >
> > > Bareword found where operator expected at (eval 2) line 1, near
> > > "/etc/edgeware"
> > > (Missing operator before edgeware?)
> > > NET-SNMP version 5.4.1
> > > Connection from UDP: [127.0.0.1]:32775
> > > ::::::::::::::
> > > subagent.out
> > > ::::::::::::::
> > > 286 keys found in ordered_leaf_oids after get_in_order_oids call.
> > > 339 = size of oids_chomp; 339 size of next_leaf_str.
> > > .1.3.6.1.4.1.22782 (cuttedge) = first oid; .1.3.6.1.4.1.22782.1.1.1
> > > (productType) = first leaf.
> > > perl_module.pl loaded ok
> > > registering at cuttedge
> > > netsnmp_assert !"registration != duplicate" failed
> > > agent_registry.c:535 netsnmp_subtree_load()
> > > netsnmp_assert !"registration != duplicate" failed
> > > agent_registry.c:535 netsnmp_subtree_load()
> > > netsnmp_assert !"registration != duplicate" failed
> > > agent_registry.c:535 netsnmp_subtree_load()
> > > started us as a subagent (NetSNMP::agent=HASH(0x1182030))
> > > BEFORE registration at cuttedge
> > > AFTER registration at cuttedge
> > > Yes I am a subagent approaching running loop.
> > > ::::::::::::::
> > > snmpd.conf
> > > ::::::::::::::
> > > #version 1
> > > rocommunity public
> > > rwcommunity private
> > > master agentx
> > > agentXSocket /var/agentx/master
> > > ::::::::::::::
> > > Dtdomain2.out
> > > ::::::::::::::
> > > No log handling enabled - turning on stderr logging
> > > registered debug token tdomain, 1
> > > netsnmp_assert !"registration != duplicate" failed
> > > agent_registry.c:535 netsnmp_subtree_load()
> > > netsnmp_assert !"registration != duplicate" failed
> > > agent_registry.c:535 netsnmp_subtree_load()
> > > netsnmp_assert !"registration != duplicate" failed
> > > agent_registry.c:535 netsnmp_subtree_load()
> > > tdomain: netsnmp_tdomain_init() called
> > > tdomain: domain_list -> { iso.3.6.1.6.1.1, "udp" } ->
> > > { iso.3.6.1.2.1.100.1.5, "tcp" } -> { iso.3.6.1.2.1.100.1.13, "unix" }
> > > -> { iso.3.6.1.2.1.100.1.2, "udp6/ipv6/udpv6/udpipv6" } ->
> > > { iso.3.6.1.2.1.100.1.6, "tcp6/tcpv6/tcpipv6" } -> [NIL]
> > > Turning on AgentX master support.
> > > tdomain: tdomain_transport_full("agentx", "/var/agentx/master", 1,
> > > "[NIL]", "[NIL]")
> > > tdomain: Address starts with '/', so assume "unix" domain
> > > tdomain: Found domain "unix" from specifier "unix"
> > > tdomain: domain "unix" address "/var/agentx/master" default address
> > > "/var/agentx/master"

> >
> > Here we can see that
> > a) The agent tries to open a unix socket at /var/agentx/master
> > b) You do not need the agentXsocket config directive, you needed, as you
> > noted, to remove the perl do directive. As for further perl
> > interactions that is out of my league.
> >
> > /MF
> >
> >

>


------=_Part_2441_9955663.1208469110304
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>Going on, I discovered man/snmpd.examples.5 suggested putting single quotes (?) around do *.pl in the &quot;perl do&quot; line, and doing that made Bareword go away, but still does not seem to do anything (like loading a subagent where ps ax can see it). It further suggests some agentXPerms, which don't help, and either putting a netsnmp_ds_set_string call into the subagent or an agentXSocket line in the subagent's conf file (test.conf?). The latter did not work and the former is beyond my Perl skills (there's a use NetSNMP::agent (':all'); line&nbsp;high up in the subagent). If anyone knows of a subagent that works in 5.4.1 it might help.</div>

<div>&nbsp;</div>
<div>Larry<br>&nbsp;</div>
<div><span class="gmail_quote">On 4/17/08, <b class="gmail_sendername">Larry Dickson</b> &lt;<a href="mailto:ldickson@cuttedge.com">ldickson@cutte dge.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Actually it was adding the agentXSocket directive that got me that far. Before, it just shot itself in the head. Now at least it stays alive along with the subagent, but they show no signs of ever communicating. In 5.2.1 they used to talk happily and do snmpwalks and all kinds of nice things. The &quot;perl do&quot; seems to make no difference in either case - I think it just&nbsp;gets ignored.</div>

<div>&nbsp;</div>
<div>By the way, if you wander through the comments in perl/agent/<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://agent.pm/" target="_blank">agent.pm</a> (in either 5.2.1 or 5.4.1) it suggests setting up a subagent in what looks to me like just the way my code snipped shows.</div>

<div>&nbsp;</div><span class="sg">
<div>Larry<br>&nbsp;</div></span>
<div><span class="e" id="q_1195ce7ef40fc19f_2">
<div><span class="gmail_quote">On 4/17/08, <b class="gmail_sendername">Magnus Fromreide</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:magfr@lysator.liu.se" target="_blank">magfr@lysator.liu.se</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><br>On ons, 2008-04-16 at 10:35 -0700, Larry Dickson wrote:<br><br>&gt; ::::::::::::::<br>&gt; snmpd.conf-old<br>
&gt; ::::::::::::::<br>&gt; #version 1<br>&gt; rocommunity public<br>&gt; rwcommunity private<br>&gt; master agentx<br>&gt; agentXSocket /var/agentx/master<br>&gt; perl do /etc/edgeware-subagent.pl<br>&gt; ::::::::::::::<br>
&gt; Dtdomain.out<br>&gt; ::::::::::::::<br>&gt; No log handling enabled - turning on stderr logging<br>&gt; registered debug token tdomain, 1<br>&gt; netsnmp_assert !&quot;registration != duplicate&quot; failed<br>&gt; agent_registry.c:535 netsnmp_subtree_load()<br>
&gt; netsnmp_assert !&quot;registration != duplicate&quot; failed<br>&gt; agent_registry.c:535 netsnmp_subtree_load()<br>&gt; netsnmp_assert !&quot;registration != duplicate&quot; failed<br>&gt; agent_registry.c:535 netsnmp_subtree_load()<br>
&gt; tdomain: netsnmp_tdomain_init() called<br>&gt; tdomain: domain_list -&gt; { iso.3.6.1.6.1.1, &quot;udp&quot; } -&gt;<br>&gt; { iso.3.6.1.2.1.100.1.5, &quot;tcp&quot; } -&gt; { iso.3.6.1.2.1.100.1.13, &quot;unix&quot; }<br>
&gt; -&gt; { iso.3.6.1.2.1.100.1.2, &quot;udp6/ipv6/udpv6/udpipv6&quot; } -&gt;<br>&gt; { iso.3.6.1.2.1.100.1.6, &quot;tcp6/tcpv6/tcpipv6&quot; } -&gt; [NIL]<br>&gt; Turning on AgentX master support.<br><br>Here the agent failed to even try to open an agentx socket.<br>
<br>&gt; Bareword found where operator expected at (eval 2) line 1, near<br>&gt; &quot;/etc/edgeware&quot;<br>&gt;&nbsp;&nbsp;(Missing operator before edgeware?)<br>&gt; NET-SNMP version 5.4.1<br>&gt; Connection from UDP: [127.0.0.1]:32775<br>
&gt; ::::::::::::::<br>&gt; subagent.out<br>&gt; ::::::::::::::<br>&gt; 286 keys found in ordered_leaf_oids after get_in_order_oids call.<br>&gt; 339 = size of oids_chomp; 339 size of next_leaf_str.<br>&gt; .1.3.6.1.4.1.22782 (cuttedge) = first oid; .1.3.6.1.4.1.22782.1.1.1<br>
&gt; (productType) = first leaf.<br>&gt; perl_module.pl loaded ok<br>&gt; registering at cuttedge<br>&gt; netsnmp_assert !&quot;registration != duplicate&quot; failed<br>&gt; agent_registry.c:535 netsnmp_subtree_load()<br>
&gt; netsnmp_assert !&quot;registration != duplicate&quot; failed<br>&gt; agent_registry.c:535 netsnmp_subtree_load()<br>&gt; netsnmp_assert !&quot;registration != duplicate&quot; failed<br>&gt; agent_registry.c:535 netsnmp_subtree_load()<br>
&gt; started us as a subagent (NetSNMP::agent=HASH(0x1182030))<br>&gt; BEFORE registration at cuttedge<br>&gt; AFTER registration at cuttedge<br>&gt; Yes I am a subagent approaching running loop.<br>&gt; ::::::::::::::<br>
&gt; snmpd.conf<br>&gt; ::::::::::::::<br>&gt; #version 1<br>&gt; rocommunity public<br>&gt; rwcommunity private<br>&gt; master agentx<br>&gt; agentXSocket /var/agentx/master<br>&gt; ::::::::::::::<br>&gt; Dtdomain2.out<br>
&gt; ::::::::::::::<br>&gt; No log handling enabled - turning on stderr logging<br>&gt; registered debug token tdomain, 1<br>&gt; netsnmp_assert !&quot;registration != duplicate&quot; failed<br>&gt; agent_registry.c:535 netsnmp_subtree_load()<br>
&gt; netsnmp_assert !&quot;registration != duplicate&quot; failed<br>&gt; agent_registry.c:535 netsnmp_subtree_load()<br>&gt; netsnmp_assert !&quot;registration != duplicate&quot; failed<br>&gt; agent_registry.c:535 netsnmp_subtree_load()<br>
&gt; tdomain: netsnmp_tdomain_init() called<br>&gt; tdomain: domain_list -&gt; { iso.3.6.1.6.1.1, &quot;udp&quot; } -&gt;<br>&gt; { iso.3.6.1.2.1.100.1.5, &quot;tcp&quot; } -&gt; { iso.3.6.1.2.1.100.1.13, &quot;unix&quot; }<br>
&gt; -&gt; { iso.3.6.1.2.1.100.1.2, &quot;udp6/ipv6/udpv6/udpipv6&quot; } -&gt;<br>&gt; { iso.3.6.1.2.1.100.1.6, &quot;tcp6/tcpv6/tcpipv6&quot; } -&gt; [NIL]<br>&gt; Turning on AgentX master support.<br>&gt; tdomain: tdomain_transport_full(&quot;agentx&quot;, &quot;/var/agentx/master&quot;, 1,<br>
&gt; &quot;[NIL]&quot;, &quot;[NIL]&quot;)<br>&gt; tdomain: Address starts with '/', so assume &quot;unix&quot; domain<br>&gt; tdomain: Found domain &quot;unix&quot; from specifier &quot;unix&quot;<br>&gt; tdomain: domain &quot;unix&quot; address &quot;/var/agentx/master&quot; default address<br>
&gt; &quot;/var/agentx/master&quot;<br><br>Here we can see that<br>a) The agent tries to open a unix socket at /var/agentx/master<br>b) You do not need the agentXsocket config directive, you needed, as you<br>&nbsp;&nbsp;noted, to remove the perl do directive. As for further perl<br>
interactions that is out of my league.<br><br>/MF<br><br></blockquote></div><br></span></div></blockquote></div><br>

------=_Part_2441_9955663.1208469110304--


--===============1025366619==
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
--===============1025366619==
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

--===============1025366619==--

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB 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:35 PM.


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