You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
506 B
14 lines
506 B
<?php
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
|
|
error_reporting(E_ALL);
|
|
|
|
// Create query which should remove security profile
|
|
$query = new \RouterOS\Query('/interface/wireless/security-profiles/remove');
|
|
|
|
// Here, instead of `->where()` need to use `->equal()`, it will generate queries,
|
|
// which stared from "=" symbol:
|
|
$query->where('.id', '*1');
|
|
|
|
$client = new \RouterOS\Client(['host' => '192.168.88.1', 'user' => 'admin', 'pass' => 'password']);
|
|
$response = $client->query($query)->read();
|