defining a vCACVmProperties custom property in a vCO workflow...

My apologies if this has been asked before, (tried searching and has not obtained a great success), am also new on vCAC/vCO :-)

I have no problem to get the current value of a property, for example:

var osFamily = vCACVmProperties.get ("Custom.OSFamily"),

However, after a few adaptations that happens in the workflow of vCO, I need update day/change the value stored in vCAC, wish to change the vCACVmProperties ' a new value to the property and I can't seem to find how?

Thanks in advance,

John s.

DOH! , slaps forehead, had tried to adjust, but do not put :-(...

Tags: VMware

Similar Questions

  • Need to look up a specific custom property of VCAC of VCO

    Someone has the code to search for a specific property?  What type of variable to store in it?  I want to loop through each custom property.  I can then do the search logic.

    Var properties = new Properties (); var virtualMachineId is 'e0bd1979-84bd-47ab-a069-95ec5f2a0ea6' properties.put ("VirtualMachineID", virtualMachineId);. System.log (vCACEntityManager.readModelEntity (host.id, "ManagementModelEntities.svc", "VirtualMachines", properties, null));

    Thank you

    -Stephen

    I'm having a problem to paste formatted text, but I found someones post that I could do the work.  Here's the code based on the VM ID.  I still need to put my condition statement pull only the property that I need, but I'm satisfied.

    var virtualMachineId = "e0bd1979-84bd-47ab-a069-95ec5f2a0ea6" if (host == null) {System.log ("no host has been defined") ;}} get Virutal host var virtualMachines Machines is Server.findAllForType ("vCAC:VirtualMachine");. for each (var in virtualMachines virtualMachine) {//if (virtualMachine.isManaged == true) System.log ("found Virtual Machine" + "" + virtualMachine.VirtualMachineName);} Var properties = new Properties (); Properties.put ("VirtualMachineID", virtualMachineId); var virtualMachineEntity = vCACEntityManager.readModelEntity (host.id, "ManagementModelEntities.svc", "VirtualMachines", properties, null); var virtualMachinePropertiesEntities = virtualMachineEntity.getLink (host, "VirtualMachineProperties"); for each (var virtualMachinePropertiesEntity in virtualMachinePropertiesEntities) {//if (virtualMachinePropertiesEntity.getProperty ("PropertyName") == propertyName) {System.log ('PROP: "+ virtualMachinePropertiesEntity.getProperty ("PropertyName") + ' VALUE: ' + virtualMachinePropertiesEntity.getProperty ("PropertyValue")");}} / /} / /}}

  • Custom property syntax model

    Hello

    JDev 11.1.2.4

    I defined a custom property for one of my VO attribute. The property is called specialLabel.

    For example if I want to access this property, I can write #{bindings. MyAttribute.hints.specialLabel} and it does not work as expected.

    But now I want to use it in an af:column headerText property

    The syntax generated for a column is links. MyView1.hints.MyAttribute.label. I tried links. MyView1.hints.MyAttribute.hints.specialLabel access to the custom property, but it does not work.

    What is the correct syntax?

    Thank you

    Which are different objects, in the first case of 'tips' belongs to the attribute in the second case to VO and VO.

    You can probably add MyAttribute pageDef and use #{bindings. MyAttribute.hints.specialLabel} as column label.

    Dario

  • vCAC custom property for MultiMachine Blueprint?

    Hi, I have a multi machine plan that works well. He created machines on different sites and then passes custom vCO properties to perform some customizations via PowerShell scripts.

    I can't seem to find the built-in property (I'm sure there is one) to name the MultiMachine himself well service. I have a prefix of machine here at the present time that works very well, and I'm sure I can combine one of the properties that is customized to that service name?

    Any help would be appreciated as always.

    Thanks in advance

    Steve

    It turns out that 'hostname' is a valid property for the service name in a map of several computers. The trickiest part is that this property must be different on the machines of its components, so it took a little more config.

    I installed the vCAC Custom Hostnaming expansion of Dailyhypervisor.com. It provides the property sets to create relevant profiles build. I created a profile of build to help the "'Custom.Common.ComponentMachine.HostnameString ' for the VMS in the service component multiple computers." I also created a profile to build with the help of the "'Custom.Common.AppService.HostnameString ' for multi-machine service itself." (you must have ""Custom.Common.SetCustomHostname.Execute "also on both"). You can change the configuration of these properties to what you need on any level a entry. In my case, I have a custom property call "appName" I need the Convention of naming, so I changed customhostname to {appName} {#} property for the service. He will appoint the service based on the guest user "appName" and also add a number incremented by 2 numbers to keep the unique service name. I did similar for component machines to keep them unique. In my case, a number of my properties is then passed to PowerShell vRO and then in order for me to call external scripts for more customizations, complex sounds and it took a while, but it works well!

  • Custom property 'owner '.

    It is a question of vCO vCAC hybrid.  I'm trying to find what would be the custom property for the owner.  I use the vCAC vCO workflow display entries to pull in the properties of an application of machine in vCAC pass those in an e-mail to be sent.  I got everything works fine but cannot find the custom property for the 'holder' the person who presents the virtual machine.  I tried VirtualMachine.Admin.Owner and it does not work.  Anyone know?

    I eventually found the custom property that is passed into the workflow.  It's __Legacy.Workflow.User

  • Extension of the filter custom property action

    Hello

    I want an extension of the action of the filter so that the action will be available for virtual computers that meet certain conditions.

    Since the condition is not related to an existing property of the VM, I thought, defines a new property and use a PropertyProviderAdapter to recover.

    I tested it with the property of the sample: sample "ElevationData" of the sdk samples - just moved to host to the virtual computer.

    The custom property is set correctly and I get the correct value when you use a PropertyRequest, but my extension appears for any virtual computer independently.

    It's the metadata tag that I used for the extension of the actions:

    < metadata >

    <!-this Filters-> actions to be visible only on virtual machines

    < objectType > VirtualMachine < / Type_objet >

    < propertyConditions >

    < com.vmware.data.query.PropertyConstraint >

    < propertyName > samples: elevationData < / propertyName >

    equal to < comparator > < / comparator >

    < comparableValue >

    < string > bbb < / String >

    < / comparableValue >

    < /com.vmware.data.query.PropertyConstraint >

    < / propertyConditions >

    < / metadata >

    of course, the adapter returns a numeric value for the property of elevation data, not 'bbb '.

    Oh, I changed the sample to return a numeric (as a string) value instead of an ElevationData, to simplify the condition.

    No idea what I am doing wrong?

    Thank you

    Eitan

    The syntax of propertyConditions requires a CompositeConstraint / nestedConstraints, even if there is only a single constraint property.

               

    runtime.connectionState

    IS EQUAL TO

    connected

    AND

  • AMQP cannot set the custom property, reason: null

    While trying to run the workflow 'Configure vCLoud Director AMQP subscription', I reciweve the error ' Unable to set custom property, reason: null, ' when the workflow hits the script block "Set Custom Prop. My VCO logs display the following text:

    ConvertToResult() WARN [SDKFinder]-> Finder 'AMQP:Subscription': unexpected error ' ch.dunes.model.sdk.SDKFinderException: convertToResult()-> Finder 'AMQP:Subscription' cannot call the expression "getId()' object Finder ' subscription [subscriptionInfo = null, factory class = com.vmware.o11n.plugin.amqp.AmqpPluginFactory @1345820279369;] [Fri Aug 24 08:57:59 MDT 2012]', reason ' MethodFailedException: 'getId' method is not intended Subscription [subscriptionInfo = null, factory class = com.vmware.o11n.plugin.amqp.AmqpPluginFactory @1345820279369;] [Fri Aug 24 08:57:59 MDT 2012] "
    ch.dunes.model.sdk.SDKFinderException: convertToResult()-> Finder 'AMQP:Subscription' cannot call the expression "getId()' object Finder ' subscription [subscriptionInfo = null, factory class = com.vmware.o11n.plugin.amqp.AmqpPluginFactory @1345820279369;] [Fri Aug 24 08:57:59 MDT 2012]', reason ' MethodFailedException: 'getId' method is not intended Subscription [subscriptionInfo = null, factory class = com.vmware.o11n.plugin.amqp.AmqpPluginFactory @1345820279369;] "[Fri Aug 24 08:57:59 MDT 2012].

    and

    ERROR [CustomProperty #ejbSelectGeneric] could not be found

    java.sql.SQLException: Argument data type text is invalid for argument 1 of the lower function.

    If anyone has seen this before?

    Ah, found it: http://kb.vmware.com/kb/2020218

  • Define and raise custom events

    I am designing and building a library of reusable Cast that can be included in a variety of other Director projects. This library will provide an interface to joint Code readers barcode that appear as a keyboard on the computer and also provides interfaces for interacting with external software.

    My problem is finding how to set and trigger custom of this Cast library events. Currently I set him up in a Global Script within the library. However, all it seems I can do the script is call a predefined function that implemented the film container. He can't really have several event listeners.

    There are two events that I am trying to define and raise:
    1. the notification when a label barcode is scanned
    2. the notification when a server database search ends

    The typical application flow is that a film's Director parent will sit idle waiting for a TagScan event mode is triggered. After the TagScan event, a request is sent to a central server to retrieve the associated information in the barcode that has been analyzed. Because we don't want UI suspended pending data to return, there was an another event notification when data are available for use.

    So my question is really in two parts:
    1. is my approach to the use of a global script in an external library to Cast the best way to put in place a reusable module?
    2. is there a way to define and trigger custom since a global script events?

    Thanks in advance,
    Shawn.

    1. the best way to create reusable code is to use behaviors and parent scripts. Some 98% of your code should be one of these two types - not movie scripts.

    2. by "global script" I assume you mean a set of functions in a movie script. If so, then it is not a good approach.

    Here is the skeleton of how I would approach. A system of events at its basic level is nothing more reminders with an object that queries the status set up other objects. A reminder is when an object passes a reference on behalf of one of its names of Manager to another object. This allows the second object to make a call to the first object. When he made that call, belongs to the second object.

    What you need is an object that monitors stocks asynchronous data recovery and drive barcode from the server. Create a Parent script with the following code.

    -Barcode monitor

    property pEvents - list of events and the saved objects that is called when an event occurs.
    property pTimeOb - timeout object used for the periodic polling/verification of the status of various asynchronous actions.

    the new me
    pEvents = [#BarcodeScanned: [], #DataReady: []]
    pTimeOb = timeout () .new ("BarcodeMonitor", 200, #CheckAsyncStatus, me)-means "200" we check five times per second.
    return to me
    new end

    on addEventListener, CallbackObject, CallbackHandler, event - script instance, symbol, symbol
    -can add validation of argument here.

    CallBackInfo = [#CallbackObject:CallbackObject, #CallbackHandler:CallbackHandler]
    pEvents [Event] .add (CallBackInfo)
    end addEventListener

    on me, removeEventListener CallbackObject, CallbackHandler, event - script instance, symbol, symbol
    -code that walks the list and deletes all corresponding combinations object and handler for the specified event.
    end removeEventListener

    on CheckAsyncStatus me, Timeob
    -check the status of various asynchronous barcode things happening.

    -Callback sample
    -At this point, some data is ready and has been recovered
    Data = "everything data".
    EventCallBacks = pEvents.DataReady
    Repeat with CallBackInfo in EventCallBacks
    call (CallBackInfo.CallbackHandler, CallBackInfo.CallbackObject, data)
    end repeat
    end CheckAsyncStatus
    ----------------------------------------------------------------------

    The above code sets up a mechanism for registering callbacks with the subject "bar code monitor" and uses a timeout object to periodically check the State of the asynchronous actions.

    Now any object who wishes to be notified of an event fits simply by using the addEventListener method. Or let's say that we want our object of global struggle to listen to the returned data. The next Parent script would be created things.

    -control

    global gBarCodeMonitor

    the new me
    gBarCodeMonitor.addEventListener (I, #processData, #DataReady)
    return to me
    new end

    processData me, given
    -do something with the data
    end processData
    -------------------------------------------------------------------------

    You then create your objects in preparemovie.

    global gBarCodeMonitor
    global gControl

    on prepareMovie
    -installation Global Singletons

    If gBarCodeMonitor.voidP then
    gBarCodeMonitor = script ("Monitor Bar Code") .new)
    end if

    If gControl.voidP then
    gControl = script("Control").new)
    end if
    end prepareMovie
    ---------------------------------------------------------------------

    With this configuration, you can have several objects to register for an event and a unique object with several events.

    If you are not familiar with the scripts of Parent. So take the time to learn. The programming of your life will become much easier the day you're going to OOP.

    I have not test the code, so there may be a typo or something. But the basic idea is there.

  • Create / update the property on entity - vCO using virtualMachine

    I am updating a custom property of a VM vCAC put into service using the Out-of-the-Box workflow object that is included in the Package Plugin extensibility vCAC. Manually by selecting a host vCAC in common settings window is not a problem. What I can't do is select / input anything in the virtualMachineEntity field. Nothing appears in the window of /popup switchand no data is displayed regardless of what I can get into the filter box vCAC:Entity. If this field automatically filled with a type of data or y at - it a specific string, I need to go to target my VM?

    I use the correct workflow? I would like to be able to replace the propertyValue to a custom property for a specific or existing VM.

    Ron thx.

    I think you will find that many of these workflows have a small InkWell to work if you want to run interactively.  You can copy this and instead to use the entity for the use of inputs vCACVm:VirtualMachine then you can use the getEntity() to set this value.

    Here's an excerpt from one of our actions affecting the cpu and ram for example.  We have just in the virtual machine.  I wrote another action to pick up the host, and as you can see, you can get the entity with the method of the scriptable object.

    var host is System.getModule ("com.qualcomm.basic"). QCgetvCACHostForvCACVm (vCACVm);

    var virtualMachineEntity = vCACVm.getEntity ();

    var propertyIsHidden = false;

    var propertyIsRuntime = false;

    var propertyIsEncrypted = false;

    var doNotUpdate = false;

    System.getModule("com.vmware.library.vcac").addUpdatePropertyFromVirtualMachineEntity(host,virtualMachineEntity,"VirtualMachine.CPU.Count",resize[0].toString(),propertyIsHidden,propertyIsRuntime,propertyIsEncrypted,doNotUpdate);

    System.getModule("com.vmware.library.vcac").addUpdatePropertyFromVirtualMachineEntity(host,virtualMachineEntity,"VirtualMachine.Memory.Size",resize[1].toString(),propertyIsHidden,propertyIsRuntime,propertyIsEncrypted,doNotUpdate);

  • What is the custom property that determine the Type of disc Provisoning?

    Hello

    I wonder what would be the custom property that determines the type of disk configuration during the construction of the virtual machine. I had noticed, VMS that are cloned with VM model with thin provisoning get the drive put in service end however if one adds the additional drive for the virtual machine of the vCAC, they get set up as 'Thick lazy disposition to zero' which I don't want but I wanted this type of control.

    I'm sure there should be value for the same property portfolio, but I am not able to find, someone used or?

    BR,

    MG

    VirtualMachine.Admin.ThinProvision = true / false

  • To access the custom in another custom property properties

    How can I access the value I create in a custom property in a custom property following - for example:

    $report = get-VM-name acme *-Server $vcenter |

    Select the name,

    ProvisionedSpaceGB,

    @{N = "vCenterServer"; E={$_. "Uid.Split(":") [0]." {{Split("@") [1]}},

    @{n = 'Cluster'; E = {}

    $rp = get-view $_. ExtensionData.ResourcePool

    $parent = get-view the $rp. Parent

    While ($parent - isnot [VMware.Vim.ClusterComputeResource]) {}

    $parent is get-view $parent. Parent

    }

    $parent. Name

    }} | Tri-objet vCenterServer |

    Group-object - property {$_.} Cluster} | Select @{n = "ClusterName"; E={$_. Name}},

    @{N = "vCenterServer"; E = {$vcenter. Name}},

    @{N = "VMCount"; E = {(get-vm-emplacement $_.)} {{Name) .count}},

    @{N = "AcmeVMCount"; E={$_. Group | Measure-object | {{Select - ExpandProperty County}},

    @{N = "VMsPerAcmeVM"; E = {(get-vm-emplacement $_.)} Name) .count / ($_.) Group | Measure-object | (Select-ExpandProperty comte)}},

    In the VMsPerAcmeVM, I would simply divide the value that I created in VMCount by the value that I created in AcmeVMCount.  How refers to the value of 'VMCount' in a custom property next so I can't calculate more to for use in a division operation?

    Hello, TheVMinator-

    Well, you could do things a little differently in order to have available for your output values, you ask.  So, something like:

    ## get all clusters in this vCenterGet-Cluster -Server $vcenter | %{    $oThisCluster = $_    ## get all VMs in this cluster    $arrVMsThisCluster = Get-VM -Location $oThisCluster    ## get the VM count    $intVmCount = ($arrVMsThisCluster | Measure-Object).Count    ## get the count of VMs with name like "acme*"    $intAcmeVmCount = ($arrVMsThisCluster | ?{$_.Name -like "acme*"} | Measure-Object).Count    New-Object -TypeName PSObject -Property @{        ClusterName = $oThisCluster.Name        vCenterServer = $vcenter.Name        VMCount = $intVmCount        AcmeVMCount = $intAcmeVmCount        VMsPerAcmeVM = $intVmCount / $intAcmeVmCount    } ## end new-object} ## end foreach-object
    

    It's also a little easier: he travels each cluster and gets the news, rather than deduce the location of the cluster by finding relatives (even if it's also viable).  Anyway, how does do for you?

  • Delete a custom property

    Hello, I was looking for a way to remove a custom property, like a menu operation that calls a workflow to "remove" a component and associated custom properties.  I looked in the CDK activity but it looks like only get and set for the custom properties are exposed.

    Hello

    I think you could use 'DeleteObject' of Dynamicops.Repository activity.

    for example.

    Use a variable of type VirtualMachineProperty for example vmprop

    Assign vmprop = mgmtCtx.VirtualMachineProperties.Where (Function (vmp) vmp. MachineId = VirtualMachine.VirtualMachineName). Where (Function (vmp) vmp. PropertyName = your 'ownership'). FirstOrDefault()

    DeleteObject (mgmtctx, vmprop)

    SaveChanges (mgmtctx)

    Kind regards

    John

  • BCC works not when using custom property accessors

    Hello

    In the integration of the ATG-short, I try to use "custom property accessors" in my "product-sku-output - config.xml". I'm including the sub modules in the classpath of build.xml.

    < dir = "${dynamo.home}" / fileset... / DAF/Research/Base/lib ' > "

    < name = "" * / *.jar "/ >"

    < / fileset >

    < dir = "${dynamo.home}" / fileset... / DAF/Search/Index/lib ' > "

    < name = "" * / *.jar "/ >"

    < / fileset >

    When I Isaiah to compile the project, these modules have been included in my atg_bootstrap.war of the file .ear as '/atg_bootstrap.war/WEB-INF/ATG-INF/DAF/Search/Index/'. However, when I start the server, in the instance server log merchandising get the below error and for this reason the server has been stopped and cannot access the BCC.

    I try to use the custom property accessor class - PropertyAccessorImpl

    2013-07-03 11:04:46, 418 INFO [STDOUT] Configuration directory (principal) or the /var/jboss/versions/jboss-eap-5.1/jboss-as/server/merch/deploy/ulta.ear/atg_bootstrap.war/WEB-INF/ATG-INF/DAF/Search/Index/configlayers/stagingandprod/config.jar file does not exist or is not readable

    2013-07-03 11:04:46, 903 ERROR [STDERR] java.util.zip.ZipException (principal): problem opening /var/jboss/versions/jboss-eap-5.1/jboss-as/server/merch/deploy/ulta.ear/atg_bootstrap.war/WEB-INF/ATG-INF/DAF/Search/Index/configlayers/stagingandprod/config.jar zip file: error in opening zip file

    2013-07-03 11:04:46, 904 ERROR [STDERR] (principal) at atg.vfs.zip.ZipFileSystem. < init > (ZipFileSystem.java:124)

    2013-07-03 11:04:46, 904 ERROR [STDERR] (principal) at atg.vfs.zip.ZipFileSystem. < init > (ZipFileSystem.java:97)

    2013-07-03 11:04:46, 904 ERROR [STDERR] (principal) at atg.vfs.zip.ZipFileSystem. < init > (ZipFileSystem.java:142)

    2013-07-03 11:04:46, 904 ERROR [STDERR] (principal) at atg.nucleus.ConfigurationFileSystems. < init > (ConfigurationFileSystems.java:124)

    2013-07-03 11:04:46, 904 ERROR [STDERR] (principal) at atg.nucleus.ConfigurationFileSystems. < init > (ConfigurationFileSystems.java:244)

    2013-07-03 11:04:46, 905 ERROR [STDERR] (principal) at atg.nucleus.Nucleus.createConfigFileSystems(Nucleus.java:1827)

    2013-07-03 11:04:46, 905 ERROR [STDERR] (principal) at atg.nucleus.Nucleus. < init > (Nucleus.java:842)

    2013-07-03 11:04:46, 905 ERROR [STDERR] (principal) at atg.nucleus.Nucleus. < init > (Nucleus.java:766)

    2013-07-03 11:04:46, 905 ERROR [STDERR] (principal) at atg.nucleus.Nucleus. < init > (Nucleus.java:747)

    Please help me to solve this error.

    Thank you

    There is typo in the ATG installation that creates this problem.

    For example, change the file C:\\DAF\Search\Index\META-INF\MANIFEST. MF

    ATG-StagingConfig-path: configlayers/stagingandprod/config.jar

    Peace

    Shaik

  • Can you do a vector shape to a path without having to define a new custom form?

    I want to do a vector shape to a path. Is there a way to circumvent the duty to define a new custom form? I just want to add quickly the vector shape in a new layer, but I don't need defined as it is going to be used just once.

    Of course, if you select the path to make it active, just do a color fill adjustment layer.

    There are other ways if this isn't what you want.

    In photoshop cs6/cc with the active path and one of the tools of form or of the selected pen tool, press the button of form

    in the options toolbar.

  • Create and save custom property panels

    Is there anyone who has worked on "Custom property Panel" in Webcenter? However, I tried something using the link below, but it doesn't seem to work.

    http://docs.Oracle.com/CD/E16340_01/WebCenter.1111/e10148/jpsdg_page_editor_adv.htm#CHDCJGEC

    Can anyone suggest me possible approaches step by step?

    Thanks in advance.

    Hello!.

    You can download a sample of here custom panels: http://danielmerchanoracle.blogspot.com/2011/11/extendiendo-oracle-composer.html

    PD: It is in Spanish.

    Kind regards!.

Maybe you are looking for