Backup Mikrotik #40
Replies: 4 comments 4 replies
-
This relies on Napalm under the hood, so likely something broke the napalm portion of this. I don't have a Microtik device, so if you could do the following from the netbox shell: >>> from netbox_config_backup.tasks import napalm_init
>>> device = Device.objects.get(name="<device>")
>>> d = napalm_init(device, device.primary_ip)
>>> configs = d.get_config()
>>> configs.keys()
>>> len(configs.get('startup'))
>>> len(configs.get('running'))
>>> len(configs.get('candidate')) Paste back any of the output if you could (you can sanitize your device name, nothing else should leak sensistive information) |
Beta Was this translation helpful? Give feedback.
-
During handling of the above exception, another exception occurred: Traceback (most recent call last): now exiting InteractiveConsole... |
Beta Was this translation helpful? Give feedback.
-
Sorry, can you describe in detail what needs to be done? |
Beta Was this translation helpful? Give feedback.
-
Hello. If you still support this project. Napalm started to support config output for Mikrotik. From my env I can get the config for the device print(device.get_config()) If you have the opportunity, please add support for Mikrotik. |
Beta Was this translation helpful? Give feedback.
-
I have a question, maybe you can give me some advice. For device backups, I use https://cbackup.readthedocs.io/ the project has not been developed for a long time, but it suits me almost completely. It uses templates to connect via ssh\telnet to the device and makes a backup. Mikrotik recently updated the ssh version in its firmware and this tool stopped working - it connects to the router but sees a blank page. Napalm-ros can't show device config. Is it possible to adapt your tool to Mikrotik backups?
Beta Was this translation helpful? Give feedback.
All reactions