Can you guys help me with my code. It stops at HostConnect:
Error says:
Failed to get property type for 3010 on handle 16799219
> my $CONNTYPE = "VIX_SERVICEPROVIDER_VMWARE_VI_SERVER";
VIX_SERVICEPROVIDER_VMWARE_VI_SERVER is a constant. Please don't specify that inside the double quotes. Use the following code:
my $CONNTYPE = VIX_SERVICEPROVIDER_VMWARE_VI_SERVER;
Please take a look at sample perl files available in vix-perl bundle.
vix-perl/
- samples/findhosttest.pl
- samples/powertest.pl
- samples/vmrun.pl
-Thanks
Sankar.
I think the error is that the port number you have specified in the URL is not usually used by ESX. Normally, ESX uses the default HTTPS port, which is 443. So, you could just supply the URL as
Port 8333 is the defaul port for VMware Server 2.0.
I'm surprised the error your getting is so unclear, but I think that is the root cause of the issue.
Which version of VIX are you using?
tried removing the port and still generating the same error
im using vix 1.10.1
> my $CONNTYPE = "VIX_SERVICEPROVIDER_VMWARE_VI_SERVER";
VIX_SERVICEPROVIDER_VMWARE_VI_SERVER is a constant. Please don't specify that inside the double quotes. Use the following code:
my $CONNTYPE = VIX_SERVICEPROVIDER_VMWARE_VI_SERVER;
Please take a look at sample perl files available in vix-perl bundle.
vix-perl/
- samples/findhosttest.pl
- samples/powertest.pl
- samples/vmrun.pl
-Thanks
Sankar.
thanks stan, that solved the problem
