Vikashtalanki's Posts

Hi , My task is to run a batch file that installs something in a VM through Java API. I am populating the CustomizationScript  section with the batch file content through a Java Pgm. Inord... See more...
Hi , My task is to run a batch file that installs something in a VM through Java API. I am populating the CustomizationScript  section with the batch file content through a Java Pgm. Inorder to install this batch file I need to give the command 'batchfile.bat mode driveName' (example : batchfile.bat install/remove C: ) which installs/removes something in/from the driveName. How can I pass these parameters( mode, drive name etc) to the VM through the Java API so that when the VM is powered on or Force Recustomized , it executes the customization script with these parameters. Also let me know if there is any other better way around. NOTE : the batch file is in my local machine. I need to either copy its content to CustomizationScript section or send the whole file to VM. TIA, VIkash
Hi, I am getting the following exception when I try to connect to vcloud orchestrator through a java sdk from eclipse Exception in thread "main" org.springframework.web.client.ResourceAcce... See more...
Hi, I am getting the following exception when I try to connect to vcloud orchestrator through a java sdk from eclipse Exception in thread "main" org.springframework.web.client.ResourceAccessException: I/O error: peer not authenticated; nested exception is javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated     at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:453)     at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:415)     at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:213)     at com.vmware.o11n.sdk.rest.client.services.AbstractService.getObjectAppending(AbstractService.java:64)     at com.vmware.o11n.sdk.rest.client.services.WorkflowService.getWorkflow(WorkflowService.java:40)     at OrgHandShake.connectionTest(OrgHandShake.java:23)     at OrgHandShake.main(OrgHandShake.java:14) Caused by: javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated     at sun.security.ssl.SSLSessionImpl.getPeerCertificates(Unknown Source)     at org.apache.http.conn.ssl.AbstractVerifier.verify(AbstractVerifier.java:128)     at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:397)     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)     at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)     at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)     at org.springframework.http.client.HttpComponentsClientHttpRequest.executeInternal(HttpComponentsClientHttpRequest.java:88)     at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:46)     at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:49)     at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:438)     ... 6 more Please let me know how to solve this issue
I am getting the following exception/error when Itry to connect to vCo through java-eclipse. Please help me how to resolve this Exception in thread "main" org.springframework.web.client.Resour... See more...
I am getting the following exception/error when Itry to connect to vCo through java-eclipse. Please help me how to resolve this Exception in thread "main" org.springframework.web.client.ResourceAccessException: I/O error: Connection to https://10.92.65.215 refused; nested exception is org.apache.http.conn.HttpHostConnectException: Connection to https://10.92.65.215 refused     at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:453)     at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:415)     at org.springframework.web.client.RestTemplate.getForObject(RestTemplate.java:213)     at com.vmware.o11n.sdk.rest.client.services.AbstractService.getObjectAppending(AbstractService.java:64)     at com.vmware.o11n.sdk.rest.client.services.WorkflowService.getWorkflow(WorkflowService.java:40)     at OrgHandShake.connectionTest(OrgHandShake.java:25)     at OrgHandShake.main(OrgHandShake.java:16) Caused by: org.apache.http.conn.HttpHostConnectException: Connection to https://10.92.65.215 refused     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)     at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)     at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)     at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)     at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)     at org.springframework.http.client.HttpComponentsClientHttpRequest.executeInternal(HttpComponentsClientHttpRequest.java:88)     at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:46)     at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:49)     at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:438)     ... 6 more Caused by: java.net.ConnectException: Connection refused: connect     at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)     at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)     at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)     at java.net.AbstractPlainSocketImpl.connect(Unknown Source)     at java.net.PlainSocketImpl.connect(Unknown Source)     at java.net.SocksSocketImpl.connect(Unknown Source)     at java.net.Socket.connect(Unknown Source)     at sun.security.ssl.SSLSocketImpl.connect(Unknown Source)     at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:375)     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)     ... 16 more
Hi, I need some examples(samples) to access vcloud orchestrator thorugh Java. My Primary aim is to login into orchestrator thorugh a java pgm and get some inventory pbjects. Please help me ho... See more...
Hi, I need some examples(samples) to access vcloud orchestrator thorugh Java. My Primary aim is to login into orchestrator thorugh a java pgm and get some inventory pbjects. Please help me how can I do this by giving some example code. Also I am confused between the samples available at http://www.vmware.com/support/pubs/orchestrator_pubs.html and about the examples asked to be downloaded from https://vcoHost:port/api/docs/downloads.html . Which of these are correct examples/samples of vcloud orchestrator and what does each of above two represent.
Hi , I am newbie to Orchestrator. My task is to login to vCO and retrieve an array of inventory objects. But before that I need guidance in installing vcloud orchestrator in eclipse(or if ... See more...
Hi , I am newbie to Orchestrator. My task is to login to vCO and retrieve an array of inventory objects. But before that I need guidance in installing vcloud orchestrator in eclipse(or if anyother possible solution). Can any1 plz help me. TIA. Vikash
Hi, I am a newbie to vmware suite.Currently I am accessing vCloud director through PHP using vCloud SDK for PHP. I am able to successfully login and look for some of the catalogs, vms etc (O... See more...
Hi, I am a newbie to vmware suite.Currently I am accessing vCloud director through PHP using vCloud SDK for PHP. I am able to successfully login and look for some of the catalogs, vms etc (Ofcourse using Samples phps). My next step is invoking a workflow in vCenter Orchestrator thruugh PHP. As I am totally unaware of how to do the same, I request you to please let me know from scratch (any  plugins to be installed etc) all the steps in details to be done to invoke a workflow