Community discussions

MikroTik App
 
jerryroy1
Member Candidate
Member Candidate
Topic Author
Posts: 170
Joined: Sat Mar 17, 2007 4:55 am
Location: LA and OC USA
Contact:

Best method for mass production

Wed Oct 24, 2012 10:59 pm

Hi All,

We are deploying hundreds of RB 750's. We have a database that stores all the WAN, LAN and miscellaneous settings for the customers location (Broadband type settings such as pppoe ,dhcp or static, serial# of 750 etc...). We run a web interface that just requires us to enter the serial of the 750 and it pulls a template and populates all the required fields from the databse into a new configuration text file. Can I just upload that text file to the 750 and reload? Is there any file naming convention I must follow?
 
ditonet
Forum Veteran
Forum Veteran
Posts: 835
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: Best method for mass production

Wed Oct 24, 2012 11:50 pm

 
jerryroy1
Member Candidate
Member Candidate
Topic Author
Posts: 170
Joined: Sat Mar 17, 2007 4:55 am
Location: LA and OC USA
Contact:

Re: Best method for mass production

Thu Oct 25, 2012 2:22 am

They are kidding right?

From the link you sent:

"Note that it is impossible to import the whole router configuration using this feature. It can only be used to import a part of configuration (for example, firewall rules) in order to spare you some typing. "

This makes no sense, almost every device in the world allows me to import a file with an entire config. What do they expect me to do? Anyone have a better solution?
 
JorgeAmaral
Trainer
Trainer
Posts: 199
Joined: Wed Mar 04, 2009 11:53 pm
Location: /ip route add type=blackhole

Re: Best method for mass production

Thu Oct 25, 2012 3:26 am

 
ditonet
Forum Veteran
Forum Veteran
Posts: 835
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: Best method for mass production

Thu Oct 25, 2012 11:13 am

@JorgeAmaral
Flashfig and import configuration files are identical (ROS script file).

@jerryroy1
"Note that it is impossible to import the whole router configuration using this feature. It can only be used to import a part of configuration (for example, firewall rules) in order to spare you some typing. "
From my experience is possible to import whole router configuration. Just reset RB to defaults, restart it and connect with Winbox. It gives you script to config whole router to factory default, analyze it. IMHO the most important thing with import configuration files is order of commands, ie. add interface first, then use it in firewall rules.

HTH,
 
User avatar
tomaskir
Trainer
Trainer
Posts: 1162
Joined: Sat Sep 24, 2011 2:32 pm
Location: Slovakia

Re: Best method for mass production

Thu Oct 25, 2012 9:56 pm

@jerryroy1

What that remark refers to is that importing a file with config is different from importing an actual backup file.

Some things can not be exported to a file (such as admin password etc), while the backup file holds those. But for 99% of your config importing needs just importing a .rsc file will work.
 
jerryroy1
Member Candidate
Member Candidate
Topic Author
Posts: 170
Joined: Sat Mar 17, 2007 4:55 am
Location: LA and OC USA
Contact:

Re: Best method for mass production

Fri Nov 09, 2012 12:46 am

I also tried this process and I am directly connected on port 5 to the 750. Trieds from two different laptops (firewall and antivirus disabled)

http://wiki.mikrotik.com/wiki/Manual:Flashfig

Does NOT work.

Pretty frustrating that just uploading a text file with a complete config can be unsupported by such a powerful product.

Any other ideas?
 
ditonet
Forum Veteran
Forum Veteran
Posts: 835
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: Best method for mass production

Fri Nov 09, 2012 1:47 am

AFAIR for RB750 you should connect to port 1.

HTH,
 
jerryroy1
Member Candidate
Member Candidate
Topic Author
Posts: 170
Joined: Sat Mar 17, 2007 4:55 am
Location: LA and OC USA
Contact:

Re: Best method for mass production

Fri Nov 09, 2012 10:01 pm

Ok, Port 1 worked. Whoever has access to the documents on the wiki should note that :)

Only problem is it still does not get entire config. I export a file called fullconfig.rsc that has all my settings and then I reset router back to what it came with from "factory" (Lan 192.168.88.0/24, Nat and dhcp client on Wan). I run netinstall, flashfig and select my file. Pull the power and plug cable into port 1. Plug in power and it says "flashfigged". I go and look at the settings and NTP is missing, snmp is missing. I am not sure all of the settings that are not re-applied.

Any other Ideas?
 
ditonet
Forum Veteran
Forum Veteran
Posts: 835
Joined: Mon Oct 19, 2009 12:52 am
Location: Europe/Poland/Konstancin-Jeziorna
Contact:

Re: Best method for mass production

Sat Nov 10, 2012 1:05 am

IMHO your problem is that new device has default factory configuration
and your config file try to set some parameters once again, hence errors.
Export configuration from new device (with factory defaults) to file and compare it
with your 'fullconfig.rsc' file using MilliScript utility http://forum.mikrotik.com/viewtopic.php?f=2&t=40092.
Analyze differences, probably there is a need to add/remove some commands in 'fullconfig.rsc' to
achieve results you want, ex. add command to remove default IP address (192.168.88.1/24) from ether-2 interface.
As I wrote ealier reset RB to factory default, connect with Winbox and save script which sets default configuration.
This should show you proper order of commands.

HTH,
 
jerryroy1
Member Candidate
Member Candidate
Topic Author
Posts: 170
Joined: Sat Mar 17, 2007 4:55 am
Location: LA and OC USA
Contact:

Re: Best method for mass production

Thu Dec 06, 2012 6:40 am

The Mikrotik has the absolute lamest way ever to set a config. The most frustrating design ever. I can't believe that I can't just generate a text file and upload and reload. It seems the unit would have had the smarts on reload of a file to 1) wipe config 2) parse and order file 3) load with ALL parameters that are present in file 4) create an error log file for commands that fail. I wasted so much time with this.
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26924
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: Best method for mass production

Thu Dec 06, 2012 9:48 am

jerry, I don't understand what you are talking about. importing files works great, and flashfig also works.

all devices have default config on them, so correct way would be:

1. connect to the default 192.168.88.1 with FTP and upload your RSC text file
2. run command "/system reset no-defaults=yes run-after-reset=filename.rsc

all of the above is in the mentioned manual

Who is online

Users browsing this forum: Mike65Rivne, ocular and 66 guests