Script: change PPP profile

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

Does anyone know how to work with the EDIT / SET statements under /ppp secret

/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

thanks!