Getting realtime metric values with the .NET SDK<p><font><font>In powershell, I can do:<br><br>Add-PSSnapin microsoft.hpc<br>get-hpcmetricvalue -Scheduler &lt;myCluster'sName&gt;<br><br>And I get all of the realtime CPU/Network/Disk usage from each node in the cluster.<br><br>How can I get this info through the .NET SDK ? <br><br>Thanks.</font></font></p>© 2009 Microsoft Corporation. All rights reserved.Thu, 25 Jun 2009 23:29:44 Z8f66a5c1-51ee-4b42-9b4e-718cd3bb75b3http://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/8f66a5c1-51ee-4b42-9b4e-718cd3bb75b3#8f66a5c1-51ee-4b42-9b4e-718cd3bb75b3http://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/8f66a5c1-51ee-4b42-9b4e-718cd3bb75b3#8f66a5c1-51ee-4b42-9b4e-718cd3bb75b3Ofer Dekelhttp://social.microsoft.com/Profile/en-US/?user=Ofer%20DekelGetting realtime metric values with the .NET SDK<p><font><font>In powershell, I can do:<br><br>Add-PSSnapin microsoft.hpc<br>get-hpcmetricvalue -Scheduler &lt;myCluster'sName&gt;<br><br>And I get all of the realtime CPU/Network/Disk usage from each node in the cluster.<br><br>How can I get this info through the .NET SDK ? <br><br>Thanks.</font></font></p>Wed, 04 Mar 2009 17:59:09 Z2009-03-04T17:59:09Zhttp://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/8f66a5c1-51ee-4b42-9b4e-718cd3bb75b3#e46e4c59-1bdb-4b97-9b34-fabbca7cee3ehttp://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/8f66a5c1-51ee-4b42-9b4e-718cd3bb75b3#e46e4c59-1bdb-4b97-9b34-fabbca7cee3eyidingzhttp://social.microsoft.com/Profile/en-US/?user=yidingzGetting realtime metric values with the .NET SDKYou can run those cmdlets with correct pipleline to filter our the desired value in your C# code.Sat, 04 Apr 2009 05:13:26 Z2009-04-04T05:13:26Zhttp://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/8f66a5c1-51ee-4b42-9b4e-718cd3bb75b3#2a72f6ec-1325-4c97-9c21-e2cd6cf12b14http://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/8f66a5c1-51ee-4b42-9b4e-718cd3bb75b3#2a72f6ec-1325-4c97-9c21-e2cd6cf12b14Keshuang Shenhttp://social.microsoft.com/Profile/en-US/?user=Keshuang%20ShenGetting realtime metric values with the .NET SDK1. the CPU/Network/Disk usage you get with &quot;get-hpcmetricvalue&quot; are not realtime, the default interval for each metric is &quot;1min&quot;. you can export-hpcmetric to see the interval setting for one metric, change the interval in exported xml file, then change this setting with import-hpcmetric command. however, the minimun interval is 1min, you cannot set this to a value less than 1min.<br/>2. if you are an cluster admin, you can query realtime perfmance counter values with .NET api. pls. refer to <a href="http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecountermanager.performancecountermanager(vs.80).aspx">http://msdn.microsoft.com/en-us/library/system.diagnostics.performancecountermanager.performancecountermanager(vs.80).aspx</a> for more information.Tue, 07 Apr 2009 09:15:16 Z2009-04-07T09:27:08Zhttp://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/8f66a5c1-51ee-4b42-9b4e-718cd3bb75b3#bf49af6b-7a0f-4577-a296-276fbfc17aa8http://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/8f66a5c1-51ee-4b42-9b4e-718cd3bb75b3#bf49af6b-7a0f-4577-a296-276fbfc17aa8Zhen WEI MSFThttp://social.microsoft.com/Profile/en-US/?user=Zhen%20WEI%20MSFTGetting realtime metric values with the .NET SDKErrr, one correction: Get-HpcMetricValue IS realtime. And what's more Get-HpcMetricValue accepts NodeName, (Metric's) Name and Counter (perf counter instance name) as parameters, so you can get perf counter value for specific node and/or perf counter instance.Tue, 23 Jun 2009 02:33:31 Z2009-06-23T02:33:31Z