Re: Failed to connect to the agentx master agent

This is a discussion on Re: Failed to connect to the agentx master agent within the SNMP Coders forums, part of the Networking and Network Related category; --===============1682367394== Content-Type: multipart/alternative; boundary="----=_Part_37581_27416863.1165470496105" ------=_Part_37581_27416863.1165470496105 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 12-07-2006
bhushan
 
Posts: n/a
Default Re: Failed to connect to the agentx master agent

--===============1682367394==
Content-Type: multipart/alternative;
boundary="----=_Part_37581_27416863.1165470496105"

------=_Part_37581_27416863.1165470496105
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello Friends
Finally I got solution to my problem.
my agent able to connect main agent
I forgot to call
SOCK_STARTUP;
fuction before init_agent function call
this is nesessary because init_agent function internally
call socket function & if we don't call SOCK_STARTUP before
socket it will give you following error
Socket Error # 10093
Socket error (#10093): Successful WSAStartup not yet performed
because SOCK_STARTUP internally call WSAStartup which is
need to call before socket system call in windows.
thats the reason my suagent not able to connect to main agent
beacause i haven't called WSAStartup.
after 2 days of effort i finally found the problem
so take care to call SOCK_STARTUP before init_agent in windows
Have Good Day friends
Bye
Regards
Bhushan




On 12/7/06, bhushan <sonawanebhushan@gmail.com> wrote:
>
> yes i tried with that version also
> it wont work
> thanks for reply
> Regards
> Bhushan
> On 12/7/06, Magnus Fromreide < magfr@lysator.liu.se> wrote:
> >
> > On ons, 2006-12-06 at 18:04 +0530, bhushan wrote:
> > > hello friends
> > > for finding reason for this failure i found that
> > > following function get call when i call init_agent
> > > init_agent
> > > |--subagent_pre_init
> > > |--agentx_reopen_session
> > > |--subagent_open_master_session
> > > |---snmp_open_ex
> > > |---snmp_sess_open
> > > |-- _sess_open

> >
> > ...
> >
> > This code is rewritten for 5.4, does it work better if you try with that
> > version?
> >
> > /MF
> >
> >

>
>
> --
> bhushan. E . Sonawane





--
bhushan. E . Sonawane

------=_Part_37581_27416863.1165470496105
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<br>&nbsp;Hello Friends<br>&nbsp;Finally I got solution to my problem.<br>&=
nbsp;my agent able to connect main agent <br>&nbsp;I forgot to call <br>&nb=
sp;SOCK_STARTUP;<br>fuction before init_agent function call <br>this is nes=
essary because init_agent function internally=20
<br>call socket function &amp; if we don't call SOCK_STARTUP before <br>soc=
ket it will give you following error <br><font color=3D"#990000" face=3D"Co=
urier New, Courier, mono" size=3D"2">Socket=20
Error # 10093<br></font><font face=3D"Geneva, Arial, Helvetica, san=
s-serif" size=3D"2">Socket error (#10093): Successful WSAStartup not yet pe=
rformed<br>because SOCK_STARTUP internally call </font><font face=3D"Geneva=
, Arial, Helvetica, sans-serif" size=3D"3">
WSAStartup <font size=3D"2">which is <br>need to call before socket system =
call in windows. <br>thats the reason my suagent not able to connect to mai=
n agent <br>beacause i haven't called </font></font><font face=3D"Geneva, A=
rial, Helvetica, sans-serif" size=3D"3">
WSAStartup. <br><font size=3D"2">after 2 days of effort i finally found the=
problem<br>so take care to call SOCK_STARTUP before init_agent&nbsp; in wi=
ndows<br>Have Good Day friends<br>Bye<br>Regards <br>Bhushan<br><br></font>=
</font>
<br>&nbsp;<br><br><div><span class=3D"gmail_quote">On 12/7/06, <b class=3D"=
gmail_sendername">bhushan</b> &lt;<a href=3D"mailto:sonawanebhushan@gmail.c=
om">sonawanebhushan@gmail.com</a>&gt; wrote:</span><blockquote class=3D"gma=
il_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0=
pt 0pt 0.8ex; padding-left: 1ex;">
yes i tried with that version also <br>it wont work <br>thanks for reply<br=
>Regards<br>Bhushan<div><span class=3D"e" id=3D"q_10f5b1939764e688_1"><br><=

div><span class=3D"gmail_quote">On 12/7/06, <b class=3D"gmail_sendername">M=
agnus Fromreide
</b> &lt;<a href=3D"mailto:magfr@lysator.liu.se" target=3D"_blank" onclick=
=3D"return top.js.OpenExtLink(window,event,this)">
magfr@lysator.liu.se</a>&gt; wrote:</span><blockquote class=3D"gmail_quote"=
style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.=
8ex; padding-left: 1ex;">On ons, 2006-12-06 at 18:04 +0530, bhushan wrote:
<br>
&gt; hello friends<br>&gt; for finding reason for this failure i found that=
<br>&gt; following function get call when i call init_agent<br>&gt; init_ag=
ent<br>&gt; |--subagent_pre_init<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp; |--agentx_reo=
pen_session
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp; |--subagent_open_master_session<br>&gt;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp; |---snmp_open_ex<=
br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;|---s=
nmp_sess_open<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;&nbsp;|-- _sess_open
<br><br>...<br><br>This code is rewritten for 5.4, does it work better if y=
ou try with that<br>version?<br><br>/MF<br><br></blockquote></div><br><br c=
lear=3D"all"><br></span></div><span class=3D"sg">-- <br>&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;bhushan. E . Sonawane

</span></blockquote></div><br><br clear=3D"all"><br>-- <br>&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;bhushan. E . Sonawa=
ne

------=_Part_37581_27416863.1165470496105--


--===============1682367394==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
--===============1682367394==
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

--===============1682367394==--

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 04:39 PM.


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