Community discussions

MikroTik App
 
smutsnic
newbie
Topic Author
Posts: 48
Joined: Tue Apr 19, 2005 8:49 pm

ip hotspot user password change script

Wed Dec 14, 2005 9:51 am

/ system script add name="test" source={
/ip hotspot user print
/ip hotspot user set 0 password=pink
}

when I run the test script it does not change the password, what have I got wrong in the script?

thanks
 
cmit
Forum Guru
Forum Guru
Posts: 1547
Joined: Fri May 28, 2004 12:49 pm
Location: Germany

Wed Dec 14, 2005 4:16 pm

You can't user item numbers in scripts - this has been covered numerous times here in the forum. To reference an entry in a script you have to use the "find" command in your script - search the forum and/or manual for lots of examples.

Best regards,
Christian Meis
 
smutsnic
newbie
Topic Author
Posts: 48
Joined: Tue Apr 19, 2005 8:49 pm

Thu Dec 15, 2005 7:58 am

thanks
 
User avatar
GWISA
Member
Member
Posts: 389
Joined: Tue Jan 31, 2006 2:37 pm
Location: Johannesburg, South Africa

Mon May 08, 2006 6:49 pm

Just found this thread while trying to do the very same thing - so in the interest of more complete research facilities:

On 2.9.20, if your user is 'user1', then the script line is:

/ system script add name="test" source={
/ip hotspot user set user1 password=pink
}

B)

Who is online

Users browsing this forum: Ahrefs [Bot] and 12 guests