Declare variables for the host, pool, vmFolder

Hello

I'm working on a workflow to automate the deployment of virtual machines.  The idea is that end-user the applicant may apply to the new virtual machine for memory, drives & size X and OS X.  The thing I want to control is the virtual machine (model to be cloned), HOST, POOL, store DATA and vmFOLDER.  I want to know how to pass the ID or the NAME to variables of the:

System.getModule("com.vmware.library.vc.basic").cloneVM (vm, vmFolder, name, powerOn, template, data store, host, pool)

Configure debugging which gave me (names and IDS) values of them (when I run manually) but how hard coding or spend is the real question?

Thank you

B

Heya B, rather than to write an article here on how to do what you need, I took your code and that I take to be what you're trying to do and created a file of Package vCO (see table) of how I would approach...

Import the package.

Note that there is a Configuration element with several attributes with empty values. You must complete your values here in the configuration item. Attributes of workflow will be get their values from here.

Now look at the workflow: notice the attributes and how they point to the configuration item! Now, look in the script task. The code, it is much easier to read and it will be easier in the future to make a change to the resources of the coast and West Coast.

By setting these specific resources of the infrastructure as elements, you can reference them in many different workflows. And when you make a change to one of the resources that use your workflow (s), it should ONLY need to be done in the configuration item, not the ten to twelve that all workflows need to know what the West Coast Development Resource Pool

Tags: VMware

