GithubHelp home page GithubHelp logo

nabbi / a10-backup-scripts Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 31 KB

Expect scripts for performing device configuration backups on A10 Networks Thunder SSLi ADC

License: GNU General Public License v3.0

Tcl 35.48% Shell 64.52%
a10 expect backups adc git

a10-backup-scripts's Introduction

A10 backup expect scripts

Performs device configuration backups on A10 Networks Inc Thunder SSLi appliances

Two types of exports are collected

  • "backup system" tar files, for official device restores
  • "show running-config" and "show aflex" from all partitions, for config audit monitoring and cli restores

I wrote this process because our commercial device config manager had trouble walking multiple partitions and failed to extract the aflex scripts. Parts and Aflex are dynamically detected and saved into a local git repo Unknown if A10 Networks aGalaxy fulfills this need, we didn't have it.

The scp exports provided yet another means for archiving a full device image. This served as a redundant copy as we used the appliances built in schedule backup export feature too.

dependencies

Requires TCL Expect and BASH, and the following packages

  • dig
  • fping
  • git
  • logger

setup

YMMV, should just need to initialize a new repo and maybe fiddle with the paths to suit your needs

git clone https://github.com/nabbi/a10-backup-scripts ~/a10-backup-scripts

create git repo

mkdir ~/a10-configs
git init ~/a10-configs

Optionally create .gitignore to not track tar exports. If you do want to commit these into the repo then the run.sh needs to be adjusted too

echo "*.tar.gz" >> ~/a10-configs/.gitignore

config

Two files need to be touched

  • ./inc/config.tcl needs to be defined with device creds from config.example.tcl
  • ./run-a10-config-backups.sh needs the hostname list of a10 appliances to backup

crontab

I run these just before midnight for a daily rollup of config changes.

45 23 * * * ~/a10-backup-scripts/run-a10-config-backups.sh  > /dev/null 2>&1

a10-backup-scripts's People

Contributors

nabbi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.