Community discussions

MikroTik App
 
MikroManagement
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 64
Joined: Thu Feb 09, 2006 2:41 pm
Location: Pretoria

Script: change PPP profile

Sat Jun 24, 2006 3:15 pm

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
 
MikroManagement
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 64
Joined: Thu Feb 09, 2006 2:41 pm
Location: Pretoria

Mon Jun 26, 2006 10:36 pm

Does anyone know how to work with the EDIT / SET statements under /ppp secret
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Mon Jun 26, 2006 10:56 pm

/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
 
MikroManagement
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 64
Joined: Thu Feb 09, 2006 2:41 pm
Location: Pretoria

Thu Jun 29, 2006 10:07 pm

thanks!

Who is online

Users browsing this forum: No registered users and 15 guests