Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Specify reboot in the middle of a task?

Updated: 21 May 2010 | 2 comments
Mark Berning's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

How do you or can you specify a reboot operation in the middle of a task and continue on additional AI, Transfers and Executes? 
I am using GSS 2.5

I tried using psshutdown action and told it to wait til the command finishes but it finishes returns control back to Ghost and Ghost starts doing more actions and meanwhile the client starts to reboot - oops!

Before GSS 2.5 we would manipulate the task so it would go into the Virtual Ghost partition and do a simple dir (I mean manipulate because prior to GSS 2.5 you had to delete and add the execute tasks until you got the right order and did a Task Scenario). Now you can reorder the File and Software actions, but only inside Ghost Partitions and Target OS actions separately. So now it does all of the Ghost Partitions actions then reboots then does Target OS actions. I guess that makes sense (unless you were using Ghost Partitions as a work around to get a reboot in the middle).

The best solution is to have a option for a reboot action as part of Software and Files Action tab.

Has any one else got any better ideas?
I am thinking a super simple AI that does nothing but a reboot. Will the Ghost wait for it to reboot before doing the next steps?

Discussion Filed Under:

Comments

Krish Jayaratne's picture
07
Apr
2009
0 Votes 0
Login to vote

Did you try shutting down the client?

 Hi Mark,

I have used shutdown command to reboot the machine in a middle of a task. I think I ended up shutting down the client (ngctw32 -stop) before executing the command to stop it executing any further commands. 
There are other bad hacks such as releasing the IP address, but if you use a script that does not return the control back before shutdown, it should work too.

Krish

Mark Berning's picture
07
Apr
2009
0 Votes 0
Login to vote

That works with minor change

I did have to do a minor adjustment on the shutdown action.

I use psshutdown from www.sysinternals.com. I have been shutting down/rebooting immediately with no time wait. This causes a problem if no one is logged in, because the machine shut downs and does not allow any further processes including the ngctw32 -stop. So I had to put a 5-10 second wait before shutting down.

All of my actions wait and do not continue if action fails.

.... Some actions ....

Transfer Files and Folders - Target Operating System

Source (Server)  Destination (Client)
C:\Utils\bin\psshutdown.exe     c:\utils

Execute a Command - Target Operating System

c:\utils\psshutdown /accepteula -t 10 -r -e p:2:3

-t 10 - wait 10 seconds before reboot

Execute a Command - Target Operating System

c:\Program Files\Symantec\Ghost\ngctw32.exe -stop
 
.... More actions .....