We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
English hello!! Could you ask a question how would you do these 2 executions PHP to use the api tool to execute this command below?
/tool sniffer packet print where protocol=tcp
/tool sniffer packet print where protocol=udp
Portugues
olá!! poderia tirar uma dúvida como faria essas 2 execução PHP para usar a ferramenta da api para executar esse comando abaixo?
The text was updated successfully, but these errors were encountered:
Please see this issue, I hope that will work for you.
Edit: ------------ I'll copy the answer in the link to be here to prevent issue deleted. Below is copied from the link above.
If you would like to use command where with or, like this one in terminal. /ip dhcp-server lease print where address=192.168.1.11 or address=192.168.1.12 or address=192.168.1.13 Here is sample code. $API->write('/ip/dhcp-server/lease/print', false); $API->write('?address=192.168.1.11', false); $API->write('?address=192.168.1.12', false); $API->write('?#|', false); $API->write('?address=192.168.1.13', false); $API->write('?#|'); $result = $API->read(); // use `$result` variable. See reference from manual here, and here.
If you would like to use command where with or, like this one in terminal.
where
or
/ip dhcp-server lease print where address=192.168.1.11 or address=192.168.1.12 or address=192.168.1.13
Here is sample code.
$API->write('/ip/dhcp-server/lease/print', false); $API->write('?address=192.168.1.11', false); $API->write('?address=192.168.1.12', false); $API->write('?#|', false); $API->write('?address=192.168.1.13', false); $API->write('?#|'); $result = $API->read(); // use `$result` variable.
See reference from manual here, and here.
Sorry, something went wrong.
Appears answered.
No branches or pull requests
English
hello!! Could you ask a question how would you do these 2 executions PHP to use the api tool to execute this command below?
/tool sniffer packet print where protocol=tcp
/tool sniffer packet print where protocol=udp
Portugues
olá!! poderia tirar uma dúvida como faria essas 2 execução PHP para usar a ferramenta da api para executar esse comando abaixo?
/tool sniffer packet print where protocol=tcp
/tool sniffer packet print where protocol=udp
The text was updated successfully, but these errors were encountered: