11-10-2020 09:14 PM
Hi,
I have above 100 devices and I would like to automate switch config backup to my tftp server. Can anyone assist please.
Solved! Go to Solution.
11-10-2020 10:16 PM
you have 2 Options.
1. You can run EEM Script inside the device and push the config to TFTP Server.
2. you can have simple Linux script can get in each device and push the config to TFTP Server.
or simple tool Solarwinds Cattools does everything for you auto back all devices.
https://documentation.solarwinds.com/en/Success_Center/KCT/Content/KCT_AG_CatTools_Overview.htm
EEM Script example :
Supposed you need to back up your router configuration at a specific time every day, you can do this automatically using EEM.
If you are good with Linux you understand Cron command.
event manager environment filename 2900-1-confg
event manager environment tftploc tftp://192.168.1.101/
event manager applet backupcfg
event timer cron name job1 cron-entry “34 2 * * 0-6″
action 1.0 cli command “enable”
action 2.0 cli command “conf t”
action 3.0 cli command “file prompt quiet”
action 4.0 cli command “end”
action 5.0 cli command “copy start $tftploc$filename”
action 6.0 cli command “conf t”
action 7.0 cli command “no file prompt quiet”
Linus script for backup using pythpn.
http://www.techspacekh.com/automate-backup-cisco-router-switch-configuration-with-python-script/
11-10-2020 10:16 PM
you have 2 Options.
1. You can run EEM Script inside the device and push the config to TFTP Server.
2. you can have simple Linux script can get in each device and push the config to TFTP Server.
or simple tool Solarwinds Cattools does everything for you auto back all devices.
https://documentation.solarwinds.com/en/Success_Center/KCT/Content/KCT_AG_CatTools_Overview.htm
EEM Script example :
Supposed you need to back up your router configuration at a specific time every day, you can do this automatically using EEM.
If you are good with Linux you understand Cron command.
event manager environment filename 2900-1-confg
event manager environment tftploc tftp://192.168.1.101/
event manager applet backupcfg
event timer cron name job1 cron-entry “34 2 * * 0-6″
action 1.0 cli command “enable”
action 2.0 cli command “conf t”
action 3.0 cli command “file prompt quiet”
action 4.0 cli command “end”
action 5.0 cli command “copy start $tftploc$filename”
action 6.0 cli command “conf t”
action 7.0 cli command “no file prompt quiet”
Linus script for backup using pythpn.
http://www.techspacekh.com/automate-backup-cisco-router-switch-configuration-with-python-script/
11-22-2020 09:22 PM
Many thanks Balaji
11-11-2020 02:05 PM
Any specific reason you've chosen to back up to your own tftp server? As @balaji.bandi mentioned above, there's a few commercial and open source solutions that have solved this problem already. It comes down to a bit of time vs. money / build vs. buy decision.
Not sure if this was part of your home built backup implementation, but a number of the existing solutions also allow you version control the backups so you can see historical configs. If you chose to go down the 'buy' path, here's a good place to start- https://www.g2.com/categories/network-management
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide