Management SDK allows you to configure uplinkTeamPolicy.uplinkPortOrder VDS

I have an ESX 5.0 U2 Cluster for hosting virtual machines connected to the Internet.  The hosts are configured with a pair of uplinks to shared resources to the 'management' VLAN internal and another pair of uplinks internet VLANs trunked.  I created a single VDS using these 4 uplinks.  Then, I tried to modify my script used to add groups of ports to a VDS from a CSV file to set the order of failover, as shown in the following screenshot:

uplinkPortOrder.png

With the help of Onyx and on VMwareUplinkPortOrderPolicySDK Documentation, I though that I had found the answer.  Unfortunately, my script does not define the dvUplinks mgmt to 'Is not used.'  Given the SDK does not provide a property is not used, I guess this isn't really surprising, but I am always optimistic, there is a way to do it.  Help, please!

Here is my script PowerCLI:

(param

$datacenter = $(throw "un centre de données est requise"),

$dvSwitchName = $(throw "un dvSwitchName est nécessaire."),

$pgFile = $(throw "pgFile est requise.) (Devrait être CSV et contenir le préfixe, VLAN, sous-réseau) ".

)

$dvs = get-VirtualSwitch-distributed - data center $datacenter - name $dvSwitchName

If (! $dvs) {}

Output 1

}

Necessary #Data is prefix, VLANS, Untagged subnet

$pgData = @(import-Csv $pgFile |) Where-Object {$_.} ({VLAN - not $null})

If ($pgData.Length - eq 0) {}

Write-Host "no port data group in the file.

Output 1

}

$vPgGroupSpec = new-Object VMware.Vim.DVPortgroupConfigSpec [] ($pgData.Length)

for ($i = 0; $i - lt $pgData.Length; $i ++) {}

$vPgGroupSpec [$i] = new-Object Vmware.Vim.DVPortgroupConfigSpec

$pgData [$i]. VLAN = [int] $pgData [$i]. VLAN

$pgName = "{0} {1:D4} _ {2}' f $pgData [$i]. Prefix, $pgData [$i]. VLAN, $pgData [$i]. Subnet

Write-Host $pgName

$vPgGroupSpec [$i] .Guy = "earlyBinding."

$vPgGroupSpec [$i]. Name = $pgName

.numPorts $vPgGroupSpec [$i] = 300

$vPgGroupSpec [$i] .defaultPortConfig = new-Object Vmware.Vim.VMwareDVSPortSetting

# Info VLAN

$vPgGroupSpec [$i].defaultPortConfig.vlan = new-Object Vmware.Vim.VmwareDistributedVirtualSwitchVlanIdSpec

. defaultPortConfig.vlan.inherited $vPgGroupSpec [$i] = $false

If ($pgData [$i]. Untagged - fits 'TRUE')

{

. defaultPortConfig.vlan.vlanId $vPgGroupSpec [$i] = 0

}

on the other

{

. defaultPortConfig.vlan.vlanId $vPgGroupSpec [$i] = $pgData [$i]. VLAN

}

$vPgGroupSpec [$i] .Guy = "earlyBinding."

# Security policy

$vPgGroupSpec [$i].defaultPortConfig.securityPolicy = new-Object Vmware.Vim.DVSSecurityPolicy

$policyFalse = new-Object VMware.Vim.BoolPolicy

$policyFalse.value = $false

. defaultPortConfig.securityPolicy.allowPromiscuous $vPgGroupSpec [$i] = $policyFalse

. defaultPortConfig.securityPolicy.forgedTransmits $vPgGroupSpec [$i] = $policyFalse

. defaultPortConfig.securityPolicy.macChanges $vPgGroupSpec [$i] = $policyFalse

# Political grouping

$vPgGroupSpec [$i].defaultPortConfig.uplinkTeamingPolicy = new-Object Vmware.Vim.VmwareUplinkPortTeamingPolicy

$vPgGroupSpec [$i].defaultPortConfig.uplinkTeamingPolicy.policy = New-Object VMware.Vim.StringPolicy

. defaultPortConfig.uplinkTeamingPolicy.policy.value $vPgGroupSpec [$i] = "loadbalance_loadbased".

# This is the part that does not work as expected

$vPgGroupSpec [$i].defaultPortConfig.uplinkTeamingPolicy.uplinkPortOrder = New-Object VMware.Vim.VMwareUplinkPortOrderPolicy

. defaultPortConfig.uplinkTeamingPolicy.uplinkPortOrder.inherited $vPgGroupSpec [$i] = $false

