<?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[Table DCI parameters]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I'm trying to write Table DCI under AIX agent, but i'm getting disorder when it's showed on Netxms server side while trying to add this table from DCIs:</p>
<p dir="auto">below is how I'm getting the disorder of the DCIs table where it shows that available tables are shown under name, instance column and description instead of just being under Name:</p>
<p dir="auto">and I'm not facing the same form for single parameter:</p>
<p dir="auto">I defined NETXMS_SUBAGENT_TABLE and NETXMS_SUBAGENT_PARAM on AIX as below (if I try to use the same number of parameters for NETXMS_SUBAGENT_TABLE and NETXMS_SUBAGENT_PARAM , I got compilation error of parameters):</p>
<blockquote>
<pre><code>static NETXMS_SUBAGENT_TABLE m_tables[] =
{
{ "Switch.TopReadTablesWork(*)", H_TOP_READ_TABLES_WORK, NULL } ,
{ "Switch.Test1", H_TABLE_TEST, NULL } ,
{ "Switch.Test2", H_TABLE_TEST, NULL } ,
{ "Switch.Test3", H_TABLE_TEST, NULL }
};

static NETXMS_SUBAGENT_PARAM m_parameters[] =
{

{ "Switch.SrcVersion", H_Version, NULL,DCI_DT_STRING, "Source long version" },
{ "Switch.Echo(*)", H_Echo, NULL,DCI_DT_STRING, "Echoes string back" },

</code></pre>
</blockquote>
<p dir="auto">Can anyone helps me out of the exact format and type of <strong>NETXMS_SUBAGENT_TABLE</strong> ???</p>
<p dir="auto">Thanks in advance</p>
<hr />
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001994-Table_DCI_Form.png" alt="Table_DCI_Form.png" class="img-markdown  img-fluid" width="708" height="432" /></p>
<p dir="auto"><img src="/assets/uploads/files/smf/0000000001996-Single_DCI_Parameter.png" alt="Single_DCI_Parameter.png" class="img-markdown  img-fluid" width="658" height="425" /></p>
]]></description><link>https://forum.netxms.org/topic/3402/table-dci-parameters</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 10:35:25 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/3402.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 15 Oct 2014 16:42:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Table DCI parameters on Thu, 16 Oct 2014 15:14:52 GMT]]></title><description><![CDATA[<p dir="auto">You are using extremely old version (I'd say 1.1.11), which was released in the 2012.</p>
]]></description><link>https://forum.netxms.org/post/15047</link><guid isPermaLink="true">https://forum.netxms.org/post/15047</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Thu, 16 Oct 2014 15:14:52 GMT</pubDate></item><item><title><![CDATA[Reply to Table DCI parameters on Thu, 16 Oct 2014 13:09:58 GMT]]></title><description><![CDATA[<p dir="auto">Thank you Alex,</p>
<p dir="auto">Thanks a lot, i found the problem, in file nms_agent.h it was:</p>
<blockquote>
<p dir="auto">typedef struct<br />
{<br />
   TCHAR name[MAX_PARAM_NAME];<br />
   LONG (* handler)(const TCHAR *, const TCHAR *, Table *);<br />
   const TCHAR *arg;<br />
} NETXMS_SUBAGENT_TABLE;</p>
</blockquote>
<p dir="auto">instead of being</p>
<blockquote>
<p dir="auto">typedef struct<br />
{<br />
   TCHAR name[MAX_PARAM_NAME];<br />
   LONG (* handler)(const TCHAR *, const TCHAR *, Table *);<br />
   const TCHAR *arg;<br />
   TCHAR instanceColumns[MAX_COLUMN_NAME * MAX_INSTANCE_COLUMNS];<br />
   TCHAR description[MAX_DB_STRING];<br />
} NETXMS_SUBAGENT_TABLE;</p>
</blockquote>
]]></description><link>https://forum.netxms.org/post/15045</link><guid isPermaLink="true">https://forum.netxms.org/post/15045</guid><dc:creator><![CDATA[Imad]]></dc:creator><pubDate>Thu, 16 Oct 2014 13:09:58 GMT</pubDate></item><item><title><![CDATA[Reply to Table DCI parameters on Wed, 15 Oct 2014 22:16:22 GMT]]></title><description><![CDATA[<p dir="auto">Hello.</p>
<p dir="auto">NETXMS_SUBAGENT_TABLE is defined in include/nms_agent.h: <a href="http://git.netxms.org/public/netxms.git/blob/develop:/include/nms_agent.h?js=1#l406" rel="nofollow ugc">http://git.netxms.org/public/netxms.git/blob/develop:/include/nms_agent.h?js=1#l406</a></p>
<p dir="auto">Table example:</p>
<p dir="auto">Filling up structure: <a href="http://git.netxms.org/public/netxms.git/blob/develop:/src/agent/subagents/aix/main.cpp?js=1#l266" rel="nofollow ugc">http://git.netxms.org/public/netxms.git/blob/develop:/src/agent/subagents/aix/main.cpp?js=1#l266</a><br />
Callback implementation: <a href="http://git.netxms.org/public/netxms.git/blob/develop:/src/agent/subagents/aix/disk.cpp?js=1#l108" rel="nofollow ugc">http://git.netxms.org/public/netxms.git/blob/develop:/src/agent/subagents/aix/disk.cpp?js=1#l108</a></p>
<p dir="auto">Small tip: you can use "nxget" tool for debugging, it connects directly to the agent and query parameter / table (just make sure your IP is in Servers/MasterServers). To query for table, use "-T" switch: <code>nxget -T 10.5.0.111 FileSystem.Volumes</code></p>
]]></description><link>https://forum.netxms.org/post/15042</link><guid isPermaLink="true">https://forum.netxms.org/post/15042</guid><dc:creator><![CDATA[alk]]></dc:creator><pubDate>Wed, 15 Oct 2014 22:16:22 GMT</pubDate></item></channel></rss>