Cisco scripts
=============
This repository contains my collection of small scripts I use(d) to administer
and/or manage my cisco router. I am publishing them here so that others may
benefit from these as well. Use them freely and please let me know is you
encounter any issues or require changes.

The latest versions, documentation and bugtracker available on my
[GitLab instance](https://gitlab.lindenaar.net/scripts/cisco)

Copyright (c) 2016 Frederik Lindenaar. free for distribution under the GNU
License, see [below](#license)


sync-router
-----------
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
  - commit changes to the git repository

I use this script to keep the configuration of my cisco router(s) in a GIT
repository on my server to keep track of changes and always have a backup of it.