Skip to content

Simple Python script to backup the running config of multiple switches contained in a csv file.

Notifications You must be signed in to change notification settings

Ronqn/cisco_backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Simple Cisco config backup

This is a simple Python script to backup the running-config of multiple switches contained in a CSV file.

Prerequisites

Install the Netmiko library with pip.

pip install netmiko

Usage

Create a CSV file named switches.csv containing the switch in the following format hostname,ip address.

SW-NewYork-01,192.168.25.10
SW-SanFran-01,172.16.0.10
SW-Dallas-01,10.0.0.10

The CSV file must be located in the same directory as the Python script.

Execute the script.

The script will check the CSV file, ping the device and if the ping is successful, it saves the running config.

The configuration files will be saved in the same directory as the script.

Python

About

Simple Python script to backup the running config of multiple switches contained in a csv file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages