Blame view

README.md 1.34 KB
Frederik Lindenaar authored
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
-----------
Frederik Lindenaar authored
17
18
19
20
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:
Frederik Lindenaar authored
21
Frederik Lindenaar authored
22
23
24
  - 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
Frederik Lindenaar authored
25
26
27
28
29
30
31
  - 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.