<?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 Changes]]></title><description><![CDATA[<p dir="auto">Previously I was using the following script in the configpoll to use the SNMP sysname</p>
<p dir="auto">/* Available global variables:<br />
 *  $object - current object, one of 'NetObj' subclasses<br />
 *  $node - current object if it is 'Node' class<br />
 *<br />
 * Expected return value:<br />
 *  none - returned value is ignored<br />
 */<br />
 <br />
if (($node-&gt;snmpSysName != "") and ($node-&gt;snmpSysName !=null))<br />
{<br />
 RenameObject($node-&gt;snmpSysName);<br />
}</p>
<p dir="auto">I know that RenameObject is deprecated but the new rename() does not seem to work either here is what I tried rename( $node-&gt;snmpSysName) is there a better way to do this or can this possibly be implemented in the core functionality or as a server config variable</p>
]]></description><link>https://forum.netxms.org/topic/7939/nxsl-changes</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 13:13:11 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7939.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 08 May 2024 15:37:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NXSL Changes on Fri, 10 May 2024 17:25:43 GMT]]></title><description><![CDATA[<p dir="auto">Should now be:</p>
<pre><code>if (($node.snmpSysName != &quot;&quot;) and ($node.snmpSysName !=null))
{
  $node.rename($node-&gt;snmpSysName);
}
</code></pre>
<p dir="auto"><div class="card col-md-9 col-lg-6 position-relative link-preview p-0">

<div class="card-body">
<h5 class="card-title">
<a class="text-decoration-none" href="https://www.netxms.org/documentation/nxsl-latest/">
NetXMS Scripting Language
</a>
</h5>
<p class="card-text line-clamp-3"></p>
</div>
<a href="https://www.netxms.org/documentation/nxsl-latest/" class="card-footer text-body-secondary small d-flex gap-2 align-items-center lh-2">



<img src="https://www.netxms.org/favicon.ico" alt="favicon" class="not-responsive overflow-hiddden" style="max-width: 21px; max-height: 21px;" onerror="this.remove()"/>



<p class="d-inline-block text-truncate mb-0"> <span class="text-secondary">(www.netxms.org)</span></p>
</a>
</div></p>
]]></description><link>https://forum.netxms.org/post/33484</link><guid isPermaLink="true">https://forum.netxms.org/post/33484</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Fri, 10 May 2024 17:25:43 GMT</pubDate></item></channel></rss>