How to send command
/ip/kid-control/pause kid1
using CLI?
I get
no such command ()
in response. It looks like a space is being ignored.
How to send command
/ip/kid-control/pause kid1
using CLI?
I get
no such command ()
in response. It looks like a space is being ignored.
[admin@1009up] > ip/kid-control/pause
command is valid. Are you running RouterOS v7? is there a kid named “kid1”?
This command pauses all recordings, and I only need one.
“[admin@MikroTik] > ip kid-control pause kid1” works via terminal, but I cannot execute it via api.
6.48
API is not the same as CLI syntax. You need to get ID and then perform action with the ID,
See api documentation and examples:
https://wiki.mikrotik.com/wiki/Manual:API
https://wiki.mikrotik.com/wiki/API_command_notes
I apologize if I put it wrong. I have other commands working through api including “ip kid-control pause”, but it is “ip kid-control pause kid1” that does not work.
I am using the package https://github.com/gtjoseph/mikronode-ng
Please read above suggestion again:
API is not the same as CLI syntax. > You need to get ID and then perform action with the ID,
‘/ip/kid-control/print’
[{“.id”:“*1”,“name”:“kid1”,“sun”:“”,“mon”:“”,“tue”:“”,“wed”:“”,“thu”:“”,“fri”:“”,“sat”:“”,“rate-limit”:“”,“tur-sun”:“”,“tur-mon”:“”,“tur-tue”:“”,“tur-wed”:“”,“tur-thu”:“”,“tur-fri”:“”,“tur-sat”:“”,“paused”:“false”,“blocked”:“true”,“disabled”:“false”},{“.id”:“*2”,“name”:“kid2”,“sun”:“”,“mon”:“”,“tue”:“”,“wed”:“”,“thu”:“”,“fri”:“”,“sat”:“”,“rate-limit”:“”,“tur-sun”:“”,“tur-mon”:“”,“tur-tue”:“”,“tur-wed”:“”,“tur-thu”:“”,“tur-fri”:“”,“tur-sat”:“”,“paused”:“false”,“blocked”:“true”,“disabled”:“false”},{“.id”:“*3”,“name”:“kid3”,“sun”:“”,“mon”:“”,“tue”:“”,“wed”:“”,“thu”:“”,“fri”:“”,“sat”:“”,“rate-limit”:“”,“tur-sun”:“”,“tur-mon”:“”,“tur-tue”:“”,“tur-wed”:“”,“tur-thu”:“”,“tur-fri”:“”,“tur-sat”:“”,“paused”:“false”,“blocked”:“true”,“disabled”:“false”}]
Thanks, the id works.
‘/ip/kid-control/pause\n=.id=*1’
Confused that it does not work by name.