Ghost Solution Suite

 View Only
  • 1.  Execute Command order and PXE boot

    Posted Jun 22, 2006 05:30 PM
    I am using Console 8.0.0.1003. I use the execute commands to copy and run batches in the ghost partition. I have 2 issues. It will inconsistently not boot " to target OS" after the clone, transfer file and execute file portion even though they are all successful. It sometimes boots PXE to the network again. To attempt to alleviate this issue, I tell the task to execute PBOOT.exe /reboot in the ghost partition. I type this in as the last command but sometimes it executes before other commands. This does me no good as not all my commands are executed. What is the best way to enter commands in the execute commands portion of a task so that it will be in the order that I need it to be?
    Thanks


  • 2.  RE: Execute Command order and PXE boot

    Posted Jun 26, 2006 07:24 PM
    With regard to the second part of your post the commands in GHOST are executed in the order they are coded into the task, however once a command has been initiated and execution is underway the Ghost client will immediately move to execute the next command as opposed to waiting for the command to complete. In the example you have given below it seems as though your PBoot.exe command may commence while previous commands are still in progress and the machine reboots before these previous commands are completed.

    A very easy way to work around this might be to initiate the PBoot.exe command from a batch file that includes a delay prior to PBoot being run. Alternatively what may also help depending on the commands you are trying to execute is to override the behavior of the ghost client by executing commands sequentially from within a batch file using "start /wait" the built in DOS command to ensure that the next line of the batch file is not executed until the previous line has completed. Help for the Start command is available within DOS using the "Start /?" command


  • 3.  RE: Execute Command order and PXE boot

    Posted Jun 27, 2006 08:31 AM
    David,

    I am using GSS 1.1 and I logged an Enhancement in this Forum a while ago about the execute order. There are a couple of things that don't work.

    1) It does not execute the "order they are coded into the task", it reorders the Execute Commands after saving the task, even though I was very careful to enter them in a specific order. Ghost Partition and Target OS. For example I want it to do one thing in the Target OS then Ghost partition then Target OS. Batch programing does not help with this situation.

    2) As you mention it does not wait for prior tasks to finish

    3) There is not a way to validate whether or not the execute commands failed or not (using ERRORLEVEL for example)

    At least now, in 1.1, you can edit the Execute Command, still can't do that with transfer of files.

    So for now I have Created many separate tasks wait to see their status then go on the next.


  • 4.  RE: Execute Command order and PXE boot

    Posted Jun 27, 2006 04:46 PM
    I have decided to batch the whole process. This works for this situation for the most part. It makes it difficult to customize to new configurations as I have the bat file is in the PXE boot file. If what you say is correct about the ordering, if I put some commands like
    a:\net\omnifs.exe copy a:\net\sysprep.inf 3:\sysprep\sysprep.inf
    a:\net\omnifs.exe copy a:\ghost\pubkey.crt 3:\progra~1\symantec\ghost\pubkey.crt
    a:\net\go.bat

    it should do it in that order?
    I have noticed that if I put commands in and then look at the task scenario. the order has changed.

    Also when all "commands" that are requested by me are done in the ghost partition, does the console send a command to boot to hard drive. Would it be ok to run ghreboot at the end of a batch? Would this work in a PXE situation?

    Thanks,
    Martin