Book Image

Microsoft System Center Orchestrator 2012 R2 Essentials

Book Image

Microsoft System Center Orchestrator 2012 R2 Essentials

Overview of this book

Table of Contents (14 chapters)

Runbook for Automatic System Log Archival


In this Runbook, we'll take an example: the need to archive and save space on a server that is identified as having a low disk space or even one that we would like to archive just for historical purposes.

It can also be used just to export the logs from a remote location to the HQ to analyze the logs of a certain server that was reported as having issues or presenting issues; by compressing them, we'll save bandwidth and be able to have a local copy of these logs.

As in the previous example, we'll quickly have an overview of the configurations of the activities in the Runbook, and we'll see how it will look.

This will be your Runbook, once finished:

So we start by collecting the computer name from the Initialize Data activity and it will be used across our Runbook in multiple activities (such as the Run Program activities) so we know where they'll be executed.

Then we'll use the current date to create a temporary working folder into which we'll gather...