Hello, could someone share me the command line to delete the pppoe client interface… Please help me..

Is there a reason you can’t just select “Remove” from the screen you are on?
I hardly ever use the CLI, so can’t help you on that part…
The reset button to defaults always works ![]()
CLI command might be something like this (I’m not trying if it actually works, my better half is on-line
):
/interface/pppoe-client/remove [ find name=pppoe-out1 ]
the main reason is that i need to make a script, where it will automatically change the username and password of that pppoe interface and then put it on a schedule.. already opened a topic yesterday for that, but didn’t get any reply from anyone.. So, decided to make a script by myself , but for that trying to get the cli command…
Fortunately i managed the command and made the script, where it will first delete the pppoe and then make a new one.. But because of deleting and creating new pppoe-out service, it will also changing some of my mangle rules.. And now the result is ZERO ![]()
What i need now to put the command line to just change the username and password of that specific pppoe-out interface… More understanding will be found from the attachment below…

thanks for your reply.. in my case it worked by without putting “/” … and then putting numbers=0 ..
btw, if i only want to change the username and password of that specific pppoe-out interface, what should be the command line, do you have any idea for that ?
When you go in terminal to pppoe and then press TAB or F1 then it will show the available options. You can use set or edit to change a specific field.
Then you can add that to line you have in your script without the remove ofcourse.
best reply what i was looking for… script done and working..
![]()
an another question, do i need to give any interval, or the schedule is okay.. i want to run these two schedules (15mb and 40mb) everyday.. 15mb schedule at 9am and 40mb schedule at 7pm

Set interval to 1 day (i.e. interval=1d) … so that scheduler runs script at time specified and then repeated every . The same way you have it for “rebootscript”
the main reason is that i need to make a script, where it will automatically change the username and password of that pppoe interface and then put it on a schedule..
I’m just wondering how will your isp call center handling your pppoe change request twice a day ![]()
A curiosity,
but do you really keep deleting the interface every time, instead of just setting the username and password?
Do not use numbers=0, use the interface name.
Numbers are good only when interacting with terminal, on script must be never used.
The cli command line i could not find before to only change the user credentials.. And using only interface worked, but at end it asks for numbers..so i just added the number... Not sure it's a proper way or not, but in my case everything is working as like as i wanted ...
/interface pppoe-client disable numbers=0
/delay 30
/interface pppoe-client set name="Antaranga PPPoE" max-mtu=auto max-mru=auto mrru=disabled interface=ether2 user="XXXX" password="1234" profile=default keepalive-timeout=10 service-name="" ac-name="" disabled=no add-default-route=no dial-on-demand=no use-peer-dns=yes allow=pap,chap,mschap1,mschap2 numbers=0
/
/
thanks… done as like as u said ![]()
Yup, you do not want to numbers=0. If you have only one interface, you can replace numbers=0 with [find]. The "numbers" are tied to "print" command, so that may break after a reboot/etc – why @rextended mentions this important detail here.
Why understanding how "find" works is pretty important to the CLI. In your case, the [find name="pppoe-out1"] did not work because your interface is named differently. So [find name="Antaranga PPPoE"] would work here. But they way "find" works is it matches on any of the properties. So [find interface=ether2] would work too. Thus... the plain [find] means "all" (why I said IF you had only one).
In your "set", you just need to state the values that changed. The "find" works the name, and used in place of numbers=0. So if it's only username and password, something like this might be cleaner:
/interface pppoe-client disable [find interface="ether2"]
:delay 30
/interface pppoe-client set user="XXXX" password="1234" enabled=yes [find interface="ether2"]
Also, I'm not sure the ":delay 30" is needed, it should drop the connection with the disable, but maybe your ISP needs it.
/interface pppoe-client
disable "Antaranga PPPoE"
:delay 30s
set "Antaranga PPPoE" user="XXXX" password="1234" disabled=no
EDIT: Thanks @Amm0 I forget to add disabled=no at the end, not needed to use “enable”, if disabled=no is on same line.
I think it needs to get enabled after the set?
Either form should be valid. But that is less typing. But requires knowing that in scripting the first line "/interface pppoe-client" allows the future lines to assume that part (much like directories in a shell) ... when "remove" is apparently tricky ![]()
Thank you all… many many thanks.. didn’t expect to have that great help from you all.. Did the same post in script section, but didn’t get any answer… But here you all are pro…
![]()