<?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[NXSL Script - Get DCI Comments?]]></title><description><![CDATA[<p dir="auto">Is there a way to retrieve the "Comments" property of a DCIObject?</p>
<p dir="auto">Essentially I'd like to add some support information to the comments section of a DCI, that is also then included in emails that are generated for alerts against that DCI.</p>
<p dir="auto">As a test I tried the following:-</p>
<pre><code>sub main() {
	node = FindObject("SomeNode");
	dciID = FindDCIByName(node, "SomeDCIName");
	dciObj = GetDCIObject(node, dciID);
	println(dciObj-&gt;name);
	println(dciObj-&gt;comments);
}
</code></pre>
<p dir="auto">However it errors on the comments attribute line, and certainly the <a href="https://wiki.netxms.org/wiki/NXSL:DCI" rel="nofollow ugc">https://wiki.netxms.org/wiki/NXSL:DCI</a> page does not list a "comments" attribute (but there is one on the node object <a href="https://wiki.netxms.org/wiki/NXSL:Node" rel="nofollow ugc">https://wiki.netxms.org/wiki/NXSL:Node</a>)</p>
<p dir="auto">I've had a look through the script reference pages, but I can't see any functions to enable me to query it - does anyone know of a way to do so?</p>
<p dir="auto">Otherwise I guess I would need to use a custom attribute.</p>
<p dir="auto">Simon</p>
]]></description><link>https://forum.netxms.org/topic/3745/nxsl-script-get-dci-comments</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 14:10:18 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3745.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Apr 2015 09:49:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NXSL Script - Get DCI Comments? on Thu, 30 Apr 2015 12:19:35 GMT]]></title><description><![CDATA[<p dir="auto">Ok, thanks again Victor.</p>
]]></description><link>https://forum.netxms.org/post/16727</link><guid isPermaLink="true">https://forum.netxms.org/post/16727</guid><dc:creator><![CDATA[DrCamel]]></dc:creator><pubDate>Thu, 30 Apr 2015 12:19:35 GMT</pubDate></item><item><title><![CDATA[Reply to NXSL Script - Get DCI Comments? on Thu, 30 Apr 2015 12:10:36 GMT]]></title><description><![CDATA[<p dir="auto">If you build server from sources, you can try replace files src/server/include/nms_dcoll.h and src/server/core/nxsl_classes.cpp with attached and recompile the server. Other than that, there are no workarounds.</p>
<p dir="auto">Best regards,<br />
Victor</p>
<hr />
<p dir="auto"><a href="/assets/uploads/files/smf/0000000002280-nxsl_classes.cpp">nxsl_classes.cpp</a></p>
<p dir="auto"><a href="/assets/uploads/files/smf/0000000002281-nms_dcoll.h">nms_dcoll.h</a></p>
]]></description><link>https://forum.netxms.org/post/16726</link><guid isPermaLink="true">https://forum.netxms.org/post/16726</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 30 Apr 2015 12:10:36 GMT</pubDate></item><item><title><![CDATA[Reply to NXSL Script - Get DCI Comments? on Thu, 30 Apr 2015 12:04:16 GMT]]></title><description><![CDATA[<p dir="auto">Excellent, thanks Victor!</p>
<p dir="auto">Is there any work around in the meantime? aside from using custom attributes instead.</p>
<p dir="auto">Simon</p>
]]></description><link>https://forum.netxms.org/post/16725</link><guid isPermaLink="true">https://forum.netxms.org/post/16725</guid><dc:creator><![CDATA[DrCamel]]></dc:creator><pubDate>Thu, 30 Apr 2015 12:04:16 GMT</pubDate></item><item><title><![CDATA[Reply to NXSL Script - Get DCI Comments? on Thu, 30 Apr 2015 11:44:54 GMT]]></title><description><![CDATA[<p dir="auto">Yes, comments attribute was missing in DCI class. I've added it, will be available in 2.0-M5.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/16723</link><guid isPermaLink="true">https://forum.netxms.org/post/16723</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 30 Apr 2015 11:44:54 GMT</pubDate></item></channel></rss>