run a VM on vcenter workflow unique sdk connection

Hello world

I'm short vCO 5.5.1 material, connected to 13 vCenters spread around the world. Yes I know, probably not the best idea, but it doesn't seem to work properly. We're not really able to re-architect to take advantage of the cluster to the time mode.

Anyway, with that many connections of vCenter to vCO, even simple VM operations take a long time. This is due mainly to the fact that even the simple workflow that power VMs seem to rely on the questioning of ALL connections of vCO SDK. We provide a virtual machine name (or UUID) as input and vCO then queries all our vCenters until it can return an VC:VirtualMachine object, which is then used as the real input parameter to run VM-associated workflows in question.

Anyone know of a more effective and efficient to have the vCO to retrieve the VC:VirtualMachine object, instead of an iteration on all connections of the SDK?

The place where you start the workflow?

Get VM by name is a bad habit, especially if you have many vCenters / VMs.

vCO has a nice tree inventory to load in the inventory items only in containers (VM files, resource pools) you select.

If you use an external system that does not know how to interface with vCO API to get the tree view that you should get virtual machines by their ID.

You can start a workflow of vCO input the object ID (unique vCO or object of type + object ID + host vcenter) do:

moRef var = new VcManagedObjectReference();

moRef.type = ref.type;

moRef.value = ref.id;

vcObject = VcPlugin.convertToVimManagedObject (vimHost, moRef);

Tags: VMware

