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


 Hello Friends
 Finally I got solution to my problem.
&=
nbsp;my agent able to connect main agent
 I forgot to call
&nb=
sp;SOCK_STARTUP;
fuction before init_agent function call
this is nes=
essary because init_agent function internally=20

call socket function & if we don't call SOCK_STARTUP before
soc=
ket it will give you following error
urier New, Courier, mono" size=3D"2">Socket=20
Error # 10093
s-serif" size=3D"2">Socket error (#10093): Successful WSAStartup not yet pe=
rformed
because SOCK_STARTUP internally call
, Arial, Helvetica, sans-serif" size=3D"3">
WSAStartup which is
need to call before socket system =
call in windows.
thats the reason my suagent not able to connect to mai=
n agent
beacause i haven't called
rial, Helvetica, sans-serif" size=3D"3">
WSAStartup.
after 2 days of effort i finally found the=
problem
so take care to call SOCK_STARTUP before init_agent  in wi=
ndows
Have Good Day friends
Bye
Regards
Bhushan

=


 

On 12/7/06, gmail_sendername">bhushan < om">sonawanebhushan@gmail.com> wrote:
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
it wont work
thanks for reply
>Regards
Bhushan

<=
div>On 12/7/06, M=
agnus Fromreide
< =3D"return top.js.OpenExtLink(window,event,this)">
magfr@lysator.liu.se> wrote:
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:


> hello friends
> for finding reason for this failure i found that=

> following function get call when i call init_agent
> init_ag=
ent
> |--subagent_pre_init
>     &nbsp=
;           |--agentx_reo=
pen_session

>           &=
nbsp;           &nbs=
p;     |--subagent_open_master_session
> &nb=
sp;            =
            &nb=
sp;          |---snmp_open_ex<=
br>>           &n=
bsp;           &nbsp=
;            &n=
bsp;           |---s=
nmp_sess_open
>         =
            &nb=
sp;            =
            &nb=
sp;         |-- _sess_open


...

This code is rewritten for 5.4, does it work better if y=
ou try with that
version?

/MF



lear=3D"all">
--
   &=
nbsp;        bhushan. E . Sonawane