<?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[Java SubAgent and OPC UA]]></title><description><![CDATA[<p dir="auto">Could someone explainme how to use Java Subagent to get Informations from OPC UA please?<br />
I have configured my nxagentd.conf on the NetXMS Server, and Oracle Java 1.8 is installed.:</p>
<p dir="auto">#<br />
# NetXMS agent configuration file<br />
# Created by agent installer at ********<br />
#</p>
<p dir="auto">MasterServers = *******<br />
ConfigIncludeDir = C:\NetXMS\etc\nxagentd.conf.d<br />
LogFile = C:\NetXMS\log\nxagentd.log<br />
FileStore = C:\NetXMS\var<br />
SubAgent = portcheck.nsm<br />
SubAgent = ssh.nsm<br />
SubAgent = winperf.nsm<br />
SubAgent = wmi.nsm<br />
SubAgent = java.nsm</p>
<p dir="auto">[JAVA]<br />
Plugin = opcua.jar</p>
<p dir="auto">Seems that the Java Subagent is not loaded...</p>
]]></description><link>https://forum.netxms.org/topic/7518/java-subagent-and-opc-ua</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 07:31:21 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7518.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Sep 2022 12:12:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Java SubAgent and OPC UA on Fri, 16 Dec 2022 12:02:10 GMT]]></title><description><![CDATA[<p dir="auto">Thanks Alex.</p>
]]></description><link>https://forum.netxms.org/post/32094</link><guid isPermaLink="true">https://forum.netxms.org/post/32094</guid><dc:creator><![CDATA[Sash]]></dc:creator><pubDate>Fri, 16 Dec 2022 12:02:10 GMT</pubDate></item><item><title><![CDATA[Reply to Java SubAgent and OPC UA on Tue, 11 Oct 2022 11:57:57 GMT]]></title><description><![CDATA[<p dir="auto">Fixed in <a href="https://github.com/netxms/netxms/commit/ee8492638834eb01f5672e74f7b1ee32160096b8" rel="nofollow ugc">ee84926388</a>, will be included in upcoming 4.2 release</p>
]]></description><link>https://forum.netxms.org/post/31909</link><guid isPermaLink="true">https://forum.netxms.org/post/31909</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Tue, 11 Oct 2022 11:57:57 GMT</pubDate></item><item><title><![CDATA[Reply to Java SubAgent and OPC UA on Thu, 22 Sep 2022 20:37:58 GMT]]></title><description><![CDATA[<p dir="auto">I just realised that we do not support Variant in the responce - we'll add support in future releases</p>
]]></description><link>https://forum.netxms.org/post/31892</link><guid isPermaLink="true">https://forum.netxms.org/post/31892</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Thu, 22 Sep 2022 20:37:58 GMT</pubDate></item><item><title><![CDATA[Reply to Java SubAgent and OPC UA on Thu, 22 Sep 2022 17:21:32 GMT]]></title><description><![CDATA[<p dir="auto">You need to define section "OPCUA" and add one or more "Server" parameters. Format for server record is "name:[login[/password]@]url" (parts in square brackets are optional)<br />
You can also change timeout from defaul 5 seconds (parameter "Timeout", in ms).</p>
<p dir="auto">Example:</p>
<pre><code>[OPCUA]
Timeout=5000 # timeout for network operations
Server=s1:opc.tcp://milo.digitalpetri.com:62541/milo # anonymous connection
Server=s2:user1@opc.tcp://milo.digitalpetri.com:62541/milo # login "user1", empty password
Server=s3:user1/password@opc.tcp://milo.digitalpetri.com:62541/milo # login "user1", password "password"
</code></pre>
<p dir="auto">Once configured, you can collect metric OPCUA.NodeValue(server name, node id), where "server name" is s1, s2, etc. (values from configuration).</p>
<p dir="auto">Example:</p>
<pre><code>❯ nxget 127.0.0.1 'OPCUA.NodeValue(s1,ns=0;i=2257)'
Variant{value=DateTime{utcTime=133058236247170000, javaDate=Wed Aug 24 17:07:04 EEST 2022}}
</code></pre>
]]></description><link>https://forum.netxms.org/post/31891</link><guid isPermaLink="true">https://forum.netxms.org/post/31891</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Thu, 22 Sep 2022 17:21:32 GMT</pubDate></item><item><title><![CDATA[Reply to Java SubAgent and OPC UA on Tue, 20 Sep 2022 07:45:02 GMT]]></title><description><![CDATA[<p dir="auto"><strong>Thanks a lot Alex!</strong><br />
The Agent is loaded now.<br />
Could you please explain me, where I have to define the OPC UA Servers, and how I could connect to them and get data?</p>
<p dir="auto">Here is my Log:<br />
2022.09.20 09:27:31.565 *D* [                  ] Initializing Java subagent<br />
2022.09.20 09:27:31.565 *D* [                  ] JAVA: Default JVM: C:\Program Files\Eclipse Adoptium\jdk-17.0.4.101-hotspot\\bin\server\jvm.dll<br />
2022.09.20 09:27:31.565 *D* [                  ] JAVA: using JVM C:\Program Files\Eclipse Adoptium\jdk-17.0.4.101-hotspot\\bin\server\jvm.dll<br />
2022.09.20 09:27:32.035 *D* [java.runtime      ] JavaBridge: Java VM created<br />
2022.09.20 09:27:32.136 *D* [                  ] Java SubAgent created<br />
2022.09.20 09:27:32.136 *D* [                  ] SubAgent.loadPlugin(opcua.jar)<br />
2022.09.20 09:27:32.151 *D* [                  ] Loading plugin file "C:\NetXMS\lib\java\opcua.jar"<br />
2022.09.20 09:27:32.220 *D* [                  ] Java plugin OPCUA (com.radensolutions.netxms.agent.opcua.OpcUaPlugin) loaded<br />
2022.09.20 09:27:32.220 *D* [                  ] JAVA: subagent initialization started<br />
2022.09.20 09:27:32.220 *D* [                  <strong>] JAVA: exception in plugin OPCUA initialization handler: org.netxms.agent.PluginInitException: OPCUA servers not defined</strong><br />
2022.09.20 09:27:32.220 *D* [                  ] JAVA: subagent initialization completed<br />
2022.09.20 09:27:32.220 *I* [subagents          ] Subagent "JAVA" (java.nsm) loaded successfully (version 4.1.420)</p>
]]></description><link>https://forum.netxms.org/post/31883</link><guid isPermaLink="true">https://forum.netxms.org/post/31883</guid><dc:creator><![CDATA[Sash]]></dc:creator><pubDate>Tue, 20 Sep 2022 07:45:02 GMT</pubDate></item><item><title><![CDATA[Reply to Java SubAgent and OPC UA on Mon, 19 Sep 2022 14:29:38 GMT]]></title><description><![CDATA[<p dir="auto">Also I found an issue with plugin packaging, so bundled jar might not work.<br />
Replace $NETXMS_HOME/lib/netxms/java/opcua.jar with this version: <a href="https://cloud.radensolutions.com/s/WazFQAC3KrnJpTM" rel="nofollow ugc">https://cloud.radensolutions.com/s/WazFQAC3KrnJpTM</a>.</p>
]]></description><link>https://forum.netxms.org/post/31882</link><guid isPermaLink="true">https://forum.netxms.org/post/31882</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Mon, 19 Sep 2022 14:29:38 GMT</pubDate></item><item><title><![CDATA[Reply to Java SubAgent and OPC UA on Mon, 19 Sep 2022 12:49:58 GMT]]></title><description><![CDATA[<p dir="auto">Check agent's log on debug level 1 or higher, there should be lines like</p>
<pre><code>2022.09.19 15:47:54.074 *D* [                  ] Initializing Java subagent
2022.09.19 15:47:54.074 *D* [                  ] JAVA: Default JVM: /Users/alk/.asdf/installs/java/zulu-17.32.13/zulu-17.jdk/Contents/Home/lib//server/libjvm.dylib
2022.09.19 15:47:54.074 *D* [                  ] JAVA: using JVM /Users/alk/.asdf/installs/java/zulu-17.32.13/zulu-17.jdk/Contents/Home/lib//server/libjvm.dylib
2022.09.19 15:47:54.095 *D* [                  ] Java SubAgent created
</code></pre>
<p dir="auto">If JVM is not found, you can set it with parameter "JVM=..." in "JAVA" section.</p>
]]></description><link>https://forum.netxms.org/post/31880</link><guid isPermaLink="true">https://forum.netxms.org/post/31880</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Mon, 19 Sep 2022 12:49:58 GMT</pubDate></item></channel></rss>