Community discussions

MUM Europe 2020
 
bridgh20
just joined
Topic Author
Posts: 20
Joined: Sat Sep 27, 2008 7:55 pm
Location: South Texas

Changing hotspot user profiles

Wed Mar 24, 2010 5:35 pm

I have 300 users in our hotspot. They are all set to default profile. I am trying to find a way to change users 100 through 200 to a different profile named - "basic" - without having to click on each one in winbox. Is there someway easier in console? Frustrated trying to type one command to change a contiguous range of users.

Thanks for any help.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8344
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Changing hotspot user profiles

Wed Mar 24, 2010 5:44 pm

are their names numbers?.. or what do you mean by "users 100 through 200"?

maybe,
/ip hotspot users
print
:for i from=100 to=200 do={set $i profile="basic"}
?..
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.
 
bridgh20
just joined
Topic Author
Posts: 20
Joined: Sat Sep 27, 2008 7:55 pm
Location: South Texas

Re: Changing hotspot user profiles

Wed Mar 24, 2010 5:50 pm

Thanks for the suggestion. Yes the users are numbered 100 through 300. I tried your script and it came back with ah syntax error (line 1 column 30)
 
bridgh20
just joined
Topic Author
Posts: 20
Joined: Sat Sep 27, 2008 7:55 pm
Location: South Texas

Re: Changing hotspot user profiles

Wed Mar 24, 2010 5:55 pm

Found the error. Fixed it THANK YOU! Worked great.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8344
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Changing hotspot user profiles

Wed Mar 24, 2010 6:53 pm

glad to hear that =)
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.

Who is online

Users browsing this forum: eworm, makymii and 136 guests