Subscribe

Error : in Zapi::invoke, cannot connect to socket

Hi ,

 

I am new to using NMSDK. 

I am using the latest version 5.7 for perl scripts.

 

I get the error in Zapi::invoke cannot connect to socket.

I am setting the transport to HTTPS using set_transport_type API.

I am setting the username and password using the set_admin_user API.

I set_transport_type to HTTPS

then I invoke ssytem-get-version.

 

I get the error in Zapi::invoke cannot connect to socket.

Can some one help me with this.

 

Thanks.

Banu Sundhar.

 

Re: Error : in Zapi::invoke, cannot connect to socket

try this example.. might help.

 

http://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/cluster-mode-system-cli-with-SDK/m-p/129943#M2323

 

the key is.. setting the HTTP version

 

$s->set_http_version('1.0');

Re: Error : in Zapi::invoke, cannot connect to socket

Hi,

 

Thanks for the response. 

I see the proper api structure but the invoke fails.

So it still doesn't work.

 

Banu.