Community discussions

 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Sat Jul 05, 2008 11:50 am

MilliScript: freeware to manage export configuration files

Wed Mar 17, 2010 12:06 am

Hi all. Everyone can download this simple exe which:
- save RouterOs export configuration file in a readable form (one parameter per line)
- compare differences from two ros export configuration files (highlights different settings)
- clean a ros configuration file from unused commands, unused sections and unused parameter (you can configure what is unused)
- create configurations file from template
- show a simple help

WIKI PAGE: http://wiki.mikrotik.com/wiki/Milliscript

I hope it can help someone.
It is a simple exe and do not require installation.
Obviously it is provided as-is and without any warranty.

If you want, provide a feedback to make it better.

EDIT: 26/12/2012 - minimal interface bug fixing
MilliScript147.zip
EDIT:  18/08/2011 - correct a bug (parameters 'name' ignored if at beginning of line)
MilliScript146.zip [739.39 KiB] 
Downloaded 2565 times 
EDIT:  new functions, better handling of parsing, create wiki page
MilliScript145.zip [739.38 KiB] 
Downloaded 366 times 
EDIT:  new version with new handling of file-save
milliScript137.zip [548.06 KiB] 
Downloaded 2164 times 
EDIT:  new version with small fixes
EDIT:  new version with a small fix (the clean button moved to the top)
First version
You do not have the required permissions to view the files attached to this post.
Last edited by rodolfo on Wed Dec 26, 2012 11:05 am, edited 13 times in total.
rodolfo
IZ0UQV
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 23545
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: MilliScript: freeware to manage export configuration files

Wed Mar 17, 2010 10:08 am

Wow cool, thanks! Looks very interesting

Image

Image
No answer to your question? How to write posts
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Sat Jul 05, 2008 11:50 am

Re: MilliScript: freeware to manage export configuration files

Wed Mar 17, 2010 8:30 pm

Thanks Normis!
I'm working on a wiki page I will publish soon.
rodolfo
IZ0UQV
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Sat Jul 05, 2008 11:50 am

Re: MilliScript: freeware to manage export configuration fil

Sat Mar 20, 2010 7:10 pm

added version 1.35
rodolfo
IZ0UQV
 
User avatar
jolival
Trainer
Trainer
Posts: 24
Joined: Fri Feb 27, 2009 1:38 am
Location: Portugal
Contact:

Re: MilliScript: freeware to manage export configuration fil

Sun Mar 21, 2010 5:43 pm

nice work.
João Olival
Why noy???
 
brigitte79
just joined
Posts: 1
Joined: Tue Mar 23, 2010 10:06 pm

Re: MilliScript: freeware to manage export configuration fil

Tue Mar 23, 2010 10:18 pm

Great job Rodolfo
Thanks Brigitte :D
 
Muqatil
Trainer
Trainer
Posts: 572
Joined: Mon Mar 03, 2008 1:03 pm
Location: London - UK
Contact:

Re: MilliScript: freeware to manage export configuration fil

Fri Mar 26, 2010 5:47 pm

This script made my day...
I was after a hidden misconfiguration on a live machine, while the test machine was working properly...
I compared the 2 exports and i found the misconfiguration.

Grazie mille Rodolfo, programma semplice ma molto efficace :)
Renato Bernardi

skype: medtech5
 
User avatar
ViREnG
Member Candidate
Member Candidate
Posts: 213
Joined: Tue Aug 11, 2009 4:01 pm
Location: Yekaterinburg

Re: MilliScript: freeware to manage export configuration fil

Sun Mar 28, 2010 9:33 pm

Please Sticky or Add to Mikrotik Tools .
Nice Work . :)
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8110
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: MilliScript: freeware to manage export configuration fil

Mon Mar 29, 2010 6:45 pm

I'd rather create Wiki page =) http://wiki.mikrotik.com/
Russian-speaking forum: https://forum.mikrotik.by/. Welcome!

For every complex problem, there is a solution that is simple, neat, and wrong.

MikroTik. Your life. Your routing.
 
rmichael
Forum Veteran
Forum Veteran
Posts: 718
Joined: Sun Mar 08, 2009 11:00 pm

Re: MilliScript: freeware to manage export configuration fil

