I have a 2960 stack switch and i want to create a scirpt to download the config file to windows share folder .i dii it for all my firewalls and i dont know if it's possible to do it with other devices like my stack here .
Any idea please ?
Hi, you can use the built in auto archive feature. An explanetion is available here:
Otherwise you can write a code to connect into the switch using telnet or ssh, execute a show run and export the output of the show command.
one of snippet from my notes : (make sure you understand the script before deploying in live environment, test and put in production.)
event manager applet sync-config event timer watchdog time 86400 action 1.0 cli command "enable" action 2.0 cli command "copy running scp://username:firstname.lastname@example.org/backup-config" pattern "Address" action 3.0 cli command "192.168.1.1" pattern "username" action 4.0 cli command "user" pattern "filename" action 5.0 cli command "backup-config"
I have given the script to back up from device automatically to SCP to destination.
If you looking auto backup from out of the box, there are many methods to do.
yes i didnt like to make a autobackup procedure .so , im looking for a SCP method to tranfer the config file to share folder