1 | <?php |
||
2 | use PEAR2\Net\RouterOS; |
||
3 | |||
4 | require_once 'PEAR2/Autoload.php'; |
||
5 | |||
6 | $util = new RouterOS\Util( |
||
7 | $client = new RouterOS\Client('192.168.88.1', 'admin', 'password') |
||
8 | ); |
||
9 | $util->setMenu('/ip arp'); |
||
10 | |||
11 | //echoes "192.168.88.1", assuming an otherwise empty ARP list |
||
12 | echo $util->get(0, 'address'); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
13 |