<?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[Import List of IP Addresses]]></title><description><![CDATA[<p dir="auto">Hello Everyone,</p>
<p dir="auto">I am new to NetXMS.  I would like to import a list of IP addresses.  The devices are on different networks and I only want to add that specific device to NetXMS.  We have about 600 networks connected through VPN connections.   Any assistance would be greatly appreciated.  Thank you.</p>
]]></description><link>https://forum.netxms.org/topic/3209/import-list-of-ip-addresses</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 16:13:33 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3209.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Jun 2014 19:49:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Import List of IP Addresses on Sat, 14 Jun 2014 11:04:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrey-k" aria-label="Profile: andrey-k">@<bdi>andrey-k</bdi></a> said in <a href="/post/14196">Import List of IP Addresses</a>:</p>
<blockquote>
<p dir="auto">See indentation example on wiki:</p>
<blockquote>
<p dir="auto"><a href="http://en.wikipedia.org/wiki/Python_syntax_and_semantics#Indentation" rel="nofollow ugc">http://en.wikipedia.org/wiki/Python_syntax_and_semantics#Indentation</a></p>
</blockquote>
</blockquote>
<p dir="auto">Thank you Andrey I understand now.  I was able to get your script to work.  It is much appreciated.</p>
]]></description><link>https://forum.netxms.org/post/14198</link><guid isPermaLink="true">https://forum.netxms.org/post/14198</guid><dc:creator><![CDATA[m1975Michael]]></dc:creator><pubDate>Sat, 14 Jun 2014 11:04:57 GMT</pubDate></item><item><title><![CDATA[Reply to Import List of IP Addresses on Sat, 14 Jun 2014 08:19:26 GMT]]></title><description><![CDATA[<p dir="auto">See indentation example on wiki:</p>
<blockquote>
<p dir="auto"><a href="http://en.wikipedia.org/wiki/Python_syntax_and_semantics#Indentation" rel="nofollow ugc">http://en.wikipedia.org/wiki/Python_syntax_and_semantics#Indentation</a></p>
</blockquote>
]]></description><link>https://forum.netxms.org/post/14196</link><guid isPermaLink="true">https://forum.netxms.org/post/14196</guid><dc:creator><![CDATA[andrey--k]]></dc:creator><pubDate>Sat, 14 Jun 2014 08:19:26 GMT</pubDate></item><item><title><![CDATA[Reply to Import List of IP Addresses on Fri, 13 Jun 2014 20:59:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrey-k" aria-label="Profile: andrey-k">@<bdi>andrey-k</bdi></a> said in <a href="/post/14184">Import List of IP Addresses</a>:</p>
<blockquote>
<p dir="auto">Sorry, but am running linux-only versions.</p>
</blockquote>
<p dir="auto">Hello, did some of the script get cut off.  Do you need closing statements for IF and For?</p>
]]></description><link>https://forum.netxms.org/post/14192</link><guid isPermaLink="true">https://forum.netxms.org/post/14192</guid><dc:creator><![CDATA[m1975Michael]]></dc:creator><pubDate>Fri, 13 Jun 2014 20:59:34 GMT</pubDate></item><item><title><![CDATA[Reply to Import List of IP Addresses on Fri, 13 Jun 2014 14:28:08 GMT]]></title><description><![CDATA[<p dir="auto">Script should be run in a same manner on Windows, just omit -Djava.io.tmpdir=/tmp/ and use \ instaed of / in path separators.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/14187</link><guid isPermaLink="true">https://forum.netxms.org/post/14187</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Fri, 13 Jun 2014 14:28:08 GMT</pubDate></item><item><title><![CDATA[Reply to Import List of IP Addresses on Fri, 13 Jun 2014 13:22:24 GMT]]></title><description><![CDATA[<p dir="auto">Sorry, but am running linux-only versions.</p>
]]></description><link>https://forum.netxms.org/post/14184</link><guid isPermaLink="true">https://forum.netxms.org/post/14184</guid><dc:creator><![CDATA[andrey--k]]></dc:creator><pubDate>Fri, 13 Jun 2014 13:22:24 GMT</pubDate></item><item><title><![CDATA[Reply to Import List of IP Addresses on Fri, 13 Jun 2014 13:16:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/andrey-k" aria-label="Profile: andrey-k">@<bdi>andrey-k</bdi></a> said in <a href="/post/14168">Import List of IP Addresses</a>:</p>
<blockquote>
<p dir="auto">I have ready script for similar purpose.</p>
<pre><code>from org.netxms.client.objects import GenericObject, Node, Template

rootObject = session.findObjectByName("FromFile")
#print rootObject
#print "\n"
if rootObject:
	for nodeIP in open("discover.txt").readlines():
		test = s.findObjectByName(nodeIP.strip())
		if test:
			print "Object exists\n"
		else:
			name = "IP%s" % nodeIP.strip()
			newNode = NXCObjectCreationData(objects.GenericObject.OBJECT_NODE, name, rootObject.getObjectId());
			newNode.setPrimaryName(nodeIP.strip())
			try:
				nodeId = session.createObject(newNode)
			except:
				print "exception create node\n"
				pass
			else:
				if nodeId:
					try:
						s.pollNode(nodeId,2,None)
					except:
						print "exception make pool\n"
						pass
