<?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 Quota management delegation in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quota-management-delegation/m-p/42466#M781</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a Powershell script that allows reading and setting qtree-based quotas based on a UNC (can also be a DFS path!).&lt;/P&gt;
&lt;P&gt;I wrote this script for a customer who is looking to delegate CIFS administration as much as possible to Windows admins through the use of vFilers, and the ability to see and set a quota on a qtree was raised as very important. Quota entries are expected to be already present, the script is only meant to update an existing quota.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The biggest problem was that Windows admins are working with DFS, thus they don't know on which vFiler (physical path) a qtree is. So the script is able to perform a DFS referral query to get the physical UNC path, then the qtree path and the quota can be obtained by requesting the info to the vFiler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make the script run, ManageOntap.dll should be in the same folder as the 2 files. A role with the following capabilities is required on each Filer/vFiler:&lt;/P&gt;
&lt;P&gt;api-quota-get-entry&lt;/P&gt;
&lt;P&gt;api-quota-set-entry&lt;/P&gt;
&lt;P&gt;api-quota-resize&lt;/P&gt;
&lt;P&gt;api-cifs-share-list-iter-start&lt;/P&gt;
&lt;P&gt;api-cifs-share-list-iter-next&lt;/P&gt;
&lt;P&gt;api-cifs-share-list-iter-end&lt;/P&gt;
&lt;P&gt;api-system-get-version&lt;/P&gt;
&lt;P&gt;api-system-get-ontapi-version&lt;/P&gt;
&lt;P&gt;Script assumes an RPC authentication but parameter "-InteractiveLogin" will allow using "user/password" path instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any comments/questions welcome!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Michel&lt;/P&gt;</description>
    <pubDate>Thu, 05 Jun 2025 06:35:16 GMT</pubDate>
    <dc:creator>mg</dc:creator>
    <dc:date>2025-06-05T06:35:16Z</dc:date>
    <item>
      <title>Quota management delegation</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quota-management-delegation/m-p/42466#M781</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a Powershell script that allows reading and setting qtree-based quotas based on a UNC (can also be a DFS path!).&lt;/P&gt;
&lt;P&gt;I wrote this script for a customer who is looking to delegate CIFS administration as much as possible to Windows admins through the use of vFilers, and the ability to see and set a quota on a qtree was raised as very important. Quota entries are expected to be already present, the script is only meant to update an existing quota.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The biggest problem was that Windows admins are working with DFS, thus they don't know on which vFiler (physical path) a qtree is. So the script is able to perform a DFS referral query to get the physical UNC path, then the qtree path and the quota can be obtained by requesting the info to the vFiler.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make the script run, ManageOntap.dll should be in the same folder as the 2 files. A role with the following capabilities is required on each Filer/vFiler:&lt;/P&gt;
&lt;P&gt;api-quota-get-entry&lt;/P&gt;
&lt;P&gt;api-quota-set-entry&lt;/P&gt;
&lt;P&gt;api-quota-resize&lt;/P&gt;
&lt;P&gt;api-cifs-share-list-iter-start&lt;/P&gt;
&lt;P&gt;api-cifs-share-list-iter-next&lt;/P&gt;
&lt;P&gt;api-cifs-share-list-iter-end&lt;/P&gt;
&lt;P&gt;api-system-get-version&lt;/P&gt;
&lt;P&gt;api-system-get-ontapi-version&lt;/P&gt;
&lt;P&gt;Script assumes an RPC authentication but parameter "-InteractiveLogin" will allow using "user/password" path instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any comments/questions welcome!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Michel&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:35:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/Quota-management-delegation/m-p/42466#M781</guid>
      <dc:creator>mg</dc:creator>
      <dc:date>2025-06-05T06:35:16Z</dc:date>
    </item>
  </channel>
</rss>

