<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Useful WMI Queries]]></title><description><![CDATA[<p dir="auto">I suggest we use this topic to update it with useful WMI queries. My interest is in IIS and SQL. I am having luck with IIS but not SQL, ie a logsize for a particular database is becoming difficult. My set that I can offer, and more will follow are as follows.</p>
<p dir="auto">iis anoymous users<br />
WMI.Query(root\cimv2,select * from Win32_PerfFormattedData_W3SVC_WebService, TotalAnonymousUsers)</p>
<p dir="auto">iis service<br />
WMI.Query(root\microsoftiisv2,select * from iiswebservice,state)</p>
<p dir="auto">nlb status - 1008 shows all is ok - more details here <a href="http://msdn.microsoft.com/en-us/library/cc307934(VS.85).aspx" rel="nofollow ugc">http://msdn.microsoft.com/en-us/library/cc307934(VS.85).aspx</a><br />
WMI.Query(root\MicrosoftNLB,select * from MicrosoftNLB_Node, StatusCode)</p>
<p dir="auto">SQL Cache Memory KB<br />
WMI.Query(root\CIMV2,select * from Win32_PerfFormattedData_MSSQLSERVER_SQLServerMemoryManager,SQLCacheMemoryKB)</p>
<p dir="auto">SQL Transactions<br />
WMI.Query(root\CIMV2,select * from Win32_PerfFormattedData_MSSQLSERVER_SQLServerTransactions, Transactions)</p>
<p dir="auto">iis bytes received<br />
WMI.Query(root\cimv2,select * from Win32_PerfFormattedData_W3SVC_WebService, TotalBytesReceived)</p>
<p dir="auto">iis bytes sent<br />
WMI.Query(root\cimv2,select * from Win32_PerfFormattedData_W3SVC_WebService, TotalBytesSent)</p>
<p dir="auto">iis current connections<br />
WMI.Query(root\cimv2,select * from Win32_PerfFormattedData_W3SVC_WebService, CurrentConnections)</p>
<p dir="auto">available memory<br />
WMI.Query(root\cimv2,select * from Win32_perfRawData_PerfOS_Memory,AvailableMbytes)</p>
]]></description><link>https://forum.netxms.org/topic/512/useful-wmi-queries</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 06:06:54 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/512.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 14 Nov 2008 05:46:36 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Useful WMI Queries on Thu, 14 Jun 2012 12:49:58 GMT]]></title><description><![CDATA[<p dir="auto">Temperature of CPU's thermal zone:<code>WMI.Query(root\WMI,"select * from MSAcpi_ThermalZoneTemperature",CurrentTemperature)</code></p>
<p dir="auto">This temperature is in tenths of degrees Kelvin, so you need to add transformation script:<br />
for Celsius:<code>($1-2730)/10</code><br />
for Fahrenheit:<code>((($1-2730)/10)*1.8)+32</code></p>
]]></description><link>https://forum.netxms.org/post/7656</link><guid isPermaLink="true">https://forum.netxms.org/post/7656</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Thu, 14 Jun 2012 12:49:58 GMT</pubDate></item></channel></rss>