Software Development Kit (SDK) and API Discussions

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

banusundhar
4,527 Views

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.

 

2 REPLIES 2

robinpeter
4,516 Views

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');

banusundhar
4,495 Views

Hi,

 

Thanks for the response. 

I see the proper api structure but the invoke fails.

So it still doesn't work.

 

Banu.

Public