したがって、RouterOS php ライブラリを使用して登録ユーザーのプロファイルをアクティブにする次の関数があります。
public function activateProfile($username)
{
$activationQuery = new Query(
'/tool/user-manager/user/create-and-activate-profile',
[
'=user=' . $username,
'=customer=admin',
'=profile=profile1',
]
);
$response = $this->query($activationQuery)->read(false);
print("Activating Profile...");
print_r($response);
}
しかし、私は以下のエラーメッセージを受け取り続けます
Activating Profile...Array ( [0] => !trap [1] => =message=no such command [2] => !done )