Management Pack Script Troubleshooting

Quick Post – Import-SCOMManagementPack : The requested management pack is not valid. See inner exception for details.

I have seen in the forum there are some difficulties using the Import-SCOMManagementPack cmdlet for SCOM 2012. Some time ago I wrote a post about how to import multiple MPs using Import-SCOMManagementPack.

If you try to import just one MP you might get a meaningless error in PowerShell like this…

image

The solution is to check the OperationsManager event log on the management server where you try to import the MP. There you will find an error event 26319 like this…

image


Full Exception: : Management Pack “[Microsoft.SystemCenter.ClientMonitoring.Library, 31bf3856ad364e35, 7.0.9538.0]” kann nicht importiert werden. Diese Version des Management Packs wurde bereits in die Datenbank importiert.

If you look close at the bottom line you will find the exact reason for the cmdlet to fail. The sentence is in German but in my case it says, that this version of MP already exists in the database.

Lessons learned: Not all problems are that hard to solve – may the force of the event log be with you :).

2 Replies to “Quick Post – Import-SCOMManagementPack : The requested management pack is not valid. See inner exception for details.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.