$vPgGroupSpec [$i].defaultPortConfig.uplinkTeamingPolicy.uplinkPortOrder.activeUplinkPort = New-Object System.String]

. defaultPortConfig.uplinkTeamingPolicy.uplinkPortOrder.activeUplinkPort $vPgGroupSpec [$i] [0] = "inter-dvUplink1".

. defaultPortConfig.uplinkTeamingPolicy.uplinkPortOrder.activeUplinkPort $vPgGroupSpec [$i] [1] = "inter-dvUplink2".

}

$dvs. ExtensionData.AddDVPortgroup ($vPgGroupSpec)

Try changing

$vPgGroupSpec [$i].defaultPortConfig.uplinkTeamingPolicy.uplinkPortOrder.activeUplinkPort = New-Object System.String]

TO

$vPgGroupSpec [$i].defaultPortConfig.uplinkTeamingPolicy.uplinkPortOrder.activeUplinkPort = New-Object System.String [] (2)

Tags: VMware

Similar Questions

  • Qosimo F20: WLan adapter forget window allows you to configure the settings

    I recently changed a linksys wireless router to bt home hub but white since doing so I have been informed of bt, the wireless network adapter (intel (R) PRO/Wireless 2200BG Network adapter)

    I use keep forgetting window allows you to configure the settings. so every now and again I have to right-click on the icon in the lower right, choose View available wireless networks, click on change advanced configuration, and then click on the tab and then wireless networks check use windows to configure the box at the top left.

    I'm very novice all help would be appreciated.

    Post edited by: johnsmith3131

    Hello John

    As you know all configurations can be specific and depend on the used material. Believe me on this path it is not easy to say something concrete, because the BT home hub white is unknown to me and can I just suggest that you carefully read the user manuals which must be detailed explain how to connect external devices to the hub.

    By the way: you have something like this http://digital-lifestyles.info/display_page.asp?section=distribution&id=3404?

  • Why Toshiba do not allow you to configure laptops online?

    I can't find the Toshiba laptop I want with the specifications I need retailers. #For example, I would like a Satellite x 200 with 2.2 GHz Core 2 Duo CPU, as shown here: http://eu.computers.toshiba-europe.com/cgi-bin/ToshibaCSG/jsp/seriesHomepage.do?service=EU&SERIES_ID=131319 and, ideally, I would just have a HDD instead of two (if that is possible) and a Vista 64 bit if OS is available as an option.

    ... But no retailers do one with a 2.2 GHz CPU Core2Duo.
    TOSHIBA could offer online store of configuration that alow you to create your own computer with specifications according to you AND by cutting out the man in the middle (retailer) for cheaper laptops.

    What do you think?

    Thank you
    Tim

    Hey Buddy,

    sounds nice. I know another manufacturer who do that, but I think that Toshiba has its own company policy and so it s standing in begin it when tone will start this service.
    I have toshiba publishes the first machines with linux pre-installed because I´d like having a good machine with pre-installed linux. ;)

    Welcome them

  • Howa allows you to configure a connection on MAC developer Oracle SQL on a server

    My question is how to configure a connection on a Mac to Oracle on our Windows Server.

    I downloaded SQL Server and can open it. I try a new connection. On Windows, I know that I have a tnsnames file that identifies the
    Server. On my PC, the entry for Oracle looks like this:

    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = server1.iowa.uiowa.edu) (PORT = 1521))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    )
    )

    On MAC, I tried to make connection type 'Basic', then put in what follows:
    HostName: server1.iowa.uiowa.edu
    Port: 1521
    SID: ORCL

    When I test this situation, I get "unknown host specified. I tried to log on to the network. Then, I get:
    "The network adapter could not establish the connection."

    I also tried to go to TNS, but do not get anything on the menu drop down. On my PC, I know that I
    a tnsnames.ora file that it refers, but don't know how to put this on a Mac.

    Could someone please explain to me how to set up the connection?

    Sorry if I suggest what is obvious, but you can ping the server from the Mac? Of course it can access the network and the server in the same way?
    Maybe that's just a problem of DNS, so also try to put the IP address instead.

    Hope that helps,
    K.

  • I want to clone my hard drive and this clone allows you to configure a new computer, how do I do this for several PCs with different versions of XP?

    I am trying to replace 15 PCs.  They all have XP because their BONES, bought with different SPs at different times.  They all have been updated to SP3...  They have all MS 2003, upgaded to MS 2007.  I would use a clone as image.  I do not support different key codes?  Although the XP are authentic, I may not all key codes.  My predessor has not keep good records, and stickers on some had labels of Vista.  Even if the PC was bought with XP downgrade.  I need to use XP because of some other software requirements.

    What is the best way to represent all the PC so that I can get back them to my users?

    Hello

    I suggest you to refer to this link and check if it helps:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-windows_install/cloning-Windows-XP-Pro-to-new-hard-drives-ready-to/b7edf501-6ae6-4bc1-94BB-39a4177d8b71

    It will be useful.

  • Why in the Device Manager, NIC, tab power management properties, allow this device to wake the computer check box is gray out?

    Why in the Device Manager, NIC, tab power management properties, allow this device to wake the computer check box is gray out?

    Here is the document

    http://www.RM.com/support/TechnicalArticle.asp?CREF=TEC438020

    See the Suggestion of Shekhar:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/missing-power-management-tabs/4dd34dfb-B0E9-4f62-8eb8-0b0689344281

    Political group to turn and set the option for the inside network card power management tab

    http://social.technet.Microsoft.com/forums/en/winserverGP/thread/50fdee7e-fdf7-4734-8079-3a3aa5556fdd

    Kelly XP Tweaks - on this page scroll down to #204.  On the right side you will see "power schemes/configurations of restoration.  Here are the scripts.  You should see a window with «do you want to run...» »

    http://www.kellys-Korner-XP.com/xp_tweaks.htm

    A link that did not work... TEC438020 http://www.rm.com/Support/TechnicalArticle.asp?cref=TEC438020.

    If you delete the start TEC438020 letters... This would have worked.   Sorry but for some reason that my shortcuts duplicate urls notice the end of the above url shows the same letters that I told you to remove.  Do not forget that in case it happens again in the future.  (God forbid)

  • Manager SDK: lack of SDK cannot be removed

    I got stuck:
    SDK manager reports every time you start Flash Pro that some older versions of AIR SDK are missing.

    Which is fine and good, since I deleted the versions 3.2 and 3.4.

    But those missing SDK can not be removed with the Manager of the software development kit, because a next message tells me: path is not available/found

    Of course, this is not, I removed it. But because of this message I can't add a new SDK (I want to try v4.0).
    So I can't remove non-existing, or add new software development kits. I can't go out this window by abandonment; so that no changes in the list is saved

    How can I unblock this situation?
    I tried to create empty folders to the planned trajectory. I even added some configuration files to those version names, without success.

    I hesitated reinstalling Flash PRO because I don't want to lose the settings or risk anything. I need it in my workflow to create the projector exe and app.

    Thanks in advance

    Hans

    I assume you are using CS6, 3.6 comes with CC 3.2 comes with CS6. Are the SDKs coincidentally always in recycling in a position to be restored? If this is not the case, simply re - download 3.2 (what she expected to exist) and move back to the AIR3.2 folder. It is the easiest. You can also try the reset preferences but it cannot fix this issue and you already said that you do not want to lose your settings.

    AIR archive downlods:

    http://helpx.Adobe.com/air/KB/archived-air-SDK-version.html

    In the future, I'm sure you know today, just jump in this Panel and delete a SDK until you delete it. You will notice that the Panel is pretty static. If you update a SDK version existing (3.9 to a newer 3.9), it retains the old version number unless you delete it and Add. It is not updated itself as well as possible. As a general rule I never remove the value default SDK and Flash Player version comes with a version of Flash Pro.

  • I use a server DNS Server 2008 and need to transmit the DNS lookup on a Linux server that only allows you to Port 3128 for DNS.

    Hello

    I use a server DNS Server 2008 and need to transmit the DNS lookup on a Linux server that only allows you to Port 3128 for DNS.

    How can I configure my DNS server to use this port for shipments?

    Thanks for your replies

    Marcus

    Hello

    The question you posted would be better suited in the TechNet Forums. I would recommend posting your query in the TechNet Forums.
     
     
    Here are a few Server DNS forwarders. Links for refrence,
     
     
     
    I hope this helps.
  • How many times Microsoft will allow you to activate Windows

    As the questions indicates how many times you can activate Windows Vista Business? I would like to know because I had to activate Windows 3 - 4 times on a course of 3 days. Is there a limit to the number of times where Microsoft will allow you to activate Windows on the same computer with the same configuration?

    Thank you

    Hi Victor,

    The answer to your question would be both 'yes' and 'no '.

    IIRC, there is a limit on the number of times your license can be activated via the Internet.

    However, after the limit is reached, you can still call them for telephone activation.

    (You will have to wait before the automated voice system to reach a real person tho)

  • How can I turn off the "do allow you the program following an unknown Publisher to make changes to this computer?" popup with the application compatibility Wizard? "

    The title says it all really.
    I try to use WinMerge, a program I've used for years.
    Now, every time that I throw I get say popup "want allow you the program following an unknown Publisher to make changes to this computer".

    I tried to use the application compatibility Wizard to solve this problem, and I managed to get to the pop-up window IF I run the program from the inside of the Act.
    But if I try to start the Dowes program I get the popup :(

    I guess I must be missing something in the law so that it works all the time.

    Any help/suggestions appreciated.

    Thank you

    The title says it all really.
    I try to use WinMerge, a program I've used for years.
    Now, every time that I throw I get say popup 'want allow you the program following an unknown Publisher to make changes to this computer?'.»

    I tried to use the application compatibility Wizard to solve this problem, and I managed to get to the pop-up window IF I run the program from the inside of the Act.
    But if I try to start the Dowes program I get the popup :(

    I guess I must be missing something in the law so that it works all the time.

    Any help/suggestions appreciated.

    Thank you

    Hello

    This message appears when the application doesn't have an authority root certificate. These types of notifications can be disabled from user account control settings.
    [1] method: Using Control Panel to change UAC settings
    CAUTION: Turn off UAC is NOT recommended
    • On the start menu, select Control Panel
    • Go to system and security > Action Center
    • In the left pane, select change user account control settings
    • Drag the button scroll never notify
    • Click OK to save your settings
    OPINIONS: UAC can avoid potentially dangerous applications to make changes on your computer. Disable UAC would disable the feature for all programs and not for a specific special application.
    Thank you
    I hope this helps :)
  • Why Adobe allows you to install a program of 'cloud' before they will activate Acrobat Pro force?

    Why Adobe allows you to install a program of 'cloud' before they will activate Acrobat Pro force?

    If you are referring to the desktop application Cloud, which replaced the Adobe Application Manager (AAM), which is what would have previously been installed instead.

  • Apple tv does allow you to download movies?

    I am debating whether or not to get an apple tv.

    Apple tv does allow you to download your movie purchases and rentals, as does itunes, so you must not disseminate their?

    N ° the amount of memory embedded in Apple TV 4 is used for applications, data and content of the buffer streamed. There is no direct media storage. You can broadcast your purchases directly from the Apple servers or reproduce any content stored on your computer or device through sharing at home or Air play.

    Using your e-mail address as user name is maybe not wise. I asked the hosts to contact you to the subject of change.

    TT2

  • DDoes iCloud keeps the deleted content to your iPhone (thus allowing you to free up space on your phone, but keep the content)?

    DDoes iCloud keeps the deleted content to your iPhone (thus allowing you to free up space on your phone, but keep the content)?

    N ° once you delete data from iCloud, it is deleted from your phone.

  • I'm looking for the Mac key combination which is equivalent to Alt + Tab in Windows that allows you to choose Open Windows (toggle).

    I'm looking for the Mac key combination which is equivalent to Alt + Tab in Windows that allows you to choose Open Windows (pass) but I can't find this info.  I hope that someone will tell me what combination of keys and as a bonus, where I can find it in the menu help. Thank you!

    The standard keyboard shortcuts are listed here:

    Keyboard shortcuts in Mac - Apple Support

    You can also define your own in System Preferences > keyboard

  • 10.1.2 iMovie crashes while editing. Failed attempts to re - open. Open with the option key down key allows you to delete the preferences but contains a relative error incompatible graphics card will then appear.  With the help of El Capitan

    iMovie 10.1.2 falls down during editing of a film, usually by doing something like adding a title or a transition.  Failed attempts to restart.  Try to reboot with the option key + command allow you to remove preferences.  Then either receive an error indicating that the graphics card is incompatible or the application block requiring a force quite.  Restart or stop the iMac translates the suspended system requiring a manual stop holding down the Start button.  Restart in Safe Mode and then the normal startup will allow iMovie to load.  But after a few minutes of work with the program, it crashes and scenario again.  I use El Capitan 10.5.11 on an iMac of 2013.  I deleted the iMovie app and reloaded it, no change.  Someone has an idea for a fix?

    What are the specifications of your clips you want to change? Try to create a new user and see if FCPX is behaving.

Maybe you are looking for