Specify reboot in the middle of a task?
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?
Comments
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
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
Execute a Command - Target Operating System
-t 10 - wait 10 seconds before reboot
Execute a Command - Target Operating System
.... More actions .....
Would you like to reply?
Login or Register to post your comment.