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..
Hello,
It seems the vixFix package provided earlier has a bug in it... I am looking into this now.
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;
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:
Orchestrator version: 4.1.1
vCenter version: 4.1.0
Am i missing something like an install on vCenter, etc?
Thanks!
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
If this issue has been resolved, please be sure to mark the appropriate response of mine as the solution.
Thank you.
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.