SCOM 2012 and 2016 Unsealed MP Backup


 

image

This is a management pack that I use in every customer environment.  You *NEED* to backup your unsealed MP’s.  This will allow you to quickly recover from a mistake, without having to restore your databases from a backup.  Over the years, I have seen many customers accidentally delete workflows, mess up their RunAs accounts, break AD integration, or break their notifications.  All of these things are stored in unsealed MP’s.  We really need to back them up, with a daily history.  The amount of space needed is very small.

 

This is an updated version of the community MP from SystemCenterCentral.com written by Neale Brown, Derek Harkin, Pete Zerger and Tommy Gunn, located at:  http://www.systemcentercentral.com/pack-catalog/backup-unsealed-management-packs-opsmgr-2012-edition/

 

It contains a single rule which now targets the “All Management Servers Resource Pool” which will give this workflow high availability.

image

 

The rule runs once per day (24 hours) and executes a PowerShell script.

You can edit the Write Action configuration for the number of days, and the share location, or local directory:

image

 

This will create these directories if they do not exist, either a local path on the management server, or on a share you provide as above.

 

image

 

It will log events to the SCOM event log for tracking:

 

image

image

 

This script will run on one of your SCOM management servers, and will execute as the SCOM Management Server Action Account by default.  If you want to specify a specific account, there is a RunAs profile included.  You will need to use an account that has SCOM admins rights to the SDK, and read/write access to the directory or share that you choose.

image

 

 

Changes made:

  • Supports multiple management groups exporting to the same share path
  • Add start and completion logging with runtime and whoami.
  • Make SCOM management group SDK connection more reliable and with debug logging
  • Changed the rule target to the AMSRP from RMSe for high availability and future compatibility
  • Minor renames of MP ID, script, workflows, modules.  Cleaned up displaystrings.

 

You can download the MP here:

https://gallery.technet.microsoft.com/SCOM-2012-and-2016-2ccc45c0


Comments (1)

  1. Anu says:

    Hello Kevin,

    The help i a requesting is not relevant to this post, It will be helpful if you can provide a solution for this long running query.

    Is there any way that we can know who was deleted a Linux agent from SCOM.

    Thanks and regards..
    Anu

Skip to main content