i can disable users from ppp secret by this code on system schedule :
/ppp secret
set [find routes=1] disable=yes
also i want disconnect this user from active like this code but i dont want with name !!!
ppp active remove [find name=admin]
![Razz :P](./images/smilies/icon_razz.gif)
What are you trying to do?
(general terms, nothing technical)
It sounds like you're trying to manually expire and disconnect accounts. This is okay for a few accounts, but after you have more than just a dozen or so, you really should use RADIUS. With a good RADIUS database, you can set expiration dates on accounts, and have a script that updates the expiration date every time the customer pays their bill, etc.
With expiration dates in RADIUS, the user cannot stay connected even one second beyond the time their account expires, and this is done automatically by the Mikrotik. If the user logs in and the RADIUS server tells the Mikrotik that the account will expire in 14 seconds, then 14 seconds later, the Mikrotik will disconnect the user.