Active IQ Unified Manager Discussions

Apiproxy and Vserver Tunneling?

mshearer
3,383 Views

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

ELADSCONTINUITY
3,384 Views

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.

adaikkap
3,383 Views

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
3,383 Views

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"

ELADSCONTINUITY
3,383 Views

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>

Public