Community discussions

MikroTik App
 
instalator
just joined
Topic Author
Posts: 4
Joined: Mon Feb 15, 2021 11:15 am

/ip/kid-control/pause kid1 not work

Mon Feb 15, 2021 11:19 am

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.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24822
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: /ip/kid-control/pause kid1 not work

Mon Feb 15, 2021 2:53 pm

[admin@1009up] > ip/kid-control/pause

command is valid. Are you running RouterOS v7? is there a kid named "kid1"?
No answer to your question? How to write posts
 
instalator
just joined
Topic Author
Posts: 4
Joined: Mon Feb 15, 2021 11:15 am

Re: /ip/kid-control/pause kid1 not work

Mon Feb 15, 2021 5:08 pm

[admin@1009up] > ip/kid-control/pause
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.
command is valid. Are you running RouterOS v7? is there a kid named "kid1"?
6.48
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 6195
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: /ip/kid-control/pause kid1 not work

Mon Feb 15, 2021 5:54 pm

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
 
instalator
just joined
Topic Author
Posts: 4
Joined: Mon Feb 15, 2021 11:15 am

Re: /ip/kid-control/pause kid1 not work

Mon Feb 15, 2021 6:26 pm

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
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 24822
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: /ip/kid-control/pause kid1 not work

Wed Feb 17, 2021 11:22 am

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,
No answer to your question? How to write posts
 
instalator
just joined
Topic Author
Posts: 4
Joined: Mon Feb 15, 2021 11:15 am

Re: /ip/kid-control/pause kid1 not work

Wed Feb 17, 2021 12:35 pm

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.

Who is online

Users browsing this forum: No registered users and 33 guests