« Posts tagged switch

CiscoBK

This is a shell script that I've wrote in order to backup my cisco devices configuration and to keep my backup update.

Features:

  • Automatically copy configuration via tftp.
  • Compare previous configurations with new downloaded with "diff" command.
  • Send email alert if configuration change and attach to alert new and old configurations.
  • Always keep a backup copy.

Configuration:

Uncompress the archive in a place like /opt/ciscobk
Take a look to ciscobk.sh in order to correct paths according to your configuration
Open etc/ciscobk/ciscobk.conf and put ip addresses of your Cisco device
Open etc/ciscobk.mail and type here mail addresses that'll receive mail alert

HowTo configure Cisco device:

First of all I'm assuming that you know what you're doing...I'm not responsible if you destroy your running config then "wr"...
Ok, we're ready, go in enable mode and simply type

myrouter# conf t
myrouter# tftp-server nvram:startup-config
myrouter# wr

Now your Cisco device is ready to serve his configuration to anyone; I recommend to use ACL's to prevent somebody hack your router...

[dm]1[/dm]