Page 1 of 1

Script: change PPP profile

Posted: Sat Jun 24, 2006 3:15 pm
by MikroManagement
I've tried to change users's (PPP secret) profiles, but cannot get it working.

ppp secret edit username profile="Capped"
> does not work.

I have an external logging system that needs to execute scripts on my Mikrotik when users have been capped. Plink (Part of putty suite) works 100%.

ppp secret set profile="Capped" does not work either

Any help appreciated

Posted: Mon Jun 26, 2006 10:36 pm
by MikroManagement
Does anyone know how to work with the EDIT / SET statements under /ppp secret

Posted: Mon Jun 26, 2006 10:56 pm
by changeip
/ppp secret set [/ppp secret find] profile=default-encryption

You could use 'set 0 profile=' but unless you do a 'print' first it won't be able to find 0. Using find is the best option for this. You can add parameters to find, ie, '/ppp secret find name=test' to find entries that match.

Sam

Posted: Thu Jun 29, 2006 10:07 pm
by MikroManagement
thanks!