VMware Cloud Community
robrtb12
Enthusiast
Enthusiast

What is the ServerURL to the VIX Server supposed to be in action "connectToServer"?

With the action "connectToServer", what is the ServerURL to the VIX Server supposed to be?  Is it supposed to be the vCenter SDK Connection ( https://1.2.3.4/sdk )?

When I look in the Inventory section of Orchestrator it shows:

vix --> 1

I click on '1' it shows the Host Name as https://1.2.3.4/sdk.

However, When I pass that URL directly to 'new VixServer(serverURL , serverUsername , serverPassword)'  it still get the original error of "Unable to create object : VixServer : null"

Thank you for your help!

Message was edited by: Burke- to make this independent, new discussion..

0 Kudos
6 Replies
Burke-
VMware Employee
VMware Employee

Hello,

It seems the vixFix package provided earlier has a bug in it... I am looking into this now.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
0 Kudos
Burke-
VMware Employee
VMware Employee

The "serverUrl" is simply the IP Address or FQDN of the VM you are trying to connect to in order to execute a command. I will post an updated "vixFix" package shortly.

The updated code inside of "getServerURLforVM" is:

host = VcPlugin.convertToVimManagedObject(vm, vm.vimHost);
//System.log("Host.name: "+host.name);
var hostname = host.name.substring(host.name.indexOf("//")+2,(host.name.length - 8));
//System.log("hostname: "+hostname);
var serverUrl = System.resolveHostName(hostname);
//System.log("ServerURL: "+serverUrl);
return serverUrl;

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
0 Kudos
robrtb12
Enthusiast
Enthusiast

Hi Burke,

Thanks for your help.  I tried this code and this is what was wrote out to the log (actual names/ip's replaced):

[2011-04-12 14:58:01.903] [I] Host.name: https://<HOST_NAME>:443/sdk
[2011-04-12 14:58:01.903] [I] hostname: <HOST_NAME>

[2011-04-12 14:58:01.903] [I] ServerURL: <IP_ONLY>

This is the error:

Capture2.PNG

Orchestrator version: 4.1.1

vCenter version: 4.1.0

Am i missing something like an install on vCenter, etc?

Thanks!

0 Kudos
Burke-
VMware Employee
VMware Employee

FYI: I have posted the update .package file as a document in this Community: http://communities.vmware.com/docs/DOC-15444

Please confirm that you have extracted the VIX library files to your server and updated your PATH environment as instructed by the VIX Plug-in installation docs. The Connect To server piece should be working, provided you have supplied all the correct credentials.

The Path should be similar to the following screenshot, where I have unzipped the VMware-vix-x64-1.10.1-266898.zip file to: c:\program files\vmware\VMware-vix-x64-1.10.1-266898

Screen shot 2011-04-12 at 4.14.07 PM.png

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
0 Kudos
Burke-
VMware Employee
VMware Employee

If this issue has been resolved, please be sure to mark the appropriate response of mine as the solution.

Thank you.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you!

Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator
for vRealize Orchestrator tips and tutorials - @TechnicalValues on Twitter
0 Kudos
robrtb12
Enthusiast
Enthusiast

My issue is resolved...

When you mentioned credentials i thought...the service account I use for vCenter has a forwardslash " / " as well as an apostrophe " ' " in the password.  I asked one of the vmware admins to use his account / password (same access as my service account) and it worked!  His password only has the " @ " as a special char.

Thanks for your help Burke!

PS - noob question:  how do I "mark the appropriate response of mine as the solution"?  I cant seem to find anything to do so.  Smiley Sad

0 Kudos