I have this same issue. Perl commands (in my cast transfer snapmirror) that were working previously when I was running WFA 3.1P1 seem to have been broken when I upgraded to WFA 3.1P2. I am getting the same unable to connect to array error. I tried adding in the cluster management name and IP into the hosts file and that changed the behavior of the problem. It doesn't error out immediately instead it sits for a very long time and comes back with the following error:
C:\Program Files\NetApp\WFA\Perl64\bin>perl myfile.pl Connection failedServer returned HTTP Error:
I tried adding in the environment variable as well as another poster suggested but it did not help. Do you have any suggestions for me to try?
Unable to connect using perl commands is a very generic error and comes due to many reasons, they all have to be dealt case by case basis. I suggest you raise a netapp support case, so that I can have a look at your WFA env. Else its very difficult to pin-point the error and it will take long time as well.
I assure you, it will be resolved.
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.