Change all users in PPPOE profile A to profile B.

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?

Here you go:

{
/ppp secret
:foreach id in=[find where profile="Profile-A"] do={
	set $id profile="Profile-B"
}
}

Or do it in one line, like this:

/ppp secret set profile="Profile-B" [find profile="Profile-A"]

although you probably want something similar with “/interface pppoe-client” or “/interface pppoe-server”, but your question was too vague to know.

Hi, Thanks for your reply.

These are the profiles I want to change. Move all users in profile X to profile Y. (see attached screenshot)
Screenshot 2022-05-12 124801.png

Thank you. It works. :smiley: :smiley: