{"id":3583,"date":"2013-05-11T22:17:24","date_gmt":"2013-05-11T20:17:24","guid":{"rendered":"http:\/\/contoso.se\/blog\/?p=3583"},"modified":"2013-05-12T21:36:26","modified_gmt":"2013-05-12T19:36:26","slug":"operations-manager-admin-integration-pack-v1","status":"publish","type":"post","link":"http:\/\/contoso.se\/blog\/?p=3583","title":{"rendered":"Operations Manager Admin Integration Pack (v1)"},"content":{"rendered":"<p>With the System Center Integration Pack for System Center 2012 Operations Manager we can integrate with Operations Manager and automate maintenance mode, alert handling, monitor for alerts, and state changes. Unfortunately there are no activities for handling management packs or management pack objects.<\/p>\n<p>Some time ago I posted a blog post around self-service for Operations Manager (http:\/\/contoso.se\/blog\/?p=2764). That idea was built around creating new objects, like a rule, in XML and then import the management pack. While this works fine in some scenarios, there are other scenarios where it would be nice to have a bit more flexibility and reliability.<\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/rslaten\">Russ Slaten<\/a> (a true Texans with a lot of guns), a PFE colleague and Operations Manager Jedi from the US and I have built a first version of what we call \u00e2\u20ac\u0153Operations Manager Admin Integration Pack\u00e2\u20ac\u009d for Orchestrator. The purpose of this integration pack is to enable more self-service and automation scenarios in Operations Manager.<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_IP_Activities.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-full wp-image-3584\" alt=\"20130506_IP_Activities\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_IP_Activities.jpg\" width=\"233\" height=\"192\" \/><\/a><\/p>\n<p>Activities in version 1 are<\/p>\n<ul>\n<li>Create MP. Creates a new management pack<\/li>\n<li>Create Performance Collection Rule. Creates a rule that collects performance data<\/li>\n<li>Create Event Alert Rule. Creates a rule that generates an alert based on event viewer event<\/li>\n<li>Delete Management Pack. Delete a management pack<\/li>\n<li>Delete Rule. Deletes an rule based on rule ID<\/li>\n<li>Export Management Pack. Exports a management pack<\/li>\n<li>Get Management Pack. Lists management packs from the management group<\/li>\n<li>Get Rule. List rules. With default settings the activity will list all rules, use the Displayname property to filter the search result<\/li>\n<li>Import Management Pack. Imports a management pack to the management group<\/li>\n<\/ul>\n<p>These activities doesn\u00e2\u20ac\u2122t use global connections, instead you can specify management server in each activity. This integration pack requires Operations Manager PowerShell snap-in on all Runbook servers.<\/p>\n<p>As I think you have already realized, this integration pack enables a lot more self-service scenarios where non-Operations Manager Engineers can order new objects and handle management packs. Please take it for a spin and let us know what you think!<\/p>\n<p>Example configuration for the \u00e2\u20ac\u0153Create Rule Collection Performance\u00e2\u20ac\u009d activity<\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"207\">OM \u00c2\u00a0 Server Name<\/td>\n<td valign=\"top\" width=\"633\">SCOM-Lit.Litware.com<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">MP \u00c2\u00a0 Name<\/td>\n<td valign=\"top\" width=\"633\">Custom.Example.Sandbox<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">Rule \u00c2\u00a0 Name<\/td>\n<td valign=\"top\" width=\"633\">Custom.Example.Sandbox.Rule.Test1<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">Rule \u00c2\u00a0 Displayname<\/td>\n<td valign=\"top\" width=\"633\">Sandbox \u00c2\u00a0 Test Rule 1<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">Rule \u00c2\u00a0 Description<\/td>\n<td valign=\"top\" width=\"633\">Sandbox \u00c2\u00a0 Rule for testing<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">Rule \u00c2\u00a0 Target<\/td>\n<td valign=\"top\" width=\"633\">&#8216;Microsoft.Windows.Computer&#8217;<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">Object \u00c2\u00a0 Name<\/td>\n<td valign=\"top\" width=\"633\">Processor<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">Counter \u00c2\u00a0 Name<\/td>\n<td valign=\"top\" width=\"633\">% \u00c2\u00a0 Processor Time<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">All \u00c2\u00a0 Instances<\/td>\n<td valign=\"top\" width=\"633\">TRUE \u00c2\u00a0 (used for multi instance counters)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">Instance \u00c2\u00a0 Name<\/td>\n<td valign=\"top\" width=\"633\">If \u00c2\u00a0 AllInstances is false, then fill this in with either a target variable or \u00c2\u00a0 fixed value<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">Interval \u00c2\u00a0 Seconds<\/td>\n<td valign=\"top\" width=\"633\">300<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">DW \u00c2\u00a0 Only (Data Warehouse)<\/td>\n<td valign=\"top\" width=\"633\">TRUE \u00c2\u00a0 (If you only want to write to the data warehouse)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">Is \u00c2\u00a0 Optimized<\/td>\n<td valign=\"top\" width=\"633\">TRUE \u00c2\u00a0 (Use if you&#8217;re using the optimized data provider)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">Tolerance<\/td>\n<td valign=\"top\" width=\"633\">10 \u00c2\u00a0 (Percentage or absolute. If value changes more than x then collect, otherwise \u00c2\u00a0 skip)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">Tolerance \u00c2\u00a0 Type<\/td>\n<td valign=\"top\" width=\"633\">Percentage \u00c2\u00a0 (Percentage or Absolute)<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"207\">Maximum \u00c2\u00a0 Sample Separation<\/td>\n<td valign=\"top\" width=\"633\">12 \u00c2\u00a0 (How many samples can be skipped before forcing collection)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Example configuration for the \u00e2\u20ac\u0153Create Alert Event Rule\u00e2\u20ac\u009d activity<\/p>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"169\">Management Pack ID<\/td>\n<td valign=\"top\" width=\"434\">Custom.Example.Sandbox1<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"169\">Management Server<\/td>\n<td valign=\"top\" width=\"434\">SCOM-Lit.Litware.com<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"169\">Rule ID<\/td>\n<td valign=\"top\" width=\"434\">Custom.Example.Sandbox.Rule.AlertTest8<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"169\">Rule Description<\/td>\n<td valign=\"top\" width=\"434\">Sandbox Rule for testing<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"169\">Rule Displayname<\/td>\n<td valign=\"top\" width=\"434\">Sandbox Test Alert Rule 8<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"169\">Rule Target<\/td>\n<td valign=\"top\" width=\"434\">Microsoft.Windows.Computer<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"169\">Computer Name<\/td>\n<td valign=\"top\" width=\"434\">$Target\/Property[Type=&#8221;Windows!Microsoft.Windows.Computer&#8221;]\/PrincipalName$<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"169\">Event Log Name<\/td>\n<td valign=\"top\" width=\"434\">Operations Manager<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"169\">Event ID<\/td>\n<td valign=\"top\" width=\"434\">9999<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"169\">Event Source<\/td>\n<td valign=\"top\" width=\"434\">OpsMgr Scripting Event<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"169\">Alert Name<\/td>\n<td valign=\"top\" width=\"434\">Sandbox Test Alert Rule 8<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"169\">Alert Priority<\/td>\n<td valign=\"top\" width=\"434\">High = 2Medium = 1Low = 0<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"169\">Alert Severity<\/td>\n<td valign=\"top\" width=\"434\">Critical = 2Warning = 1Information = 0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Example configuration for the Create Management Pack activities<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_CreateMP.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-3588\" alt=\"20130506_CreateMP\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_CreateMP-300x206.jpg\" width=\"300\" height=\"206\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_CreateMP-300x206.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_CreateMP.jpg 621w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Example configuration for the Delete Management Pack activities<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_DeleteMP.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-3589\" alt=\"20130506_DeleteMP\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_DeleteMP-300x205.jpg\" width=\"300\" height=\"205\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_DeleteMP-300x205.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_DeleteMP.jpg 620w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Example configuration for the Delete Rule activities<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_DeleteRule.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-3590\" alt=\"20130506_DeleteRule\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_DeleteRule-300x206.jpg\" width=\"300\" height=\"206\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_DeleteRule-300x206.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_DeleteRule.jpg 624w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Example configuration for the Export Management Pack activities<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_ExportMP.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-3591\" alt=\"20130506_ExportMP\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_ExportMP-300x206.jpg\" width=\"300\" height=\"206\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_ExportMP-300x206.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_ExportMP.jpg 623w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Example configuration for the Get Management Pack activities<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_GetMP.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-3592\" alt=\"20130506_GetMP\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_GetMP-300x206.jpg\" width=\"300\" height=\"206\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_GetMP-300x206.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_GetMP.jpg 622w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Example configuration for the Get Rule activities<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_GetRule.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-3593\" alt=\"20130506_GetRule\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_GetRule-300x204.jpg\" width=\"300\" height=\"204\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_GetRule-300x204.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_GetRule.jpg 625w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Example configuration for the Import Management Pack activities<\/p>\n<p><a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_ImportMP.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-3594\" alt=\"20130506_ImportMP\" src=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_ImportMP-300x206.jpg\" width=\"300\" height=\"206\" srcset=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_ImportMP-300x206.jpg 300w, http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/20130506_ImportMP.jpg 622w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Big thanks to our colleague <a href=\"http:\/\/blogs.technet.com\/b\/stefan_stranger\/\">Stefan Stranger\u00c2\u00a0<\/a> for Powershell support a very early morning \ud83d\ude42<\/p>\n<p>Download the IP, <a href=\"http:\/\/contoso.se\/blog\/wp-content\/uploads\/2013\/05\/OMAdminTasks_20130508-1.zip\">OMAdminTasks_20130508-1<\/a><\/p>\n<p>Note that this is provided \u00e2\u20ac\u0153AS-IS\u00e2\u20ac\u009d with no warranties at all. This is not a production ready management pack or solution, just a idea and an example.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>With the System Center Integration Pack for System Center 2012 Operations Manager we can integrate with Operations Manager and automate maintenance mode, alert handling, monitor for alerts, and state changes. Unfortunately there are no activities for handling management packs or management pack objects. Some time ago I posted a blog post around self-service for Operations &hellip; <a href=\"http:\/\/contoso.se\/blog\/?p=3583\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[61,60],"tags":[],"_links":{"self":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3583"}],"collection":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3583"}],"version-history":[{"count":9,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3583\/revisions"}],"predecessor-version":[{"id":4442,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3583\/revisions\/4442"}],"wp:attachment":[{"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3583"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/contoso.se\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}