vRO to vRA script steps

I posted this in the forum of the vRA, but he had no answers, it may be better here anyway.

I am trying to create relationships of property for vRA using script steps.

Hi all

I would be very happy to help you please. I created a vRO action, which should give a user an option of what storage policy to apply to a virtual machine at the request, depending on case is to be a site double vm or a single VM site.

I created a group of properties with 2 defiinitions of property

Definition 1-
AvailabilitySelector
Drop-down box
Predefined values - unique Site / Multi Site

Definition 2-
VirtualMachine.Disk0.StorageReservationPolicy
Label - storage strategy
-String data type
Show tips - drop-down list
External values
Done at my point of Action vRO

vRO point action
High Avalability in the selection of storage
If (AvailabilitySelector)
{
{Switch (AvailabilitySelector)}
case "Double Site":
return ['3PAR CF"]
break;
case 'Monosite ':
return ['3PAR NL"]
break;
};
}
else {}
return ['availability please select'];
};

Now when I go to ask for catalog point I get an error:

Failed to refresh the server system exception request form.

I get this error when loading the page of the application, I can see the drop down menu to collector of site, but the drop down profile storage never fills.

Here, any help would be greatly appreciated, I'm pretty stuck for the moment.

Thank you

Dean

Hello Dean,

What is the return type for the action? String? If so, your problem is that you return a single element of an array of strings, because you attached your hooks channels - which is an array in JS in addition, your vRA provides pre defined "Single Site" and "Multi Site" values, but your Action vRO is testing for the "Monosite" and "double".

It seems that you are dealing with strings to return the incorrect object type can cause the behavior you're seeing. So, update your action to:

// High Avalability to storage selection
if(AvailabilitySelector)
{
switch(AvailabilitySelector) {
  case "Multi Site":
  return "3PAR FC"
  break;
  case "Single Site":
  return "3PAR NL"
  break;
    };
  }
else {
return "Please Select availability";
};

Tags: VMware

