Disconnect sessions without traffic

PPPoE related questions
Post Reply
lfernandosg
Posts: 7
Joined: 18 Feb 2017, 13:59

Disconnect sessions without traffic

Post by lfernandosg »

How do I make a script or command to disconnect (knock down) all sessions without traffic so I can force it to upload the session to the other server?
dimka88
Posts: 866
Joined: 13 Oct 2014, 05:51
Contact:

Re: Disconnect sessions without traffic

Post by dimka88 »

use

Code: Select all

accel-cmd show sessions ifname,username,rx-bytes-raw,tx-bytes-raw
check traffic and disconnect users

Code: Select all

accel-cmd terminate if <interface>
lfernandosg
Posts: 7
Joined: 18 Feb 2017, 13:59

Re: Disconnect sessions without traffic

Post by lfernandosg »

It shows many sessions without traffic. Can I put together a script to do the bulk disconnects?

Because there are more than 800 sessions at the moment with no traffic.
Post Reply