Release Automation

  • 1.  action pack for IIS

    Posted Sep 09, 2016 07:18 AM

    Action pack for run iisreset.exe



  • 2.  Re: action pack for IIS

    Broadcom Employee
    Posted Sep 09, 2016 10:26 AM

    Hello,

     

    This was created under the CA Automation community. I believe you are asking about an action in Release Automation that will give you the same functionality as iisreset.exe so I have moved this question to the Release Automation community. In regards to your question, I'm not familiar with iisreset.exe. But while searching google for a description of what it does I found many references to iis5 which is pretty old. But it looks like people are saying that it can still be used with iis7. I also found references indicating that it does a few things like stop/start windows services (like w3svc, ftp, iis, ???) and restarts an iis application pool. 

     

    Based on this it would sound like you might need to use one or more actions to stop the windows services. And then check the iis and iis7 action packs for actions that will restart the application pool. 

     

    Please let us know if this helps or you still have questions/problems.

     

    Kind regards,

    Gregg



  • 3.  Re: action pack for IIS

    Broadcom Employee
    Posted Sep 09, 2016 12:19 PM

    What exactly are you trying to run? Are you trying to perform a start/stop command of the IIS server? If this is the case, it is recommended that you use the "net stop WAS and net start W3SVC". This is based off the following recommendation from Microsoft.

     

    https://technet.microsoft.com/en-us/library/cc732317%28v=ws.10%29.aspx

     

     

    As you can see, you will then use the actions marked by the arrows, which will allow you to start/stop/restart the windows service. You could also use the action to check if the service is running, prior to making the correct selection in regards to what to do with the Windows service.

     

    Thanks

     

    -Walter



  • 4.  Re: action pack for IIS

    Posted Sep 09, 2016 11:59 PM

    I know the start, stop,restart window services. If I use those action packs for which are available in service.msc. iisreset.exe is a application file in C:\window\System32\. Place iisreset name in run or search and press enter iisreset  will run stop and start iis related services. I need  which action pack supposed to run or invoke iisreset.exe application under C:\windows\System32 folder.



  • 5.  Re: action pack for IIS
    Best Answer

    Broadcom Employee
    Posted Sep 10, 2016 12:12 PM

    If all you want to do is run iisreset.exe then you can use the action: run command line

     

    is this okay?

     

    regards,

    gregg



  • 6.  Re: action pack for IIS

    Posted Sep 15, 2016 06:06 PM

    Thanks. It is working using run command line action



  • 7.  Re: action pack for IIS

    Broadcom Employee
    Posted Sep 15, 2016 04:07 AM

    Hi Rajeshwari560

    Please let us know if Gregg's latest reply answered your question. If it did, please mark it as correct. If your question is not answered or you still have additional questions please let us know.

    regards,

    Leo



  • 8.  Re: action pack for IIS

    Posted Sep 15, 2016 06:09 PM

    Yes. It is working now.



  • 9.  Re: action pack for IIS

    Posted Sep 15, 2016 11:50 AM

    You can create a custom action using RDK to run iisreset.exe with its input parameters (drop down list):

    /RESTART
    This option stops, and then restarts all running Internet services.
    /START
    This will start all Internet services that are set to autostart.
    /STOP
    This will stop all running Internet services.
    /REBOOT
    This parameter will restart the computer.
    /REBOOTONERROR
    This restarts the computer only when an error occurs when trying to start, stop, or restart the Internet services.
    /NOFORCE
    Do not shut down Internet services on failure to stop them gracefully.
    /TIMEOUT:val
    This allows you to specify the timeout value in seconds waiting for a successful stop of Internet services. On expiration of this timeout, the computer can be restarted if the /REBOOTONERROR parameter is specified. The default value is 20 seconds for restart, 60 seconds for stop.
    /STATUS
    This displays the status of all Internet services.
    /ENABLE
    This enables the Restart API for Internet services.
    /DISABLE
    This will disable the Restart API for Internet services.