Use this Knowledge Script to stop and then restart an IIS server. This script raises an event if the attempt to stop or restart a service fails or succeeds. Any services that are stopped when the job runs can also be detected and started.
When you use this Action with a Knowledge Script that supports dynamic observation and you enable the Dynamically observe Web servers at each interval parameter, you can only run this Knowledge Script on one Web site at a time. If you disable dynamic observation, you can run the Knowledge Script on all Web sites.
Set the following parameters as needed:
Parameter |
How to Set It |
---|---|
Raise event if attempt to restart fails or succeeds? |
Set to y to raise an event if the IIS server cannot be restarted, or if the server is successfully restarted. The default is y. |
Restart server? |
Set to y to restart the server. The default is y. |
Start all stopped services? |
Set to y to start all of the services. The default is n. |
Severity when restart... |
Set the event severity level, from 1 to 40, to indicate the importance when the attempt to restart stopped services: ... fails. Type a value that indicates the service is down and AppManager cannot restart it. The default is 10 (red event indicator). ... succeeds. Type a value that indicates the service was down and AppManager successfully restarted it. The default is 20 (blue event indicator). |