This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

LM and Mikrotik routers
#20
Hi DGrandes,

this works fine on RouterOS 6.43.4 and LM 20200720 (you can paste these commands directly in Mikrotik's Terminal)

Read value:

Code:
/tool fetch url="http://remote:yourPassword111@192.168.1.13/scada-remote" http-data="m=json&r=grp&fn=getvalue&alias=1/0/1" http-content-type="application/json" http-method=post;


You should see something like this in Terminal:

Code:
      status: finished
  downloaded: 0KiBC-z pause]
    duration: 1s

By default output = file and the file scada-remote is created (in Files section). You can see object's 1/0/1 value in this file.

Note! In latest LM version there is IP blocker enabled in case of 5 unsuccessful login attempts. It's related to FTP, SSH, Remote services. The quickest remedy is to reboot your LM5. If this happens, you will see something like this:

Code:
  status: failed

failure: connection timeout


Write value:

Code:
/tool fetch url="http://remote:yourPassword111@192.168.1.13/scada-remote" http-data="m=json&r=grp&fn=write&alias=1/0/1&value=1" http-content-type="application/json" http-method=post;
Reply


Messages In This Thread
LM and Mikrotik routers - by AlexLV - 13.06.2017, 19:41
RE: LM and Mikrotik routers - by AEK - 14.06.2017, 07:50
RE: LM and Mikrotik routers - by AlexLV - 16.09.2017, 19:49
RE: LM and Mikrotik routers - by edgars - 09.03.2018, 13:41
RE: LM and Mikrotik routers - by DGrandes - 09.11.2019, 11:23
RE: LM and Mikrotik routers - by edgars - 11.11.2019, 07:54
RE: LM and Mikrotik routers - by DGrandes - 11.11.2019, 11:29
RE: LM and Mikrotik routers - by edgars - 11.11.2019, 12:39
RE: LM and Mikrotik routers - by DGrandes - 11.11.2019, 14:58
RE: LM and Mikrotik routers - by DGrandes - 30.08.2020, 17:09
RE: LM and Mikrotik routers - by admin - 30.08.2020, 17:25
RE: LM and Mikrotik routers - by DGrandes - 30.08.2020, 17:35
RE: LM and Mikrotik routers - by admin - 30.08.2020, 17:39
RE: LM and Mikrotik routers - by DGrandes - 30.08.2020, 17:45
RE: LM and Mikrotik routers - by admin - 31.08.2020, 11:36
RE: LM and Mikrotik routers - by DGrandes - 31.08.2020, 14:18
RE: LM and Mikrotik routers - by edgars - 01.09.2020, 07:02
LM and Mikrotik routers - by DGrandes - 07.09.2020, 16:24

Forum Jump: