SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Jul 2001
    Location
    Roseville, CA USA
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Connecting to Agent After Reboot

    Hello,

    I am writing an automated installation script. At the end of the installation, a reboot is required. How can I connect to the agent after the reboot? I want to wait or sleep while the system is rebooting and then try to connect back to the machine.

    Here is the code that I have written:

    while (TRUE)
    do
    if !IsConnected (sTarget)
    target_machine = Connect (sTarget)
    Print ("Reconnected to {sTarget} after reboot")
    break

    except
    sleep (60)

    -------------------------------------
    Unfortunately, I get stuck in an infinite loop. When I finally aborted the execution, the error message was "Bad Channel to Agent Call."

    Any suggestions would be greatly appreciated.

    Thank you.

    Elizabeth


    ------------------

  2. #2
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Connecting to Agent After Reboot

    try this function.

    looks like there's a few comments specific to other code of mine, but the function should work.
    ------------------


    [This message has been edited by BrianCarroll (edited 02-26-2002).]

    [This message has been edited by BrianCarroll (edited 02-26-2002).]

  3. #3
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Connecting to Agent After Reboot

    If you like, i can send you my reboot function that doesn't rely on hard sleeps to determine when the machine is rebooted. I just need you to send me your e-mail address.

    tony.morgan@wonderware.com

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  4. #4
    Junior Member
    Join Date
    Jul 2001
    Location
    Roseville, CA USA
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Connecting to Agent After Reboot

    Brian,

    I am not able to see your function.

    Please repost it.

    Thank you.

    Elizabeth

    ------------------

  5. #5
    Senior Member
    Join Date
    Nov 1999
    Location
    Eagle, ID,USA
    Posts
    1,035
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Connecting to Agent After Reboot

    Here it is but as is, it won't work without supporting dll's and executables required for the reboot but you can at least get an idea. Basically instead of sleeping, I ping the remote machine until it replies as successful. I then detect when the agent.exe process is running.

    ------------------
    Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.

  6. #6
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Connecting to Agent After Reboot

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by TonyM:
    If you like, i can send you my reboot function that doesn't rely on hard sleeps to determine when the machine is rebooted. I just need you to send me your e-mail address.

    tony.morgan@wonderware.com

    <HR></BLOCKQUOTE>

    Could you post your code?

    ------------------

  7. #7
    Junior Member
    Join Date
    Jul 2001
    Location
    Roseville, CA USA
    Posts
    20
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Connecting to Agent After Reboot

    I got it to work.

    Thanks for all of your help!

    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 05:55 PM.

Copyright BetaSoft Inc.