added functionality to synchronize IOS image files

This commit is contained in:
2016-03-25 13:03:29 +01:00
parent 659da1ed49
commit 455ff0c7f9
2 changed files with 105 additions and 20 deletions

View File

@@ -14,15 +14,17 @@ License, see [below](#license)
sync-router
-----------
Shell scripts used to synchronize the current Cisco startup configuration and
DHCP static lease files with with a GIT repository. This scripts assumes one
(git-managed) subdirectory per router. It performs the following operations when
invoked:
Shell scripts used to synchronize the current Cisco startup configuration, IOS
images and DHCP static lease files with with a GIT repository. This scripts
assumes one (git-managed) subdirectory per router. It performs the following
operations when invoked:
- copy Cisco startup-config using scp and add to next commit
- synchronize the IOS images in the git repository and update the startup-
config accordingly
- update the header of modified DHCP static lease files, upload them using
using scp and add them to the next commit
- restart Cisco DHCP service after updating DHCP static lease files
- copy Cisco running-config using scp and add to next commit
- commit changes to the git repository
I use this script to keep the configuration of my cisco router(s) in a GIT