cancel
Showing results for 
Search instead for 
Did you mean: 

Easy way to restore config after enable stacking(ports doesnt match ie. Port 1 instead Port 1:1)

Easy way to restore config after enable stacking(ports doesnt match ie. Port 1 instead Port 1:1)

holden
New Contributor
Hi,

is there an easy way to restore the config after enabling stacking?

Any Command which has a port defintion inside doesnt work anymore. im wondering that it not automatically converts i.e. port 1 in port 1:1.

Whats the best practice for this task?

Thanks

8 REPLIES 8

StephenW
Extreme Employee
I updated my earlier post to remove the script. I have also updated the script and placed it on GITHub. Please let me know if any of your configurations did not convert properly, and always check your configurations before loading them on a switch.

https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/non_stacking_config_conv...

Enjoy, and contribute to our GitHub!

Awesome Stephen! Good stuff here.

StephenW
Extreme Employee
This Script does not work for everything. I'm working on a better version and will post it on our github site when I'm done. https://github.com/extremenetworks/xkit

StephenW
Extreme Employee
I created a script that will convert non stacking configurations to stacking configurations for slot 1. I haven't tested every situation possible, but it worked on the configurations I tested it on. Try it out and let me know what you think, and if I can add anything.

How to use:
  1. The script was made on python 2.7. Make sure it's installed.
  2. Place the switch show configuration output into a file.
  3. place the configuration file in the same directory as the python script.
  4. The script will ask you for the configuration file name. (enter it)
  5. the script will create a new file with "stack_" in front of the original file name that has the new stacking configuration.
  6. Check over the new configuration file to make sure it's right.

Script output: test@lab_server:~$./stacking.py Note: please only use the show configuration output for this script. Make sure the starting non stack configuration file is in the same folder as the python script what is the non stacking configuration file name? config.txt The new stacking configuration will be saved as stack_config.txt? Python Script Source:
https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/non_stacking_config_conv...

Enjoy, and contribute to our GitHub!
GTM-P2G8KFN