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; ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
--===============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> Hello Friends<br> Finally I got solution to my problem.<br>&= nbsp;my agent able to connect main agent <br> 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 & 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 in wi= ndows<br>Have Good Day friends<br>Bye<br>Regards <br>Bhushan<br><br></font>= </font> <br> <br><br><div><span class=3D"gmail_quote">On 12/7/06, <b class=3D"= gmail_sendername">bhushan</b> <<a href=3D"mailto:sonawanebhushan@gmail.c= om">sonawanebhushan@gmail.com</a>> 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> <<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>> 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> > hello friends<br>> for finding reason for this failure i found that= <br>> following function get call when i call init_agent<br>> init_ag= ent<br>> |--subagent_pre_init<br>> & nbsp; = ; & nbsp; |--agentx_reo= pen_session <br>> &= nbsp; &nb sp; &nbs= p; |--subagent_open_master_session<br>> &nb= sp;   ; = &n bsp; &nb= sp;   ; |---snmp_open_ex<= br>> & nbsp; &n= bsp; &nbs p;  = ; & nbsp; &n= bsp; &nbs p; |---s= nmp_sess_open<br>>   ; = &n bsp; &nb= sp;   ; = &n bsp; &nb= sp;   ; |-- _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; &nb sp;bhushan. E . Sonawane </span></blockquote></div><br><br clear=3D"all"><br>-- <br> &nbs= p; 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==-- |