<?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[NxShell Interaction Help - Strange error in script]]></title><description><![CDATA[<p dir="auto">Hello everyone!</p>
<p dir="auto">I'm creating a script to populate nodes from my network, getting them from a ".csv" file. It's working pretty fine, but I can't use the method "setIpAdress()" from NXCObjectCreationData. In the method call bellow "cd" is a NXCObjectCreationData object and "objectIp" is a string with the IP formated such as in "192.168.2.1".</p>
<pre><code>cd.setIpAddress(InetAddress.getByName(objectIp))
</code></pre>
<p dir="auto">When I execute the script I get the following error:</p>
<blockquote>
<p dir="auto">TypeError: setIpAddress(): 1st arg can't be coerced to org.netxms.base.InetAddressEx</p>
</blockquote>
<p dir="auto">I couldn't find the class org.netxms.base.InetAddressEx on the API and it's stated on the NCXObjectCreationData reference that "setIpAdress()" should receive an InetAdress instance.</p>
<p dir="auto">Could you guys help me on this?</p>
<p dir="auto">Thanks in advance!</p>
<p dir="auto">Edit: I'm using the 2.0.M4 version.</p>
]]></description><link>https://forum.netxms.org/topic/3757/nxshell-interaction-help-strange-error-in-script</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 08:48:49 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3757.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 06 May 2015 17:49:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NxShell Interaction Help - Strange error in script on Fri, 22 May 2015 07:54:47 GMT]]></title><description><![CDATA[<p dir="auto">Thank you very much  <img src="https://forum.netxms.org/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=72b86a538fc" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://forum.netxms.org/post/16918</link><guid isPermaLink="true">https://forum.netxms.org/post/16918</guid><dc:creator><![CDATA[technikcst]]></dc:creator><pubDate>Fri, 22 May 2015 07:54:47 GMT</pubDate></item><item><title><![CDATA[Reply to NxShell Interaction Help - Strange error in script on Fri, 15 May 2015 12:43:55 GMT]]></title><description><![CDATA[<p dir="auto">We re-generate javadoc: <a href="https://www.netxms.org/documentation/javadoc/latest/" rel="nofollow ugc">https://www.netxms.org/documentation/javadoc/latest/</a>. Now it is for actual development branch (you can consider it 2.0-M4 as there was no changes in API since last release).</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/16889</link><guid isPermaLink="true">https://forum.netxms.org/post/16889</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 15 May 2015 12:43:55 GMT</pubDate></item><item><title><![CDATA[Reply to NxShell Interaction Help - Strange error in script on Fri, 15 May 2015 09:58:43 GMT]]></title><description><![CDATA[<p dir="auto">Hi Victor,</p>
<p dir="auto">thank you  for your answer <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="😃" /><br />
I was trying to set the ip and netmask manually for an object because if i create a node in GUI, the netmask of the generated node is wrong. But as i see now, the API seems to be really outdated ('org.netxms.client.NXCObjectCreationData' object has no attribute 'setIpNetMask') is there a new documentation somewhere?</p>
<p dir="auto">Thanks for your help,<br />
Christoph</p>
]]></description><link>https://forum.netxms.org/post/16887</link><guid isPermaLink="true">https://forum.netxms.org/post/16887</guid><dc:creator><![CDATA[technikcst]]></dc:creator><pubDate>Fri, 15 May 2015 09:58:43 GMT</pubDate></item><item><title><![CDATA[Reply to NxShell Interaction Help - Strange error in script on Thu, 14 May 2015 19:07:59 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">problem is that javadoc is outdated. In version 2.0-M4 NXCObjectCreationData.setIpAddress expects object of type InetAddressEx. You can create it as follows:</p>
<p dir="auto">InetAddressEx(InetAddress.getByName(objectIp), 0)</p>
<p dir="auto">but preferred way for creating node objects is to use setPrimaryName instead:</p>
<p dir="auto">cd.setPrimaryName(objectIp)</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/16877</link><guid isPermaLink="true">https://forum.netxms.org/post/16877</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 14 May 2015 19:07:59 GMT</pubDate></item><item><title><![CDATA[Reply to NxShell Interaction Help - Strange error in script on Thu, 14 May 2015 12:04:26 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">i am getting the same error in my script. Are there any solutions?</p>
<p dir="auto">Also using 2.0-M4</p>
<p dir="auto">Regards,<br />
Christoph</p>
]]></description><link>https://forum.netxms.org/post/16871</link><guid isPermaLink="true">https://forum.netxms.org/post/16871</guid><dc:creator><![CDATA[technikcst]]></dc:creator><pubDate>Thu, 14 May 2015 12:04:26 GMT</pubDate></item></channel></rss>