How to copy VLANs from one enclosure to another (306 Views)
Reply
Occasional Contributor
Swarm
Posts: 12
Registered: ‎02-19-2012
Message 1 of 3 (306 Views)

How to copy VLANs from one enclosure to another

We are in the process of adding 30 VLANs in our Flex Fabric Virtual Connect Modules across our 6 enclosures.  

 

Does the GUI or CLI offer a way to backup the associated networks and import them into another enclosures VC Modules?

Respected Contributor
Psychonaut
Posts: 214
Registered: ‎08-31-2011
Message 2 of 3 (289 Views)

Re: How to copy VLANs from one enclosure to another

I use plink to connect to the VC and use a text file to add the networks.

 

The text file is pretty simple, I add a network for A and for B - it looks like this for A:

add network-range -quiet Uplinkset=UplinkSet_xxx_A NamePrefix=VLAN_ NameSuffix=_A VLANids=10-13,17 State=Enabled SmartLink=enabled 

 

Using network-range you can setup all your vNETS with that one line.

Trusted Contributor
Casper42
Posts: 279
Registered: ‎10-07-2010
Message 3 of 3 (265 Views)

Re: How to copy VLANs from one enclosure to another

Psycho is correct.

Without VCEM, the easiest way to make changes to Multiple VC domains is to Script them going through the SSH interface.
Note: if reading this after Sept 2013, there may be a new product from HP aside from VCEM that can help here.

Plink is a CLI version of putty that allows such scripting to be done fairly easily.

And even if you don't want to use the network-range feature, you can have those 30 or 60 additional VLANs in a single script, assuming every enclosure has identical naming of Shared Uplinks and such, and then either use Plink to push that script out or just SSH to each VC Domain and paste the script in there.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.