Similar Questions

  • Can Oracle 10g - I use a variable for the access of the user identifywhat tablesto?

    I have the following code in a trigger (PL/Sql block) of a form:

    Select fieldname in user1.sometable myvar;

    is it possible to use a variable instead of coding hard "user1"? And on the same subject, this variable would also be declared in the world?

    Thanks in advance,
    Darren

    Hello!

    User1 is the owner of the table sometable.

    If only the User1 runs your form, there is no need to put the tableowner in front of the tablename parameter.

    If other users run your form, you must create a public or private (for each user) synonym of this table.
    After that, you don't need to use owner.tablename in your sql statement.

    But:
    You cannot use a variable for the user name without using dynamic sql
    as you do if you create a recordgroup.

    Concerning

  • Using a Global Variable for the input recorder DisplayRange

    I'm assuming; Since I can't do it; that you cannot change the display range of a graphic recorder by using a variable.  If there is a way I'd love to know how.

    Thank you!

    Determine if you can use a global variable is to click right in the parameter field. If the global variable is available in the context menu, then you can use a variable y.

    You can use a variable of the y-axis from the settings.

    You cannot use a variable for the display range of the x-axis parameter. This is because DASYLab needs to know the amount of memory to be allocated at the beginning of the measure.

  • How to make appear a message that can enter some settings such as a variable for the next step?

    Hi all

    How to the dialog box or window pop up a message that can input some parameters as a variable for the next step?

    My sense is if Teststand stage can do that, not using Labview or other language.

    Thank you

    BR

    Johnny

    Take a look at the Options of a stage of pop-up Message tab. The response is returned in Step.Result.Response.

  • The number of heartbeat for the host data warehouses is 0, which is less than required: 2

    Hello

    I have trouble creating my DRS cluster + storage of DRS, I have 3 hosts esxi 5.1 for the task

    First, I created the cluster, no problem with that, so the DRS storage was created and now I can see in the Summary tab

    "The number of heartbeat for the host data warehouses is 0, which is less than required: 2".

    I search the Web and there are similar problems when people has only a single data store (the one that came with ESXi) and need to add another but in my case... vcenter detects any...

    In the views of storage I see the store of data (VMFS) but for some strange reason the cluster not

    In order to achieve data warehouses minimum (2) can I create an NFS and map it in THE 3 esxi hosts? Vcenter which consider a play config?

    Thank you

    You probably only have local data warehouses, which are not that HA would require for this feature (pulsations datastore) to work properly.

    You will need either 2 iSCSI, FC 2 or 2 NFS volumes... Or a combination of the any of them, for this feature to work. If you don't want to use this feature, you can also turn it off:

    http://www.yellow-bricks.com/2012/04/05/the-number-of-vSphere-HA-heartbeat-datastores-for-this-host-is-1-which-is-less-than-required-2/

  • How can I add session variables for the subject field and the body of the e-mail Message?

    How can I add session variables for the subject field and the body of the e-mail Message? Tried several combinations, but do not seem to correct the syntax.

    This is the code I have. I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.

    $à = « à : ». $_SESSION ["toemail"];
    $subject = '$firstname $lastname, your registration details ';
    $from = "from: [email protected]"; "
    $msg = "Dear $title $firstname $lastname\r\n\nThank for the registration for the design of your dream Home.\r\nWe have received this following details details of you-\r\n\nClient-\r\n\nOccupation: $occupation \r\nPhone No.: $phone \r\nE-mail: $email\r\n\nPresent $ location: \r\n location\r\n\nPresent address: \r\n$ address\r\n\n\nFollowing are specified by you - design requirements \r\n\nBasic Features\r\n\nNo." floors: $floors\r\nNo. of bedrooms: bedrooms\r\nNo of $. of bathrooms: $bathrooms\r\nFloor region: $sqft\r\n\nFurther Suggestions: $ Plan\r\n\nSplit one further\r\n\n\nType floor: $splitfloor\r\n-remarks: $splitfloorremarks\r\nOpen floor: $openfloor\r\n-remarks: $openfloorremarks\r\n\n\nList of the rooms to be Included\r\n\nFoyer: $foyer\r\n-remarks: $foyerremarks\r\nDrawing: $drawing\r\n-remarks: $ alive drawingremarks\r\nFormal: $formalliving\r\n-comments : $ alive formallivingremarks\r\nFamily: $familyliving\r\n-remarks: $familylivingremarks\r\nHome Office: $homeoffice\r\n-remarks: $homeofficeremarks\r\nDining: $dining\r\n-remarks: $diningremarks\r\nMaster room: $master\r\n-remarks: $masterremarks\r\nMaster bathroom: $masterbath\r\n-remarks: $masterbathremarks\r\nMaster Dressing: $masterdress\r\n-remarks: $masterdressremarks\r\nBedroom: $bed\r\n-remarks: $bedremarks\r\nBathroom: $bath\r\n-remarks: $bathremarks\r\nDress: $dress\r\n-comments : $dressremarks\r\nStudy: $study\r\n-remarks: $studyremarks\r\nLibrary: $library\r\n-remarks: $libraryremarks\r\nPowder room: $powder\r\n-remarks: $powderremarks\r\nPrayer room: $prayer\r\n-remarks: $prayerremarks\r\nKitchen: $kitchen\r\n-remarks: $kitchenremarks\r\nPantry: $pantry\r\n-remarks: $pantryremarks\r\nUtility/area of work: $utility\r\n-remarks: $utilityremarks\r\nBalcony: $balcony\r\n-remarks: $balconyremarks\r\nStore: $store\r\n-remarks: $storeremarks\r\nLaundry : $laundry\r\n-remarks: $laundryremarks\r\nVeranda: $veranda\r\n-remarks: $verandaremarks\r\nCar porch: $carporch\r\n-remarks: $carporchremarks\r\nGarage: $garage\r\n-remarks: Theater garageremarks\r\nHome $: $theater\r\n-remarks: room of $theaterremarks\r\nMaid: $maid\r\n-remarks: $maidremarks\r\n\nOther general remarks: $general\r\n\nPlease note that the fields have been left blank in your form will be considered undecided details and used in discretion.\r\nIf of the architect , it better to add more later, design requirements please feel free to reply to this email with the details. « ;
    $fla = mail ($to, $subject, $msg, $from);

    Thanks in advance!

    askintrades wrote:

    How can I add session variables for the subject field and the body of the e-mail Message?

    What you want to do? Given the nature of your question, it seems that you probably don't know what a session variable is used. The PHP manual describes the purpose of sessions here: http://docs.php.net/manual/en/intro.session.php.

    I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.

    $à = « à : ». $_SESSION ["toemail"];

    Why do you need to change the form variables in session variables? They are already stored in session variables, or they come directly from the form?

    The $to part is not supported. When you pass $to to the mail() function, it should contain only an e-mail address, not a string that begins with "to:

  • global variables for the XML plugin problem

    Hello world

    recently I started working on a dialog box SOUTH, where the user can load the *.xml files in DIAdem.So much my code for the button looks like this:

    ....

    Call the FileNameGet ('ALL', 'FileRead","*.xml")
    Call DataFileLoad (FileDlgName, "XML_Plugin", "Load")

    ....

    And I must say that it works very well! I am able to load all listed in the devices file. BUT when I tried a number of loading devices, I used a global variable, that I defined in the vbscript file that I load the SOUTH since, I've noticed that global variables, I've defined with GlobalDim are not defined in the vbs.:mansurprised of XML_Pluging:

    Then I started to experiment and so far without success, no matter where I define global variables, in my plugin *.xml all not defined! The native commands even and DIAdem functrions does not work. If I run the script in tiara, it shows no errors, but when I use the plugin to open a file, then it gives an error. For example, MsgBox is not allowed.

    I used the plugin example for *.xml, which was published on the Web site of NOR, and I made a few changes. But overall I have it has not corrupted and I kept the same structure:

    Void ReadStore (File)

    Dim XmlFile: xmlFile = File.Info.FullPath
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    'open the file '.
    OpenXMLFile xmlFile

    End Sub

    Void OpenXMLFile (xmlFile)
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    ' Open MS - Xml Parser
    'Create the ActiveX object for the Microsoft XML parser.
    Dim XDoc: set xDoc = CreateObject ("MSXML2. DOMDocument.3.0")

    "Try to load the XML document
    If xDoc.Load (xmlFile) = False Then
    "Failed to load the document XML.
    RaiseError ' unable to load XML document!
    End If

    protected originalLocale: originalLocale = Getlocalte
    "SetLocale" en - us ".

    "The XML document loaded successfully!
    '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

    '----------------------------------------------
    "Read the header information.
    '----------------------------------------------

    Here, I have read some values of the header and then I loop on all devices present in the file!

    So basically I have two subroutines and that's all.

    SetLocale originalLocale

    End Sub

    So what I am doing wrong? Why global variables and other functions do not work. Is it because there is xml code in the script this way or it's a version problem?

    I use DIAdem 10.2. If I use global variables in other vbscripts, I use to draw curves for example I have no problem. Now I'm no *.xml code and no subroutines.

    I'd appreciate any solution that will make my *.xml plugin to work.

    Hi fscommand.

    It is expected all behavior.  Use XML, as all VBScript DataPlugins, runs in a separate VBScript host of the DIAdem VBScript host.  DIAdem VBScript host adds all global variables green and Red controls global to host Microsoft VBScript standard.  Use VBScript host has its own special abilities (file object, root object), but there is NO access to Globals green or red blanket orders in the reception of DIAdem VBScript.  Your SUDialog runs in a third host VBScript, which is separated from the other two and the other two are not capabilities (command SUDialog callback functions), but the SUDialog VBScript host and VBScript tiara share all global variables green and Red orders overall.

    Normally all blue VBScript commands are allowed in all 3 VBScripts hosts, but in the case of the DataPlugins MsgBox and InputBox functions were especially restrained because the dialogues could cause a lot of trouble with the DataFinder.  In fact, they have been allowed to 9.1 tiara which was the latest version of tiara for the DataFinder appear.

    So, why do you want to pass information between the XML use and tiara?  If you want to use to share information with DIAdem, then you should just expose every piece of information as a new property in the data portal, which can read and use the code VBScript DIAdem.  The path of the XML file is already available inside the use of XML.  What other information in the call VBScript DIAdem do you need to share with the use?

    Brad Turpin

    Tiara Product Support Engineer
    National Instruments

  • Question for the host resource

    Hello

    We have 1 blade that hosts a physical SQL Server on it. The resources of this blade are 10 total to 20 cores processors and 512 GB of RAM on it. We want to virtualize it soon, but we don't have any other guests that we could use this size. We have a few available hosts that are 8 to 16 cores CPU and 256 GB of RAM. I was hoping that I could create a cluster with 2 of these hosts and virtualize the largest physical machine in the cluster. I know that when I virtualize this machine, he will live on one of the hosts at any given time. My question is if these hosts would be 'pool' their resources so that this machine could use more than a single host would offer it. Is it possible at all or not? If not is there another work around for this problem I have?

    We are on vSphere 5.5

    Thank you

    My question is if these hosts would be 'pool' their resources so that this machine could use more than a single host would offer it. Is it possible at all or not? If not is there another work around for this problem I have?

    No, the maximum resource that can use a particular virtual machine will be limited by the maximum available on a single host computer running this VM particular resource. Workaround is to add more physical resources on the host or create the virtual computer with limited resources. Are you sure that your virtual machine uses really 20 the processor cores and 512 GB of RAM? Most of the workload running on the physical server uses all resources.

  • Good candidates for the resource pools?

    Hi, I do not currently use resource pools, but often the impression that I should watch more in him.  We have our four node 5.1 cluster 16 web servers (among others in the virtual computer) that are exactly the same and serve the same function.  I was wondering if those who would be good candidates to be added to a pool of resources, so they can take resources needed?  I tend to approve statically the RAM and CPU on these "just in case", but maybe it's stupid, if there is a better way.  Thank you.

    Also consider that if you have no compelling reason to prioritize resources for all virtual machines on one of the virtual computer, then you really don't have a reason to use the resource to all pools.  In this case, each virtual computer will be given some memory he needs on demand, DRS will balance the load between the hosts if a host is out of balance, and there will be fairness when ESXi pray return of VMs pages when there is a conflict.

    Discover the vSphere resources management Guide, you will find everything you always wanted to know about the Pools of resources and any other topic of management resources in general.

    http://pubs.VMware.com/vSphere-51/topic/com.VMware.ICbase/PDF/vSphere-ESXi-vCenter-Server-51-Resource-Management-Guide.PDF

  • Possible for the host to read the files on virtual machines?

    Is it possible for a host read files on virtual machines?

    If you can get information using vmrun command, then I think that vmware-cmd command will help to define the variables that can think inside the vmx file. As vmx file is inside ESX server only so that you can shut down the VM and edit the vmx file, then you can register to the virtual machine using the vmware-cmd command.

    Thank you

  • Only 24 of 48 drives available for the disk pool

    I have a MD3220 with a shelf of 1220 and I try to re - configure and create a pool of large disks with all 48 records.  When I go to create the disk pool, it only takes 24 14 to but shows 32 TB available disks.  I amazed the previous installation configuration because we had to take a tablet of 1220 from this table not used for another project, so now I'm back to reconfigure.  I wonder if the high-end features must be re-activated because I deleted the config.  Maybe, that's all.  When I go to md - storage.com to regenerate a key of course it doesn't have no idea what my system.  Is there something that I am missing.   Should be a two-minute task that will now take hours apparently.

    Hello Tradsd,

    Ah, that's your problem. Yes two disks must be of the same size & speed, otherwise the pool will use the specifications of the smaller disks to build the pool. Yes, you can develop the direct pool you just need to get seen by MDSM readers and as long as they are showing that no, so you can assign them to a disk pool or group of disks that you want to. Here is a link to the Administrator's guide, and if you look at page 97 he explains about the readers with the same physical size. FTP://FTP.Dell.com/manuals/common/PowerVault-md3200_Administrator%20Guide_en-us.PDF

    Please let us know if you have any other questions.

  • Windows 7 poster waiting for the host window for spot on the restart or shutdown

    Every time I have shut down or restart my computer, I get a screen that says "Waiting for task host window" I tried to clean the registry, I did a chkdsk, I ran sfc/scannow several times now and this issue will not go away.  I am running Windows 7 64-bit with 4 GB of ram. I also tried to apply the patch, but I always get "this update is not applicable to your computer."

    Hello

    Thanks for posting your question on the forum of the Microsoft community.

    I would like to know some information about the problem so that we can help you better.

    1. have you done any hardware or software changes to your computer recently?
    2. What is the brand and model of your computer?

    'The Taskhost' is a generic process, which acts as a host for the processes that run "DLLs" rather than "Exe". Starts, it checks the registry services part to build a list of the DLL-based services it needs to load, then load them.

    I suggest you try using the steps in this Microsoft support article and check if it helps.
    Reference:
    Why my computer won't turn on or off quickly?
    http://Windows.Microsoft.com/en-us/Windows/computer-wont-turn-on-off-quickly#1TC=Windows-7

    In addition, you can view the details on the performance of the computer of the Task Manager.
    Reference:
    See details about your computer's performance using Task Manager
    http://Windows.Microsoft.com/en-us/Windows7/see-details-about-your-computers-performance-using-Task-Manager

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • Whence the ACS server get the DNS Info for the IP pools?

    I'm changing the DNS servers that my VPN users are assigned from the pools of IP on the ACS server. Where IP pools Gets the DNS server information. I changed the IP addresses of the DNS on windows server and rebooted. But VPN clients are always assigned the old DNS servers.

    ACS ip pools do not grow the DNS server information

    It is either transmitted from the setup of group for the VPN concentrator or

    It is to be send to the setup of the user/group ACS > attributes Radius (VPN 3000) > [026/3076/005] primary DNS.

    I hope this helps.

    Concerning

    Rohit

  • A timeout occurred while waiting for the host controller EHCI interrupt on answer Async ahead Bell.

    Whenever I put my adapter wireless netgear n150 under heavy load (download of World of Warcraft for example), it will go down to connection and until I restart the computer the adapter usb port is useless.  I dug into the event viewer and found that a timeout occurred while waiting for the EHCI host controller interrupt on the asynchronous response advance doorbell, source usbehci.  This seems to have been a problem with windows 8 I found other threads referencing but I can say that they are pre-release and some actually work solutions have been validated.  I already assured that all drivers, firmware and chipsets are up-to-date and compatible.  ANYONE please help?

    Quick fix I found:

    -try falling back to WiFi G rather than use N
    In my case, it works... is no longer a fall. But not the same bandwidth...
  • VM Variable for the virtual computer object

    Hello

    I am connected to multiple vcenters where we have a few VM objects that have the same name (no duplicates in the vcenter even).

    and I need to run a vm - get when you are connected to the 2 vcenters and store that in a variable $vms

    It is always the case for virtual machines with the same name that if a virtual machine is running in a vcenter, it is turned off in the other vcenter. (DR)

    for virtual machines in this case, I need my variable to store the computer object virtual that is powered AND ignores the engine off... for other virtual machines, I need to power on and power off power vms to be included.

    Here's what I do, but it doesn't work

    $vms = (get - vm |) {ForEach-Object

    If ($_.name - eq $null) {}

    $_ = ($_ |  (Where-Object {$_.powerstate-eq "réceptrices"})} else {$_}

    })

    Hello, max2001-

    How about something like the following:

    ## get all VMs from all connect vCenters, and group them by name$arrAllVMs_grouped = Get-VM | Group-Object Name
    
    $arrDesiredVMs = @()## for any group of VMs where there is more than one (2, presumably), only return the PoweredOn VM in the group$arrDesiredVMs = $arrAllVMs_grouped | ?{$_.Count -gt 1} | %{$_.Group | ?{$_.PowerState -eq "PoweredOn"}}## and for the groups of VMs where there is only one VM in the group, add that VM to the DesiredVMs array$arrDesiredVMs += $arrAllVMs_grouped | ?{$_.Count -eq 1} | %{$_.Group}
    

    Who will be:

    1. get all virtual machines and group by name
    2. groups of virtual machines where there is more than one, just take those who are in the PowerState PoweredOn
    3. and, grab all the VMS are groups of count 1 (named unique VMs), without regard to their PowerState

    What to do for you?

