<?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[Trusted Nodes]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Are there any ways to manage trusted nodes in bulk or do you need to righ click every single node and add trusted node?</p>
]]></description><link>https://forum.netxms.org/topic/7367/trusted-nodes</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:35:17 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7367.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 May 2022 05:26:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Trusted Nodes on Wed, 11 May 2022 07:38:49 GMT]]></title><description><![CDATA[<p dir="auto">Indeed i was deep in loops of trial and error to get it to work and i just tested it and it worked and just as i saw your reply i got how simple it was and how unnecessary advanced i made it <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/31359</link><guid isPermaLink="true">https://forum.netxms.org/post/31359</guid><dc:creator><![CDATA[MarcusH]]></dc:creator><pubDate>Wed, 11 May 2022 07:38:49 GMT</pubDate></item><item><title><![CDATA[Reply to Trusted Nodes on Wed, 11 May 2022 07:33:13 GMT]]></title><description><![CDATA[<p dir="auto">session.findObjectById(objectID).getObjectId() is kind of pointless - you already know object ID, but you use it to find object by that ID, only to get that same ID from object...</p>
]]></description><link>https://forum.netxms.org/post/31358</link><guid isPermaLink="true">https://forum.netxms.org/post/31358</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 11 May 2022 07:33:13 GMT</pubDate></item><item><title><![CDATA[Reply to Trusted Nodes on Wed, 11 May 2022 07:25:12 GMT]]></title><description><![CDATA[<p dir="auto">Ah i got it working with trustednodes = [session.findObjectById(objectID).getObjectId()] but data.setTrustedNodes([trustedNodeId]) is cleaner</p>
]]></description><link>https://forum.netxms.org/post/31357</link><guid isPermaLink="true">https://forum.netxms.org/post/31357</guid><dc:creator><![CDATA[MarcusH]]></dc:creator><pubDate>Wed, 11 May 2022 07:25:12 GMT</pubDate></item><item><title><![CDATA[Reply to Trusted Nodes on Wed, 11 May 2022 07:20:16 GMT]]></title><description><![CDATA[<p dir="auto">Argument for setTrustedNodes is array of object identifiers, not array of objects, so probably something like this will work:<br />
 data.setTrustedNodes([trustedNodeId])<br />
where trustedNodeId is an ID of node to be set as trusted.</p>
<p dir="auto">Best regards,<br />
Victor</p>
]]></description><link>https://forum.netxms.org/post/31354</link><guid isPermaLink="true">https://forum.netxms.org/post/31354</guid><dc:creator><![CDATA[victor]]></dc:creator><pubDate>Wed, 11 May 2022 07:20:16 GMT</pubDate></item><item><title><![CDATA[Reply to Trusted Nodes on Wed, 11 May 2022 07:22:30 GMT]]></title><description><![CDATA[<p dir="auto">Here is the entire code i am trying to get working, i get TypeError: setTrustedNodes(): 1st arg can't be coerced to java.lang.Long[]</p>
<p dir="auto"># Add trusted nodes to list<br />
trustednodes = [session.findObjectById(objectID)]</p>
<p dir="auto"># Container to add trusted nodes to<br />
container = session.findObjectById(objectID)</p>
<p dir="auto"># Loop nodes in container<br />
for node in container.getAllChildren(objects.GenericObject.OBJECT_NODE):<br />
 print node.getObjectName()<br />
 data = NXCObjectModificationData(node.getObjectId())<br />
 data.setTrustedNodes(trustednodes)<br />
 session.modifyObject(data)</p>
]]></description><link>https://forum.netxms.org/post/31353</link><guid isPermaLink="true">https://forum.netxms.org/post/31353</guid><dc:creator><![CDATA[MarcusH]]></dc:creator><pubDate>Wed, 11 May 2022 07:22:30 GMT</pubDate></item><item><title><![CDATA[Reply to Trusted Nodes on Wed, 11 May 2022 05:39:11 GMT]]></title><description><![CDATA[<p dir="auto">Got a script working that loops all nodes in a container but i cannot get setTrustedNodes to work, i think i have it down to NXCObjectModificationData not working in my case, happy for any pointers <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>
<p dir="auto">Tried this simple code for verification and it does not work only get NoneType from data.</p>
<p dir="auto">print node.getObjectId()<br />
data = NXCObjectModificationData(node.getObjectId())<br />
print data.getName()</p>
]]></description><link>https://forum.netxms.org/post/31350</link><guid isPermaLink="true">https://forum.netxms.org/post/31350</guid><dc:creator><![CDATA[MarcusH]]></dc:creator><pubDate>Wed, 11 May 2022 05:39:11 GMT</pubDate></item><item><title><![CDATA[Reply to Trusted Nodes on Tue, 10 May 2022 11:48:18 GMT]]></title><description><![CDATA[<p dir="auto">Perfect thanks alot, i have had trusted nodes active for a long time just first time i need to add a trusted node on a lot of nodes.</p>
]]></description><link>https://forum.netxms.org/post/31326</link><guid isPermaLink="true">https://forum.netxms.org/post/31326</guid><dc:creator><![CDATA[MarcusH]]></dc:creator><pubDate>Tue, 10 May 2022 11:48:18 GMT</pubDate></item><item><title><![CDATA[Reply to Trusted Nodes on Tue, 10 May 2022 09:54:44 GMT]]></title><description><![CDATA[<p dir="auto">First of all, you can turn checking of trusted nodes on server level by changing CheckTrustedNodes server configuration parameter.</p>
<p dir="auto">Mass changins of node properties is only possible with nxshell - you'd need to create a script using jithon. nxshell communicates with the same api as management client, so everything that could be done via client can be done in nxshell.<br />
API documentation is here: <a href="https://www.netxms.org/documentation/javadoc/latest/index.html" rel="nofollow ugc">https://www.netxms.org/documentation/javadoc/latest/index.html</a><br />
Some information about nxshell is here: <a href="https://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations" rel="nofollow ugc">https://wiki.netxms.org/wiki/Using_nxshell_to_automate_bulk_operations</a></p>
]]></description><link>https://forum.netxms.org/post/31324</link><guid isPermaLink="true">https://forum.netxms.org/post/31324</guid><dc:creator><![CDATA[Filipp Sudanov]]></dc:creator><pubDate>Tue, 10 May 2022 09:54:44 GMT</pubDate></item></channel></rss>