Similar Questions

  • Game for the ICM script step

    Hi all

    I'm new to company of the IPCC and I'm doing some scripts in ICM. I'm doing a step 'play' function in ICM sript. I just haven't found how correctly everything good (step by step, preference in ICM must correspond to what in IVR). For now I'm stuck with a bunch of 'quick read' IVR scripts and it's surely is not the way. :)

    Pointers where to look?

    Thank you! Sorry for the newbie question.

    Ervins

    You can pass the quick name in a variable of a generic IVR script that takes the variable playing the guest. I did it in the field, and I use this method to test the script and listen to the guests. The only downside is you must use a node SET in ICM to set the prompt name and then an EXTERNALLY RUN SCRIPT however acquire you the ability to actually play any of what IVR prompt and have only a manuscript of IVR to implement this. You can also implement a design to pass multiple variables if you had an IVR script that could interpret several variables and playing several guests.

  • 7 - installation wizard - vRA Validation step is suspended forever

    I'm turning a CEP of vRA 7. I have deployed the device, installation of the host Windows IaaS in accordance with documented requirements. I do a minimal installation, the Installation Wizard without no problem went through all the way to the stage of 'Validation '. Once here, I click on validate and pops up the message "Validation is ongoing." However, nothing else happens. It remains at 0%, there is virtually no CPU activity or network on the device or the host IaaS. I let it sit for more than 10 hours, nothing. I tried to restart the device and the host, returned to the Validation step (progress has been made, fortunately) but still have the same problem. I have never a timeout or error messages, just, it is there and does nothing. I can click on the "previous" button, navigate backward in the wizard as usual, even change values or re - generate certificates, etc. I can't spent (or even in) Validation... Anyone else seen elsewhere, or have any suggestions? I think I might just to redeploy the device, but I don't feel confident that will make a difference at this point.

    I found myself redeploy the unit without success. I tried and then run the Installation Wizard directly from the host Windows IaaS, which, for some reason, has worked. My device and host IaaS are in the same subnet with no firewall between them (Windows Firewall disabled on the host computer.) I had even not looked through the logs on the IaaS host to see if there was security policies preventing the execution tasks, but could find nothing to even indicate that everything had been tried. Don't dig into the unit logs, so I don't know what I have found it. I don't know why it did not work from another computer virtual on the same subnet, running the same operating system and browser, etc.. I would have probably tried run from another machine over early the Wizard don't seemed to work perfectly... In any case, all is well now.

  • convert script steps

    Hello guys,.

    Could be a quick answer for you, or maybe not.

    I've never written what in my life (except a few macros in Excel files) and I'm so green at this.

    Simple question - I have a few 'actions' in photoshop, and I wish they were converted into scripts as it could come in handy for the future that I will work with some scripting.

    So, how to transform this ATN file in a script?

    The reason behind this is that I already have an action that has 2 scripts in it and in the future I want to add more, so I'll need someone to work on the script itself, not the actions.

    It is perhaps also counterproductive so give me your opinion,.

    Thank you.

    OLAF

    Here are the direct links:

    http://PS-scripts.CVS.sourceforge.NET/ViewVC/PS-scripts/Xtools/apps/ActionToJavascript.jsx

    http://PS-scripts.CVS.sourceforge.NET/ViewVC/PS-scripts/Xtools/apps/ActionFileToJavascript .jsx

  • script/steps to corrupt data blocks

    Please give me some script/not to corrupt data blocks (not the data files).
    I need to check for the recovery test.

    Thank you

    http://www.oracleflash.com/9/How-to-perform-block-media-recovery-using-RMAN.html

  • the menu script steps

    Normal actions in photoshop do not support the menu selection, I apppreciate as as easy as possible to have 2 windows for the same image tiled 2 place vertically and a disabling these zooms to 100% ii neee

    What I need to do is:

    window-> organize-> new window for

    window - > organize - > 2, vertically upward
    off the wiindows activate and zoom to 100%

    How is that possible?

    can it be done automatically when I open a pic of LR?

    Normal actions in photoshop do not support the menu choices

    Have you tried 'Insert Menu Item?

  • VC:virtualmachine and vCAC:VirtualMachine not transmitted from vRA at vRO

    Hello

    I have a Setup with the more recent vRA and more recent vRO external device. The plans use the CloneWorkflow to clone templates in vRA. There is also a workflow assigned (not not using Event Broker yet, still ExternalWFStubs) that is executed when a machine is supplied. So far, this perferctly worked. Now the underlying vCenter was Version 6 upgrade. Cloning of the machines still works perfectly and also the vRO workflow runs, but there is a problem: the attributes VC:VirtualMachine and vCAC:VirtualMachine are not transmitted to vRA to the vRO triggered workflow if it fails (they are configured as the input of the main workflow parameters). Anyone have any idea what could be the reason and how can I fix it? I'm a little at a loss because I do not see any errors in the logs next to these parameters are not passed on more and I can't really identify why the update of the vCenter influence the parameters vRA passes on vRO. VRA Plugin is installed on the external vRO and is the most recent version.

    Best regards

    JensVM

    For more information, vRA passes a string containing the name of the VM at vRO vCAC. vRO then runs runner/worker plugin vRA workflows that get the vCAC:VirtualMachine and the objects of their respective plugins VC:VirtualMachine. You could look at workflows of rider and see if you get the objects there or if they get lost somewhere else in the process.

  • vRO: try to find a way to have a dropdown list of the files of your choice

    Hi Gents Intelli-

    I have a workflow that I am trying to create and publish in vCAC/vRA that does the following:

    (1) item of catalogue request to "Import a file" to launch

    (2) form of application will have a search field for the virtual machine to which the file will be copied (i.e. VC:VirtualMachine) - I've got this under control

    (3) in addition, the application form will be a drop down menu of all the files in a certain directory on the server of vCO (i.e./nfs/repo/folder), where the user will select a single file

    (4) for the bid, it will copy the file from the server of vCO to the guest VM (I can use the built in "workflow" for that)

    So, my current limitation of knowledge is how to create a workflow that costs 3 above?  For more information, there is, for example, 20 different files that are located in the folder/nfs/repo.  I want the user to be able to see them all in a mode where they can select a menu drop-down.

    As always, I appreciate any help.

    Karl

    Script steps can be created in the tree of actions.

    First, open the 'Design' perspective with the help of the drop-down list in the vRO Java Client, then click on the second tab on the left. See the attached screenshots.

  • vRO client refresh?

    I have a vRO instance that is part of the apparatus of vRA 7.0.1.   the update does not work in the customer to vRO?  Known issue?

    Capture.PNG

    Seems to be a bug in 7.0 embedded vRO and vRA 7.  I downloaded vRA 7.0.1 device, hung in vCenter, refreshed workflow.

  • How to troubleshoot incidents of endpoint vRO data collection embedded in HRV 7

    Hello

    We have problems with the collection of data for the endpoint vRO in vra 7. Data collection fails. We believe this is related to the worker DEM, but we do not know how to solve this. So far, the only mistake we have is when running on endpoint vRO data collection:

    In the console of vRA > infrastructure > monitoring, logs:

    Endpoint data collection has no endpoint internal Instance [Workflow Instance Id = 31009] vRO vRealize Orchestrator has returned an error: internal server error.

    In C:\Program Files (x 86) execution of the \VMware\vCAC\Distributed Manager\DEM - Core2\Logs\DEM-Core2_Errors

    [UTC:2016 - 05-20 21:24:05 local: 2016-05-20 14:24:05] "[Error]: Thread-Id ="11"- context =" "token =" "<? XML version = "1.0" encoding = "utf-16"? >

    < Boolean > false < / Boolean >

    Endpoint data collection has no endpoint internal Instance [Workflow Instance Id = 31009] vRO

    System.Net.WebException: vRealize Orchestrator has returned an error: internal server error.

    at DynamicOps.VcoModel.Common.VcoClient.CheckResponseStatus (IRestResponse answer)

    at DynamicOps.VcoModel.Common.VcoClient.DecodeJsonResponse (IRestResponse answer)

    to DynamicOps.VcoModel.Common.VcoVersionUtils.GetPluginsInformation (customer VcoClient)

    to DynamicOps.VcoModel.Activities.StoreVcoPluginsInformation.Execute (CodeActivityContext context)

    to System.Activities.CodeActivity.InternalExecute (ActivityInstance, executor, BookmarkManager bookmarkManager ActivityExecutor instance)

    to System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody (ActivityExecutor executor, BookmarkManager bookmarkManager, location resultLocation)

    In addition, when you run the data collection on an inventory of POSSIBLE computing resources, the following error occurs:

    [UTC:2016 - 05-20 22:54:53 local: 2016-05-20 15:54:53] "[Error]: Thread-Id ="12"- context =" "token =" "<? XML version = "1.0" encoding = "utf-16"? >

    < Boolean > false < / Boolean >

    Workflow "vSphereVCNSInventory" failed with the following exception:

    DynamicOps.VcoModel.Common.VcoException: Point endpoint could not be found. There is no point vRealize Orchestrator endpoints configured with the __VMware.VCenterOrchestrator.Plugin.NSX.Build property.

    to DynamicOps.VcoModel.Common.EndpointSelector.ctor (context, ManagementModelEntities, String selectionFilter)

    at DynamicOps.VCNSModel.Activities.VcoNsxHelper.VcoNsxConnectionInfo.GetVcoEndpoint (ManagementModelEntities managementDataContext, Guid virtualMachineId)

    at DynamicOps.VCNSModel.Activities.VcoNsxHelper.VcoNsxConnectionInfo.GetConnection (ManagementModelEntities managementDataContext, point endpoint VCNSEndpoint, Guid virtualMachineId)

    at DynamicOps.VCNSModel.Workflows.vSphereVCNSInventory_CompiledExpressionRoot.vSphereVCNSInventory_CompiledExpressionRoot_TypedDataContext3_ForReadOnly.__Expr21Get)

    at DynamicOps.VCNSModel.Workflows.vSphereVCNSInventory_CompiledExpressionRoot.InvokeExpression (Int32 expressionId, IList 1 locations, ActivityContext activityContext)

    to Microsoft.CSharp.Activities.CSharpValue'1.Execute (CodeActivityContext context)

    to System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContext [T] (ActivityInstance parentInstance, activity 1 expressionActivity)

    to System.Activities.InArgument'1.TryPopulateValue (LocationEnvironment targetEnvironment ActivityInstance activityInstance ActivityExecutor executor)

    to System.Activities.ActivityInstance.InternalTryPopulateArgumentValueOrScheduleExpression (RuntimeArgument argument, Int32 nextArgumentIndex, ActivityExecutor executor, IDictionary 2 argumentValueOverrides, place resultLocation, Boolean isDynamicUpdate)

    to System.Activities.ActivityInstance.ResolveArguments (ActivityExecutor executor, IDictionary 2 argumentValueOverrides, place resultLocation, Int32 startIndex)

    to System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody (ActivityExecutor executor, BookmarkManager bookmarkManager, location resultLocation)

    We use a distributed deployment of vRA 7 and have 2 devices with the built-in vro. Both devices show the service as running vco-server, and I can connect to each instance of vco using the orchestrator client. Also the asax component can load workflows vro. I am able to navigate to the inventory.

    Also, we noticed this problem after one of our servers of iaas is dead on us. We had to rebuild a starting from scratch and shiv inside. It was the Manager node, then this is the EDO, DEM and Manager of services that run on it. Not sure if this is related, it's just that we noticed after. It could occurred earlier also...

    Any suggestions on where to look to refine this would be greatly appreciated.

    Thank you

    Darrenoid

    Thank you for your response.

    I finally understood that this morning. I searched in the /var/log/vco/app-server/server.log on the vra devices and found errors like this:

    2016-05-21 08:31:33.345 - 0700 [http-nio-127.0.0.1-8280-exec-10] ERROR {} [[restServlet]] Servlet.service () for servlet [restServlet] in the context of path [/vco] has thrown the exception [processing request failed, the nested exception is java.lang.NullPointerException] origin

    java.lang.NullPointerException

    at com.vmware.o11n.web.util.CommonUtil.getServerConfiguration(CommonUtil.java:44)

    at com.vmware.o11n.web.plugins.PluginController.listAllPlugins(PluginController.java:116)

    at sun.reflect.GeneratedMethodAccessor347.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:497)

    at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)

    at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)

    at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)

    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:806)

    at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:729)

    at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)

    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)

    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)

    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)

    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:861)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:622)

    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:316)

    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)

    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:330)

    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:330)

    at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:330)

    at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:169)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:330)

    at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal (BasicAuthenticationFilter.java:158)

    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:330)

    at com.vmware.o11n.web.auth.http.TokenAuthenticationFilter.doFilter(TokenAuthenticationFilter.java:97)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:330)

    at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64)

    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:330)

    at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53)

    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:330)

    at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:330)

    at org.springframework.security.web.access.channel.ChannelProcessingFilter.doFilter(ChannelProcessingFilter.java:152)

    to org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter (FilterChainProxy.java:330)

    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)

    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)

    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)

    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)

    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)

    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at com.vmware.o11n.json.DefaultJsonVersionHeaderFilter.doFilter(DefaultJsonVersionHeaderFilter.java:95)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at com.vmware.o11n.web.cluster.RestActiveNodeFilter.doFilter(RestActiveNodeFilter.java:50)

    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)

    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)

    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:614)

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)

    at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:676)

    at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:518)

    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)

    to org.apache.coyote.AbstractProtocol$ AbstractConnectionHandler.process (AbstractProtocol.java:673)

    to org.apache.tomcat.util.net.NioEndpoint$ SocketProcessor.doRun (NioEndpoint.java:1526)

    to org.apache.tomcat.util.net.NioEndpoint$ SocketProcessor.run (NioEndpoint.java:1482)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

    to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:617)

    to org.apache.tomcat.util.threads.TaskThread$ WrappingRunnable.run (TaskThread.java:61)

    at java.lang.Thread.run(Thread.java:745)

    I searched google for the first line in the stack trace 'com.vmware.o11n.web.util.CommonUtil.getServerConfiguration' and came across this recent article from VMWare:

    https://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=2145044

    That fixed it for me, now the collection of data on the endpoint vro works.

    Kind regards

    Darrenoid

  • Question automate several tenants in vRO

    Hello

    I am struggling with managing several tenants with vRO and vRA.

    Currently there are a couple of tenants that are attached to a device unique vRO, but am looking to automate fully (fabric/Business groups, reservations, profiles of build, plans, etc..)

    VRO, we have only the default tenant set up (under vCAC Infrastructure Administration) because I can't add others. The tenant by default, I can't handle some of the above.

    It is advisable to deploy an instance of separate vRO to each tenant?

    Running vRO version 6.0.1 and vRA version 6.2.1

    Thanks in advance.

    To add a tenant in vRO, I run the workflow Library/vCloud Automation Center/Configuration/add a host vCAC.  This workflow ask you the name of the tenant.  So for me in the inventory, I have several entries under vCloud Automation Center.  Sometimes I even different instances for the same tenant, just using a different connection.

  • How to run specific scripts of site for a virtual machine?

    I need to run a script that will update the virtual machine IP to DNS server.  I intend to use the dns_update.cmd.

    1. can I create stimulus steps that are specific to the site?

    2. don't VMware SRM SDK provides what API s to determine the name of the Site?

    TIA,

    Sudhir

    > 1. Can I create stimulus steps that are specific to the site?

    SRM provides environment variables to scripts step command that will allow you to do. See variable environment for the ordering steps in the administration guide for more information on variables.

    The key variable is the variable 'VMware_VC_Host '. You can use this variable in your script to perform different actions depending on which VC you get to.

    > 2. VMware SRM SDK provides APIs that s to determine the name of the Site?

    Yes, I'm not sure why you would do that? Typically, you call the SRM API to a stage of order recovery plan. You can share what you intend to use these methods for?

    Discover the methods "GetSiteName" and "GetPairedSite" in https://www.vmware.com/support/developer/srm-api/srm_58_api.pdf

  • Problem with a script to remove graphics

    Hello

    I tried to build a javascript to remove all images whose extension is not '. '. EPS' (with 'EPS' really in case of high, as it is for Mathtype equations in Word to import).

    But it does not work and I do not understand why.

    Here's the script:

    The script of the intention to remove all the images including the extension is not '. '. EPS.

    myDoc var = app.activeDocument;

    myGraphics = myDoc.allGraphics var

    Delete the chart if graphic extension is different from ".» EPS.

    for (variety p = 0; p < myGraphics.length; p ++) {}

    var myImage = myGraphics [p]

    If (CheckExtEps (myImage)! = 0) {}

    myImage.remove)

    }

    }

    Compare a graphic extension with ".". EPS' and return myExtValue = 0 if it matches exactly

    function CheckExtEps (myImage) {}

    var myString = myImage.name

    myExt = myString.substr (myString.lastIndexOf ("."))

    myExtValue = myExt.localeCompare(".) EPS")

    return myExtValue

    }

    When I run this script, ALL graphics are removed, ".". EPS' included.

    I '. " EPS graphics"in my document and I expect is not to be removed.

    So there is something wrong somewhere, but I don't know what to change.

    Any ideas?

    Moreover, I have a more generic question as a beginner:

    I work with ExtendScript Toolkit. How can I check my script step by step?

    For example, how can I display my values of variables such as 'myString', 'myExt', 'myExtValue' at each stage?

    In fact, this script is a step for a great script, I intend to build to cope with Mathtype equations in Word import.

    After beeing graphic EPS-only is not deleted, I want to recreate a link to all the other equation prewiews of eps in a folder selected, in chronological order.

    But it is a big piece of script to swallow for me, so I work slowly, step by step.

    TIA

    Best regards

    Nicolas

    It is not myString which has an undefined, but rather myImage.name. Try myImage.itemLink.name instead. giving the * file name: http://jongware.mit.edu/idcsjs5.5/pc_Image.html#itemLink

  • External JAR and run the Script

    It is a way to use external jar (Drools) in run script step? Alternatives?

    Thank you

    You can use external jar files in LiveCycle along with other java web applications.

    1. place your JAR file in the application's lib directory.

    for example c:\jboss\server\all\lib

    2 import the package within the ExecuteScript activity and start using classes.

    Nith

  • Invoke the BS of BPA Script and tries to display the result

    Today I worked on some scripts of BPA in combination with commercial Services. The idea is simple. I call a Business Service that returns a list of Bill Segment details for a given ID of Bill I want hollow loop list in my script BPA to count the number of Segments of Bill and calculate an amount. The result that I want to display. To be clear, this isn't a requirement of real business, but just something I'm trying to get to work to learn more about this cool script :) stuff

    This is the configuration I used for my experience.

    BUSINESS SERVICE:
    BusinessService: ZZ-billSegmentBill
    Service name: CILBBLLP

    < schema pageAction = 'read' >
    < billId mapField = "BILL_ID" / >
    < billSegments type = mapList "list" = "BILL_SEG" >
    < bsegID mapField = "BSEG_ID" / >
    < said mapField = "SA_ID" / >
    < curAmount mapField = "CUR_AMT" / >
    < / billSegments >
    < / schema >

    BPA SCRIPT:
    Invocation option: user invoked
    Data area: Business Service / ZZ-billSegmentBill / ZZ-billSegmentBill
    Schema:
    <>schema
    < billSegmentCount / >
    < sumBillSegmentAmount / >
    < / schema >
    Admission requirements: always eligible

    STEPS TO FOLLOW:
    Step 10: Label - start of Script

    Step 20: Travel data
    Type of field source: predefined value
    Value of the source field: '148184849261' (<-a bill with 3 Segments of Bill)
    Destination Type field: data area
    Destination domain name: ZZ-billSegmentBill/billId

    Step 30: Call BS
    Group name: ZZ-billSegmentBill
    Business service: ZZ-billSegmentBill
    If successful, go to: 50
    If error, go to: 40

    Step 40: Label - ERROR call for Service to business

    Step 50: Label - call Business Service SUCCESS

    60 step: Edit data
    change data
    Move '0' to $BillSegmentCount;
    Move '0' to $SumBillSegmentAmount;
    for ($billSegments in "ZZ-billSegmentBill/billSegments")
    pass '1 + $BillSegmentCount' to $BillSegmentCount.
    move '$SumBillSegmentAmount + ZZ-billSegmentBill/billSegments/curAmount' to $SumBillSegmentAmount.
    -end;
    move '$BillSegmentCount' to 'parm/billSegmentCount ";
    move '$SumBillSegmentAmount' to 'parm/sumBillSegmentAmount ";
    end edit;

    Step 70: Label - SUCCESS hollow closure Bill Segments

    Not 80: Text displayed
    Number of Segments of Bill: %=parm/billSegmentCount=% < br >
    Add amounts in Segments of Bill: %=parm/sumBillSegmentAmount=%

    OUTPUT WHEN EXECUTING THIS SCRIPT OF BPA:
    Start of Script
    SUCCESS citing BS
    SUCCESS one hollow loop Bill Segments
    Number of Segments of Bill: [null]
    Add amounts in Bill's Segments: [null]

    Apparently, the number of Segments of Bill and the amount I want to view is not available in text stage show since * [null] * is shown where I would expect 3 Segments of Bill and a $ 63.05. (Incidentally, this experience is made on CC & B 2.3 containing the demo data)

    If I turn on Global Debug I see the XML code that is passed to the business function:

    < ZZ-billSegmentBill >
    < billId > 148184849261 < / billId >
    < / ZZ-billSegmentBill >

    which is filled as expected after the call like this:

    < ZZ-billSegmentBill >
    < billId > 148184849261 < / billId >
    < billSegments >
    < bsegID > 148184856248 < / bsegID >
    < a > 1481848274 < / said >
    < curAmount > 21,50 < / curAmount >
    < / billSegments >
    < billSegments >
    < bsegID > 148184842336 < / bsegID >
    < a > 1481848525 < / said >
    < curAmount > 22.79 < / curAmount >
    < / billSegments >
    < billSegments >
    < bsegID > 148184891745 < / bsegID >
    < a > 1481848734 < / said >
    < curAmount > 18.76 < / curAmount >
    < / billSegments >
    < / ZZ-billSegmentBill >

    Unfortunately, the rest of the paper is not very clear to me. I expect to see than something related to 60 my script step BPA in which the number of Segments of Bill is counted and corresponds to the sum of the Bill Segments. I expect the record to populate the items in the schema of the BPA script itself. As an alternative, I tried to work with a separate data area to store the result of the County and the sum, but this results in the same number. Don't know what I'm missing here. Please enlighten me here where I'm going wrong.

    It's because you reference the incorrect item in your stage of 50, it should be:

    1 move '0' to $BillSegmentCount;
    2 move '0.00' to $SumBillSegmentAmount;
    3 for ($billSegments in "ZZ-billSegmentBill/billSegments")
    4     move "1 + $BillSegmentCount" to $BillSegmentCount;
    5     move "$SumBillSegmentAmount + $billSegments/curAmount" to $SumBillSegmentAmount;
    6 end-for;
    7 move "$BillSegmentCount" to "ZZ-billSegmentBillDataArea/billSegmentCount";
    8 move "$SumBillSegmentAmount" to "ZZ-billSegmentBillDataArea/sumBillSegmentAmount";
    

    Line 5, where you had referenced ZZ-billSegmentBill/billSegments/curAmount; will not change the value of this node-set element, since it is not part of the iteration, so you get 21.50 (1st BS) x 3 (lines) = 64.50.