Similar Questions

  • How to run a Script in Vcenter Orchestrator... ?

    Hi team,


    I m starting to VMware Vcenter orchestrator. I installed Vcenter Orchestrator autonomous set up in my test environment to Windows server 2008 R2. I want to run a script in a client application to vcenter orchestrator.


    But I was unable to run the script in Vcenter orchestrator. I m getting after that error"you are not allowed to run the local process '.


    I couldn't configure vCO to allow execution of local processes & cALTER vCO to allow access to file system to the scripts folder:


    To configure the VCO to allow running local process:

    • Go to/app-server/server/vmo/conf
    • Edit the file vmo.properties and Add (if not already done) the following line to enable

    com.VMware.js.allow - local-process = true Set up VCOs to allow file system access to the scripts folder:

    • Go to/app-server/server/vmo/conf
    • Edit (or create if it does not exist) the file js - io - rights.conf
    • Assuming that the name of a "Orchestrator" on a device folder, enter the following (set at will for windows):

    But in my server I found no record of the server app-server... Please someone help me on this to solve the problem.


    Kind regards

    Odile M

    If the file does not exist, you can create simply as described here: http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vsphere.vco_administer.doc_42%2FGUID-C9F6748A-32F9-4712-99EB-3A48BFFDF5E9.html - this is a plain text file.

  • vCenter Orchestrator 5.5 has no vCenter workflow in the library.

    Hello

    We simply configure vCenter Orchestrator in our vCenter Server to familiarize themselves with it.

    In vcenter Orchestrator client and vSphere Web Client, we do not have the vCenter workflow in the library.

    vCo Client.JPG

    We have the same thing in the Web Client vSphere.

    Remove the vCenter Plugin and install it again and it does not work either. In the newspapers of vCo, we have nothing that speak the vCenter, PlugIn, except for installation.

    In our configuration page, everything is green:

    Configuration page.JPG

    Anyone have any idea?

    Thanks for your help.

    Under plug-ins in your vCO Configuration page, make sure that the plug-in vcenter is actually active. Also, go in the troubleshooting of Setup page tab, and then in the right pane, click on the link that says "Reset current version". Once you have done this, restart the vCenter Orchestrator Server service. The restart should trigger a re - install the plug-in that is supposed to give rise to import the package for each plugin so that you have all the workflows library in the vCO Client

  • Considerations when changing the vCenter Server Unique ID?

    We have a minor problem with MAC address collisions, and to fix it, I want to change the ID of vCenter Server Unique from our "view" vCenter Server.

    (see KB1024025)

    However, I fear that there may be some side effects, of which I am unaware, and decided this time I would like to better ask before doing something stupid.

    Is it safe to change the Unique ID of a vCenter Server used by VMware View?

    Do I have to wait for any other effect that newly generated in another range MAC addresses?

    I have crossed a reinstall of my machine to vCenter using my existing db, but do not go back and change the ID Unique in what it was previously, and it caused no ill effects.  Having said that, for consistency, I made them the same thing.  I know that the ID to be used only for MAC and UUID, so there should be no problem.

    -KjB

  • VCenter Orchestrator Server - invalid connection login

    I 5.1.0 build 1123966 installed with Orchestrator on a separate virtual computer.

    When I go to set up the connection to a server vCenter Server, I can connect using the button 'Test connection' very well.

    However, Orchestrator reports an 'invalid login' all pages 'administer '.

    Details:

    User logs (I tried to share a single session - no difference)

    SSO is supported by Active Directory.

    RSA CERT is imported.

    The clocks are synchronized to NTP.

    Orchestrator is to get his Server vCenter license. (License server has been very well with the value of domain\user)

    User account is part of the vcoAdmins group.

    Username is currently defined as User@fqdn (also tried domain\user).

    Using SSL on port 443 /sdk path.

    I am confused and would appreciate any suggestions.

    -david-

    Ok. He tracked down but it's kind of weird.

    I had the Orchestrator account in the Group of vcoAdmins@system-domain linked to the AD account. (that is, the vcdAdmins@system-domain are included as part of the Group's user@my-domain)

    I gave up and added user@my-domain (same account, same area, same AD server)

    Orchestrator client is restarted.

    Alto! No problems.

  • "The account specified for this service is different from the account specified for other services running in the same process" while trying to connect to the internet.

    Original title: the account specified for this service is different from the account specified for other services running in the same process

    while trying to connect to internet, I get the message "connection status: unknown the account specified for this service is different from the account specified for other services running in the same process" that you start happens out of the blue. When I run the diagnostic and repair tool it says that Windows cannot resolve the problem, contact admin or your ISP. I know that my internet service works very well. I am currently on an e-machine running Windows Vista Edition Home Premium and it connects without problems. My problem is that my most recent top of office (gateway also on Windows Vista Home Premium) receives connection problems. IM connected to the internet (DSL) with the ethernet cable from the Yukon. All the lights are green on the wireless gateway, so I know that the service is very good. Strange thing I noticed, when I go to network status and share and view Gateway desktop computer shows the "Yukon Ethernet controller" as the connection while the e-machine device says Im using "Intel (R) PRO/100VE Network Connection" Im using the same cable (Yukon) and put in place for both computers, so I was wondering what that was all too. Any help is appreciated.

    Hello

    Thank you for writing to Microsoft Communities. From your problem description, I understand that you can not connect to Internet.

    1. have there been recent changes to the computer before the show?

    2. the problem occurs in safe mode with networking?

    Please go ahead and follow the steps mentioned and later a update on the State of the question.

    Method 1: Wi - Fi and in Windows network connection issues:

    http://Windows.Microsoft.com/en-us/Windows/help/wireless-network-connection-problems-in-Windows?T1=Tab03

    Additional information:

    The problems of Internet connection:
    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-Internet-connection-problems

    Please follow these recommended steps and post if you still experience the problem.

  • Add vCenter Workflow error: unexpected status code: 404

    Hello

    I am trying to add a vCenter vRO 7.0.1 host using the plugin existing VC (ver. 6.0.2.3435085) and I run a strange question.

    If I choose NO for the option ' will you orchestrate this instance "then the workflow completes successfully.  This does allow me to run workflows against the vCenter.

    When I remove the existing vCenter and re - run the workflow of vCenter Add, this time by choosing YES, the workflow fails with error validation process: unexpected status code: 404 (Workflow: Add a vCenter server instance / validate (item2) #1)

    Any ideas why check YES causes this?

    My entries:

    Host: fqdn.servername.com

    Port: 9443

    Path: /sdk

    Ignore the Cert: Yes

    Thank you.

    Hello

    This error probably means that the port number is incorrect.

    Are you sure 9443 is the correct port number? Usually, the port number is 443, not 9443 (port 9443 is where vSphere Web Client is available). Could you re-run the workflow with port 443?

  • vCenter ID Unique

    Anyone know of a way to get the unique ID from vCenter through powercli or sdk?  Having no luck finding anything on this parameter outside the GUI manual recovery.  I hate to have to go poking around in the registry to vCenter

    Try like this

    $si = Get-View ServiceInstance$setting = Get-View $si.Content.Setting$setting.QueryOptions("instance.id") | Select -ExpandProperty Value
    
  • Applications cannot run using the latest device software and SDK

    I have an application of stunts that I try to run on the alpha of dev, but I get this error: (which occurs after the splash screen, then first screen appears)

    "Launch BB10BabyNames" has encountered a problem:

    Error in the final launch sequence

    When I click on "details > ', I get:

    Error in the final launch sequence
    Failed to execute the command of MI:
    -break-insert t main f
    The debugger back-end error message:
    Cannot access memory at address 0 x 2310
    Cannot access memory at address 0 x 2310

    ...

    The way I've updated by SDK had to go on the native menu 'Help' and "Update SDK", as described on the web.

    In the top drop down menu, I selected:

    "BlackBerry 10 native SDK 10.0.9.2318"

    And my OS version is:

    10.9.9.339

    I noticed that my:

    Project-> Build Configurations-> value activates

    ... has been configured for the device debugging

    But when I went to Run-> Debug Configurations, I selected "device-Release.

    I put this in the "device-Debug' and now I can start the application.

  • Running PowerCLI scripting against vCenter occupies space of database in vCenter?

    Hi all

    Someone can confirm, running or collecting data using PowerCLI against vCenter occupy or use vCenter database space?

    Some commands (generally the things which create, modify (including the power on/off/suspend/move/run, etc.). or remove) will create event entries will be stored in the database of vCenter. Others who may are Connect-VIServer can also register an event. The "Get" cmdlets will not create entered events

    You can identify those who have the VI Client open and see if the script causes all events appear in the lower pane or by running Get-VIEvent on the vCenter server after your script is run (search for events based on the username)

  • Add the action to the node root of the collection of objects in vcenter Internet client sdk

    Hello


    I mentioned the plugin sample of chassis-user interface of the web client to vCenter SDK 5.1.


    I want to add actions such as 'create a chassis' to the root of the Collection object, and not on the subject "chassis" itself.

    My code is the same as that provided in the samples (chassis-ui plugin).


    Then, I use mainly vsphere.core.inventoryList.ObjectCollectionTemplate.So using the plugin, I'm able to get stocks on each of the created frame object. But if there is no object created, stocks are not considered in the "Object" of the collection of the Node.So root tab I want actions on the root node, on the object.

    Help, please.



    Thank you very much.

    Global actions as you request are not supported in 5.1, but this problem is fixed in the next 5.5 SDK.

    If you need your plugin to work with the Web Client 5.1 you must put your global action according to another, for example to create objects.

  • Get-QADComputer fails if run PowerShell script through Orchestrator workflow

    I use the "Get-QADComputer" cmdlet in my .ps1 script that is supposed to run via Orchestrator.  I have several PowerShell scripts started by Orchestrator and run on a host windows without any problem.  For this script, I have these 2 commands and still error.  The script does not error when run locally.

    Add-PSSnapin Quest.ActiveRoles.ADManagement - ErrorAction SilentlyContinue

    $Computer = get-QADComputer-identity "server01" | where {$_.name - eq "server01"}

    In troubleshooting, I ran Get-PSSnapin and can see that the snap for AD is loaded successfully.  I tried Connect-QADService and who also gives the same error, although it works very well on place.

    I use vCO 5.1.1. device.   On the hosts Windows where are the scripts PowerShell, the AD snap is version 1.6.0.2683.

    Here is the error in the logs Orchestrator...

    PowerShellInvocationError: Errors found during execution of script

    System.Runtime.InteropServices.COMException (0x8007054B): the specified domain does not exist or could not be contacted.

    at Interop.ActiveDs.IADsOpenDSObject.OpenDSObject (String lpszUserName, String lpszPassword, String lpszDNName, Int32 lnReserved)

    to Quest.ActiveRoles.ArsPowerShellSnapIn.DirectoryAccess.AdsiDirectory.NativeBind (adsPath String, AuthenticationTypes bindFlags)

    at Quest.ActiveRoles.ArsPowerShellSnapIn.DirectoryAccess.AdsiDirectory.BindToObject (String dn)

    at Quest.ActiveRoles.ArsPowerShellSnapIn.DirectoryAccess.ConnectorFactory.Create (String serverName, user String, SecureString password, type of ConnectorType)

    to Quest.ActiveRoles.ArsPowerShellSnapIn.Powershell.Cmdlets.ConnectionAwareCmdlet.EstablishConnection (ConnectionProperties connectionProperties)

    at Quest.ActiveRoles.ArsPowerShellSnapIn.Powershell.Cmdlets.ConnectionAwareCmdlet.GetContainer)

    at Quest.ActiveRoles.ArsPowerShellSnapIn.Powershell.Cmdlets.GetUserCmdlet.BeginProcessing)

    at System.Management.Automation.Cmdlet.DoBeginProcessing)

    at System.Management.Automation.CommandProcessorBase.DoBegin)

    (Name of the dynamic Script Module: invokeScript #14)

    Thanks for the info.  I use the workflow "Invoke an external script" to run many of my host admin PowerShell scripts.  It is easier for me to keep all .ps1 files in one place and not import them into Orchestrator.  The article prompted me to switch my connection to host basic Powershell to Kerberos.  To do this, I had to update /etc/krb5.conf on the device of the vCO.  I've referenced VMware KB2036986 to work around the problem "unable to get kdc for the Kingdom.  This issue was mainly because we couldn't have krb5 configured previously.

    Now, I got a different error during execution of the workflow after bouncing vCO.

    System.NullReferenceException: Object Reference not set to an instance of an object.

    Has pointed out me the need to first make the connection AD.  He has not worked before without Kerberos authentication.  Once I added these lines of code, Get-QADComputer finally worked without error!   Thanks for the help.

    $pass = ConvertTo-SecureString - AsPlainText-Force - String "password".

    Connect-QADService - "example.com\serviceaccount" ConnectionAccount - ConnectionPassword $pass

    $Computer = get-QADComputer-identity "server01" | where {$_.name - eq "server01"}

    Disconnect-QADService

  • "Run program in comments" VCO Workflow survey error "File < file name > is not found" not specified in VCO connected to VCD 5.1

    I'm trying to run a vbs script on a windows computer using "Run the program in comments" VCO Flow. I use the path of the entry only program and placed the script under the c drive to facilitate testing and you try to run a script of vmware for testing as follows. I get a VCO Flow error file < file name > not specified was not found. What is the problem with the entries.

    Flowname: Library/vCenter/comments-operations/process/run program in the comments

    Inputs                        :

    programPath c:\cscript.exe vm - support.vbs

    arguments

    workingDirectory

    undefined environment

    InteractiveSession No.

    Output: file < unspecified file name > not found.

    Thank you

    MuruRam

    Hello!

    In your example, the command would be only c:\cscript.exe and support.vbs - vm is an argument to this command.

    See you soon,.

    Joerg

  • Error ch.dunes.model.sdk. Finderexception Vcenter server plugin SDK

    Hello Experts,

    My vco is unbale to connect to vcenter with error 'error ch.dunes.model.sdk. SDK finderexception "plug-in error.

    Please find the attached screenshot for the same thing. All the lights in configuration vco are green. Kindly let me know how to proceed further.

    Thank you

    VAMSi

    Hello

    I see errors in the plugin vCenter. Sometimes, you must reinstall the ssl certificate, configure the vCenter again and after a server rebooted just fine. If you can navigate in the objects of vCenter as in your screenshot, everything should be good. Make sure that the user in the config has administrator rights.

    Best regards

    Christian

  • How to run an interface or a package using SDK API

    I know how to run the scenarios generated from the interfaces or packages by using the following methods of SDK:

    Invoker RemoteRuntimeAgentInvoker = new RemoteRuntimeAgentInvoker (pAgentUrl, IVsWebBrowserUser, Ppassword)
    invoker.invokeStartScenario (pScenName, pScenVersion, pVariables, pKeywords, pContextCode, pLogLevel, pSessionName, pSynchronous, pWorkRepName);

    But I want to know if I can directly invoke a running interface/package using the API of the SDK and don't generate their scripts?

    Anyone know it and could you tell me the methods? Appreciate for your help.

    In my view, ODI SDK currently does not offer any method to run the interface or package. Although you can stop/resume a session, but cannot start a new session, so I guess that you can run manually or hand over the package and interfaces scenario for build and run through the SDK package.

Maybe you are looking for