Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 251495

Vim::login(service_url =>)

$
0
0

Hi

 

I m trying to make a script for retrieving some informations about the esxi

 

here is my problem

 

I have two variables:

$opt_H and $url

$url = "https://".$opt_H."/sdk/webServer";

 

If I use $url with a variable the connexion doesn't work

Can't connect to XXXX.XXX.XXX.XX:443 (Connection refused)

 

LWP::Protocol::https::Socket: connect: Connection refused at /usr/lib/perl5/site_perl/5.8.8/LWP/Protocol/http.pm line 51.

 

If i change the variable and put the real ip address of the esxi it works

 

I don't understand, what I am doing wrong ?

 

I use these libraires:

 

$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
use strict;
use warnings;
use Getopt::Long;
use utils qw($TIMEOUT %ERRORS &print_revision &support);
use VMware::VIRuntime;
use VMware::VILib;

 

thanks in advance


Viewing all articles
Browse latest Browse all 251495

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>