[cisco-bba] Disconnecting users

Tom Storey tom at snnap.net
Wed Nov 28 07:27:16 EST 2007


If you are good with scripting you can always login, perform a "show users
wide" filtering by username, then grab their interface name, and "clear
int x".

If youre not fussed on doing it by username, say for fear that you might
pick up another user (e.g. filtering on "bob at isp" could also pick up
"abob at isp"), you could always grab their IP address from your RADIUS
database, filter a "show users" by IP, grab the interface name, and clear
it.

Of course you can always include some sanity checks to ensure that you
havnt picked up the incorrect username, and/or handle multiple instances
of the same username that should be booted off.

Thats how I'd do it, personally :-)

Something like this shouldnt be too hard to write, I could probably whip
something up in a couple of minutes in Perl if that suits your
requirements.

Cheers,
Tom

> Hi,
>
>
>
> We need to be able to disconnect users from our LNS when they haven't
> paid their bill - can anyone give me some pointers on the most effective
> way to do this?
>
>
>
> I had initially thought of just changing the users password in RADIUS
> but that is only effective for suspending users who switch off their
> modem or disconnect regularly - customers who leave their modems logged
> in all of the time may continue to receive service for months after they
> have been 'suspended'.
>
>
>
> The only other alternative that I can think of is to use an SNMPSET
> message to clear the VI that the customer is using. This would probably
> require a little script-fu but it's not insurmountable but I'd love to
> know if there is a more elegant way to approach this?
>
>
>
> Dermot Williams
>
> Senior Network Engineer
>
> Irish Broadband Internet Services Ltd.
>
>
>
>
>
>
>
>
>
> This message is for the named person's use only. It may contain
> confidential, proprietary or legally privileged information. No
> confidentiality or privilege is waived or lost by any mistransmission. If
> you receive this message in error, please immediately delete it and all
> copies of it from your system, destroy any hard copies of it and notify
> the sender. You must not, directly or indirectly, use, disclose,
> distribute, print, or copy any part of this message if you are not the
> intended recipient. Irish Broadband and any of its subsidiaries each
> reserve the right to monitor all e-mail communications through its
> networks. Any views expressed in this message are those of the individual
> sender, except where the message states otherwise and the sender is
> authorized to state them to be the views of any such entity.
>
> Irish Broadband Internet Services Ltd, Registered in Ireland, Number:
> 357181, Registered Office: Burton Court, Burton Hall Road, Sandyford
> Industrial Estate, Dublin 18
> _______________________________________________
> cisco-bba mailing list
> cisco-bba at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-bba



More information about the cisco-bba mailing list