Hello,
I am trying to change all users in PPPOE profile A to profile B at once. Can you please help me with the script?
{
/ppp secret
:foreach id in=[find where profile="Profile-A"] do={
set $id profile="Profile-B"
}
}
/ppp secret set profile="Profile-B" [find profile="Profile-A"]
Hi, Thanks for your reply.Or do it in one line, like this:although you probably want something similar with "/interface pppoe-client" or "/interface pppoe-server", but your question was too vague to know.Code: Select all/ppp secret set profile="Profile-B" [find profile="Profile-A"]
Thank you. It works.Here you go:
Code: Select all{ /ppp secret :foreach id in=[find where profile="Profile-A"] do={ set $id profile="Profile-B" } }