Community discussions

MikroTik App
 
ejansson
Member
Member
Topic Author
Posts: 300
Joined: Fri Oct 21, 2005 4:09 pm
Location: Manitoba, Canada

Removing all but default items

Wed Apr 17, 2013 9:21 pm

we have a script that that updates the configurations on our router boards. For many of the things we can use remove [find] command to delete everything in the list before putting in the new entries. Now that there are defaults on many things like logging, the commands does not complete as there are defaults that cannot be removed. I have tried everything but can't find a way to delete all non default settings. I have played with various loop ideas but it appears that you cannot remove a line number from within a script.
 
ditonet
Forum Veteran
Forum Veteran
Posts: 835
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: Removing all but default items

Wed Apr 17, 2013 11:38 pm

ros code

[find default=no]
doesn't work for you?

Regards,