Orchestrator 2012 R2 – Runbook – Scheduled Reboot of servers

This runbook will run on a schedule and incorporate an already created manual reboot runbook, so that you can then have the option of rebooting servers manually or via a schedule.

This runbook will cover the following activities:

  1. Using the built-in Monitor Date/Time activity, to wait for a certain time to activate
  2. Using the built-in Check Schedule activity, to verify that it is the correct date/time to proceed
  3. Using the built-in Invoke Runbook activity to run the manual reboot runbook
  4. Using the built-in Send E-mail Message activity upon success

Reboots_Auto_1

Pre-work/learning

Store Credentials in Orchestrator Variables

Send a Mail Message

Create the manual runbook

Scheduling with Check Schedule

Steps

1. Monitor Date/Time

Reboots_Auto_2

I’ve entered 5:00 AM as the time in which this runbook will be triggered. Without the Check Schedule activity that is in place after this activity it would mean that this runbook would run each day at 5:00 AM.

Reboots_Auto_3.png

2. Link between activity 1 and 2

Reboots_Auto_4

3. Check Schedule

Reboots_Auto_5

My pre-made schedule allows for each Monday, Wednesday and Friday.

So these reboots will occur at 5:00AM each Monday, Wednesday and Friday.

Reboots_Auto_6

4. Link between activity 2 and 3

If the schedule is conformed to, then it will proceed to invoking the runbook.

Reboots_Auto_7.png

5. Invoke Runbook

Reboots_Auto_8.png

You need to select the runbook you wish to run and also provide the credentials for an account that perform the tasks under the Security tab.

Reboots_Auto_9.png

Reboots_Auto_10.png

6. Link between activity 3 and 4

If the invoked runbook ran successfully then it will send a notification e-mail in the next activity.

Reboots_Auto_11.png

7. Send E-mail Message

Reboots_Auto_12.png

Reboots_Auto_13.png

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s