IBM® Runbook Automation provides ready-to-go sample
runbooks. Load the examples to explore what you can do with runbooks.
Before you begin
Warning: If you want to edit a sample runbook and adjust it to your requirements, or
if you are considering publishing a modified sample runbook to use in production, it is recommended
to first create a copy of the sample runbooks and then edit and publish the copy. Similarly, if the
sample runbook uses an automated step, then create a copy of the automation action and use that copy
within your new runbook. This is to avoid losing your work (or even disrupting production) if
somebody deletes or reloads the sample runbooks.
You can load example runbooks if you have the
RBA Author or RBA Manager role.
For more information about roles, see Creating users.
Procedure
- Load sample runbooks
Load all pre-defined examples. You can also edit the example runbooks and create new
versions.
- In the
main navigation menu, select
Administration and click
Integration with other systems.
- Click Automation type.
- Ensure that a connection of type "SSH" has been configured. If it does not yet exist
you can configure it now (with default values).
- Open the runbook Library page.
- Click
Load sample runbooks and select Load sample
runbooks.
- The sample runbooks are shown in the Library page. The runbooks
will show up for Operators if they are published. The samples are marked by the text
Example:
.
- Click Preview to view the runbook and see what it
does.
- Click Run to run your first runbook. For more information about
how to run a runbook, see Run your first runbook.
- Sample runbooks with special administrative use cases
Some of the
following sample runbooks go beyond just illustrating the features of runbooks:
- Example: Convert existing operational procedures into runbooks: This runbook explains how
to convert your existing operational procedures into runbooks. It covers file based procedures and
web/wiki based procedures.
- Example: Import runbooks from an existing runbook deployment: Provides instructions on
how to export runbooks from one deployment and import them to another deployment. It uses the RBA
API for both operations.
- Example: Reduce amount of data in runbook data stores and its automated variant
Example: Automatically reduce amount of data in runbook data stores: Offload runbook
execution data into a secondary data store for auditing or long-term storage purposes. This will
delete that data from the production data store to ensure less disc space usage and faster response
times on the active system.
- Example: Add new SSH key to target systems and Example: Remove old SSH key from target
systems: These sample runbooks assist you during deployment migration. As part of the migration,
you must install the SSH key of the new deployment to all target systems that were previously
reached from the old deployment, using that old deployment's SSH key. This is a prerequisite step
when you plan to migrate your runbooks and script automations from the old deployment to the new
deployment. For more details, see Installing new SSH key during migration.
- Reset sample runbooks
Follow these steps if you edited the examples and would like to reload the original version, or
if you have upgraded to a new version and want to get the latest versions of the examples:
- Open the runbook Library page.
- Open the Reload sample runbooks
menu.
- Select Delete sample runbooks and wait for the sample runbooks
to be deleted.
- Open the Load sample runbooks
menu.
- Select the Load sample runbooks menu item and wait for the
sample runbooks to be loaded.
- Convert a sample runbook to a regular runbook
To save a sample runbook as a regular runbook:
- Open the Library page.
- On the runbook that you want to convert, click the menu overflow icon and select
Copy runbook.
- Change the runbook name. You can optionally update the description.
- Click Save.
After saving, the runbook will no longer be tagged as an example.
- If the sample runbook references an automation, then you need to create a "deep copy"
manually:
- Navigate to the Automation table and select the referenced sample
automation.
- Copy the sample automation and modify its name so you can identify the copy.
- Edit the copy of the sample runbook, and replace the reference to the original sample automation
with a reference to your new copy of the sample automation.
- Delete sample runbooks
- Open the Library page.
- Click
Load sample runbooks and select Delete sample
runbooks.
- Confirm that you want to delete the sample runbooks from the
Library page.