Software Development Kit (SDK) and API Discussions

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

banusundhar

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

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

Hi,

 

Thanks for the response. 

I see the proper api structure but the invoke fails.

So it still doesn't work.

 

Banu.

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public