<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Writing C# applications to do complex monitoring with SCOM</title>
	<atom:link href="http://www.scom2k7.com/writing-c-applications-to-do-complex-monitoring-with-scom/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scom2k7.com/writing-c-applications-to-do-complex-monitoring-with-scom/</link>
	<description></description>
	<lastBuildDate>Wed, 18 Jan 2012 09:40:02 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Tim</title>
		<link>http://www.scom2k7.com/writing-c-applications-to-do-complex-monitoring-with-scom/comment-page-1/#comment-2856</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 29 Sep 2009 00:31:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.scom2k7.com/?p=704#comment-2856</guid>
		<description>Nice work.  I prefer C# as everything is exposed and only requires the .net framework which is installed more often then powershell on our servers.</description>
		<content:encoded><![CDATA[<p>Nice work.  I prefer C# as everything is exposed and only requires the .net framework which is installed more often then powershell on our servers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hu Bo</title>
		<link>http://www.scom2k7.com/writing-c-applications-to-do-complex-monitoring-with-scom/comment-page-1/#comment-2823</link>
		<dc:creator>Hu Bo</dc:creator>
		<pubDate>Mon, 21 Sep 2009 08:40:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.scom2k7.com/?p=704#comment-2823</guid>
		<description>I would bet it is much easier to use powershell

[int]([object[]](dir *.xml)).length</description>
		<content:encoded><![CDATA[<p>I would bet it is much easier to use powershell</p>
<p>[int]([object[]](dir *.xml)).length</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.scom2k7.com/writing-c-applications-to-do-complex-monitoring-with-scom/comment-page-1/#comment-2325</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Tue, 07 Jul 2009 13:56:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.scom2k7.com/?p=704#comment-2325</guid>
		<description>I would bet that will work as well.  I figured there was a way to do it in VB as well.  Good Stuff

Thanks</description>
		<content:encoded><![CDATA[<p>I would bet that will work as well.  I figured there was a way to do it in VB as well.  Good Stuff</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marcus</title>
		<link>http://www.scom2k7.com/writing-c-applications-to-do-complex-monitoring-with-scom/comment-page-1/#comment-2300</link>
		<dc:creator>marcus</dc:creator>
		<pubDate>Thu, 02 Jul 2009 12:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.scom2k7.com/?p=704#comment-2300</guid>
		<description>hey tim - great blog &amp; info.  i don&#039;t have a directory with enough files to process but was curious if you would have achieved better results digging through with wmi - such as:

sComputer = &quot;.&quot;
Set oWMIService = GetObject(&quot;winmgmts:&quot; _
    &amp; &quot;{impersonationLevel=impersonate}!\\&quot; &amp; sComputer &amp; &quot;\root\cimv2&quot;)

Set cFiles = oWMIService.ExecQuery(&quot;Select * from CIM_DataFile where Drive = &#039;c:&#039; and Path = &#039;\\temp\\&#039; and Extension = &#039;xml&#039;&quot;)

i = 0
For Each oFile in cFiles
    Wscript.Echo oFile.Name
    i = i + 1
Next

WScript.Echo &quot;Count: &quot; &amp; i</description>
		<content:encoded><![CDATA[<p>hey tim &#8211; great blog &amp; info.  i don&#8217;t have a directory with enough files to process but was curious if you would have achieved better results digging through with wmi &#8211; such as:</p>
<p>sComputer = &#8220;.&#8221;<br />
Set oWMIService = GetObject(&#8220;winmgmts:&#8221; _<br />
    &amp; &#8220;{impersonationLevel=impersonate}!\\&#8221; &amp; sComputer &amp; &#8220;\root\cimv2&#8243;)</p>
<p>Set cFiles = oWMIService.ExecQuery(&#8220;Select * from CIM_DataFile where Drive = &#8216;c:&#8217; and Path = &#8216;\\temp\\&#8217; and Extension = &#8216;xml&#8217;&#8221;)</p>
<p>i = 0<br />
For Each oFile in cFiles<br />
    Wscript.Echo oFile.Name<br />
    i = i + 1<br />
Next</p>
<p>WScript.Echo &#8220;Count: &#8221; &amp; i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.scom2k7.com/writing-c-applications-to-do-complex-monitoring-with-scom/comment-page-1/#comment-2243</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Sun, 21 Jun 2009 14:52:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.scom2k7.com/?p=704#comment-2243</guid>
		<description>Not true.  I am copying the C# application down to the client that I running it on.  They both are running on the client. The reason it is so much quicker is that in the vbscirpt I am touching every file.  In the c# program I am just hitting the directory and using the System.IO.Directory.GetFiles method on the directory.  This is much more efficient as it just hits the directory.  Vbscrpt doesn&#039;t have this method, but the real point was to show how to you can write c# apps and leverage them in SCOM.</description>
		<content:encoded><![CDATA[<p>Not true.  I am copying the C# application down to the client that I running it on.  They both are running on the client. The reason it is so much quicker is that in the vbscirpt I am touching every file.  In the c# program I am just hitting the directory and using the System.IO.Directory.GetFiles method on the directory.  This is much more efficient as it just hits the directory.  Vbscrpt doesn&#8217;t have this method, but the real point was to show how to you can write c# apps and leverage them in SCOM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tao</title>
		<link>http://www.scom2k7.com/writing-c-applications-to-do-complex-monitoring-with-scom/comment-page-1/#comment-2241</link>
		<dc:creator>Tao</dc:creator>
		<pubDate>Sun, 21 Jun 2009 10:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.scom2k7.com/?p=704#comment-2241</guid>
		<description>the vbscript you used was filtering the result on the client side. of cause it is going to be slow. and the code in C# uses server side filtering, that&#039;s why it&#039;s much quicker.</description>
		<content:encoded><![CDATA[<p>the vbscript you used was filtering the result on the client side. of cause it is going to be slow. and the code in C# uses server side filtering, that&#8217;s why it&#8217;s much quicker.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

