How to seal a manage pack bundle file (.mpb) ?

feiyu GUO 96 Reputation points
2020-12-02T00:09:54.017+00:00

We are using SCOM to monitor our products, and used SCOM SDK binaries to build manage packs. Recently we upgraded the MP Schema version to 2.0, but the reports didn't work, I have to use a manage pack bundle (.mpb) file to include the report resources. Question is: how to seal a manage pack bundle file (.mpb) with our copyright and key?

When generating mp file using ManagementPackAssemblyWriter, I can set copyright and key by ManagementPackAssemblyWriterSettings class and seal mp. But when generating mpb file using ManagementPackBundleWriter, I can't figure out method to seal mpb. I tried to get solution from internet, but didn't help. I also didn't find any tool to do it.

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,482 questions
0 comments No comments
{count} votes

Accepted answer
  1. feiyu GUO 96 Reputation points
    2020-12-02T12:11:12.88+00:00

    I have figured out the method to seal it: At first write ManagementPack object to sealed mp file by legacy way, then re-load the sealed mp file to ManagementPack object, finally merge the object with resource streams into mp bundle.
    Tested and worked as expected.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. CyrAz 5,181 Reputation points
    2020-12-02T14:01:44.637+00:00

    You can also use Silect's MPB Util : https://www.silect.com/mpbutil-a-free-utility-for-working-with-mpb-files/
    But if you're doing any kind of advanced MP authoring, you should rather consider using Visual Studio with VSAE which can also natively create MPBs.
    See here : https://michelkamp.wordpress.com/2012/11/06/vsae-adding-binary-resource-features/
    Or here : https://blog.tyang.org/2013/09/03/adding-images-opsmgr-2012-management-pack-vsae/

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.