Search the portgroup (VC:DistributedVirtualPortgroup)

I have a workflow where I'm changing the port group to a specified IP address-based virtual computer.

So after some searching around, I came across the whole group Connect machine virtual NIC to the distributed virtual port number . The problem that I need help, it's how can I programmatically specify the Group of ports, I want the script to change the VM.

In my workflow, I have a script task (see JS code below) before the item Connect virtual machine NIC to the virtual port number distributed which takes IP address as the gateway and I want the Group of output ports required for the virtual machine to Connect NIC... item to run, object type (VC:DistributedVirtualPortgroup). I manually entered all groups of possible port in a switch statement, but his does not work. No idea how to return the right object based on the name of dvGroup or the ID specified in the switch statement? Is it still the right way to do this?

var _ip = IP;

switch ((_ip.substring(0, _ip.lastIndexOf('.')))) {
  case "10.10.80":
    dvGroup = "Management (Dev38-80) (dvSwitch-Converged10G)";
    break;
//and so forth
}

Also, is there anyway to stop the execution of javascript code and troubleshoot interactively (as in chrome dev console?)

Thank you.

I managed to solve this problem by using 2 workflows:

(1) find network, with some labels for cluster (think I got this from the site of the training VMware vCo)

(2) connect the number NIC of distributed virtual machine virtual port group (got here is How to tie a dvPortGroup as VC:Network)

I was simply the result of education case since the original message in the workflow 1 and I also had to customize this workflow with the JS I found here: correspondent on a portgroup

Hope this helps someone.

Tags: VMware

