OpsMgr: seal a management pack step by step

Sealing a management pack is fairly easy (everything’s easy when you’re good at it, i know), but this can be a little tricky the first couple of times. Follow this guide and you should not encounter any problems!

To get started you need to download sn.exe and all referenced management packs. For OpsMgr 2007, these can be found in the Program Files\Operations Manager folder. For OpsMgr 2012, these can be found on the installation media. I have uploaded sn.exe and the management packs you need. Download them from here.

It is far easiest seal management packs from your management server, as you need the Operations Manager assembly files.

Let get started!

 

First, on C: (or wherever suits you) create a folder called SealMP. In this folder you create the following folders:

Input (the original XML file exported from Operations Manager)

Output (destination for the .mp file)

Key (folder containing the pair key file)

MPs (containing all management packs for referencing)

Place sn.exe in the root of the folder.

 

Next, we need to create the key file. Open a command prompt to do this, and execute the following command:

sn –k PairKey.snk (as shown below).

clip_image001[4]

 

Next, extract the public key to the file with this command: sn –p PairKey.snk PubKey (as shown below)

clip_image002[4]

These commands should give you these two files:

clip_image003[4]

Copy these files to the Key folder.

 

Next, copy all downloaded management pack files (.mp) to the MPs folder.

Next, export the management pack you want to seal from Operations Manager and place it in the Input folder.

Next, copy the MPSeal.exe from the SupportTools folder on the OpsMgr installation media. Note: MPSeal.exe from 2007 will NOT Work in 2012.

 

Last, open a commando prompt with the following syntax:

MPSeal.exe C:\SealMP\input\XML NAME.xml\ /I “C:\SealMP\MPs” /keyfile “C:\SealMP\Key\PairKey.snk” /Company “YourCompany” /Outdir “C:\SealMP\output”

 

In my case that is:

MPSeal.exe C:\SealMP\input\MPSealDemo.xml /i “C:\SealMP\MPs” /keyfile “C:\SealMP\Key\PairKey.snk” /Company “Coretech” /Outdir “C:\SealMP\output” (as shown below)

 

clip_image005[4]

 

That’s it! Now you should have a .mp file in the output folder:

image

Happy sealing!

By | 2012-09-24T20:55:10+00:00 September 24th, 2012|Operations Manager (SCOM)|9 Comments

About the Author:

Michael Skov
Yet another guy loving the System Center products. My primary focus is on Operations Manager, which i have worked with for some years now - still loving it.Certifications:Microsoft Certified Solution Expert Private Cloud (MCSE)Microsoft Certified Solutions Associate Windows Server 2008 (MCSA)Microsoft Certified Technology Specialist Windows Server 2008 R2, Server Virtualization

9 Comments

  1. Michal Cherek August 7, 2013 at 13:26 - Reply

    Hi Michael

    How can I seal an MP which references mpb?

    Regards
    Michal

  2. Michael Skov August 20, 2013 at 10:38 - Reply

    Hi Michal
    You will need to place the reference management packs in the MP folder.
    Regards
    Michael

  3. John Bradshaw February 10, 2014 at 3:25 - Reply

    Hello Michael,
    Thx for this post. It is very easy to follow.
    I am trying to seal the MPs in Kevin’s post following, and get the error message below.
    I am running SCOM 2012R2.
    Any ideas how to resolve this?
    The xml file mentioned is there, I think, Microsoft.Windows.Library.xml, (Windows Core Library) but the version is 7.5.8501.0)
    (Pls tell me if this is maybe a question for Kevin??)
    Thx,
    John Bradshaw

    http://blogs.technet.com/b/kevinholman/archive/2014/02/05/opsmgr-logical-disk-free-space-alerts-don-t-show-percent-and-mb-free-values-in-the-alert-description-updated-for-server-2012.aspx

    Error 7:
    Found error in 2|Microsoft.Windows.Server.2003.Addendum|6.0.6958.0|Microsoft.Win
    dows.Server.2003.Addendum|| with message:
    Could not load management pack [ID=Microsoft.Windows.Server.Library, KeyToken=31
    bf3856ad364e35, Version=6.0.6958.0]. The management pack was not found in the st
    ore.
    Microsoft.EnterpriseManagement.Common.ObjectNotFoundException: An object of clas
    s ManagementPack with name Microsoft.Windows.Server.Library was not found.
    at Microsoft.EnterpriseManagement.AggregateStoreManagementPackManagement.GetM
    anagementPack(String name, String keytoken, Version version)
    at Microsoft.EnterpriseManagement.Configuration.ManagementPackReference.GetMa
    nagementPack()
    ——————————————————-

    Could not load management pack [ID=System.Library, KeyToken=31bf3856ad364e35, Ve
    rsion=6.1.7221.0]. The management pack was not found in the store.

  4. Michael Skov February 10, 2014 at 10:18 - Reply

    Hi John

    Make sure you have Microsoft.Windows.Server.Library in your MPs folder.

    Regards
    Michael

  5. John Bradshaw February 10, 2014 at 20:17 - Reply

    Yes, that is there.
    Microsoft.Windows.Server.Library.XML

    Anything else?
    Thx for you help,
    John

  6. John Bradshaw February 10, 2014 at 20:38 - Reply

    Hi Michael,
    Could it be a version thing with the MP?
    Cheers,
    John

  7. Michael Skov February 11, 2014 at 8:16 - Reply

    Hi John

    Yes, it is probably an issue with the version of the mp. Which version are you currently using?

  8. SOUVICK ROY November 14, 2014 at 19:18 - Reply

    I am trying to seal a MP but it ask for System Center Library Management pack, I have use your MP but no luck.

    We have SCOM 2012 R2 UR3 environment, could you please suggest how I will get that Library Management Pack? it was not public ally available…

    Thanks in Advance

  9. Rhendle October 20, 2015 at 23:08 - Reply

    Trying to seal a mp but getting the following error? Is this something that should be passed with the mpseal.exe?

    : XSD verification failed for management pack. [Line: 1, Position: 78]
    The ‘SchemaVersion’ attribute is not declared.

Leave A Comment