Extreme Networks XOS Config Backup

Similar to my last post, I wrote some Python code to backup the running configuration from Extreme Networks XOS Switches. This one is to be found at: http://pastebin.com/raw.php?i=0NxggW5C.

The XOS config backup script takes an external file called switches.csv. This serves as a list of all your XOS Switches that you want to backup the config from and uses a very simple format:


switch1.name, 1.1.1.1
switch2.name, 1.1.1.2
...

Note that the switch names are declarative only and need not correspond with the DNS hostnames. Furthermore, you might use DNS hostnames instead of IP addresses.

You also need to edit the script and set the admin password in the password variable before you can use it. Furthermore, this script requires pexpect as a dependency.

Once the script runs, it will create a tgz archive, containing the downloaded config files as switch.name_YYYYMMDDhhmm_config.xsf.

Advertisements

ZyXEL DSLAM Configuration Backup

I wrote a little Python script to automatically retrieve the configuration files from a bunch of ZyXEL DSLAMs. You can find it at http://pastebin.com/raw.php?i=vFpnhndJ.

The script takes an external file called dslams.csv. It serves as a list of all your DSLAMs that you want to backup the config from and uses a very simple format:


dslam1.name, 1.1.1.1
dslam2.name, 1.1.1.2
...

Note that the DSLAM names are declarative only and need not correspond with the DNS hostnames. Furthermore, you might use DNS hostnames instead of IP addresses.

You also need to edit the script and set the ZyXEL Web Configurator username and password in the dslamUser and dslamPass variables accordingly before you can use it.

Once the script runs, it will save DSLAM configs as dslam.name_YYYYMMDDhhmm.dat