VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
5 Replies Last post: Nov 24, 2009 1:22 PM by lamw  

vimService.wsdl - connect.pl posted: Nov 4, 2009 4:39 AM

Click to view varaway's profile Novice 10 posts since
Jun 3, 2009

hello,

i have installed vSphere ESX 4 and vCenter 4. On the ESX, I installed the vim Perl vdk Toolkit.
/usr/lib/vmware-vcli/apps/general ....
perl connect.pl --url https://server_name/sdk/vimService --username xxxxx --password xxxxxxx

I get this error:
Error: Server version unavailable at 'https://server_name:443/sdk/vimService.wsdl'

Have anywhere an idea?
best regards
Andi

Re: vimService.wsdl - connect.pl

1. Nov 4, 2009 7:01 AM in response to: varaway
Click to view lamw's profile Champion vExpert 3,507 posts since
Nov 27, 2007
You're specifying the incorrect URL address for the --url parameter.

The url should look like the following: https://<your_server>/sdk

e.g.

[vi-admin@scofield ~]$ /usr/lib/vmware-vcli/apps/general/connect.pl --url https://himalaya.primp-industries.com/sdk --username root
Enter password:

Connection Successful
Server Time : 2009-11-04T15:03:01.300745Z

=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
Twitter: @lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

If you find this information useful, please award points for "correct" or "helpful".

Re: vimService.wsdl - connect.pl

3. Nov 5, 2009 7:09 AM in response to: varaway
Click to view lamw's profile Champion vExpert 3,507 posts since
Nov 27, 2007
What OS are you executing the vCLI off of? This should be running on one of the supported OSes (Windows/Linux) or you can use VMware vMA which is a RHEL virtual appliance.

=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
Twitter: @lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

If you find this information useful, please award points for "correct" or "helpful".

Re: vimService.wsdl - connect.pl

4. Nov 24, 2009 12:31 PM in response to: lamw
Click to view fitzie22's profile Expert 327 posts since
Mar 10, 2006

I am new to SDK and we are implementing monitoring of our hosts with HP Openview and it needs to go to https://servername/sdk I have read and read and i can't find anything that is straigt forward as to how to get that running. I downloaded the vim.wsdl and vimService.wsdl files but I am not 100% sure what to do with them.. I have the Remote Cli utility but no perl script labeled in the previous post. any help would be much appreciated.

thanks

Dan

Re: vimService.wsdl - connect.pl

5. Nov 24, 2009 1:22 PM in response to: fitzie22
Click to view lamw's profile Champion vExpert 3,507 posts since
Nov 27, 2007
Please take a look at this document if you're new to the vSphere API/SDKs: Getting Started with vSphere SDKs

Depending on the language of choice, you'll need to download the appropriate wrappers and if you're using Perl, then you'll need to install the vCLI which includes the Perl wrapper: vSphere SDK for Perl which is also accessible if you download the vMA virtual appliance.

Here is another doc that'll get you started with using vSphere SDK for Perl: Getting Started with the vSphere SDK for Perl

=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
Twitter: @lamw
vGhetto Script Repository
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

If you find this information useful, please award points for "correct" or "helpful".

Developer Social Media

Communities