NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Software Development Kit (SDK) and API Discussions

Can the SDK (5.0) be used against a vserver in C-Mode (rather than the node)?

TMACSEVERN
4,424 Views

If so, what is needed to get it working? I keep seeing:

perl apitest.pl host user pass system-get-version

OUTPUT:

<results status="failed" reason="in Zapi::invoke, cannot connect to socket" errno="13001:></results>

Trying to create a script to collect specific details about all the volumes. I suspect if I query from the vserver

point of view, I will not pickup the node-based (i.e. root) volumes.

It *is* working to the cluster interface and the node interfaces.

3 REPLIES 3

kunalm
4,424 Views

With 5.0, you can see 2 set of APIs - Cluster APIs and vserver APIs. You can connect to a vserver with vserver admin credentials and use vserver APIs.

Alternatively you can connect with Cluster admin credentials, and choose vserver tunneling to use vserver APIs.

Here is a screenshot of how you can do that in ZEDI -

rle
NetApp Alumni
4,424 Views

I would use the volume-get-iter c-mode API to the cluster LIF.  If you want vserver specific information, you can use vserver tunneling on the cluster LIF or send the API to the vserver management LIF.

Regards,

   - Rick -

TMACSEVERN
4,424 Views

I also found a very helpful vollist.pl script that served as a basis for what I needed.

Hacked it up to get what I needed.

Thanks.

Public