<?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: Another Python Newb Question in Python Discussions</title>
    <link>https://community.netapp.com/t5/Python-Discussions/Another-Python-Newb-Question/m-p/143425#M28</link>
    <description>&lt;P&gt;It looks like you are able to connect to the cluster but not to the vserver. In order to perform the vserver level operation you have to connecto vserver. Try this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;s = NaServer("cluster-name", 1 , 20)&lt;BR /&gt;s.set_server_type("FILER")&lt;BR /&gt;s.set_transport_type("HTTP")&lt;BR /&gt;s.set_port(80)&lt;BR /&gt;s.set_style("LOGIN")&lt;BR /&gt;s.set_admin_user("admin", "password")&lt;/P&gt;
&lt;P&gt;s.set_vfiler("vserver-name")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attaching ZEDI screenshot which also has option to add vserver&lt;/P&gt;</description>
    <pubDate>Tue, 09 Oct 2018 20:14:44 GMT</pubDate>
    <dc:creator>gaurav_verma</dc:creator>
    <dc:date>2018-10-09T20:14:44Z</dc:date>
    <item>
      <title>Another Python Newb Question</title>
      <link>https://community.netapp.com/t5/Python-Discussions/Another-Python-Newb-Question/m-p/141890#M23</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try to create a python script which triggers a volume snapshot. I've downloaded the manageability-sdk 9.4 and tried some first steps with the included scripts in the /src/sample/Data_ONTAP/Python folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After adding&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;import ssl

ssl._create_default_https_context = ssl._create_unverified_context
&lt;/PRE&gt;
&lt;P&gt;the "apitest.py" script works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, the "snapman.py" script won't work when invoked with:&lt;/P&gt;
&lt;PRE&gt;python snap-test.py -l "vserver" "admin" "password" "/vol/V_VM01_INT_0001"

snapshot-list-info failed:Authorization failed

No snapshots on volume /vol/V_VM01_INT_0001
&lt;/PRE&gt;
&lt;P&gt;I tried several variations on the call but the result is the same - user/pass works with "apitest.py".&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NetApp Release 9.1P11&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;python snap-test.py -l "system-manager" "admin" "password" "/vol/V_VM01_INT_0001"
snapshot-list-info failed:Vserver API missing vserver parameter.

No snapshots on volume /vol/V_VM01_INT_0001
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT:&lt;/P&gt;
&lt;P&gt;Same problem like this thread:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Please-update-NMSDK-Sample-for-error-13006/m-p/138536" target="_self"&gt;https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Please-update-NMSDK-Sample-for-error-13006/m-p/138536&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 13:27:18 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Python-Discussions/Another-Python-Newb-Question/m-p/141890#M23</guid>
      <dc:creator>NetApp-User</dc:creator>
      <dc:date>2025-06-04T13:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Another Python Newb Question</title>
      <link>https://community.netapp.com/t5/Python-Discussions/Another-Python-Newb-Question/m-p/143425#M28</link>
      <description>&lt;P&gt;It looks like you are able to connect to the cluster but not to the vserver. In order to perform the vserver level operation you have to connecto vserver. Try this&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;s = NaServer("cluster-name", 1 , 20)&lt;BR /&gt;s.set_server_type("FILER")&lt;BR /&gt;s.set_transport_type("HTTP")&lt;BR /&gt;s.set_port(80)&lt;BR /&gt;s.set_style("LOGIN")&lt;BR /&gt;s.set_admin_user("admin", "password")&lt;/P&gt;
&lt;P&gt;s.set_vfiler("vserver-name")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attaching ZEDI screenshot which also has option to add vserver&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 20:14:44 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Python-Discussions/Another-Python-Newb-Question/m-p/143425#M28</guid>
      <dc:creator>gaurav_verma</dc:creator>
      <dc:date>2018-10-09T20:14:44Z</dc:date>
    </item>
  </channel>
</rss>

