<?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[Force DCI poll from NXSL?]]></title><description><![CDATA[<p dir="auto">Is it possible to force DCI poll from a NXSL script?</p>
<p dir="auto">I collect DCI values every 15 minutes because they change rarely and have NSXL script object commands which change the monitored state (for example on/off a display screen or input source).<br />
It would be useful to check/change the state of DCI immediately after the command execution and not to wait 15 minutes for the next polling cycle or force the DCI poll manually.</p>
]]></description><link>https://forum.netxms.org/topic/6804/force-dci-poll-from-nxsl</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 18:22:54 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/6804.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 11 Dec 2020 07:59:08 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Force DCI poll from NXSL? on Fri, 11 Dec 2020 08:52:34 GMT]]></title><description><![CDATA[<p dir="auto">Thank you.<br />
I was probably blind that I didn't find it.</p>
]]></description><link>https://forum.netxms.org/post/29021</link><guid isPermaLink="true">https://forum.netxms.org/post/29021</guid><dc:creator><![CDATA[pvo]]></dc:creator><pubDate>Fri, 11 Dec 2020 08:52:34 GMT</pubDate></item><item><title><![CDATA[Reply to Force DCI poll from NXSL? on Fri, 11 Dec 2020 08:43:14 GMT]]></title><description><![CDATA[<p dir="auto">You can call forcePoll() method on the DCI (<a href="https://www.netxms.org/documentation/nxsl-latest/#_instance_methods_5" rel="nofollow ugc">https://www.netxms.org/documentation/nxsl-latest/#_instance_methods_5</a>)</p>
<pre><code>dciId = FindDCIByName($node, "My.Custom.DCI");
if (dciId &gt; 0) {
  dci = GetDCIObject($node, dciId);
  if (dci != null) {
    dci-&gt;forcePoll();
  }
}
</code></pre>
]]></description><link>https://forum.netxms.org/post/29020</link><guid isPermaLink="true">https://forum.netxms.org/post/29020</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Fri, 11 Dec 2020 08:43:14 GMT</pubDate></item></channel></rss>