Maybe you are looking for

  • acquisition of data usb-6009

    Hello I installed the NOR-DAQmx driver to operate the USB-6009 module. The device is well recognized by NOR-DAQmx devices basis as well as by MAX V3.1 as Dev1. Yet, impossible to create a virtual channel with MAX, and cannot create a task with NOR-DA

  • Problem XP computer was crashing and getting not response

    Just my parents have a tower XP, they got a certain number of years and have installed avast. During the last 6 months, according to my parents, the computer has been crashing. After investigation, I found that the symptoms were the taskbar (thin off

  • I have a problem with the installation of FSX on an external hard drive.

    I want to put Microsoft FSX upward on an external hard drive (1.5 terabyte) but during the installation I don't see an option to install on a drive other C: I am given this option in installation?  I have Windows 7, 64 bit. Thank you hocdaddy

  • Need help in creating screen

    Hello I create a screen and having some problem. Please help me to remove these. 1 How can I set the background color of the screen app? now my screen is transparent and I can see the default image on the shelf behind my labels and buttons. 2 How to

  • OfficeJet Pro 8500 All in one – disappear from the HP Solution Center guard

    Background: I have two HP all-in-one devices, at the office of one while a 8500 A909a and at home and Officejet 7310 all in one. My Dell laptop running Windows 7 Professional 32 Bit. I had the laptops and printers for several years, the two were conn