Similar Questions

  • cannot search the podcast on ipad

    I have not used my ipad in a few months. I try to use the podcast app. When I click on the search icon all the getting is a blank page. I searched the forums and found nothing useful. I tried logging into my account and return to and electric bike. What wrong with this app?

    IF a reset did not help, try restoring from a backup, encrypted iTunes. Probably you need to update your iOS software, too.

    Reset: hold the Home and Power buttons until you see the Apple logo (10 to 20 seconds).

    If this does not help, you may need to restore your iPhone.

    https://support.Apple.com/en-us/HT204184

  • Search the Web for awesome bar

    I cannot search the Web awesome bar, will return to my internet service provider page.

    You can have an ISP that automatically redirects you to a search page if a DNS search fails.
    It takes control of Firefox to search.
    You can contact your ISP and ask for a DNS to opt-out of this feature.
    You can check if there is a link on the search results page to go to your ISP and opt-out.
    You can set different DNS servers.

  • How to disable him drag the text selected for searching the Web?

    How to disable him drag the text selected for searching the Web?

    Hmm, I did not forward. This is a new tab page with nothing to do with what you were dragging?

    I wonder if this might be a feature of one of your extensions. You can see their and disable/remove those that are not essential or unrecognized, here:

    Firefox orange (or the Tools menu) button > addons > Extensions category

    If you disable the extensions, usually a link will appear above at least one of them to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    If there is no difference, you could test mode without failure of Firefox - which is a standard diagnostic tool in order to avoid interference by extensions (and some custom settings). More info: questions to troubleshoot Firefox in Safe Mode.

    You can restart Firefox in Mode safe help

    Help > restart with disabled modules

    In the dialog box, click on 'Start mode safe' (not Reset)

    Any difference?

  • When I try to search the Web, all I get is Twitter. WHY?

    I use Firefox as my home page and most of my web search from this page. But suddenly, each search takes me to Twitter instead of web links. Why? It drives me crazy, and I'm about to go back to Yahoo to search the Web.

    in firefox search for the address-home page toolbar options 23 / have consolidated with the search bar - so the search engine that is selected in the Search bar will now also be used when you enter a term in the default firefox homepage...

  • How can I search the name of a folder of bookmarks?

    I can find the name of a bookmarks folder that I created back to the top of my favorites, and the searches the .json and then looking for the parents of the entry I find, but it's very tedious. There is an extension that claims to do this research named "Awesome search Extension", but I can't understand how to use it.

    It is such a common need that I think that Mozilla would add this feature to Firefox itself.

    Shamefully, it does not seem to be any decent Firefox solution/add on to these very simple features. It is indeed annoying, because I just recently migrated from Opera to Firefox after 10 years to use Opera, mainly because its decently developed bookmarks UI Manager. In the opera, the bookmarks (consisting of my thousands of bookmarks) directory tree is reduced in real-time by typing the letters one by one in the search box. At the same time, all parent folders open in the tree. And of course, the entries are not only from the beginning of a Word, but also everywhere where there is the substring. In addition, the search also matches folder names, not only of the names of bookmarks...

  • Where is the option easy to choose between searching the web or pages of... (New Zealand)?

    Hello
    I have been using Mozilla Firefox years (currently Firefox 17.0.1), but lately the convenient option (sidebar) to search the web or the New Zealand pages disappeared.

    I can click on 'Search tools' - 'the web' - 'Pages of the New Zealand' (and do the same again when I want to perform an Internet search), however, it is certainly not easy to use.

    Is there a way to get back one click the option to choose between the web search or local search?

    Thank you!

    I believe you have just made available update that Google is starting to roll out last month: http://insidesearch.blogspot.com.au/2012/11/spiffing-up-your-search-results-page.html

    People have published methods to return to the page layout, which mostly involve some of the style rules Google replace with new (old). For example (I have not tried myself):

    Greasemonkey userscript: http://userscripts.org/scripts/show/152796

  • You can search the Exchange e-mail on 4.0.4 ICS?

    Hello

    According to wikipedia - the function to search for e-mails on the server requires Exchange ActiveSync 12.0 delivered with Exchange 2007 or later:

    "To see who was invited to a meeting has also been added as well as the ability to search the server for an e-mail that was not synchronized to the device. " [5] policies presented were:

    http://en.Wikipedia.org/wiki/Exchange_ActiveSync

  • Unable to set server 2012 without the protocol driver LLDP Microsoft network adapter. I have searched the driver but had no chance. My question is where is it located on the CD-ROM of the 2012 Server

    Unable to set server 2012 without the protocol driver LLDP Microsoft network adapter. I have searched the driver but had no chance. My question is where is it located on the CD-ROM of the 2012 Server? I use the version standard edition. Thanks for any advice.

    Thank you all.

    John Hayes

    Hello

    The question you posted would be better supported in the TechNet Forums. I suggest you to ask your question in the TechNet Forums.

    http://social.technet.Microsoft.com/forums/en-us/categories/

    Thank you

  • How to use windows search to search the contents of a bunch of files with random names / extensions?

    How to use windows search to search the contents of a bunch of files with random names / extensions? Plain txt files say 1,000 with random name of file extensions?

    You can always search within those, but you need to add extensions to the file system so that it knows to look inside these files.  You said that you have a lot, so it's perhaps tedious.  Here's How to search within several types of files.

    One thing you could try is rather to make a copy of this file, rename all the files to the same extension (even an extension false for example something.bill) and perform your search on this band.  Just an idea.

  • Whenever I type in the search, the links go to the wrong page

    original title: problem with search

    When I type in my search, the list of items of fine search. When I click on one of the points of view it starts to load and then is redirected to another site like revo, puree of information or another site of sale

    Hello

    We would like to get more information about you to help solve your problem. Please answer the following questions, the better you can

    (a) what you're trying to find?

    (b) you are performing a search using a search engine (toolbars) or directly from the browser?

    (c) this happens with all the search engines or any specific search engine?

    (d) what browser do you use?

    (e) you did any hardware changes or software on your machine before this problem?

    (f) when was the last time it was working fine?

    Method 1:

    If you use toolbars, then try to search directly from the home page by typing the address in the address bar and see if the problem still occurs. If the problem does not persist then I suggest you to uninstall toolbars to add and remove program, because this could cause a problem and then reinstall it from the Web site.

    Method 2: If the search is redirected to different sites, it can be caused by a virus or other malware on the computer.

    Try running a virus online scan and check if it helps:

    http://OneCare.live.com/site/en-us/default.htm

    Hope this information is useful.

  • I bought Halo 2 for Vista, but who like OS Windows XP Pro, just can't launch the startup.exe, I search the community, there is a rumor that it won't work even with the patch. Can someone help, please?

    I bought Halo 2 for Vista, but who like OS Windows XP Pro, just can't launch the startup.exe, I search the community, there is a rumor that it won't work even with the patch. Can someone help, please?

    Unfortunately, Halo 2 does support Windows Vista and more.  Windows XP is not supported.  There may be 3 party hacks that can make it work, but they are not taken in charge and potentially dangerous.

    Paul Smith - MVP for Windows desktop experience... I crawled off NNTP - for now. Detachment Aldershot, United Kingdom. On the internet at windowsresource.net and dasmirnov.net. Please post back to let us know what works and what does not. :-)

  • How can I find and open/search the 32 GB of data that fills the disk for possible deletion?

    Using XP: I have only about 2 GB (2 000 MB) of the programs on my hard drive Go 37 and less than 3 GB of space left.

    How can I find and open/search the 32 GB of data that fills the disk for possible deletion?

    Thank you.

    * original title - full hard drive. *

    Using XP: I have only about 2 GB (2 000 MB) of the programs on my hard drive Go 37 and less than 3 GB of space left.

    How can I find and open/search the 32 GB of data that fills the disk for possible deletion?

    Thank you.

    Download and run JDiskReport.

    There are a number of things you can do to- temporarily - free up disk space.  The only real solution, however, is to get a larger hard drive.

    • You can run Disk Cleanup (start > run > cleanmgr > OK)
    • You can reduce the size allocated for the restoration of the system to about 1 GB (right click on desktop > properties > system restore > settings)
    • You can disable hibernation (if you don't use it) (right click on an empty spot on the desktop > properties > screen saver > power > Hibernate)
    • You can disable the indexing of the drive, which will also speed up your computer a bit (http://lifehacker.com/031440/turn-off-indexing-and-speed-up-windows-xp)
    • You can reduce the size of your Internet browser cache (depending on the browser that you use)
    • You can remove most of the $NTUninstallKBxxxxxx files $ following the directions here: http://windowsxp.mvps.org/Hotfix_backup.htm (read the warnings in the gray box first)

    But none of these answers you will earn really large amounts of space for very long.  The term solution time is a bigger hard drive.

    In the meantime, download and run JDiskReport, that will show you graphically what files take up more space and seem to so indicate what files to delete or uninstall applications.

  • I have Windows Vista and I can't search the Web using Google or Ask, why?

    Google

    I have Windows Vista and I can't search the Web using Google or Ask, why?

    Sunday, April 15, 2012 01:00:38 + 0000, MissKisha32 wrote:

    I have Windows Vista and I can't search the Web using Google or Ask, why?

    Please tell us what "impossible" means. Exactly how do you try?
    What happens when you try? If you get an error message, please quote the
    It verbatim.

    And what browser do you use?

    Ken Blake, Microsoft MVP

  • matter of record: How do I control which folder is open when I search the file I want to download or the file I want to save a file to?

    When I use internet, how can I control what file is opened when I search the file I want to download or the file I want to save a file to?  He always seems to be the last that has been opened, but I want the default on my desk.

    Perhaps the following links provided courtesy of SpiritX MS MVP will help:

    Set the Internet Explorer default download path.
    http://www.tweaklibrary.com/Software_Applications/Internet-Explorer/27/set-default-download-path-of-Internet-Explorer/10153/

    How to change the Internet Explorer default download directory
    http://www.windowsreference.com/Internet-Explorer/how-to-change-the-default-download-directory-for-Internet-Explorer/

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for

  • Identify mailboxes mailbox spotlight search

    Hello Does anyone know how to determine where an email is either the mailbox, when I got an e-mail using spotlight. Spotlight is the email and I can open it, but then I must go in additional research position and find the box where it is stored. I'm

  • USB Thumb Drive (UHYBS-064GH) format/write protection fault

    Hello Hoping for help. Bought a 64 b USB Thumb Drive (UHYBS-064GH), a private seller, but the point is brand new in packaging. When I tried to copy files through him, he maxed out at comments 45Gig and seems to have caused a clerical error. I was abl

  • FTP back script

    Hello I have a question on using ftp I recover openg tools it works but terribly long more than 3 s for a 1 KB file so I took a glance at the back command line with exec system palette. I have It works well (~ 250 ms) but I am forced to use scipt fil

  • Is there a list, with pictures, icons of Vista?

    My system Vista/64 has been humming along well for a few years now, but recently I tried using Windows Movie Maker, a utility that came already installed.  Although I only opened the program to take a quick glance at its functions, since most of the

  • error code 80072EFE appers when I try to download and install updates___

    error code 80072EFE appers when I try to download and install updates