</code></pre>
<p dir="auto">Create file with ip list, delimited by newline (without whitespaces).<br />
rename it to discover.txt</p>
<p dir="auto">put all in one folder. (/home/nxuser/nxShell/)</p>
<p dir="auto">Create folder "FromFile" via nxmc. New objects will be added there.<br />
Run</p>
<pre><code>java -Djava.io.tmpdir=/tmp/ -Dnetxms.server=127.0.0.1 -Dnetxms.login=admin -Dnetxms.password=netxms -jar /home/nxuser/nxShell/nxshell-1.2.14.jar nodesRemoveSoftwareScan.py
</code></pre>
<p dir="auto">Script work slowly. For 600 ip it will take 3-5 hours but all nodes will be polled.<br />
If you want to do it faster - comment or delete next lines from script:</p>
<pre><code>				if nodeId:
					try:
						s.pollNode(nodeId,2,None)
					except:
						print "exception make pool\n"
						pass
</code></pre>
</blockquote>
<p dir="auto">Thank you for the script.  I am running the windows version of NetXMS anything I need to change in the script?  How do you run the script?</p>
]]></description><link>https://forum.netxms.org/post/14182</link><guid isPermaLink="true">https://forum.netxms.org/post/14182</guid><dc:creator><![CDATA[m1975Michael]]></dc:creator><pubDate>Fri, 13 Jun 2014 13:16:02 GMT</pubDate></item><item><title><![CDATA[Reply to Import List of IP Addresses on Fri, 13 Jun 2014 05:20:55 GMT]]></title><description><![CDATA[<p dir="auto">I have ready script for similar purpose.</p>
<pre><code>from org.netxms.client.objects import GenericObject, Node, Template

rootObject = session.findObjectByName("FromFile")
#print rootObject
#print "\n"
if rootObject:
	for nodeIP in open("discover.txt").readlines():
		test = s.findObjectByName(nodeIP.strip())
		if test:
			print "Object exists\n"
		else:
			name = "IP%s" % nodeIP.strip()
			newNode = NXCObjectCreationData(objects.GenericObject.OBJECT_NODE, name, rootObject.getObjectId());
			newNode.setPrimaryName(nodeIP.strip())
			try:
				nodeId = session.createObject(newNode)
			except:
				print "exception create node\n"
				pass
			else:
				if nodeId:
					try:
						s.pollNode(nodeId,2,None)
					except:
						print "exception make pool\n"
						pass
</code></pre>
<p dir="auto">Create file with ip list, delimited by newline (without whitespaces).<br />
rename it to discover.txt</p>
<p dir="auto">put all in one folder. (/home/nxuser/nxShell/)</p>
<p dir="auto">Create folder "FromFile" via nxmc. New objects will be added there.<br />
Run</p>
<pre><code>java -Djava.io.tmpdir=/tmp/ -Dnetxms.server=127.0.0.1 -Dnetxms.login=admin -Dnetxms.password=netxms -jar /home/nxuser/nxShell/nxshell-1.2.14.jar nodesRemoveSoftwareScan.py
</code></pre>
<p dir="auto">Script work slowly. For 600 ip it will take 3-5 hours but all nodes will be polled.<br />
If you want to do it faster - comment or delete next lines from script:</p>
<pre><code>				if nodeId:
					try:
						s.pollNode(nodeId,2,None)
					except:
						print "exception make pool\n"
						pass
</code></pre>
]]></description><link>https://forum.netxms.org/post/14168</link><guid isPermaLink="true">https://forum.netxms.org/post/14168</guid><dc:creator><![CDATA[andrey--k]]></dc:creator><pubDate>Fri, 13 Jun 2014 05:20:55 GMT</pubDate></item><item><title><![CDATA[Reply to Import List of IP Addresses on Thu, 12 Jun 2014 20:17:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/victor" aria-label="Profile: victor">@<bdi>victor</bdi></a> said in <a href="/post/14158">Import List of IP Addresses</a>:</p>
<blockquote>
<p dir="auto">Hi!</p>
<p dir="auto">Your best bet is to create simply script with nxshell (<a href="http://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations" rel="nofollow ugc">http://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations</a>) to read list of addresses and create node objects. If you are not good at Python - just ask, I'm quite sure that somebody will create such script.</p>
<p dir="auto">Best regards,<br />
Victor</p>
</blockquote>
<p dir="auto">Hello Victor thank you for replying.  Actually I know nothing about Python.  Any assistance would be great.</p>
]]></description><link>https://forum.netxms.org/post/14163</link><guid isPermaLink="true">https://forum.netxms.org/post/14163</guid><dc:creator><![CDATA[m1975Michael]]></dc:creator><pubDate>Thu, 12 Jun 2014 20:17:07 GMT</pubDate></item><item><title><![CDATA[Reply to Import List of IP Addresses on Thu, 12 Jun 2014 19:44:30 GMT]]></title><description><![CDATA[<p dir="auto">Hi!</p>
<p dir="auto">Your best bet is to create simply script with nxshell (<a href="http://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations" rel="nofollow ugc">http://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations</a>) to read list of addresses and create node objects. If you are not good at Python - just ask, I'm quite sure that somebody will create such script.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/14158</link><guid isPermaLink="true">https://forum.netxms.org/post/14158</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Thu, 12 Jun 2014 19:44:30 GMT</pubDate></item></channel></rss>