AgentX: subAgent does not respond to master agent

This is a discussion on AgentX: subAgent does not respond to master agent within the SNMP Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. ------_=_NextPart_001_01C6369F.2722C5C4 Content-Type: text/plain; charset="iso-8859-...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2006
Ming Gong
 
Posts: n/a
Default AgentX: subAgent does not respond to master agent

This is a multi-part message in MIME format.

------_=_NextPart_001_01C6369F.2722C5C4
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
=20
I started snmpd as the master agent with agentxsocket set as udp:705. In =
my subagent embeded in another application runing at the same linux box, =
I set the same. When I start the subagent, I can see that they =
communicate to each other. Handlers for some enterprise MIB OID's are =
registered. For example the subagent print out:
=20
agentx/subagent: registering: iso.3.6.1.4.1.6393.5.1.3.2.1.1.2
agentx_build: packet built okay
agentx/subagent: synching input, op 0x01
agentx/subagent: registered

and on the other hand, the masterAgent(snmpd) print out:=20
=20
agentx/master: handle pdu (req=3D0x1c472f35,trans=3D0x0,sess=3D0x4)
agentx/master: in register_agentx_list
agentx/master: registered ok
agentx/master: send response, stat 0 =
(req=3D0x1c472f35,trans=3D0x0,sess=3D0x4)
agentx_build: packet built okay

However when I try snmp get, the master agent received correct =
information and trying to pass it to the subagent, but the subagent does =
not respond. This is what printed by the master agent:
=20
Received SNMP packet(s) from UDP: [192.168.1.126]:3629
GET message
-- iso.3.6.1.4.1.6393.5.1.3.2.1.1.2.0
agentx/master: agentx master handler starting, mode =3D 0xa0
agentx/master: request for variable (iso.3.6.1.4.1.6393.5.1.3.2.1.1.2.0)
agentx: sending pdu (req=3D0xd,trans=3D0xc,sess=3D0x4)
agentx_build: packet built okay

Nothing print out by the SubAgent with "agentx" token turned on, as if =
the request is not reach the subAgent. Ping message between the master =
and Subagent seems working.
=20
=20

------_=_NextPart_001_01C6369F.2722C5C4
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D194310004-21022006>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D194310004-21022006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D194310004-21022006>I =
started snmpd as=20
the master agent with agentxsocket set as udp:705. In my subagent =
embeded in=20
another application runing at the same linux box, I set the same. When I =
start=20
the subagent, I can see that they communicate to each other. Handlers =
for some=20
enterprise MIB OID's are registered. For example the subagent print=20
out:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D194310004-21022006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D194310004-21022006>agentx/subagent:=20
registering: iso.3.6.1.4.1.6393.5.1.3.2.1.1.2<BR>agentx_build: packet =
built=20
okay<BR>agentx/subagent: synching input, op 0x01<BR>agentx/subagent:=20
registered<BR></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D194310004-21022006>and on =
the other=20
hand, the masterAgent(snmpd) print out: </DIV></SPAN></FONT>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D194310004-21022006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D194310004-21022006>agentx/master:=20
handle pdu (req=3D0x1c472f35,trans=3D0x0,sess=3D0x4)<BR>agent x/master: =
in=20
register_agentx_list<BR>agentx/master: registered ok<BR>agentx/master: =
send=20
response, stat 0 =
(req=3D0x1c472f35,trans=3D0x0,sess=3D0x4)<BR>agent x_build: packet=20
built okay<BR></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D194310004-21022006>However when I try=20
snmp get, the master agent received correct information and trying to =
pass it to=20
the subagent, but the subagent does not respond. This is what printed by =
the=20
master agent:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D194310004-21022006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D194310004-21022006>Received SNMP=20
packet(s) from UDP: [192.168.1.126]:3629<BR>&nbsp; GET=20
message<BR>&nbsp;&nbsp;&nbsp; --=20
iso.3.6.1.4.1.6393.5.1.3.2.1.1.2.0<BR>agentx/master: agentx master =
handler=20
starting, mode =3D 0xa0<BR>agentx/master: request for variable=20
(iso.3.6.1.4.1.6393.5.1.3.2.1.1.2.0)<BR>agentx: sending pdu=20
(req=3D0xd,trans=3D0xc,sess=3D0x4)<BR>agentx_build : packet built=20
okay<BR></DIV></SPAN></FONT>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D194310004-21022006>Nothing print out by=20
the SubAgent with "agentx" token turned on, as if the request is not =
reach the=20
subAgent.&nbsp;Ping message between the master and Subagent seems=20
working.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D194310004-21022006></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D194310004-21022006>&nbsp;</DIV></SPAN></FONT></BODY></HTML>

------_=_NextPart_001_01C6369F.2722C5C4--


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=...486&dat=121642
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
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 01:10 AM.


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