Community discussions

MikroTik App
 
aleab
Member Candidate
Member Candidate
Topic Author
Posts: 110
Joined: Sat Sep 22, 2018 6:13 pm

check netwatch with api

Fri Jul 22, 2022 10:58 pm

Hello,
i find api and i try to check netwatch with api

i'm able to read system resource with
curl -k -u admin:password https://192.168.88.1/rest/system/resource

but i want "read" netwatch status, so i try
curl -k -u admin:password https://192.168.88.1/rest/tool/netwatch/print
but i receive bad request

my goal is "read" up with ros command
:put ([/tool netwatch print as-value where host=8.8.4.4]->0->"status");
or where comment = "WAN2"

can i use api instead ssh command?

thank you

Who is online

Users browsing this forum: Kanzler and 22 guests