Wed Apr 14, 2010 2:11 am

This is great. The app is very usefull as it is however, if you're looking for suggestions I would like another tab that looks like compare but where I can pick and checkmark lines to create rsc script.

Thank you for sharing.

PS: I found a bug: ssid is being converted to all lower case which is not correct since ssid is case sensitive.
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Sat Jul 05, 2008 11:50 am

Re: MilliScript: freeware to manage export configuration fil

Sat Apr 17, 2010 5:00 pm

Attached a new version 1.36 in the main post.

Fixes of 1.36:
- ssid now is not more lowercased (thanks rmichael)
- names with spaces now are correctly inside quotes
- cleanup of files now correctly handle commands with disabled=yes

Thanks.

Rodolfo
rodolfo
IZ0UQV
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Sat Jul 05, 2008 11:50 am

Re: MilliScript: freeware to manage export configuration fil

Sat Apr 24, 2010 11:16 am

Attached the new version 1.37 in the main post.

Fixes of 1.37:
- file save now have the file loaded name

Thanks.

Rodolfo
rodolfo
IZ0UQV
 
car1cow
just joined
Posts: 14
Joined: Fri Apr 10, 2009 4:22 am
Location: Malaysia

Re: MilliScript: freeware to manage export configuration fil

Sat Apr 24, 2010 6:45 pm

Thanks, nice works
 
kazanova
Member
Member
Posts: 407
Joined: Tue Sep 06, 2005 11:52 am

Re: MilliScript: freeware to manage export configuration fil

Sat Apr 24, 2010 11:16 pm

lol really nice
good work
thx
انا انزلنا التوراه فيها هدى ونور يحكم بها النبيون الذين اسلموا للذين هادوا والربانيون والاحبار بما استحفظوا من كتاب الله وكانوا عليه شهداء فلا تخشوا الناس واخشون ولا تشتروا باياتي ثمنا قليلا ومن لم يحكم بما انزل الله فاولئك هم الكافرون
 
leonset
Member Candidate
Member Candidate
Posts: 256
Joined: Wed Apr 01, 2009 9:09 pm

Re: MilliScript: freeware to manage export configuration fil

Tue Jun 29, 2010 2:06 pm

Hello!

I'm trying to use this program to check my configuration but when I load the file I only get garbage on screen. I'm I doing something wrong?

Thanks!
You do not have the required permissions to view the files attached to this post.
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Sat Jul 05, 2008 11:50 am

Re: MilliScript: freeware to manage export configuration fil

Thu Jul 01, 2010 12:02 pm

if you open the same file using Notepad, what you see ?
You must open file obtained using Export, not Backup.
rodolfo
IZ0UQV
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 23545
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: MilliScript: freeware to manage export configuration fil

Tue Jul 12, 2011 10:15 am

any updates to this nice program?
No answer to your question? How to write posts
 
rjscomms
Member Candidate
Member Candidate
Posts: 128
Joined: Fri Jan 28, 2011 12:22 pm

Re: MilliScript: freeware to manage export configuration fil

Wed Jul 13, 2011 1:54 am

Excellent work rodolfo.

I have been thinking about how to do this for a while now.

Very Nice, thankyou.
 
hellweiss
newbie
Posts: 33
Joined: Thu Sep 02, 2010 10:36 am

Re: MilliScript: freeware to manage export configuration fil

Thu Jul 14, 2011 2:26 pm

Great, thank you.

Karma +1
 
User avatar
hilton
Long time Member
Long time Member
Posts: 631
Joined: Thu Sep 07, 2006 5:12 pm
Location: Jozi (aka Johannesburg), South Africa

Re: MilliScript: freeware to manage export configuration fil

Thu Jul 14, 2011 2:37 pm

The question remains though, are there any recent updates?
Regards
Hilton
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Sat Jul 05, 2008 11:50 am

Re: MilliScript: freeware to manage export configuration fil

Sun Jul 24, 2011 12:22 pm

Create wiki page: http://wiki.mikrotik.com/wiki/Milliscript

