If you missed the pre-registration for NetApp MS Azure AD B2C, the new login prompt will offer the option to register. Please note that access to your NetApp data may take up to 1 hour.
To learn more, read the FAQ and watch the video.
Need assistance? Complete this form and select “Registration Issue” as the Feedback Category.

Active IQ Unified Manager Discussions

Apiproxy and Vserver Tunneling?

mshearer

I am trying to run vserver api commands using the oncommand apiproxy api and when I do I get a credential issue, however I do not see a way within OnCommand to specify credentials for a Vserver or am I missing something?

Input

<?xml version="1.0" encoding="UTF-8"?>

<netapp  xmlns="http://www.netapp.com/filer/admin" version="1.0">

  <api-proxy>

    <request>

      <args></args>

      <name>volume-get-language</name>

    </request>

    <target>clnas</target>

    <timeout></timeout>

    <username></username>

  </api-proxy>

</netapp>

Output

<?xml version='1.0' encoding='UTF-8' ?>

<netapp version='1.0' xmlns='http://www.netapp.com/filer/admin'>

    <!-- Output of api-proxy [Execution Time: 733 ms] -->

          <results status='passed'>

                    <response>

                              <status>failed</status>

                              <errno>21008</errno>

                              <reason>Skipped attempt due to lack of good credentials</reason>

                    </response>

          </results>

</netapp>

4 REPLIES 4

adaikkap

Hi

  OnCommand Unified Manager does not talk to the vServer. It always talks to the cluster and get the details and information about each vServer.

This same as how we did for vFiler, we communicate only with physical filer and got all information related to vfiler.

Regards

adai

ELADSCONTINUITY

Can you please show an example which return the vFiler information?

For example I used to invoke the command:

"nfs-exportfs-list-rules"

When trying to use the command with the API-PROXY there is version mismach.

<api-proxy>

<target>netapp7-2</target>

<request>

<name>nfs-exportfs-list-rules</name>

</request>

</api-proxy>

"java.lang.IllegalArgumentException: ONTAPI version must be at least 1.7 to send API to a vfiler"

I found a work arround.. I used the system-cli command instead.

The following command allowed us to get the nfs shared list:

<api-proxy>

<target>hostname</target>

<request>

          <name>system-cli</name>

          <args>

                    <args>

                              <arg>vfiler</arg>

                              <arg>run</arg>

                              <arg>*</arg>

                              <arg>exportfs</arg>

                    </args>

          </args>

</request>

</api-proxy>

ELADSCONTINUITY

The dfm does not include the netApp username or password.

After you set the user/password in the configuration netapp host you will get the results.

BTW:

That the reasone you don't need to set the user and password of the proxy host inside the request.

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.

Public