Automation

 View Only
  • 1.  Consolidation of Vlan IDs

    Posted Sep 26, 2009 01:27 AM

    Hi,

    I am looking for the consolidaton of vlan id on different cluster, have some one thought of this or worked on this ?

    The reason I am looking for this is Network team is not able to allow more vlan for particular cluster ( example cluster01)

    On physical switch due to no availability of ports to allow on switch for cluster01

    To come out of this solution we have a thought of moving the all the vm's to attach to a particular VLan (example vlan1)

    to the other cluster which also has that vlan already available.And than delete the vlan from the cluster and also from the switch. this will make the 1 vlan id free on switch,

    same way to find out other vlans too, so that we can come up with the list of vlan ids , which can be later give to the Network team to remove the vlan ids from switch for that cluster.

    At the end we will be having few more free vlan to add on physica switch

    Hope I have made understand well,

    Regards

    Gurjit Dhllon



  • 2.  RE: Consolidation of Vlan IDs

    Posted Sep 26, 2009 03:32 AM


  • 3.  RE: Consolidation of Vlan IDs

    Posted Sep 26, 2009 11:35 PM

    HI,

    Thanks for your reply, but this is not the one I am looking for. I am looking for the the PowerrShell script, which will give me the report of which Vlan's we can consider for delection from particular cluster and move the vm connected to those vlans to other cluster where this vlans are already present.

    Regards

    Gurjit Dhillon



  • 4.  RE: Consolidation of Vlan IDs

    Posted Sep 28, 2009 07:33 AM

    Below example will explain nicely.

    In the first example we cannot move the vm from cluster1 to cluster02.

    Example 1

    Cluster01 Cluster02

    Vlan1 -- Vlan1- yes

    Vlan2 -yes

    VM1 Vlan3-No

    Vlan1, vlan2, vlan3

    In 2nd example we can move the vm from cluster1 to cluster02.

    Example 2

    Cluster01 Cluster02

    Vlan1 -- Vlan1- yes

    Vlan2 -yes

    VM1 Vlan3-yes

    Vlan1, vlan2, vlan3

    somewhat this kind of things I am looking for, hope I have it little bit clear.

    Regards

    Gurjit Dhillon



  • 5.  RE: Consolidation of Vlan IDs

    Posted Sep 29, 2009 09:20 PM

    I don't fully understand your question, but Get-VirtualPortgroup will return VLAN IDs.

    So you might want to start with:

    Get-Cluster Cluster01 | Get-VMHost | Get-VirtualPortGroup | Select VLanID -unique

    and

    Get-Cluster Cluster02 | Get-VMHost | Get-VirtualPortGroup | Select VLanID -unique

    to compare the results.

    =====

    Carter Shanklin

    Read the PowerCLI Blog
    [Follow me on Twitter|http://twitter.com/cshanklin]