Community discussions

MikroTik App
 
rounin
just joined
Topic Author
Posts: 21
Joined: Thu Mar 24, 2022 6:03 am

REST API for /interface/lte> monitor lte1 once

Thu Mar 24, 2022 10:38 am

Is there a rest URL that can provide information similar to "/interface/lte> monitor lte1 once" on the terminal? Mainly looking to get SINR/RSSI cell band info.

/rest/interface/lte/monitor says "no such command"

/rest/interface/lte/lte1 only has very basic info, similar to lte iface "General" tab in Winbox.
 
rounin
just joined
Topic Author
Posts: 21
Joined: Thu Mar 24, 2022 6:03 am

Re: REST API for /interface/lte> monitor lte1 once

Fri Mar 25, 2022 1:36 am

Hmm. I also found it in the SNMP mtxrLTEModemEntry OID .1.3.6.1.4.1.14988.1.1.16.1.1, I might do it that way.
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7042
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: REST API for /interface/lte> monitor lte1 once  [SOLVED]

Fri Mar 25, 2022 9:53 am

You should be using HTTP POST to run specific commands.
 
rounin
just joined
Topic Author
Posts: 21
Joined: Thu Mar 24, 2022 6:03 am

Re: REST API for /interface/lte> monitor lte1 once

Fri Mar 25, 2022 9:45 pm

Oh that makes sense, that worked. For posterity, this is what i did:
foo@bar:~$ curl -k -u user:pass -X POST https://<ip-address>/rest/interface/lte/monitor -d '{"numbers":0, "duration":1}' -H "content-type: application/json"

Who is online

Users browsing this forum: No registered users and 17 guests