Implementing error handling in your Runbooks
Always think about all the possible errors or problems, which can occur in your Runbooks, and try to build your Runbooks without a dead end.
There is nothing more annoying than a Runbook that seems to finish without any problem but is not doing what you are expecting because you have missed some possible ways, the Runbook can follow.
Getting ready
In our recipe, we will take care of our 1.2.2-Reboot a Server
runbook and add some error handling. In case a server will stuck on the reboot process, our Runbook would wait endless time for the server to come back, so this is definitely not what we want; let's do this better in this recipe.
Navigate to your Runbook with the name 1.2.2-Reboot a Server
.
How to do it…
After the following steps, you will be able to add Error Handling in your Runbooks:
- Navigate to the
Activities
section in the Runbook Designer. Click onNotification
; and select and drag anSend Event Log Message
activity to the middle pane of the...