Software Development Kit (SDK) and API Discussions

Perl API error on freebsd

giprosvyaz
3,973 Views

Running apitest.pl on FreeBSD 8.2 and get error "Zapi::invoke cannot connect to the socket"

the same with other test scripts

Perl: 5.10.1

SDK: 3.5.1

Ontap: 7.3.3

 

Everything works fine on Suse with Perl 5.8.2

and on Windows with ActivePerl

 

Anyone can help?

4 REPLIES 4

rkiran
3,973 Views

Are you able to ping ONTAP from the FreeBSD machine ? Ensure that the default port 80 used by apitest utility over HTTP is enabled from the Firewall.

giprosvyaz
3,973 Views

Yes ping is ok and port is open

robinpeter
3,973 Views

check the following options status and if its "off" you can turn it on.

"options httpd.admin.hostsequiv.enable on"

stevenkreuzer
3,973 Views

I ran into the same issue so I ended up ripping out most of the code in invoke_elem() and replacing it with a call to HTTP::Request->new()

Patch can be found at https://gist.github.com/3341862

Public