<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.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>MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx</link><description>One of the things that I have been wanting to cover in this blog is advanced MP authoring. Lately I have been spending a fair bit of time doing MP related work so I am going to start blogging on this subject. My main focus will be to provide samples as</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#8354055</link><pubDate>Thu, 03 Apr 2008 18:03:06 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8354055</guid><dc:creator>T103988</dc:creator><description>&lt;p&gt;Thanks for this MP! It is very useful. Keep them coming. -T&lt;/p&gt;</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#8354152</link><pubDate>Thu, 03 Apr 2008 18:31:55 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8354152</guid><dc:creator>Pontus Blomqvist</dc:creator><description>&lt;p&gt;This is great info Boris. Keep it coming. //Pontus Blomqvist&lt;/p&gt;</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#8364757</link><pubDate>Mon, 07 Apr 2008 11:42:10 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8364757</guid><dc:creator>pixi</dc:creator><description>&lt;p&gt;amazing man, keep up the good work.. ill go checking on it later&lt;/p&gt;</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#8365067</link><pubDate>Mon, 07 Apr 2008 14:26:50 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8365067</guid><dc:creator>pixi</dc:creator><description>&lt;p&gt;Hey,&lt;/p&gt;
&lt;p&gt;I was wondering, how do you work with this,&lt;/p&gt;
&lt;p&gt;I've tried importing this MP and putting it in authoring console, both of the tries output errors, please let me know, this looks very promising and helpful, and i have much use of this mp xml!&lt;/p&gt;
&lt;p&gt;Thanks mate!&lt;/p&gt;</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#8372324</link><pubDate>Wed, 09 Apr 2008 16:15:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8372324</guid><dc:creator>Pontus Blomqvist</dc:creator><description>&lt;p&gt;Copy the xml code from Boris and past it into notepad. Save the document &amp;quot;NTServiceBasedDiscoverySample.MP.xml&amp;quot; then you can open it with the Authoring Console.&lt;/p&gt;
&lt;p&gt;//Pontus Blomqvist&lt;/p&gt;</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#8372325</link><pubDate>Wed, 09 Apr 2008 16:16:49 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8372325</guid><dc:creator>Pontus Blomqvist</dc:creator><description>&lt;p&gt;Copy the xml code from Boris and paste it into Notepad. Save the document &amp;quot;NTServiceBasedDiscoverySample.MP.xml&amp;quot; and then you can open it with the Authoring Console.&lt;/p&gt;
&lt;p&gt;//Pontus Blomqvist&lt;/p&gt;</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#8382601</link><pubDate>Sat, 12 Apr 2008 01:51:45 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8382601</guid><dc:creator>Alex</dc:creator><description>&lt;p&gt;Boris great sample.... &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Keep up the great work....&lt;/p&gt;</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#8640004</link><pubDate>Sun, 22 Jun 2008 23:46:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8640004</guid><dc:creator>opsmgr</dc:creator><description>&lt;p&gt;Is it possible to do the wildcard on this service discovery? I have multiple services with the first couple characters are the same. Thanks.&lt;/p&gt;</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#9011043</link><pubDate>Wed, 22 Oct 2008 15:23:51 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9011043</guid><dc:creator>James Lundgren</dc:creator><description>&lt;p&gt;Hello Boris,&lt;/p&gt;
&lt;p&gt;We have implemented the service-based discovery and it working great as long as our other server admins name the service exactly the same. &amp;nbsp;My question is can wildcards be used at all, such as Alert* or Alert% in order to discover servers that contain services with variations of that name? &amp;nbsp;Thank you.&lt;/p&gt;</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#9028851</link><pubDate>Sun, 02 Nov 2008 07:05:04 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9028851</guid><dc:creator>Colinn</dc:creator><description>&lt;p&gt;Hey Boris, thanks for this post! &amp;nbsp;I was wondering if you could advise how I would go about modifying this discovery to target Microsoft.Windows.Server and ignore discovery on instances where IsVirtualNode = true? &amp;nbsp;I'm not exactly sure where the expression for this would go?&lt;/p&gt;
&lt;p&gt;Thanks for your help in advance!&lt;/p&gt;
&lt;p&gt;-Colin&lt;/p&gt;</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#9029153</link><pubDate>Sun, 02 Nov 2008 15:48:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9029153</guid><dc:creator>Boris Yanushpolsky</dc:creator><description>&lt;p&gt;You need to add a condition detection module and check the property value.&lt;/p&gt;
</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#9029616</link><pubDate>Sun, 02 Nov 2008 23:46:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9029616</guid><dc:creator>Colinn</dc:creator><description>&lt;p&gt;I added the following condition detection module to be a member module of the sample.discovery.datasource as follows:&lt;/p&gt;
&lt;p&gt;&amp;lt;ConditionDetection ID=&amp;quot;IsVirtual&amp;quot; TypeID=&amp;quot;System!System.ExpressionFilter&amp;quot;&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Expression&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;SimpleExpression&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ValueExpression&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;XPathQuery&amp;gt;$Config/IsVirtual$&amp;lt;/XPathQuery&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/ValueExpression&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;Operator&amp;gt;NotEqual&amp;lt;/Operator&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ValueExpression&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;XPathQuery&amp;gt;true&amp;lt;/XPathQuery&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/ValueExpression&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/SimpleExpression&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/Expression&amp;gt;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/ConditionDetection&amp;gt;&lt;/p&gt;
&lt;p&gt;I get the following error in the event log of the agent attempting to run the module:&lt;/p&gt;
&lt;p&gt;The Microsoft Operations Manager Expression Filter Module could not initialize properly. The passed in expression could be invalid. &lt;/p&gt;
&lt;p&gt;Error: 0x80070057 &lt;/p&gt;
&lt;p&gt;Can you help?&lt;/p&gt;</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#9031069</link><pubDate>Mon, 03 Nov 2008 07:56:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9031069</guid><dc:creator>Colinn</dc:creator><description>&lt;p&gt;I got it finally. &amp;nbsp;I did not need the $config values, just the $target property in the expression filter and it worked. &amp;nbsp;Thanks!&lt;/p&gt;</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#9031145</link><pubDate>Mon, 03 Nov 2008 08:26:05 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9031145</guid><dc:creator>Boris Yanushpolsky</dc:creator><description>&lt;p&gt;Great! I am glad to hear you were able to get this to work.&lt;/p&gt;
</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#9443572</link><pubDate>Wed, 25 Feb 2009 08:17:43 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9443572</guid><dc:creator>AengusM</dc:creator><description>&lt;p&gt;Hi Boris,&lt;/p&gt;
&lt;p&gt;Wondering if you have a suggestion for this one.&lt;/p&gt;
&lt;p&gt;I have made a similar MP based on a reg key discovery for a service.&lt;/p&gt;
&lt;p&gt;My display component was;&lt;/p&gt;
&lt;p&gt;&amp;lt;Value&amp;gt;Service on $Target/Property[Type=&amp;quot;Windows!Microsoft.Windows.Computer&amp;quot;]/NetbiosComputerName$&amp;lt;/Value&amp;gt;&lt;/p&gt;
&lt;p&gt;Somehow, while doing some further testing with changes I have impacted the Name and Display Name of Windows Computer, &lt;/p&gt;
&lt;p&gt;i.e. in a state view targeted to Windows Computer, the Name is &amp;quot;Service on Server1&amp;quot; and Display name is &amp;quot;Service on Server1&amp;quot;&lt;/p&gt;
&lt;p&gt;The MP was further revised before I noticed this so I can't retrace my steps and removing the MP doesn't resolve the Name issue. I am at a loss to figure out how this happenened as it was a pretty simple MP and I have done it several times before.&lt;/p&gt;
&lt;p&gt;Any thoughts on how I can change the Name and Display Name of the Windows Computer back to what they were?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Aengus&lt;/p&gt;</description></item><item><title>re: MP authoring samples - NT service based discovery</title><link>http://blogs.msdn.com/boris_yanushpolsky/archive/2008/04/01/advanced-mp-authoring.aspx#9444680</link><pubDate>Thu, 26 Feb 2009 01:33:25 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9444680</guid><dc:creator>Aengus Moran</dc:creator><description>&lt;p&gt;Hi Boris,&lt;/p&gt;
&lt;p&gt;Wondering if you have a suggestion for this one.&lt;/p&gt;
&lt;p&gt;I have made a similar MP based on a reg key discovery for a service.&lt;/p&gt;
&lt;p&gt;My display component was;&lt;/p&gt;
&lt;p&gt;&amp;lt;Value&amp;gt;Service on $Target/Property[Type=&amp;quot;Windows!Microsoft.Windows.Computer&amp;quot;]/NetbiosComputerName$&amp;lt;/Value&amp;gt;&lt;/p&gt;
&lt;p&gt;Somehow, while doing some further testing with changes I have impacted the Name and Display Name of Windows Computer, &lt;/p&gt;
&lt;p&gt;i.e. in a state view targeted to Windows Computer, the Name is &amp;quot;Service on Server1&amp;quot; and Display name is &amp;quot;Service on Server1&amp;quot;&lt;/p&gt;
&lt;p&gt;The MP was further revised before I noticed this so I can't retrace my steps and removing the MP doesn't resolve the Name issue. I am at a loss to figure out how this happenened as it was a pretty simple MP and I have done it several times before.&lt;/p&gt;
&lt;p&gt;Any thoughts on how I can change the Name and Display Name of the Windows Computer back to what they were?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Aengus&lt;/p&gt;</description></item></channel></rss>