Active IQ Unified Manager Discussions
Active IQ Unified Manager Discussions
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>
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.
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
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>