In System Center Orchestrator 2012, every runbook generates a log when it is running. The Runbook Designer enables you to view both real-time log information and historic logs.
The Log pane displays the real-time log of the runbook. The log displays when the runbook was started, and the activity that is currently running has the running label beside it. The log enables you to determine if there are any problems with specific activities in your runbook.
The Log History tab in the bottom of the Runbook Designer displays all completed runbooks. The time that the runbook started and ended is displayed at the top of each log entry. The result of each completed activity is displayed for each entry.
Use the following steps to troubleshoot your runbook.
Troubleshoot Your Runbook
From the Runbook Designer, go to Log pane at the bottom, and then select the Log History tab.
Select a run session, and double-click to open the Runbook Details dialog box.
From the Activity name column, select an activity, and then double-click the activity to open the Details dialog box.
Review the activity Name, Type, Status, Start Time, and End Time.
Review the Returned Data box for the published data that the activity published when it ran.
Click the Down Arrow button to view the details of the next activity in the runbook, and click the Up Arrow button to view the details of the previous activity.
Configuring Runbook Log Options
The Runbook Designer enables you to add entries for activity-generated or common published data items to the runbook log and the data store, or to exclude them.
|By default, logging options are disabled. Be aware that adding these items to the log increases the size of the data store.|
To configure runbook log options
In the Runbook Designer, go to the Connections pane on the left side and select a runbook from the Runbook folders.
Right-click the runbook tab above the workspace and select Properties to open the runbook Properties dialog box.
Click on the Logging tab.
To add published data items that were generated by activities in this runbook to the log and data store, select the Store Activity-specific Returned Data check box.
To add common published data items to the log and data store, select the Store Common Returned Data check box. The following items are added to the log:
- Activity Name
- Activity Type
- Activity ID
- Activity End Time Year, Month, Day, Weekday,
Hours, Minutes, Seconds
- Activity Duration
- Previous Activity
- Previous Activity Name
- When one or both logging options are
selected, the Activity Start Time, Activity End Time, Activity
Status, and Error Summary Text are added to the log.
- Activity Name