48 lines
2.1 KiB
Markdown
48 lines
2.1 KiB
Markdown
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 script used to synchronize the current Cisco startup configuration, IOS
|
|
images and DHCP static lease files with with a GIT repository. This script
|
|
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.
|
|
|
|
|
|
<a name="license">License</a>
|
|
=============================
|
|
This script, documentation and configuration examples are free software: you can
|
|
redistribute and/or modify it under the terms of the GNU General Public License
|
|
as published by the Free Software Foundation, either version 3 of the License,
|
|
or (at your option) any later version.
|
|
|
|
This script, documentation and configuration examples are distributed in the
|
|
hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
|
|
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License along with
|
|
this program. If not, download it from <http://www.gnu.org/licenses/>.
|