Skip to content

python script to backup all cisco devices within a csv file

License

Notifications You must be signed in to change notification settings

blurer/network-config-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Network Configuration Backup

This pythons script will input a csv file expecting the headers "hostname" and "ip address" and then login to each device. While the script is running it will create a new file called results.csv that'll include the status of the save and the date.

NOTES

  • You should be using getpass and never hard coding the username/password.
  • Adjust the tftp server as yours

Automation

The best way to automate this is via cron, here is an example that'll attach the results.csv and email it: 0 0 * * 0 /usr/bin/python /path/to/myscript.py && uuencode /path/to/results.csv results.csv | mail -s "Cron Job Results" -a "Content-Type: text/csv" myemail@example.com

About

python script to backup all cisco devices within a csv file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages