Page 1 of 1

Disconnect sessions without traffic

Posted: 11 Mar 2017, 15:41
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?

Re: Disconnect sessions without traffic

Posted: 12 Mar 2017, 06:37
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>

Re: Disconnect sessions without traffic

Posted: 12 Mar 2017, 11:50
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.