<?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[DCI over SSH Fails on Mikrotik device only]]></title><description><![CDATA[<p dir="auto">I have some mikrotik wireless devices that I need to monitor signal strength and SNR  and because of the odd way the Mikrotik MIBS are formatted and having to know the connected clients mac in order to retrieve that info from the registration table via snmp i decided to do it over ssh but it always fails on the Mikrotik device.  I have tested the commands from the server using the native ssh client and everything works.  I have also setup a laptop and simple dci with uname -a command and that is successful it just does not like the Miktotik response for some reason.  Below are the responses any suggestions are much appreciated.</p>
<p dir="auto"> Successful Laptop Response:</p>
<p dir="auto"> ] Received message CMD_GET_PARAMETER (139)<br />
2021.09.28 09:18:51.107 *D* [comm.cs.1          ] Requesting metric "SSH.Command(x.x.x.x:22,"user","pass","uname -a","",0)"<br />
2021.09.28 09:18:51.107 *D* [ssh                ] AcquireSession: acquired existing session user@x.x.x.x:22/1<br />
2021.09.28 09:18:51.114 *D* [comm.cs.1          ] GetParameterValue("SSH.Command(x.x.x.x:22,"user","pass","uname -a","",0)"): 0 (SUCCESS) value = "Linux Yakco 5.11.6-arch1-1 #1 SMP PREEMPT Thu, 11 Mar 2021 13:48:23 +0000 x86_64 GNU/Linux"<br />
2021.09.28 09:18:51.114 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 139; size 128; compressed)<br />
2021.09.28 09:18:51.114 *D* [comm.cs.1          ] Outgoing message dump:</p>
<p dir="auto">Unsuccessful Mikrotik Response:<br />
* I changed the command to only return the identity to simplify things</p>
<p dir="auto"> Received message CMD_GET_PARAMETER (1736)<br />
2021.09.28 09:27:56.486 *D* [comm.cs.1          ] Requesting metric "SSH.Command(x.x.x.x:22,"user","pass",":put [/system identity get name]","",0)"<br />
2021.09.28 09:27:56.486 *D* [ssh                ] AcquireSession: acquired existing session user@x.x.x.x:22/2<br />
2021.09.28 09:27:56.494 *D* [ssh                ] SSHSession::execute: read error:<br />
2021.09.28 09:27:56.494 *D* [ssh                ] SSH output is empty<br />
2021.09.28 09:27:56.494 *D* [comm.cs.1          ] GetParameterValue("SSH.Command(x.x.x.x:22,"user","pass",":put [/system identity get name]","",0)"): 500 (INTERNAL_ERROR) value = ""<br />
2021.09.28 09:27:56.494 *D* [comm.cs.1          ] Sending message CMD_REQUEST_COMPLETED (ID 1736; size 32; uncompressed)<br />
2021.09.28 09:27:56.494 *D* [comm.cs.1          ] Outgoing message dump:</p>
]]></description><link>https://forum.netxms.org/topic/7197/dci-over-ssh-fails-on-mikrotik-device-only</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 09:39:53 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/7197.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 28 Sep 2021 16:43:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to DCI over SSH Fails on Mikrotik device only on Tue, 05 Oct 2021 00:25:34 GMT]]></title><description><![CDATA[<p dir="auto">So is this just a bug then ?</p>
]]></description><link>https://forum.netxms.org/post/30604</link><guid isPermaLink="true">https://forum.netxms.org/post/30604</guid><dc:creator><![CDATA[gmonk63]]></dc:creator><pubDate>Tue, 05 Oct 2021 00:25:34 GMT</pubDate></item><item><title><![CDATA[Reply to DCI over SSH Fails on Mikrotik device only on Tue, 28 Sep 2021 19:32:44 GMT]]></title><description><![CDATA[<p dir="auto">I did try a simpler command which did not have the brackets and it did not work either.. Good Idea though</p>
]]></description><link>https://forum.netxms.org/post/30587</link><guid isPermaLink="true">https://forum.netxms.org/post/30587</guid><dc:creator><![CDATA[gmonk63]]></dc:creator><pubDate>Tue, 28 Sep 2021 19:32:44 GMT</pubDate></item><item><title><![CDATA[Reply to DCI over SSH Fails on Mikrotik device only on Tue, 28 Sep 2021 19:00:09 GMT]]></title><description><![CDATA[<p dir="auto">I have no experience with this particular feature, but if it were me I'd try escaping the brackets and see if that helps. I think those are special chars in some cases. This is just a hot take as I didn't check the docs or anything, but thought it was worth a try in case you haven't already thought of it.</p>
<p dir="auto">\[   \]</p>
]]></description><link>https://forum.netxms.org/post/30586</link><guid isPermaLink="true">https://forum.netxms.org/post/30586</guid><dc:creator><![CDATA[Kevo]]></dc:creator><pubDate>Tue, 28 Sep 2021 19:00:09 GMT</pubDate></item></channel></rss>