<?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: Errno 61 - connection refused - NMSDK 5.6 Python in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Errno-61-connection-refused-NMSDK-5-6-Python/m-p/130071#M2330</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/14927"&gt;@AJ&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A few things to test/check.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The ZAPI version should be 1.X, with the X being dependent on the version of ONTAP you're using. &amp;nbsp;For example, ONTAP 9 = 1.100, 9.1 = 1.110. &amp;nbsp;You'll want to change the NaServer object to look something like this: &amp;nbsp;&lt;PRE&gt;s = NaServer(filer, 1, 100)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Try and echo/print out the filer, user, and password variables. &amp;nbsp;Make sure they are equal to what you expect them to be.&lt;/LI&gt;&lt;LI&gt;Ensure that HTTP access is enabled on your cluster for the interface you're connecting to.&lt;/LI&gt;&lt;LI&gt;Ensure the user you're using has ONTAPI access granted (though I don't think this is the issue, you would get a different error).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2017 16:39:34 GMT</pubDate>
    <dc:creator>asulliva</dc:creator>
    <dc:date>2017-04-12T16:39:34Z</dc:date>
    <item>
      <title>Errno 61 - connection refused - NMSDK 5.6 Python</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Errno-61-connection-refused-NMSDK-5-6-Python/m-p/130069#M2329</link>
      <description>&lt;P&gt;Not a full time programmer, but trying my hand at NetApp APIs. I'm getting connection refused when connecting to CDOT filer using SDK 5.6.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;filer = sys.argv[&lt;SPAN&gt;1&lt;/SPAN&gt;]&lt;BR /&gt;user = sys.argv[&lt;SPAN&gt;2&lt;/SPAN&gt;]&lt;BR /&gt;password = sys.argv[&lt;SPAN&gt;3&lt;/SPAN&gt;]&lt;BR /&gt;&lt;BR /&gt;s = NaServer(filer, &lt;SPAN&gt;5&lt;/SPAN&gt;, &lt;SPAN&gt;6&lt;/SPAN&gt;)&lt;BR /&gt;s.set_server_type(&lt;SPAN&gt;"Filer"&lt;/SPAN&gt;)&lt;BR /&gt;s.set_admin_user(user, password)&lt;BR /&gt;s.set_transport_type(&lt;SPAN&gt;"HTTP"&lt;/SPAN&gt;)&lt;BR /&gt;output = s.invoke(&lt;SPAN&gt;"system-get-version"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;(output.results_errno() != &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;   r = output.results_reason()&lt;BR /&gt;   &lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;"Failed: " &lt;/SPAN&gt;+ &lt;SPAN&gt;str&lt;/SPAN&gt;(r))&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;else &lt;/SPAN&gt;:&lt;BR /&gt;   r = output.child_get_string(&lt;SPAN&gt;"version"&lt;/SPAN&gt;)&lt;BR /&gt;   &lt;SPAN&gt;print&lt;/SPAN&gt;(r + &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\n&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User@~/PycharmProjects/Training$ python template.py &lt;EM&gt;my.ip&lt;/EM&gt;&amp;nbsp;admin &lt;EM&gt;my.password&lt;/EM&gt;&lt;BR /&gt;Failed: [Errno 61] Connection refused&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the admin user and password and connecting to the cluster mgmt IP address. Looking for some advice. Thanks!&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;</description>
      <pubDate>Wed, 04 Jun 2025 15:12:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Errno-61-connection-refused-NMSDK-5-6-Python/m-p/130069#M2329</guid>
      <dc:creator>AJ</dc:creator>
      <dc:date>2025-06-04T15:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Errno 61 - connection refused - NMSDK 5.6 Python</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Errno-61-connection-refused-NMSDK-5-6-Python/m-p/130071#M2330</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/14927"&gt;@AJ&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A few things to test/check.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The ZAPI version should be 1.X, with the X being dependent on the version of ONTAP you're using. &amp;nbsp;For example, ONTAP 9 = 1.100, 9.1 = 1.110. &amp;nbsp;You'll want to change the NaServer object to look something like this: &amp;nbsp;&lt;PRE&gt;s = NaServer(filer, 1, 100)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Try and echo/print out the filer, user, and password variables. &amp;nbsp;Make sure they are equal to what you expect them to be.&lt;/LI&gt;&lt;LI&gt;Ensure that HTTP access is enabled on your cluster for the interface you're connecting to.&lt;/LI&gt;&lt;LI&gt;Ensure the user you're using has ONTAPI access granted (though I don't think this is the issue, you would get a different error).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 16:39:34 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Errno-61-connection-refused-NMSDK-5-6-Python/m-p/130071#M2330</guid>
      <dc:creator>asulliva</dc:creator>
      <dc:date>2017-04-12T16:39:34Z</dc:date>
    </item>
  </channel>
</rss>

