I’m trying to import a full config export coming from a RB450G into a RB750G
First it was complaining about the hotspot https certificate, so i installed it, gave it the right name and that part was ok.
I try to import again, and now I get:
[admin@MikroTik] > import rb450export20110321.rsc
Opening script file rb450export20110321.rsc
Script file loaded successfully failure: server with such interface and relay is already enabled
How can I do this the right way and avoid any errors on import?
I did not remove the default config of the RB750G as when I do this I loose connection with it (obviously) and RB750G has no serial connection.
When you first time run import it applied part of the config and then failed. Next time when you are trying to run it starts from the beginning, trying to add what already was added.
To make it work you have to reset configuration to defaults, do not apply default config and then import.
Yes ok, but when I reset defaults and don’t apply any config I loose connection with the RB750G (i’m connected via ssh on ether2 and have no console on RB750)
So how do I keep connection with the router when I remove default config?
tnx
EDIT: And I also have to import & rename the ssl cert. before doing the import of my config, so also for that I need connection to the RB750G
Ah ok, will try that.
Second, I see the exported config contains mac addresses of the orig router where the backup was taken from.
Should I delete those or are they ignored at config restore? The other router of course has other mac addresses.
Ok done it like that.
But at import I get another error Script file loaded succesfully “no such item interrupted”
But what exactly is it struggling over? No hint given at all so I have no idea…
I love MT so far, but really need a way to easy import default configurations and so far it hasn’t been easy to do this
All hints are welcome.
First added the hotspot https certif.
Then gave ether2 an ip address.
Then copied the config and pasted into the cli, no errors this time.
Then used ftp to add my own hotspot login page etc.
Config is inside the new device, but hotspot is not working. (redirect does, but doesn’t show the login page)
Will further investigate, but config restore isn’t as easy going as I was hoping for…
Just redid config on RB750G manually as it didn’t work as expected.
I hope I don’t experience issues again when I export / import this config into another RB750G
Generally you should open the RSC file in an editor, and remove all those parts that you don’t really need to move to another device. The RSC file is just a list of commands, you should always check it, and edit out what you don’t need applied.
Yes I did this finally, but still it ain’t import & go.
I’m thinking of hotspot setup, https cert, custom hotspot login pages, etc.
It would be nice to have ALL config in a single xml file and backup/restore like this.
Import it into parts… as separate rsc scripts.
It’s been a missing part in export/import since 2.6 version.
Split it into parts, like /ip, /interface, and import them one at a time.
You should also be able to detect the thing that’s troubling you this way.
Yes I know I can do it like this, but if you deploy many systems it’s simply annoying and time consuming like this.
Anyway, I will survive by writing a more default config which can be deployed as general for our systems.
Still if a backup/restore function in the form of a simple xml file could be integrated in the future, it would be great.
The suggestion was to do that once, to find out which part actually has problem importing. Then remove or modify that part from the big RSC file, and import normally. Basically you need to make that RSC file as universal as possible, but that would only need to be done once.
Yes I know a general rsc is probably the best way to go. But that still doesn’t fix the need of seperately importing https certs and custom login pages.
Anyway, that xml is just a suggestion, maybe I’ve been spoiled to much the past years while doing m0n0wall deployments (in m0n0wall the config.xml really contains everything) and just need to get used to a new way of doing things.
I still love the MT products, no worries
@jtroybailey: I will take a look at netinstall, tnx for the suggestion.
EDIT: just looked at netinstall/Flashfig, nice tools, but same problem as described above.
Anyway, will do the extra steps in our deployments, not such a big deal.
I like to console/ssh my way into a router, I edit the stuff out of the /export that I don’t need, and then copy that file and paste it into the console/ssh session. Any errors lines that are there have a red mark on them but that doesn’t stop a paste like it does with a running script, so the whole thing is run through to the end. Then I can look at what parts had an “error” being imported and adjust that part of the configuration by hand.
another way to slightly automate the process - if you add “auto” to the import file filename, it will autoexecute upon FTP upload. So you can just upload the certificates, and the RSC file with FTP and it will import itself.
And there are tools to automate FTP upload. Of course, your router should have an IP address, but most routers we sell have a 192.168.88.1 address, so it’s possible.