|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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.
|