Maybe you are looking for

  • Flash doesn't work does not correctly

    I downloaded this browser because it is supposed to support flash on my tablet. I have found that not all flash elements are working properly. There was a flash element I've been doing drag and drop a statement on a disc if I have accepted or not agr

  • Caddy drive HARD Lenovo B50-80 problem

    I bought an SSD in order to exchange it and original drive HARD laptop but when I connect the box HARD drive, bios does not recognize the original HHD in the caddy. Does anyone know why it can summer happening?

  • Replace drive HARD Y500 with SSD - 16 GB mSATA SSD disk cache is removed?

    Hello I have a Y500 IdeaPad and recently bought a 240 GB SSD 2.5 ". I want to replace the 1 to 2.5 "with the SSD 2.5 HARD drive" for best performance. Now that I have a drive high speed there is no advantage in order to maintain the 16 GB mSATA SSD d

  • Deployment of a custom device error...

    I posted this question here: http://forums.NI.com/T5/NI-VeriStand/time-out-error-while-deploying-custom-device-with-can/TD-p/3288... However, being that it is created with LV, I'm also posting it here. Does anyone have any experience with this kind o

  • Live Windows filled with very little number of emails, how to enlarge

    I need indicator of the amout of emails until I get the message that I have my quota and new emails will not be accepted. How should I do?