Client Management Suite

 View Only
  • 1.  Exit code for Script to install software

    Posted Apr 05, 2013 05:15 AM

    Hi, I have a task that runs a script to install some software. The software needs a reboot and as such the task reports as failed with error 3010 - even though it was successful and just needs a reboot. Is there anyway I can make this task report as successful ? (like a software deployment job)

    Thanks

    Joe.

     



  • 2.  RE: Exit code for Script to install software

    Broadcom Employee
    Posted Apr 05, 2013 06:32 AM

    Hi,

    Do you use Quick Delivery task type to install the software?

     

    Thanks,

    Andrew.



  • 3.  RE: Exit code for Script to install software

    Posted Apr 05, 2013 06:45 AM

    I do - but I'm having an issue with 1 particular PS where it doesn't copy the software to the client because there is no snapshot.xml file on the PS. I've tried regenerating the snapshots as per KB. it gets to a point where i try and gauge how long troubleshooing will take Vs creating a quick working alternative (the script works) - I think i've exhausted our customers patience with the amount of issues we've had with this software

    Thanks

    Joe.

     

    OK - just seen another post that says adding 'exit 0' as the last line should do the trick - will give it a try

     

     



  • 4.  RE: Exit code for Script to install software

    Broadcom Employee
    Posted Apr 05, 2013 07:28 AM

    Hi Joe,

     

    The native way to implement it is just to use one of the Software Delivery tasks (Quick Delivery or Package Delivery) or Managed Delivery policy. These tasks\policies will use success codes defined for command line that is used for software delivery (just make sure that exit code 3010 is added to the list of success codes).

    If you cannot use SW delivery tasks and policies by some reason you can use job instead with adding condition which will return 0 for the entire job if your script task will return 3010 exit code.

     

    Thanks,

    Andrew.



  • 5.  RE: Exit code for Script to install software

    Posted Apr 05, 2013 07:37 AM

    Are you aware of any tutorials on how to setup these conditions ?



  • 6.  RE: Exit code for Script to install software

    Posted Apr 05, 2013 08:50 AM

    found this which tells me how to do it in the script

    http://www.symantec.com/business/support/index?page=content&id=TECH12314

    Joe.



  • 7.  RE: Exit code for Script to install software

    Posted Apr 06, 2013 02:15 AM

    go to the Report--> Task Server---> status---> Job/Task Status Detail