<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Eric Mattingly's Blog</title><link>http://blogs.technet.com/b/erimat/</link><description>Eric Mattingly is a Service Engineer in Microsoft IT.  This blog gathers his thoughts and learnings on supporting enterprise applications both on premise and in Azure</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>Backing Up Unsealed SCOM 2012 Management Packs to TFS</title><link>http://blogs.technet.com/b/erimat/archive/2012/08/22/backing-up-unsealed-scom-management-packs-to-tfs.aspx</link><pubDate>Thu, 23 Aug 2012 04:30:00 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3504563</guid><dc:creator>Eric Mattingly</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/erimat/rsscomments.aspx?WeblogPostID=3504563</wfw:commentRss><comments>http://blogs.technet.com/b/erimat/archive/2012/08/22/backing-up-unsealed-scom-management-packs-to-tfs.aspx#comments</comments><description>&lt;p&gt;There are many different solutions out on the web for backing up unsealed management packs in Operations Manager.&amp;nbsp; Most of these involved storing the backups on a share somewhere and usually still required manual intervention.&lt;/p&gt;
&lt;p&gt;After using (and loving) the new &lt;a href="http://social.technet.microsoft.com/wiki/contents/articles/5236.visual-studio-authoring-extensions-for-system-center-2012-operations-manager-en-us.aspx" target="_blank"&gt;Visual Studio Authoring Extensions&lt;/a&gt; I began to think about how I can get my unsealed MPs in TFS as well.&amp;nbsp; This would then give me a one stop shop for all the management packs used in my environments.&amp;nbsp; It would also give me an easy way to view the changes that were made.&lt;/p&gt;
&lt;p&gt;The result of my daydreaming (and work!) is the below script.&lt;/p&gt;
&lt;p&gt;This PowerShell script (although some might call it &amp;ldquo;C# in PS&amp;rdquo;) will sync any unsealed Management Packs to a folder in TFS.&amp;nbsp; It works by exporting all unsealed MPs and then checking TFS for differences.&amp;nbsp; It will do adds, edits, and deletes in TFS and check-in all pending changes.&lt;/p&gt;
&lt;h1&gt;Requirements:&lt;/h1&gt;
&lt;p&gt;This PowerShell script must be run on a server with the following installed:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="http://visualstudiogallery.msdn.microsoft.com/a37e19fb-3052-4fc9-bef7-4a4682069a75" target="_blank"&gt;Team Foundation Server 2012 SP1 Object Model&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;SCOM 2012 Operations Console&lt;/li&gt;
&lt;/ol&gt;&lt;ol&gt;&lt;/ol&gt;
&lt;h1&gt;Use:&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;&lt;span color="#ff0000" style="color: #ff0000;"&gt;Script is at the bottom of this post&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;First things first, you will have to configure the script with the details of your environment&amp;hellip;&lt;/p&gt;
&lt;table cellspacing="0" cellpadding="2" border="1" style="width: 600px;"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td valign="top" width="200"&gt;Variable&lt;/td&gt;
&lt;td valign="top" width="200"&gt;Description&lt;/td&gt;
&lt;td valign="top" width="200"&gt;Example Value&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign="top" width="200"&gt;$TfsUrl&lt;/td&gt;
&lt;td valign="top" width="200"&gt;URL to the TFS instance which will be used.&amp;nbsp; This can be found by connected to TFS and viewing the properties of it in Visual Studio Team Explorer&lt;/td&gt;
&lt;td valign="top" width="200"&gt;http://servername:8080/tfs/projectcollection&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign="top" width="200"&gt;$TfsFolder&lt;/td&gt;
&lt;td valign="top" width="200"&gt;Folder in TFS where the MPs will be stored&lt;/td&gt;
&lt;td valign="top" width="200"&gt;$/Monitoring/SCOM/Management Packs/Unsealed Management Packs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td valign="top" width="200"&gt;$ManagementServerName&lt;/td&gt;
&lt;td valign="top" width="200"&gt;The FQDN of any management server in the management group&lt;/td&gt;
&lt;td valign="top" width="200"&gt;CONTOSOMS01.contoso.corp.com&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;With that you should be good to go!&amp;nbsp; The script does drop events which can be tracked.&amp;nbsp; Down the road, Ill share a management pack for alerting on any issues.&lt;/p&gt;
&lt;p&gt;Also, check back in the future for a post on the V2 version of this (Hint &amp;ndash; This would make a nice custom Activity in an Orchestrator Integration Pack&amp;hellip; )&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please provide any feedback on the script in the comments below.&amp;nbsp; I'm always one to give credit to others for finding bugs or providing improvements.&lt;/p&gt;
&lt;p&gt;This posting is provided "AS IS" with no warranties, and confers no rights. Use of included utilities are subject to the terms specified at &lt;a href="http://www.microsoft.com/info/cpyright.htm" target="_blank"&gt;http://www.microsoft.com/info/cpyright.htm&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3504563" width="1" height="1"&gt;</description><enclosure url="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-components-postattachments/00-03-50-45-63/UnsealedMPBackupToTfs.zip" length="3295" type="application/zip" /><category domain="http://blogs.technet.com/b/erimat/archive/tags/SCOM/">SCOM</category><category domain="http://blogs.technet.com/b/erimat/archive/tags/Operations+Manager+2012/">Operations Manager 2012</category><category domain="http://blogs.technet.com/b/erimat/archive/tags/OpsMgr+2012/">OpsMgr 2012</category><category domain="http://blogs.technet.com/b/erimat/archive/tags/TFS/">TFS</category><category domain="http://blogs.technet.com/b/erimat/archive/tags/System+Center+2012/">System Center 2012</category><category domain="http://blogs.technet.com/b/erimat/archive/tags/opsmgr2012/">opsmgr2012</category><category domain="http://blogs.technet.com/b/erimat/archive/tags/OpsMgr/">OpsMgr</category></item><item><title>Missing Data in Operation Manager 2012 Dashboard’s Performance Widget</title><link>http://blogs.technet.com/b/erimat/archive/2012/06/18/missing-data-in-dashboard-s-performance-widget.aspx</link><pubDate>Mon, 18 Jun 2012 22:10:55 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3504556</guid><dc:creator>Eric Mattingly</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://blogs.technet.com/b/erimat/rsscomments.aspx?WeblogPostID=3504556</wfw:commentRss><comments>http://blogs.technet.com/b/erimat/archive/2012/06/18/missing-data-in-dashboard-s-performance-widget.aspx#comments</comments><description>&lt;p&gt;One of my favorite new features in SCOM 2012 is the &lt;a href="http://blogs.technet.com/b/momteam/archive/2011/09/27/introducing-operations-manager-2012-dashboards.aspx" target="_blank"&gt;Dashboard&lt;/a&gt;.&amp;#160; It’s a perfect way to surface SCOM data easily to a wide spectrum of people.&lt;/p&gt;  &lt;p&gt;One of the first dashboards we created included a performance widget however we did not get the graph that we expected:&lt;/p&gt;  &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-10-metablogapi/8168.PerformanceWidgetMissingDataBefore_2D00_Scrubbed_5F00_45682730.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="PerformanceWidgetMissingDataBefore (Scrubbed)" border="0" alt="PerformanceWidgetMissingDataBefore (Scrubbed)" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-10-metablogapi/8171.PerformanceWidgetMissingDataBefore_2D00_Scrubbed_5F00_thumb_5F00_70408B42.png" width="628" height="350" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Why are the lines all funny looking?&lt;/p&gt;  &lt;p&gt;To understand the problem better you have to first understand how the performance widget works.&amp;#160; If you look at the image, I set my timeline to only the last one hour.&amp;#160; Based on the introduction article - &lt;a title="http://blogs.technet.com/b/momteam/archive/2011/10/04/widgets-performance-widget.aspx" href="http://blogs.technet.com/b/momteam/archive/2011/10/04/widgets-performance-widget.aspx"&gt;http://blogs.technet.com/b/momteam/archive/2011/10/04/widgets-performance-widget.aspx&lt;/a&gt;, this means that the data is being pulled from the raw tables in the Data Warehouse.&amp;#160; The following chart helps to visualize this:&lt;/p&gt;  &lt;div align="center"&gt;   &lt;table border="1" cellspacing="0" cellpadding="2" width="401" align="center"&gt;&lt;tbody&gt;       &lt;tr&gt;         &lt;td valign="top" width="198"&gt;&lt;strong&gt;Time Range Selected&lt;/strong&gt;&lt;/td&gt;          &lt;td valign="top" width="201"&gt;&lt;strong&gt;Source of Data&lt;/strong&gt;&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top" width="198"&gt;&amp;lt; 100 Hours&lt;/td&gt;          &lt;td valign="top" width="201"&gt;Raw Data&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top" width="198"&gt;100 Days &amp;gt; &amp;lt; 100 Hour&lt;/td&gt;          &lt;td valign="top" width="201"&gt;Hourly Aggregate&lt;/td&gt;       &lt;/tr&gt;        &lt;tr&gt;         &lt;td valign="top" width="198"&gt;&amp;gt; 100 Days&lt;/td&gt;          &lt;td valign="top" width="201"&gt;Daily Aggregate&lt;/td&gt;       &lt;/tr&gt;     &lt;/tbody&gt;&lt;/table&gt; &lt;/div&gt;  &lt;p&gt;So this means we were missing some of the raw data necessary to graph the line.&amp;#160; Since I was not getting any alerts around failing to store data in the Data Warehouse I went to investigate the performance collection rule in the Management Pack.&amp;#160; It was here I found that this specific rule was using the Optimized Data Provider and this was very likely the root cause.&amp;#160; To provide some background, a performance collection rule (which is how performance data gets into SCOM)&amp;#160; can use one of many data provider modules. These modules are in charge of reading and outputting System.Performance.Data data at a timed interval which will then get sent to the configured data sources (typically the OperationsManager and OperationsManagerDW databases).&amp;#160; &lt;/p&gt;  &lt;p&gt;The Optimized Data Provider is special in that it will only send data if the value delta has changed by a specified tolerance amount.&amp;#160; An example of this is that if the &lt;strong&gt;% Processor Time\_Total&lt;/strong&gt; counter stays at 5%, only the first instance will be sent and a configured number of instances will then be “skipped”.&amp;#160; (I am putting this in extremely basic terms and glossing over some details, to learn more about this module check out - &lt;a title="http://msdn.microsoft.com/en-us/library/ee809318.aspx" href="http://msdn.microsoft.com/en-us/library/ee809318.aspx" target="_blank"&gt;http://msdn.microsoft.com/en-us/library/ee809318.aspx&lt;/a&gt;)&lt;/p&gt;  &lt;p&gt;If you clicked through to the module description you noticed that there is a way to turn “convert” the data collection back to unoptimized:&lt;/p&gt;  &lt;p&gt;&lt;em&gt;The System.Performance.OptimizedDataProvider module type can output both optimized and unoptimized data. Unoptimized data results in a performance data item being returned once every specified polling interval. Use this when you want to collect every performance data value, regardless of whether the value has changed since the last polling interval. &lt;/em&gt;&lt;/p&gt;  &lt;p&gt;&lt;em&gt;To specify unoptimized collection, set the Tolerance parameter to 0 and set the MaximumSampleSeparation to 1.&lt;/em&gt;&lt;/p&gt;  &lt;p&gt;Now that we knew we can “fix” this with an override, we had to figure out what rule the override will apply to.&amp;#160; The easiest way to find the rule in the SCOM console is to open up a performance view of a server, right-clicking on the counter in the list on the bottom and selecting “Show or edit rule properties”&lt;/p&gt;  &lt;p&gt;One thing to remember before making this change, this data provider is used on purpose as it helps to reduce the network traffic from the agent and the load on the SCOM databases.&amp;#160; I would recommend not performing this override on all performance collections but only to a select few.&lt;/p&gt;  &lt;p&gt;After the overrides were processed by the server agents, all performance data was being sent to the Management Server and both the OperationsManager and OperationsManagerDW databases.&lt;/p&gt;  &lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt; Checking out our dashboard, we saw nice solid lines and no confusion for viewers!   &lt;p&gt;&lt;a href="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-10-metablogapi/3835.PerformanceWidgetMissingDataAfter_2D00_Scrubbed_5F00_52498F47.png"&gt;&lt;img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="PerformanceWidgetMissingDataAfter (Scrubbed)" border="0" alt="PerformanceWidgetMissingDataAfter (Scrubbed)" src="http://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-90-10-metablogapi/6562.PerformanceWidgetMissingDataAfter_2D00_Scrubbed_5F00_thumb_5F00_78AB7292.png" width="631" height="354" /&gt;&lt;/a&gt;&lt;/p&gt;  &lt;p&gt;Happy Monitoring!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3504556" width="1" height="1"&gt;</description><category domain="http://blogs.technet.com/b/erimat/archive/tags/SCOM/">SCOM</category><category domain="http://blogs.technet.com/b/erimat/archive/tags/Authoring/">Authoring</category></item></channel></rss>