Adding a GOTO element
The GOTO element is used to skip steps or jump to the end of the runbook.
Use the GOTO element in the following scenarios:
- The execution was successful and you can complete the runbook
- For example:
- Restart the Application Server.
- If this was successful, then go to the END.
- Check your log files.
- Run optional steps as result of a check
- For example:
- Log in to the server where you want to start the application server.
- Check the current CPU consumption. If it is less than 80% GOTO Step 5.
- Find the process consuming the most CPU.
- Determine the process.
- Start the application server.
- Check the log file for confirmation that the application server is started.