Server Management Suite

 View Only
  • 1.  How to Run a BAT file AND then deploy patches

    Posted Apr 25, 2011 03:36 PM

    Hi Everyone,

    I have been searching through the forums to help resolve what seems to be a really complicated task, but I haven't found anything. So, I hope I can some assistance here:

    I have 3 nodes that need to have their application & services stopped prior to Windows patches, restart the node, and then start the applications & services.

    The application admins have created the BAT files, which call up VBS files, and saved them locally, so delivery of the files has already been taken care, just kicking them off is where I need some help. 

    I started in Jobs and Tasks > System Jobs and Tasks > Software created a New Job, but for the Task I don't see anything listed to Execute an existing script.

    What I want to do is:

    1. Schedule a task that Runs 'RUN_HYP_STOP.bat' or the 'HYP_STOP.vbs' which actually stops the Services and applications
    2. Start install of patches via Patch Management
    3. Restart node
    4. Schedule a task that Runs 'RUN_HYP_START.bat' or the 'HYP_START.vbs' which actually stops the Services and applicatiions

    Thanks for viewing and offering any assistance

     



  • 2.  RE: How to Run a BAT file AND then deploy patches

    Posted Aug 17, 2011 03:47 PM

    I too would like to know how to do this. My local Symantec Engineer said it was possible then dropped off the face the planet on the How-To part of things. 3 hours of searching the interwebs have proven to be of little use.



  • 3.  RE: How to Run a BAT file AND then deploy patches

    Posted Sep 22, 2011 11:08 AM

    I am also intersed in hearing the solution to this issue.



  • 4.  RE: How to Run a BAT file AND then deploy patches

    Broadcom Employee
    Posted Sep 23, 2011 04:12 AM

    Hi,

    You can use aexpatchutil.exe to install patches. Pre- and Post- update install actions can be called from bat file, or by using Task Management infrastructure. Approximate algorythm would be:

    1. Run Your custom Pre-Update task

    2. Run AexPatchUtil.exe /Xa /Q to initiate patch cycle

    3. Run AexPatchUtil.exe /s /q >c:\state.txt to get Patch Agent State

    4. If State is READY or SCHEDULED - GoTo 5. Else - GoTo 3.

    5. Run Your custom Post-Update task