Wednesday, March 10, 2021

How to use NETMIKO auto backup configuration all cisco devices

For more information pls refer to NETMIKO

Step 1: Go to https://www.python.org/downloads/ download and install Python





Step 2: Install NETMIKO 

  • Run CMD with administrator > navigate to C:\Program Files\Python39
  • run pip3 install netmiko

Step 3:  get python script to your devices via github link bellow & change parameters in script to your parameters



Step 4: after change all parameter next we need to run test him first:
run: python.exe C:\Users\DHVIET\Downloads\auto_bk_cisco_cfg.py
after that, you should see the result like i've put in script : " Daily BK Configuration for x.x.x.x has been done"

Depend on your change , navigate to backup path .With me the backup bath is C:\dhv_bk , at this moment you should see some backup files with the name 2021-03-10-17-44-18_X.X.X.X.txt at here.




Step 5: Create Task on windows schedule. I wanna backup configuration at 1AM everyday so schedule for task look like images bellow:










Final, we need to run a test one more time after added the task on schedule.



Note: For SG 350 Series,we should have ip ssh password-auth in configuration to keep script work fine.






No comments:

Post a Comment

Windows Server 2019 - LAB08 Implementing storage solutions (Part3) Implement Storage Spaces Direct

Part 3:  Implement Storage Spaces Direct What is Storage Spaces Direct? Storage Spaces Direct is the evolution of Storage Spaces . It lever...