Community discussions

 
morheb
newbie
Topic Author
Posts: 35
Joined: Wed Mar 22, 2017 5:52 pm

changing variables for all users of same profile

Sat Jun 16, 2018 6:17 pm

Hello guys.
Can i write a script than changes a variable, for example limit bytes of all users with same profile at once?

Any one can help me plz

Thanks
 
User avatar
dasiu
Trainer
Trainer
Posts: 232
Joined: Fri Jan 30, 2009 11:41 am
Location: Reading, UK
Contact:

Re: changing variables for all users of same profile

Mon Jun 18, 2018 3:18 pm

Yes, you can :).

Example (the idea is always the same)
/ppp secret set [find profile=default-encryption] limit-bytes-in=XXX

or just:
/any command set [find fieldname=commonvalue] changedfield=newvalue
 
morheb
newbie
Topic Author
Posts: 35
Joined: Wed Mar 22, 2017 5:52 pm

Re: changing variables for all users of same profile

Tue Jun 19, 2018 9:13 am

Yes, you can :).

Example (the idea is always the same)
/ppp secret set [find profile=default-encryption] limit-bytes-in=XXX

or just:
/any command set [find fieldname=commonvalue] changedfield=newvalue


Thank you so much

This worked perfectly
one more question

Can i find the users who has consumed their total bytes?

Who is online

Users browsing this forum: No registered users and 10 guests