Python-Cisco-Backup
Python-Cisco-Backup copied to clipboard
Python3 Multivendor Backup
Backup your network configuration of a supported vendor, with easy options for automation.
Supported Vendors
- Cisco
- Juniper
- VyOS
- Huawei
- Fortinet
- MicroTik
This is running on Python3 with Netmiko, and ping3. Version 2.1
Example:
CLI
GUI

Installation
- You must have Python3 and PIP installed on the device you are running the program on.
- You need to run
pip3 install netmikoorpip install netmikoin a command prompt / terminal on your computer. - You need to run
pip3 install ping3orpip install ping3in a command prompt / terminal on your computer. - You need to download this repository or copy all of the contents of the run.py file into a python file.
Usage of this program
CLI
- To run this, you need to run
python3 multivendor_run.pyin your terminal or command prompt. - Host list will be taken from
backup_hosts.csv. Please populate the file with the host, username, password, with optional secret for cisco devices. - It will copy the saved configuration into a folder named
backup-configin the same directory of the python file. The configuration file name will be the Cisco device hostname, date, and time. Unreachable hosts will be listed in a separated file nameddownDevices_+ date and time.
GUI
- Download & run executable from GitHub releases tab.
- Select the vendor you want to copy the config of.
- Select the CSV file from the popup window.
- It'll give you a popup for each successfull configuration copied, as well as for each down host, if any.
Getting help
If you are having trouble or need help, create an issue here
Contributors
ste-giraldo for adding a memory and cpu saving feature to grabbing the hostname, and suggesting the ping feature.
Credits and references
I'd like to credit Kirk Byers for making Netmiko, and Kyan for making Ping3
Licensing info
This code is with the MIT license.