[Application] Create Script Auto Backup Switch Cisco Using Paramiko

Published: by Creative Commons Licence

Source

CISCO SWITCH BACKUP CONFIG#

As such a title, this tools for automatic network configuration backup switch cisco.

License

 ---------------------------------------------------------------------------------
 "THE BEER-WARE LICENSE" (Revision 42):
 <phk@FreeBSD.ORG> wrote this file.  As long as you retain this notice you
 can do whatever you want with this stuff. If we meet some day, and you think
 this stuff is worth it, you can buy me a beer or coffee in return. Poul-Henning Kamp
 ---------------------------------------------------------------------------------
 
 Created : Dwiyan Galuh W
 https://blog.roomit.tech
 https://github.com/wajatmaka

Requierment

  • python3
  • configparser
  • pip3
  • paramiko

Install Depedency

pip3 install -r req.txt

CISCO SWITCH

How to Play Cisco Switch??

This script can handle backup via telnet and ssh, if telnet not worked so ssh can be handle for backup. Example, we have added in switch-cisco.cfg cisco switch-f:

[switch-f]
IP   = 10.32.200.5
USER = syslog
PASSWORD = 22884dfsdf4
ENABLE  = j4ncuk
PATH = /backup/data

How To Use?

python3 switch-cisco-backup