Since SNMP is RO, is there a way to kickoff online user?
Not from CLI, or is there a way to start script remotely and pass through paramteres.
Thanx,
Aleksandar
Since SNMP is RO, is there a way to kickoff online user?
Not from CLI, or is there a way to start script remotely and pass through paramteres.
Thanx,
Aleksandar
If trying to disconnect them from a RADIUS server, you could look into the “incoming RADIUS” feature on RouterOS - it’s made for that purpose. Search the forums here, this has been discussed.
Or you could of course make scripts that telnet/ssh into the router to execute the necessary console commands (that has been discussed here in great detail, too).
Best regards,
Christian Meis
You could start with this simple perl example
#!/usr/bin/perl
use Net::Telnet;
$login = "someuser";
$password = "xxxxxx";
$host = "ip.add.re.ss";
$t = new Net::Telnet ( Timeout=>10, Errmode=>'die');
$t->open($host);
$t->waitfor('/Login: $/i');
$t->print($login);
$t->waitfor('/Password: $/i');
$t->print($password);
$t->waitfor('/identity_goes_here] > $/i');
$t->print('interface pppoe-server');
$t->print('remove [find user='.$ARGV[0].']');
$t->print('..');
$t->print('..');
$t->print('quit');