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

  • 0
  • 1
  • Question
  • Updated 3 years ago
  • Answered

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

Photo of holden

holden

  • 452 Points 250 badge 2x thumb

Posted 3 years ago

  • 0
  • 1
Photo of Stephen Williams

Stephen Williams, Employee

  • 8,950 Points 5k badge 2x thumb
Official Response
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_converter/README.md

Enjoy, and contribute to our GitHub!
(Edited)