Hi Stephen,
Never tried such script yet, but it would be a nice challenge to create one that could 'clone' a VLAN of specific tag, based on a reference VLAN.
Pseudocode could be as follows:
- Show vlan [reference VID from user form in XMC or XOS prompt] | begin "Tag:"
- Parse the output string to get a 1-dimensional table with ports
- Loop for each port (or for i = 0:length(table)-1): configure vlan [target VID from user form in XMC or XOS prompt] add port [port from the table] tagged
XMC Python script could be the most robust option for that I believe.
If you wanted, you could also create a workflow with XMC 8.2 to determine a switch OS type and run a script for that which is OS-relevant, so you would have such workflow flexible to configure a group of mixed-OS devices.
Hope that helps,
Tomasz
P.S. After a while I see no sense in my "loop for each port". They can rather be merged and comma separated from the table (or spaces removed from the original CLI output without even playing with a table) and one shot to add them all is enough then.