Hey,
I was wondering if there is a way to export config in a human readable format. I have a couple of switches still running SWOS and I want to convert them to RouterOS but don’t want to convert the config manually.
Any advice on this topic?
Hey,
I was wondering if there is a way to export config in a human readable format. I have a couple of switches still running SWOS and I want to convert them to RouterOS but don’t want to convert the config manually.
Any advice on this topic?
Have you tried opening the backup file with "notepad"?
I did, I get a lot of hex values which say nothing to me. I’ve searched online, but haven’t found any converters which can can put it in a human readable format.
Wha device is?
It’s a CRS328-24P-4S+
I don't think there's a tool to convert from one configuration to another, but I seem to remember (to be verified) that from RooterOS it's possible to see how SwOS is configured???... I don't remember exactly...
There is this one, but cannot say (since it is 4 years old) if it is any good (anymore):
and there is no reference in the Python script for hex values...
There is also this thingy here that is updated, it is not a backup converter, but it should be able to export the config to Ansible YAML:
Thanks for the links. The first solution doesn’t work out of the box. The second one does work nicely and fits my needs.
Good.
, happy it works for you.
From the example here:
the output format is quite human readable, but from that to converting it to RouterOS seems still a long way (to me).
If you play/use this thingy please - time permitting of course - do post what you did so that it may help someone else on the forum.
Oh, I don’t have any concrete plans, but now I have a humanreadable textfile I can easily edit with my text editor of choice to generate a config to import in RouterOS.
If it's possible, and if the config is 1:1 from SwOS to ROS it would be nice if you can attach both here. It'll help in updating the converter.
I don't think it is possible to do a 1:1 between SwOS and ROS. ROS has many more features than SwOS, but SwOS features are not a subset of ROS. Some examples: lock on first mac address seen. No need to specify a default gateway on SwOS, since it just replies to the mac/ipaddr/port that the connection came from.
But there are many things that "could" be translated. I know of nothing that is available to do this, and for the "Couple of switches" to be converted to ROS, it will probably be easier to take the YAML extract and use for reference when configuring ROS, than to try to write something to automate the conversion.
Maybe there Is not a 1:1 conversion/translation, but surely there are (possibly complex) sets of commands on RoS that can replicate the effects of a SWos setting.
In other words, not easy but possible.