initial commit of sync-router script, working for my router and git repo now
This commit is contained in:
29
README.md
Normal file
29
README.md
Normal file
@@ -0,0 +1,29 @@
|
||||
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 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:
|
||||
|
||||
- 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
|
||||
repository on my server to keep track of changes and always have a backup of it.
|
||||
Reference in New Issue
Block a user