<?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[WMI Queries]]></title><description><![CDATA[<p dir="auto">I am impressed with Netxms, especially the fact the data is stored in SQL which allows for a simple to use data collector.</p>
<p dir="auto">A few days have been spent on getting SNMP queries to a MS-SQL 2005 system working when I found a webpage showing that Microsoft no longer support SNMP queries to SQL 2005 .... so that leaves WMI to perform the checks.</p>
<p dir="auto">I see that Netxms has a "Generic WMI Query" option within the agent, but I do not see any information on how to use this feature.</p>
<p dir="auto">Has anyone done WMI queries on SQL and/or other Windows performance settings? If so how is this done.</p>
]]></description><link>https://forum.netxms.org/topic/389/wmi-queries</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 06:27:06 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/389.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 Jun 2008 07:28:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WMI Queries on Fri, 10 Jun 2011 18:57:37 GMT]]></title><description><![CDATA[<p dir="auto">I know that the post is old, But I just want to report what I found in case it helps someone else when searching on this fórum.<br />
Please let me know if is there a better way to do this.</p>
<p dir="auto">I found that Dell Servers have a particular way to interact with ACPI on this fórum : <a href="http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1307729003111+28353475&amp;threadId=940582" rel="nofollow ugc">http://forums13.itrc.hp.com/service/forums/questionanswer.do?admit=109447627+1307729003111+28353475&amp;threadId=940582</a></p>
<p dir="auto">So I made the following query using NetXMS agent :</p>
<p dir="auto">WMI.Query(root\CIMV2\dell, SELECT * FROM CIM_TemperatureSensor where DeviceID=2, CurrentReading)</p>
<p dir="auto">It works perfectly to me as the DeviceID 2 is the "BMC Ambient Temp Sensor" wich gives me better values (only 2 degrees of difference) like if the room temperature is around 25 Celcius, this sensor gives me the value of 270.</p>
<p dir="auto">Also for those who want to explore WMI, I recommend 2 tools. One is Windows native called Wbemtest.exe (C:\windows\system32\wbem) and the other you have to download and is called "WMI Administrative Tools" <a href="http://www.microsoft.com/downloads/en/details.aspx?familyid=6430f853-1120-48db-8cc5-f2abdc3ed314" rel="nofollow ugc">http://www.microsoft.com/downloads/en/details.aspx?familyid=6430f853-1120-48db-8cc5-f2abdc3ed314</a></p>
<p dir="auto">Thanks.</p>
]]></description><link>https://forum.netxms.org/post/5586</link><guid isPermaLink="true">https://forum.netxms.org/post/5586</guid><dc:creator><![CDATA[hadesfromhell]]></dc:creator><pubDate>Fri, 10 Jun 2011 18:57:37 GMT</pubDate></item><item><title><![CDATA[Reply to WMI Queries on Tue, 08 Jul 2008 09:15:49 GMT]]></title><description><![CDATA[<p dir="auto">question about nxget: is it something like SNMP GET?<br />
and i can get only one value, but can't get the list?</p>
<p dir="auto">looks like an SNMP commands: "get" and "walk".</p>
<p dir="auto">is it possible to do "walk" with nxget.exe for query lists of available values form nodes?</p>
<p dir="auto">Your test query: WMI.Query(root\CIMV2,SELECT * FROM Win32_Processor,Name) - it works for me! <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f603.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--smiley" style="height:1.4em;width:auto;vertical-align:middle" title="=)" alt="😃" /></p>
<p dir="auto">Please, need more information about syntax (root\CIMV2,SELECT * FROM Win32_Processor,<strong>Name</strong><img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title="):" alt="😞" /> what is red-lighted parameter and how about other parameters?</p>
<p dir="auto">I need to execute this queries, but i can't to do it (always have "500 internal error")</p>
<p dir="auto">select DatabaseNodeMemory from Win32_PerfFormattedData_DNS_DNS<br />
select DynamicUpdateQueued from Win32_PerfFormattedData_DNS_DNS<br />
select TotalQueryReceived from Win32_PerfFormattedData_DNS_DNS<br />
select TotalResponseSent from Win32_PerfFormattedData_DNS_DNS</p>
]]></description><link>https://forum.netxms.org/post/2014</link><guid isPermaLink="true">https://forum.netxms.org/post/2014</guid><dc:creator><![CDATA[Anth0ny]]></dc:creator><pubDate>Tue, 08 Jul 2008 09:15:49 GMT</pubDate></item><item><title><![CDATA[Reply to WMI Queries on Thu, 19 Jun 2008 06:42:45 GMT]]></title><description><![CDATA[<p dir="auto">WMI service at nodes has tested: all works fine.<br />
But still have Error 500.</p>
<p dir="auto">Can problem be with mismatched permissions? I mean can it be if "Local System" account haven't appropriate rights for querying to WMI interface?</p>
]]></description><link>https://forum.netxms.org/post/1924</link><guid isPermaLink="true">https://forum.netxms.org/post/1924</guid><dc:creator><![CDATA[Anth0ny]]></dc:creator><pubDate>Thu, 19 Jun 2008 06:42:45 GMT</pubDate></item><item><title><![CDATA[Reply to WMI Queries on Wed, 18 Jun 2008 06:35:36 GMT]]></title><description><![CDATA[<p dir="auto">Thanks!</p>
<p dir="auto">Will test it today.</p>
]]></description><link>https://forum.netxms.org/post/1904</link><guid isPermaLink="true">https://forum.netxms.org/post/1904</guid><dc:creator><![CDATA[Anth0ny]]></dc:creator><pubDate>Wed, 18 Jun 2008 06:35:36 GMT</pubDate></item><item><title><![CDATA[Reply to WMI Queries on Tue, 17 Jun 2008 13:46:03 GMT]]></title><description><![CDATA[<p dir="auto">Is WMI service running? Is there any WMI-related messages in agent's log? Also, if start agent in debug mode (by adding -D switch), it will produce additional diagnostics.</p>
]]></description><link>https://forum.netxms.org/post/1893</link><guid isPermaLink="true">https://forum.netxms.org/post/1893</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Tue, 17 Jun 2008 13:46:03 GMT</pubDate></item><item><title><![CDATA[Reply to WMI Queries on Tue, 17 Jun 2008 09:56:28 GMT]]></title><description><![CDATA[<p dir="auto">can't get it to work =(</p>
<p dir="auto">nxget.exe 192.168.0.1 -a "none" -K "c:\netxms\var\server_key" "WMI.Query(root\CIMV2,SELECT * FROM Win32_Processor,Name)"</p>
<p dir="auto">or</p>
<p dir="auto">nxget.exe 192.168.0.1 -a none -K c:\netxms\var\server_key "WMI.Query('root\WMI', 'SELECT InstanceName,CurrentTemperature FROM MSAcpi_ThermalZoneTemperature')"</p>
<p dir="auto">always have:</p>
<p dir="auto"><strong>500: Internal error</strong></p>
]]></description><link>https://forum.netxms.org/post/1888</link><guid isPermaLink="true">https://forum.netxms.org/post/1888</guid><dc:creator><![CDATA[Anth0ny]]></dc:creator><pubDate>Tue, 17 Jun 2008 09:56:28 GMT</pubDate></item><item><title><![CDATA[Reply to WMI Queries on Thu, 12 Jun 2008 09:09:29 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Actually, WMI.Query(*) gets three parameters - namespace, query string, and property name. For example, to get CPU information, you can use the following parameter:</p>
<pre><code>WMI.Query(root\CIMV2,SELECT * FROM Win32_Processor,Name)
</code></pre>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/1876</link><guid isPermaLink="true">https://forum.netxms.org/post/1876</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 12 Jun 2008 09:09:29 GMT</pubDate></item><item><title><![CDATA[Reply to WMI Queries on Thu, 12 Jun 2008 08:30:06 GMT]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">You need to load "wmi" subagent (add "SubAgent = wmi.nsm" to your nxagentd.conf), this will add "WMI.Query()" parameter to the agent.<br />
This parameter takes two arguments: namespace and query string.</p>
<p dir="auto">Sample:</p>
<pre><code>nxget SERVER_IP '"WMI.Query('root\WMI', 'SELECT InstanceName,CurrentTemperature FROM MSAcpi_ThermalZoneTemperature')"
</code></pre>
<p dir="auto">I have no experience with querying MSSQL status using WMI, but according to google you can do something like this:</p>
<pre><code>nxget SERVER_IP "WMI.Query('root\Microsoft\SqlServer\ComputerManagement', 'SELECT State FROM SqlService')"
</code></pre>
]]></description><link>https://forum.netxms.org/post/1875</link><guid isPermaLink="true">https://forum.netxms.org/post/1875</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Thu, 12 Jun 2008 08:30:06 GMT</pubDate></item></channel></rss>