Skip to content
New issue

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

how to print with "where" statement #24

Closed
irulvam opened this issue Jan 7, 2017 · 2 comments
Closed

how to print with "where" statement #24

irulvam opened this issue Jan 7, 2017 · 2 comments

Comments

@irulvam
Copy link

irulvam commented Jan 7, 2017

i want to use this command by php
ip hotspot active print detail where user=username

i try to use this code but i think it wrong
$ARRAY = $API->comm("/ip/hotspot/active/print/detail/where", array( "user" => "username", ));

output message
[message] => no such command prefix

@irulvam irulvam changed the title how to print with where statement how to print with "where" statement Jan 8, 2017
@irulvam irulvam closed this as completed Jan 8, 2017
@irulvam
Copy link
Author

irulvam commented Jan 8, 2017

done. thanks
$ARRAY = $API->comm("/ip/hotspot/active/print", array( "?user"=>"username", ));

@ve3 ve3 mentioned this issue Jul 4, 2023
Closed
@ve3
Copy link

ve3 commented Jul 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants