Header Only - DO NOT REMOVE - Extreme Networks

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


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

Userlevel 5
Holger,

With regards to the configuration, we would have to manually edit the port configuration in a notepad++ and then copy paste the configuration in the switch cli.

Regards,
Sumeesh.

Thats really frustrating.

Thanks
Userlevel 2
Write a script that do it. That is what we did
Userlevel 7
andreas wrote:

Write a script that do it. That is what we did

Are you willing/able to share your script? Sounds like it would be helpful here if you still have it.
Userlevel 6
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? [/code] Python Script Source:
https://github.com/extremenetworks/ExtremeScripting/blob/master/EXOS/Python/non_stacking_config_converter/README.md

Enjoy, and contribute to our GitHub!
Userlevel 6
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
Userlevel 6
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_converter/README.md

Enjoy, and contribute to our GitHub!
Userlevel 6
Stephen Williams wrote:

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_converter/README.md

Enjoy, and contribute to our GitHub!

Awesome Stephen! Good stuff here.

Reply