[rbak-nsp] clear subscriber via radius client application
Tom Simes
simestd at netexpress.com
Mon Sep 29 11:56:51 EDT 2008
On Mon, 29 Sep 2008 11:43:01 -0400
Marcin Kuczera <marcin at leon.pl> wrote:
> hello,
>
> using MikroTik as PPPoE concentrator, it is possible to clear session
> remotely using this syntax:
>
> echo "User-Name='.$login.'" | /usr/local/bin/radclient -r 2
> $nasipaddress:1700 disconnect
>
>
> well, I tried that with redBack, but it's not responding.
>
> Is there a method to activate this function ?
> Or any other remote method other than expect/perl scripting ?
I don't have experience with MicroTik, but with Redbacks I use a perl
script hitting an SNMP OID to provide the functionality you're
describing. The OIDs I use are:
# rbnSubsClearSubscriberName (default)
if ($action =~ "clear") {
$MIB = ".1.3.6.1.4.1.2352.2.27.1.1.3.1.0";
}
#
# rbnSubsBounceSubscriberName
if ($action =~ "bounce") {
$MIB = ".1.3.6.1.4.1.2352.2.27.1.1.3.3.0";
}
#
# rbnSubsReauthName
if ($action =~ "reauth") {
$MIB = ".1.3.6.1.4.1.2352.2.27.1.1.3.7.0";
}
and the call goes like this:
($result) = &snmpset("$snmp_string\@$context\@$hostname","$MIB",'string'
,"$username");
Tom
======================================================================
"Z-80 system stack overflow. Shut 'er down Scotty, the system's
sucking mud" - Error message on TRS 80 Model-16B
Tom Simes simestd at netexpress.com
======================================================================
More information about the redback-nsp
mailing list