3 Replies Latest reply on Oct 28, 2014 6:31 AM by snonchev

    vmware-cmd always give back "Server version unavailable"

    daniele Novice

      Hi, I am trying to setup CLI commands on ubuntu 14.04, but I am always getting back:

      Server version unavailable at 'https://172.18.111.71:443/sdk/vimService.wsdl' at /usr/share/perl/5.18/VMware/VICommon.pm line 545, <STDIN> line 2.

       

      I did try to set export PERL_LWP_SSL_VERIFY_HOSTNAME=0 with no success

       

      Esx host is reachable and the command:

      wget https://172.18.111.71:443/sdk/vimService.wsdl --no-check-certificate

      is working with no problem.

       

      Any idea to overcome this problem?

       

      Thank you

      Daniele

        • 1. Re: vmware-cmd always give back "Server version unavailable"
          smithar Enthusiast
          VMware Employees

          Please check the version of LWP::UserAgent Perl module is above 6.0.4.

          • 2. Re: vmware-cmd always give back "Server version unavailable"
            daniele Novice

            the installed package liblwp-protocol-https-perl is 6.04-2ubuntu0.1

             

            Anyway with apt-cache search LWP::UserAgent the result is multiple packages and not all are installed:

             

            # apt-cache search LWP::UserAgent

            libhtml-form-perl - module that represents an HTML form element

            libhttp-cookies-perl - HTTP cookie jars

            liblwp-protocol-https-perl - HTTPS driver for LWP::UserAgent

            libcrypt-ssleay-perl - OpenSSL support for LWP

            libflickr-api-perl - Perl interface to the Flickr API

            libhttp-async-perl - module for parallel non-blocking processing of multiple HTTP requests

            libhttp-tiny-perl - Perl module that implements a small, simple, correct HTTP/1.1 client

            liblwp-authen-negotiate-perl - Perl module for GSSAPI based Authentication Plugin for LWP

            liblwp-protocol-psgi-perl - override LWP's HTTP/HTTPS backend with your own PSGI application

            liblwp-protocol-socks-perl - SOCKS proxy support for LWP

            liblwp-useragent-determined-perl - LWP useragent that retries errors

            liblwpx-paranoidagent-perl - a "paranoid" subclass of LWP::UserAgent

            libnet-https-any-perl - Perl module for HTTPS GET and POST using any available SSL module

            libtest-lwp-useragent-perl - module for simulating and testing network calls

            libtest-pod-no404s-perl - test utility checking POD for HTTP 404 links

             

            I did not try to install all packages ...