<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: not authorized for that command (errno=13003) in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/not-authorized-for-that-command-errno-13003/m-p/100356#M1340</link>
    <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NMSDK does not officially support scala.&lt;/P&gt;&lt;P&gt;However, we will try to fiigure out the root cause of this failure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you reproduce the same issue using the "apitest" tool?&lt;/P&gt;&lt;P&gt;You can find the script under "&amp;lt;nmsdk_root&amp;gt;/src/sample/Data_ONTAP/Java/apitest" directory.&lt;/P&gt;&lt;P&gt;You can run the tool as:&lt;/P&gt;&lt;P&gt;#javac -cp &amp;lt;path to manageontap jar&amp;gt; apitest.java&lt;/P&gt;&lt;P&gt;#java -cp &amp;lt;path to manageontap jar&amp;gt;:. apitest -v&amp;nbsp;vs01 ourserver ouruser ourpass snapshot-create snapshot testsnapshot11 volume volumenamehere&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, please let us know what client system (operating system and java versions) and Data ONTAP version you are using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sen.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Feb 2015 14:58:26 GMT</pubDate>
    <dc:creator>sens</dc:creator>
    <dc:date>2015-02-09T14:58:26Z</dc:date>
    <item>
      <title>not authorized for that command (errno=13003)</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/not-authorized-for-that-command-errno-13003/m-p/100157#M1338</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;manageontap-5.3.jar from scala and I am seeing this error intermittently when trying to create/delete snapshots:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not authorized for that command (errno=13003)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is&amp;nbsp;the code that I am using in order to reproduce this (can rewrite in java if needed, but its fairly self-explanatory)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import netapp.manage.{NaAPIFailedException, NaElement, NaServer}&lt;BR /&gt;val srvr = new netapp.manage.NaServer("ourserver",1,20)&lt;BR /&gt;srvr.setStyle(NaServer.STYLE_LOGIN_PASSWORD)&lt;BR /&gt;srvr.setAdminUser("ouruser", "ourpass")&lt;BR /&gt;srvr.setVserver("vs01")&lt;/P&gt;&lt;P&gt;val api = new NaElement("snapshot-create")&lt;BR /&gt;api.addNewChild("comment","User=" + System.getProperty("user.name"))&lt;BR /&gt;api.addNewChild("snapshot","testsnapshot11")&lt;BR /&gt;api.addNewChild("volume","volumenamehere")&lt;BR /&gt;srvr.invokeElem(api)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is quite easy to reproduce this error, I can run the above code several times (changing the snapshot name), and it would work sometimes and not others, which makes the "not authorized" error confusing, since I would expect to be either authorized with the given credentials&amp;nbsp;all the time or never!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, on occasion when it works, I also see a NullPointerException when using snapshot-list-info. e.g. running this immediately after the above code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;val api2 = new NaElement("snapshot-list-info")&lt;BR /&gt;api2.addNewChild("volume","HTD_na_test")&lt;BR /&gt;val res = srvr.invokeElem(api2)&lt;/P&gt;&lt;P&gt;// throws nullpointerexception&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also worth noting that snapshot-delete always fails with the above message. I am not sure how to proceed, please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 05:10:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/not-authorized-for-that-command-errno-13003/m-p/100157#M1338</guid>
      <dc:creator>DavidR</dc:creator>
      <dc:date>2025-06-05T05:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: not authorized for that command (errno=13003)</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/not-authorized-for-that-command-errno-13003/m-p/100356#M1340</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NMSDK does not officially support scala.&lt;/P&gt;&lt;P&gt;However, we will try to fiigure out the root cause of this failure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you reproduce the same issue using the "apitest" tool?&lt;/P&gt;&lt;P&gt;You can find the script under "&amp;lt;nmsdk_root&amp;gt;/src/sample/Data_ONTAP/Java/apitest" directory.&lt;/P&gt;&lt;P&gt;You can run the tool as:&lt;/P&gt;&lt;P&gt;#javac -cp &amp;lt;path to manageontap jar&amp;gt; apitest.java&lt;/P&gt;&lt;P&gt;#java -cp &amp;lt;path to manageontap jar&amp;gt;:. apitest -v&amp;nbsp;vs01 ourserver ouruser ourpass snapshot-create snapshot testsnapshot11 volume volumenamehere&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, please let us know what client system (operating system and java versions) and Data ONTAP version you are using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sen.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 14:58:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/not-authorized-for-that-command-errno-13003/m-p/100356#M1340</guid>
      <dc:creator>sens</dc:creator>
      <dc:date>2015-02-09T14:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: not authorized for that command (errno=13003)</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/not-authorized-for-that-command-errno-13003/m-p/100360#M1341</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply, I just ran the test you suggested, which is reproducing the same issue that we are seeing from Scala. It worked the first time, then consequent runs gave "not authorized for that command (errno=13003)" errors&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[d.riley@wint-app-vm168 apitest]$ java -cp ~/manageontap-5.3.jar:. apitest -v vs01 wint-filer-clust1 &amp;lt;our user&amp;gt;&amp;nbsp;&amp;lt;our pass&amp;gt;&amp;nbsp;snapshot-create snapshot testsnapshot11 volume&amp;nbsp;&amp;lt;our volume&amp;nbsp;name&amp;gt;&lt;BR /&gt;OUTPUT:&lt;BR /&gt;&amp;lt;results status='passed'/&amp;gt;&lt;/P&gt;&lt;P&gt;[d.riley@wint-app-vm168 apitest]$ ll /network/&amp;lt;our volume name&amp;gt;/.snapshot&lt;BR /&gt;total 88&lt;BR /&gt;drwxr-xr-x 20 kxdev KDBUserDev 8192 Feb 7 17:21 daily.2015-02-08_0010&lt;BR /&gt;drwxr-xr-x 20 kxdev KDBUserDev 8192 Feb 8 17:21 daily.2015-02-09_0010&lt;BR /&gt;drwxr-xr-x 18 kxdev KDBUserDev 8192 Dec 31 17:23 monthly.2015-01-01_0005&lt;BR /&gt;drwxr-xr-x 20 kxdev KDBUserDev 8192 Jan 31 17:21 monthly.2015-02-01_0005&lt;BR /&gt;drwxr-xr-x 20 kxdev KDBUserDev 8192 Jan 7 13:47 snap_07_01_2015__15_28_59&lt;BR /&gt;drwxr-xr-x 20 kxdev KDBUserDev 8192 Feb 8 17:21 snapmirror.6cc6bdbc-6631-11e2-ac31-123478563412_2147484774.2015-02-09_150500&lt;BR /&gt;drwxr-xr-x 20 kxdev KDBUserDev 8192 Jan 14 17:21 test123&lt;BR /&gt;drwxr-xr-x 20 kxdev KDBUserDev 8192 Jan 14 17:21 test1234&lt;BR /&gt;drwxr-xr-x 20 kxdev KDBUserDev 8192 Feb 8 17:21 testsnapshot11&lt;BR /&gt;drwxr-xr-x 20 kxdev KDBUserDev 8192 Jan 31 17:21 weekly.2015-02-01_0015&lt;BR /&gt;drwxr-xr-x 20 kxdev KDBUserDev 8192 Feb 7 17:21 weekly.2015-02-08_0015&lt;BR /&gt;[d.riley@wint-app-vm168 apitest]$ java -cp ~/manageontap-5.3.jar:. apitest -v vs01 wint-filer-clust1 &lt;SPAN&gt;&amp;lt;our user&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;our pass&amp;gt;&lt;/SPAN&gt;&amp;nbsp;snapshot-create snapshot testsnapshot12 volume&amp;nbsp;&lt;SPAN&gt;&amp;lt;our volume&amp;nbsp;name&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;netapp.manage.NaAPIFailedException: not authorized for that command (errno=13003)&lt;BR /&gt;[d.riley@wint-app-vm168 apitest]$ java -cp ~/manageontap-5.3.jar:. apitest -v vs01 wint-filer-clust1 &lt;SPAN&gt;&amp;lt;our user&amp;gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;our pass&amp;gt;&lt;/SPAN&gt;&amp;nbsp;snapshot-create snapshot testsnapshot13 volume&amp;nbsp;&lt;SPAN&gt;&amp;lt;our volume&amp;nbsp;name&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;netapp.manage.NaAPIFailedException: not authorized for that command (errno=13003)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise how to diagnose why this is occuring.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 15:19:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/not-authorized-for-that-command-errno-13003/m-p/100360#M1341</guid>
      <dc:creator>DavidR</dc:creator>
      <dc:date>2015-02-09T15:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: not authorized for that command (errno=13003)</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/not-authorized-for-that-command-errno-13003/m-p/100362#M1342</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please let us know what client (operating system), java version and Data ONTAP version you are using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sen.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 15:25:49 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/not-authorized-for-that-command-errno-13003/m-p/100362#M1342</guid>
      <dc:creator>sens</dc:creator>
      <dc:date>2015-02-09T15:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: not authorized for that command (errno=13003)</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/not-authorized-for-that-command-errno-13003/m-p/100363#M1343</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Red Hat Linux wint-app-vm168 2.6.32-431.el6.x86_64 #1 SMP Sun Nov 10 22:19:54 EST 2013 x86_64 x86_64 x86_64 GNU/Linux&lt;/P&gt;&lt;P&gt;Java(TM) SE Runtime Environment (build 1.7.0_40-b43)&lt;/P&gt;&lt;P&gt;The node we are using to test this is running on Data ONTAP 8.2.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 15:30:51 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/not-authorized-for-that-command-errno-13003/m-p/100363#M1343</guid>
      <dc:creator>DavidR</dc:creator>
      <dc:date>2015-02-09T15:30:51Z</dc:date>
    </item>
  </channel>
</rss>

