Automation

 View Only
  • 1.  Question about assigning [vminc] to a specific [dvUplink] on VDS

    Posted Jun 25, 2021 09:41 AM

    Hi All

    I have requirement to assign vmnic1 to dvUplink 2 on C01-A-BACK-VDS.

    After migrating vmk0 to C01-A-MGMT-V995, then migrate vmnic0 to dvUplink1.

    But after I use the script to migrate vmnic0, vmnic 1 does not exist on dvUplink2

    I don't know what caused it.

    The operation process is as follows:
    The following PowerCLI script is executed for the first time to realize the migration of vmnic1 to dvUplink1

    The result is as follows

    YanSi_0-1624613825343.png

    Then I executed the following script to modify the variables again, the vmnic1 network card contained in dvUplink2 no longer exists.

    The result is as follows

    YanSi_1-1624613928222.png

    I don’t know how to add vmnic0 to dvUplink1 without affecting other dvUplinks that have added vmnic network cards.

     



  • 2.  RE: Question about assigning [vminc] to a specific [dvUplink] on VDS

    Posted Jun 25, 2021 10:35 AM

    Did you try with the Replace option and then listing all existing dvUplinks + the new one?



  • 3.  RE: Question about assigning [vminc] to a specific [dvUplink] on VDS

    Posted Jun 25, 2021 10:39 AM

    I am not sure how to do it?

    Which line of code to modify?



  • 4.  RE: Question about assigning [vminc] to a specific [dvUplink] on VDS

    Posted Jun 25, 2021 10:43 AM


  • 5.  RE: Question about assigning [vminc] to a specific [dvUplink] on VDS

    Posted Jun 25, 2021 12:24 PM

    I tried this way, but an error was reported.

    MethodInvocationException: Exception calling "UpdateNetworkConfig" with "2" argument(s): "There is an error in the XML document."



  • 6.  RE: Question about assigning [vminc] to a specific [dvUplink] on VDS

    Posted Jun 25, 2021 01:33 PM

    I have no idea what you are trying to do here, but that is not what I meant.
    You repeat all the existing Uplinks and add the new one.



  • 7.  RE: Question about assigning [vminc] to a specific [dvUplink] on VDS

    Posted Jun 25, 2021 01:39 PM

    Step 1: Add vmnic1 to dvUplink2
    Step 2: Migrate vmk0 from vSwitch0 to C01-A-MGMT-V995 port group
    Step 3: Add vmnic0 to dvUplink1
    Step 4: Add vmnic2 to dvUplink3
    Step 4: Add vmnic3 to dvUplink4

    But when performing step 3, always clear the vmnic contained in the remaining dvUplink.



  • 8.  RE: Question about assigning [vminc] to a specific [dvUplink] on VDS
    Best Answer

    Posted Jun 25, 2021 02:03 PM

    Maybe I used a loop to achieve this goal.

    step 1: Migrate [vmnic1] of All Hosts to [dvUplink2] of [C01-A-BACK-VDS]


    Step 2: [vmk0] of All Hosts has been moved to [C01-A-MGMT-V995] PortGroup


    Step 3:  Migrate [vmnic0~4] of All Hosts to [dvUplink1~3] of [C01-A-BACK-VDS]

     

    The effect is as follows:

    YanSi_0-1624629575586.png