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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s