Uploaded last version:
- better parsing of rsc files
- tested with 5.5
- the file cleaner now support profiles (i.e. I wnat a profile FULL where I delete a lot of things, and a profile MAC where I delte only mac addresses
- in the cleaner added flags to delete all default values (delete all parameters named "default", i.e. the default bgp instance, ecc)
- new section "Modeling": you can compile a rsc file from a template, changing variables with values (i.e. I have a rsc file where radio-name and system identity are variables: here I can simply change this names with a value. It allow also to create tempaltes)
- you can open in notepad cleaned and compiled template rsc file
- little improve to the help
rodolfo
IZ0UQV
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 23545
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia

Re: MilliScript: freeware to manage export configuration fil

Mon Jul 25, 2011 8:27 am

Thanks! The program is really great
No answer to your question? How to write posts
 
matteorb
just joined
Posts: 10
Joined: Sat Oct 02, 2010 1:26 am

Re: MilliScript: freeware to manage export configuration fil

Mon Jul 25, 2011 4:22 pm

Nice Job Rodolfo! Thanks! :D
 
learnnow
just joined
Posts: 2
Joined: Fri Jul 29, 2011 4:57 am

Re: MilliScript: freeware to manage export configuration fil

Fri Jul 29, 2011 5:04 am

THANKS MAN!
 
netrat
Member
Member
Posts: 403
Joined: Thu Jun 07, 2007 1:16 pm
Location: Virginia

Re: MilliScript: freeware to manage export configuration fil

Wed Aug 17, 2011 10:06 pm

Your program leaves out the name entry in /ip pool. Actually it leaves the name entry off /interface pppoe-server as well and probably others. I'm using RouterOS 5.6, could this be a problem?
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Sat Jul 05, 2008 11:50 am

Re: MilliScript: freeware to manage export configuration fil

Wed Aug 17, 2011 11:07 pm

thanks of info. tomorrow I will inspect the code.
rodolfo
IZ0UQV
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Sat Jul 05, 2008 11:50 am

Re: MilliScript: freeware to manage export configuration fil

Thu Aug 18, 2011 9:39 am

Correct the bg: in some cases, if parameter "name" is at the beginning of line, it can be ignored.

thanks
rodolfo
IZ0UQV
 
netrat
Member
Member
Posts: 403
Joined: Thu Jun 07, 2007 1:16 pm
Location: Virginia

Re: MilliScript: freeware to manage export configuration fil

Thu Aug 18, 2011 3:32 pm

Correct the bg: in some cases, if parameter "name" is at the beginning of line, it can be ignored.

thanks
If the name is left off of an ip pool entry and it is referenced by /ip dhcp-server it is not going to work.
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Sat Jul 05, 2008 11:50 am

Re: MilliScript: freeware to manage export configuration fil

Fri Aug 19, 2011 9:38 pm

yes, is the bug fixed in 1.46.
tx
rodolfo
IZ0UQV
 
netrat
Member
Member
Posts: 403
Joined: Thu Jun 07, 2007 1:16 pm
Location: Virginia

Re: MilliScript: freeware to manage export configuration fil

Sat Aug 20, 2011 4:49 am

yes, is the bug fixed in 1.46.
tx
Thanks for the awesome program!
 
mmmigoro
newbie
Posts: 39
Joined: Mon Feb 14, 2011 3:48 pm
Location: PRAHOVA, Romania

Re: MilliScript: freeware to manage export configuration fil

Sat Sep 17, 2011 1:26 pm

Thanks! Nice and handy utility!
 
User avatar
omega-00
Forum Guru
Forum Guru
Posts: 1165
Joined: Sat Jun 06, 2009 4:54 am
Location: Brisbane, Australia
Contact:

Re: MilliScript: freeware to manage export configuration fil

Mon Sep 19, 2011 8:52 am

Hi rodolfo,

Firstly, great work on the script! I've been playing around with it this afternoon and am quite impressed.
Secondly, as you're currently hosting just on the forum, if you're interested I'm happy to set you up a site or subdomain on my site where you can share/update it directly if you'd like.

Feel free to bang me an email if you're interested: admin@mikrotik-routeros.com

and from the community, thanks!
brightwifi.com | mikrotik-routeros.com | MTCNA,MTCWE.MTCTCE | Give karma where due
 
User avatar
cbrown
Trainer
Trainer
Posts: 1835
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: MilliScript: freeware to manage export configuration fil

Tue Oct 25, 2011 6:35 pm

This is amazing. Thank you
C.Brown

cbrown[at]ravenrocknetworks.com
MTCNA - MTCRE - MTCWE - MTCTCE

http://www.cbrown.co
 
rtandon
just joined
Posts: 3
Joined: Sat Jan 28, 2012 12:07 am

Re: MilliScript: freeware to manage export configuration fil

Sat Jan 28, 2012 2:11 am

Thanks rudolfo

I had to do this manually (reformatting RSC and then using diff or such tool)

It will hopefully save much time.
 
chrisgoldsmith
just joined
Posts: 4
Joined: Sun Jan 29, 2012 5:31 pm
Contact:

Re: MilliScript: freeware to manage export configuration fil

Thu Feb 02, 2012 1:38 am

Rudolfo,

May we add this as a downloadable file to our site? We are trying to acquire useful free scripts for free general use along with our own. We tested this, it really is quite helpful. Thank you for posting it.
 
User avatar
AnRkey
Member Candidate
Member Candidate
Posts: 117
Joined: Tue Sep 15, 2009 6:01 pm

Re: MilliScript: freeware to manage export configuration fil

Thu Sep 27, 2012 1:21 pm

Rodolfo, thanks!
MTCNA
 
aknisley
just joined
Posts: 3
Joined: Sun Jul 01, 2012 11:16 pm

Re: MilliScript: freeware to manage export configuration fil

Mon Oct 29, 2012 10:39 pm

Thanks for the program. I have been trying to use to clone a working RB411 with XR3-3.5 wireless card. I get my source and clone file to look the same, but when I import I get an error (line xxx column xx).

Here is what I do.
/export file=backup the router board of the working one
/export file=backup the new router board
compare the two rsc files
change new router board the match the working one.
rename the new one to 2new.rsc
drop the 2new.rsc into the folders section
/import 2new.rsc
says it imported but gives error line xxx column xx expected end of
 
ronix
Member Candidate
Member Candidate
Posts: 151
Joined: Thu Nov 17, 2011 6:51 pm

Re: MilliScript: freeware to manage export configuration fil

Tue Dec 18, 2012 10:48 am

Nice Job Rodolfo The program is really great
Thanks
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Sat Jul 05, 2008 11:50 am

Re: MilliScript: freeware to manage export configuration fil

Wed Dec 26, 2012 11:06 am

Added new version 1.47.
some small interface bug fix.

Merry Christmax and Happy New Year!!!
rodolfo
IZ0UQV
 
User avatar
rezamoghadam
Trainer
Trainer
Posts: 33
Joined: Wed Mar 02, 2011 1:01 pm
Location: Iran , Ahvaz
Contact:

Re: MilliScript: freeware to manage export configuration fil

Sat Dec 29, 2012 1:46 pm

Thank You , Very Great Tool !
Mikrotik Certified Trainer [ TR0152 ]
Mikrotik Certified Academy Trainer [ ACTR0001 ]
Mikrotik Certified Consultant
Mikrotik Coordinator

[ MTCNA , MTCRE , MTCWE , MTCTCE , MTCUME , MTCINE ]
 
telepro
Frequent Visitor
Frequent Visitor
Posts: 62
Joined: Sun Apr 03, 2011 7:50 pm

Re: MilliScript: freeware to manage export configuration fil

Mon Mar 11, 2013 5:46 am

Thanks very much for a great utility. We use it continually during development of new router configurations. And it makes comparing previous and updated ROS configurations so much easier to read and manage.
One question (or suggestion): is there an option to keep the format for script source intact (as produced by the export command) without changing it to a single long line? That seem to be the single configuration command that becomes less readable when converted by this great utility.

thanks again
 
rodolfo
Long time Member
Long time Member
Topic Author
Posts: 538
Joined: Sat Jul 05, 2008 11:50 am

Re: MilliScript: freeware to manage export configuration fil

Sun Apr 07, 2013 10:26 am

Hi Telpro.
Could you make me an example?
rodolfo
IZ0UQV

Who is online

Users browsing this forum: rhos and 28 guests