Ghost Solution Suite

 View Only
Expand all | Collapse all

How I Get Task Status through command line?

Migration User

Migration UserAug 17, 2009 08:17 AM

Migration User

Migration UserAug 17, 2009 08:49 AM

  • 1.  How I Get Task Status through command line?

    Posted Aug 17, 2009 04:45 AM
      |   view attached
    Hi,

    I have created one task for backup image. I am running this task through command line "ngcons.exe /e task_name".
    Now i want to check task status after the completion this task, so my question is how i get task status from this command?


    Thanks
    -abhinav


  • 2.  RE: How I Get Task Status through command line?

    Posted Aug 17, 2009 05:29 AM
    I do not know, if there is a command for ngcons.exe to see the status. Why don't you right-click on the task in the task-log, or see the ghosterr.txt for more details?


  • 3.  RE: How I Get Task Status through command line?

    Posted Aug 17, 2009 06:58 AM
    Hi,

    right-click on the task in the task-log
    - This is UI based and i want to check through command line.

    ghosterr.txt option
    - Where this file is located? I want to check task status for both success and failure condition, is this file give me success info?


  • 4.  RE: How I Get Task Status through command line?

    Posted Aug 17, 2009 07:02 AM
    The Ghosterr.txt file is located at:

    C:\Program Files\Symantec\Ghost

    normally, there are only errors written in it. Since I use UI, I did not really cared about command line options. Are you using this for scripting?


  • 5.  RE: How I Get Task Status through command line?

    Posted Aug 17, 2009 07:17 AM
    Ghosterr.txt is not located at Ghost folder but yes 1 error file(random name) is there under db\data folder.

    Yes i am using this for scripting, so thats why my problem remains same :(
    Is any other pointer which give me help?

    -abhinav



  • 6.  RE: How I Get Task Status through command line?

    Posted Aug 17, 2009 07:49 AM
    I looked up in the Help for Ghost console. There was no switch for letting you see details of any tasks. I guess you have to ask one of the programmers, if there are some more hidden switches for ghost console. ngcons -h only get you some, but I think, you already seen these.

    Greetings

    Alexander Emmer


  • 7.  RE: How I Get Task Status through command line?

    Posted Aug 17, 2009 07:57 AM
    Yes i have already checked ngcons -h option but not found anything useful there.

    Can anybody tell me right person name who will solve my this problem?

    -abhi


  • 8.  RE: How I Get Task Status through command line?

    Posted Aug 17, 2009 08:17 AM
    Try to contact Eugene Manko. Maybe he can help you.


  • 9.  RE: How I Get Task Status through command line?

    Posted Aug 17, 2009 08:42 AM
    I am unable to find "Eugene Manko" name in symantec outlook list. Is the name is correct?


  • 10.  RE: How I Get Task Status through command line?

    Posted Aug 17, 2009 08:49 AM
    http://www.symantec.com/connect/user/eugene-manko


  • 11.  RE: How I Get Task Status through command line?

    Posted Aug 19, 2009 02:23 AM
    Eugene gave me following comment on my query
    "I don't think there is a way to get task status from something like command execute because there is no generic statement to tell whether or not command succeeded. On the other hand result of this task should be reported to the Console but not the actual return code of say the executable.
    In your case you are executing command, which itself is a ghost agent exe - it cannot report on itself."


    So now anyone tell me what is the best approach for checking task completion status?
    (I am using this for scripting, and UI options are not useful for me.)

    or


    Is any one have diffrent view for my query?


  • 12.  RE: How I Get Task Status through command line?

    Posted Aug 19, 2009 03:49 AM
    If found an article in the forum, which dealt with a same problem. There Mr. Bree wrote a sript, which collects all the statuses from tasks etc. This is what he says:

    /quote
    I have written a notification script which periodically collects a list of completed tasks and their statuses from the GSS server, but one very rapidly runs into problems with firewalls when it comes to even such a simple thing as sending e-mail based on this (since few IT environments make SMTP available to their internal e-mail servers, and external e-mail systems like Gmail are also typically firewalled off by IT departments), let alone more complex things which quickly tend to end up needing assistance from external webservices (which tends to open more complexity of configuration and questions about security).
    /quote

    Maybe you send a PM to him.

    Greetings

    Alexander Emmer


  • 13.  RE: How I Get Task Status through command line?

    Posted Aug 19, 2009 03:53 AM
    If found an article in the forum, which dealt with a same problem. There Mr. Bree wrote a sript, which collects all the statuses from tasks etc. This is what he says:

    /quote
    I have written a notification script which periodically collects a list of completed tasks and their statuses from the GSS server, but one very rapidly runs into problems with firewalls when it comes to even such a simple thing as sending e-mail based on this (since few IT environments make SMTP available to their internal e-mail servers, and external e-mail systems like Gmail are also typically firewalled off by IT departments), let alone more complex things which quickly tend to end up needing assistance from external webservices (which tends to open more complexity of configuration and questions about security).
    /quote

    Maybe you send a PM to him.

    Greetings

    Alexander Emmer