<?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 API documentation and lun-list-info in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/API-documentation-and-lun-list-info/m-p/71782#M761</link>
    <description>&lt;P&gt;I'm working on a nagios check for NetApp volumes and ran into a couple of issues.&lt;/P&gt;
&lt;P&gt;I can get volume info including space used. This is fine for regular volumes, but&lt;/P&gt;
&lt;P&gt;for autogrow volumes I use the autogrow limit to calculate the %used and that&lt;/P&gt;
&lt;P&gt;works fine as well. The only remaining issue is for volumes that contain luns, which&lt;/P&gt;
&lt;P&gt;are usually full all the time. I was trying to use the lun-list-info API call go get a list&lt;/P&gt;
&lt;P&gt;of luns, then compare the path to existing volumes so I could treat them as a&lt;/P&gt;
&lt;P&gt;special case, but when I use lun-list-info with no parameters, I always get:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;results status="passed"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;are-vols-onlining&amp;gt;false&amp;lt;/are-vols-onlining&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;are-vols-busy&amp;gt;false&amp;lt;/are-vols-busy&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;luns&amp;gt;&amp;lt;/luns&amp;gt;&lt;BR /&gt;&amp;lt;/results&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if I pass in a path to a known lun, I get:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Failed: No such LUN exists&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my $output = $s-&amp;gt;invoke("lun-list-info");&lt;BR /&gt;print "lun-list-info:\n";&lt;BR /&gt;if ($output-&amp;gt;results_errno != 0) {&lt;BR /&gt; our $r = $output-&amp;gt;results_reason();&lt;BR /&gt; print "Failed: $r\n";&lt;BR /&gt;} else {&lt;BR /&gt;&amp;nbsp; print $output-&amp;gt;sprintf();&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This occurs on several files with 8.0.2P6 through 8.1.2P3 and ontapi 1.13 - 1.19&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I just downloaded the current API documentation and it only goes up to 1.17&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, my question is whether I could be doing something wrong, or could it be a&lt;/P&gt;
&lt;P&gt;config issue or bug in the API? I was using SDK 5.0 so I downloaded the SDK (5.1)&lt;/P&gt;
&lt;P&gt;and it doesn't look line NaServer or NaElement have changed (still version 1.0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Actually NaServer did change [had some ipv6 code added], but the version string&lt;/P&gt;
&lt;P&gt;was not updated and the problem behavior did not change when I switched to the&lt;/P&gt;
&lt;P&gt;newer NaServer.)&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 06:04:12 GMT</pubDate>
    <dc:creator>jimwelchgt</dc:creator>
    <dc:date>2025-06-05T06:04:12Z</dc:date>
    <item>
      <title>API documentation and lun-list-info</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/API-documentation-and-lun-list-info/m-p/71782#M761</link>
      <description>&lt;P&gt;I'm working on a nagios check for NetApp volumes and ran into a couple of issues.&lt;/P&gt;
&lt;P&gt;I can get volume info including space used. This is fine for regular volumes, but&lt;/P&gt;
&lt;P&gt;for autogrow volumes I use the autogrow limit to calculate the %used and that&lt;/P&gt;
&lt;P&gt;works fine as well. The only remaining issue is for volumes that contain luns, which&lt;/P&gt;
&lt;P&gt;are usually full all the time. I was trying to use the lun-list-info API call go get a list&lt;/P&gt;
&lt;P&gt;of luns, then compare the path to existing volumes so I could treat them as a&lt;/P&gt;
&lt;P&gt;special case, but when I use lun-list-info with no parameters, I always get:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;results status="passed"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;are-vols-onlining&amp;gt;false&amp;lt;/are-vols-onlining&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;are-vols-busy&amp;gt;false&amp;lt;/are-vols-busy&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;luns&amp;gt;&amp;lt;/luns&amp;gt;&lt;BR /&gt;&amp;lt;/results&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if I pass in a path to a known lun, I get:&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Failed: No such LUN exists&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my $output = $s-&amp;gt;invoke("lun-list-info");&lt;BR /&gt;print "lun-list-info:\n";&lt;BR /&gt;if ($output-&amp;gt;results_errno != 0) {&lt;BR /&gt; our $r = $output-&amp;gt;results_reason();&lt;BR /&gt; print "Failed: $r\n";&lt;BR /&gt;} else {&lt;BR /&gt;&amp;nbsp; print $output-&amp;gt;sprintf();&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This occurs on several files with 8.0.2P6 through 8.1.2P3 and ontapi 1.13 - 1.19&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I just downloaded the current API documentation and it only goes up to 1.17&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, my question is whether I could be doing something wrong, or could it be a&lt;/P&gt;
&lt;P&gt;config issue or bug in the API? I was using SDK 5.0 so I downloaded the SDK (5.1)&lt;/P&gt;
&lt;P&gt;and it doesn't look line NaServer or NaElement have changed (still version 1.0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Actually NaServer did change [had some ipv6 code added], but the version string&lt;/P&gt;
&lt;P&gt;was not updated and the problem behavior did not change when I switched to the&lt;/P&gt;
&lt;P&gt;newer NaServer.)&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:04:12 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/API-documentation-and-lun-list-info/m-p/71782#M761</guid>
      <dc:creator>jimwelchgt</dc:creator>
      <dc:date>2025-06-05T06:04:12Z</dc:date>
    </item>
  </channel>
</rss>

