namo
September 6, 2010, 8:00am
1
I have RouterOS v4.11 currently have user in hotspot.
In PPP , I have created the same profiles names as the one in hotspot.
I want to create the same users(secrets) for PPP as the hotspot users (same user name, password and profile name).
Is there a command or a script to do that? OR I have to add each ppp user manually.
mrz
September 6, 2010, 8:11am
2
you can create a script, something like below
:foreach i in=[/ip hotspot user find] do={
/ppp secret add name=[/ip hotspot user get $i name] password=[/ip hotspot user get $i password];
}
namo
September 6, 2010, 8:32am
3
mrz:
you can create a script, something like below
:foreach i in=[/ip hotspot user find] do={
/ppp secret add name=[/ip hotspot user get $i name] password=[/ip hotspot user get $i password];
}
this will add the users in the defaulted ppp profile not the same profile
namo
September 6, 2010, 8:39am
4
I did this and worked
:foreach i in=[/ip hotspot user find] do={
/ppp secret add name=[/ip hotspot user get $i name] password=[/ip hotspot user get $i password] profile=[/ip hotspot user get $i profile] comment=[/ip hotspot user get $i comment];
}