SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Member
    Join Date
    Feb 2006
    Location
    pune
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Unable to connect remote agent.

    Hi All,

    I am unable to connect remote agent.
    I have read some previous post alsobut still same problem,

    setting as follows
    1.Both machine having licences.
    2.on Host machine option\runtime ..
    Agent Name = local
    Network = TCP\IP

    3.On Remote machine
    Agent ->right click ->Network..->TCP\IP & 2965 port
    Agent is runing before attempt to connect

    4.Host name entered in host file
    5.No Firewell on network

    Code:-
    ---------------------------------------
    [ ]
    [-] do
    [ ] target_machine = Connect("DSQA-SILK")
    [-] except
    [ ] exceptNum()
    [ ] exceptData()
    [ ] print("Error")
    ----------------------------------------

    This code prints "Error" only .
    NO Excaption DATA & NO excaption number


    Any idea on this issue!!
    Thanks.

  2. #2
    Member
    Join Date
    May 2005
    Location
    Ukraine
    Posts
    40
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to connect remote agent.

    exceptNum and exceptData do not print anything. These functions return information about exception. You should modify your exception block like:
    [-] except
    [ ] print(exceptNum())
    [ ] print(exceptData())
    [ ] print("Error")

    May be exception information helps you to resolve your issue.

  3. #3
    Senior Member
    Join Date
    Apr 2006
    Posts
    285
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to connect remote agent.

    You'd better to use

    [ ] target_machine = Connect("DSQA-SILK:2965")

    to connect to remote Agent.
    Connection string ( parameter to Connect function )
    should have a structure like the following:

    < target machine name >:<port number>

    In this case connection will be successful.
    This is about connection.

    To print exception information to report file you'd better to use ExceptPrint() function ( you just may try).

  4. #4
    Member
    Join Date
    Feb 2006
    Location
    pune
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to connect remote agent.

    Hi,
    Thanks for reply

    I tried all what you suggest.But still problem is there
    [ ] print(exceptNum())
    [ ] print(exceptData())

    prints 0 and NULL

    I think there is no exception defined for this issue.

    this is output of "netstat -p tcp" command in command prompt(which shows connection state).

    DSQA-SILK2:2595 DSQA-SILK:2965 TIME_WAIT
    DSQA-SILK2:2604 DSQA-SILK:2965 TIME_WAIT

    my host machine (DSQA-SILK2)is not taking 2965 port no for connection.
    only target machine is taking right port.

    How can i force my machine to take 2965 port???


    Thanks,
    Jitendra

  5. #5
    Senior Member
    Join Date
    Apr 2006
    Posts
    285
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to connect remote agent.

    How can i force my machine to take 2965 port???
    <font size="2" face="Verdana, Arial, Helvetica">1) Open Agent right click on header of the agent window and select Network
    2) In the Network dialog select TCP/IP in the Network field
    3) In the port number enter combination of 4 digits. It will be Agent port number
    4) Click OK

    Agent is ready

  6. #6
    Member
    Join Date
    Feb 2006
    Location
    pune
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to connect remote agent.

    Thanks KaNoN ,

    But Already i have put '2965'on network setting..
    still silk test taking random port no for connection.
    and throwing same excaption !

    jitendra,

  7. #7
    Senior Member
    Join Date
    Apr 2006
    Posts
    285
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to connect remote agent.

    Maybe it's better to clarify all required settings
    and actions to know for sure what the problem with.

    1) Make settings on host machine
    a) Go To Options &gt; Runtime
    b) Set the following fields:
    Agent Name: (local)
    Network (disabled)
    c) Click OK

    2) Make settings on target machine
    a) Open Agent on your target machine
    b) Do the actions which I described by previous post
    c) DO NOT CLOSE AGENT!!!

    3) Try the following code:
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">[ ]
    [-] do
    [ ] target_machine = Connect(&quot;DSQA-SILK:2965&quot
    [-] except
    [ ] ExceptPrint()</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Of course DSQA-SILK must be existing machine name where Agent is started. 2965 is port number you set in point 2 of instructions.

    Write the output of last code If connection doesn't work. It will help us to identify what is the problem with

  8. #8
    Member
    Join Date
    Feb 2006
    Location
    pune
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to connect remote agent.

    KaNoN ,
    As per your setting i am getting following error

    [ ]Error Number -10300
    [ ] *** Error: Unable to connect to machine 'dsqa-silk' -- The network has not been enabled

    --------------------------
    my settings......

    1) host machine option-Runtime setting
    agent -local
    network-TCP\IP
    2)Host machine agent setting
    network -Disable

    2)On target machine
    only Agent -&gt;Rightclick-&gt;network-&gt;
    network=TCP\IP
    port 2965
    then I am getting same error what i am facing last 2-3 days.

  9. #9
    Junior Member
    Join Date
    Jun 2005
    Location
    Noida
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to connect remote agent.

    Hi

    Previous code is given by the preople is also correct.Try the following code. This is working on my machine...
    [-] STRING dtSettingofDates()
    [ ] HMACHINE server
    [ ] server = connect ("DSQA-SILK:2965")
    [ ] Disconnect(sDatabaseServer)


    My settings:

    --------------------------
    my settings......

    1) host machine option-Runtime setting
    agent -local
    network-TCP\IP
    2)Host machine agent setting
    network -Disable

    2)On target machine
    only Agent -&gt;Rightclick-&gt;network-&gt;
    network=TCP\IP
    port 2965


    Regards
    Srini

  10. #10
    Member
    Join Date
    Feb 2006
    Location
    pune
    Posts
    33
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Unable to connect remote agent.

    hi veera,

    [-] STRING dtSettingofDates()
    [ ] HMACHINE server
    [ ] server = connect ("DSQA-SILK:2965")//throwing excaption
    [ ] Disconnect(sDatabaseServer)//(never excute)

    Just close connect statment into do..except block
    its throwing undefined exception.
    without do..except its passing ..

    OR
    [-] STRING dtSettingofDates()
    [ ] HMACHINE server
    [ ] server = connect ("DSQA-SILK:2965")
    [ ]print("No....Error")
    [ ] Disconnect(sDatabaseServer)

    will not print Error....because its not excuting print and disconnect statment.

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.00%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 10:01 AM.

Copyright BetaSoft Inc.