I am trying to connect a vcenter which is hosted on ipv6 network through perl sdk but the connect.pl script could not make a connection to the vcenter.
I have also tried using the hostname of the server, it worked fine when the dns is mapped to ipv4 and it doesn't worked when the name is mapped to ipv6, Port 443 is listening on both ipv4/ipv6
i ve ensured that firewall is not blocking by telnet 443 using ipv6 and able to telnet.
I find a piece of code is commented in Common.pm for not accepting ipv6 address, though i uncommented that i could not connect through ipv6.
Have anyone faced the same issue and made it work?
please give some insight on this issue,Following is the error i get when i execute connect.pl
[root@vmx0850 playlists]# /usr/lib/vmware-vcli/apps/general/connect.pl --server [2001:1b70:82a7:1:1:1:1:200] --username root --password ****
Unsupported IP address format
/usr/lib/vmware-vcli/apps/general/connect.pl --server [2001:1b70:82a7:1:1:1:1:1%eth0] --username root --password ****
Error connecting to server at 'https://1/sdk/webService': Perhaps host is not a vCenter or ESX server
[root@vmx0850 playlists]# /usr/lib/vmware-vcli/apps/general/connect.pl --url https://[2001:1b70:82a7:1:1:1:1:200%eth0]:443/sdk --username root --password ****
Unsupported IP address format
I have also specified a sperate config and used that, but still it behaves in the same way
[root@vmx0850 ~]# cat ~/vmsdk
VI_SERVER = 2001:1b70:82a7:1:1:1:1:1
##VI_SERVER = 1.1.1.1
VI_USERNAME = root
VI_PASSWORD = ****
VI_PROTOCOL = https
VI_PORTNUMBER = 443
[root@vmx0850 ~]# cat ~/vmsdk
VI_SERVER = 2001:1b70:82a7:1:1:1:1:1:1%eth0
VI_USERNAME = root
VI_PASSWORD = ****
VI_PROTOCOL = https
VI_PORTNUMBER = 443