<?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 Get NFS clients using powershell in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NFS-clients-using-powershell/m-p/159363#M6230</link>
    <description>&lt;P&gt;I am wondering if there's a way to get connected nfs clients per volume using powershell.&lt;/P&gt;
&lt;P&gt;I see a cmdlet for:&lt;/P&gt;
&lt;P&gt;Get-NcCifsConnection&lt;/P&gt;
&lt;P&gt;Get-NcIscsiConnection&lt;/P&gt;
&lt;P&gt;But nothing for NFS.&lt;/P&gt;
&lt;P&gt;If not,&amp;nbsp; how do I request for feature enhancement for it?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jun 2025 10:54:00 GMT</pubDate>
    <dc:creator>cruxrealm</dc:creator>
    <dc:date>2025-06-04T10:54:00Z</dc:date>
    <item>
      <title>Get NFS clients using powershell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NFS-clients-using-powershell/m-p/159363#M6230</link>
      <description>&lt;P&gt;I am wondering if there's a way to get connected nfs clients per volume using powershell.&lt;/P&gt;
&lt;P&gt;I see a cmdlet for:&lt;/P&gt;
&lt;P&gt;Get-NcCifsConnection&lt;/P&gt;
&lt;P&gt;Get-NcIscsiConnection&lt;/P&gt;
&lt;P&gt;But nothing for NFS.&lt;/P&gt;
&lt;P&gt;If not,&amp;nbsp; how do I request for feature enhancement for it?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:54:00 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NFS-clients-using-powershell/m-p/159363#M6230</guid>
      <dc:creator>cruxrealm</dc:creator>
      <dc:date>2025-06-04T10:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Get NFS clients using powershell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NFS-clients-using-powershell/m-p/159381#M6231</link>
      <description>&lt;P&gt;Nothing for PowerShell currently, but we do have REST API support for that command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find the REST docs and sample commands via: &lt;A href="https://clustermgmt-ip/docs/api" target="_blank"&gt;https://clustermgmt-ip/docs/api&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parisi_0-1600099970883.png" style="width: 400px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/10060iC9DC2386DF6A1F1B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parisi_0-1600099970883.png" alt="parisi_0-1600099970883.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also generate sample commands in that view. It creates a curl command, as well as a website URL that generates XML output. This is what it would look like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="parisi_1-1600100103991.png" style="width: 400px;"&gt;&lt;img src="https://community.netapp.com/t5/image/serverpage/image-id/10061i6DE3E540FB504D79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="parisi_1-1600100103991.png" alt="parisi_1-1600100103991.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Sep 2020 16:15:31 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NFS-clients-using-powershell/m-p/159381#M6231</guid>
      <dc:creator>parisi</dc:creator>
      <dc:date>2020-09-14T16:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Get NFS clients using powershell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NFS-clients-using-powershell/m-p/159474#M6233</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/11621"&gt;@parisi&lt;/a&gt;&amp;nbsp; &amp;nbsp; I'll use that instead.&amp;nbsp; &amp;nbsp;But it still would be good if nfs connection can be added to the cmdlet.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 03:30:01 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NFS-clients-using-powershell/m-p/159474#M6233</guid>
      <dc:creator>cruxrealm</dc:creator>
      <dc:date>2020-09-17T03:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get NFS clients using powershell</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NFS-clients-using-powershell/m-p/159498#M6236</link>
      <description>&lt;P&gt;To add to this, since&amp;nbsp;powershell doesn't really do curl or wget anymore, you can use "invoke-restmethod:"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-restmethod?view=powershell-7" target="_blank"&gt;https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-restmethod?view=powershell-7&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://wilsonmar.github.io/powershell-rest-api/" target="_blank"&gt;https://wilsonmar.github.io/powershell-rest-api/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here’s how I got it to work in PS version4:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS C:\Users\Administrator&amp;gt; $pwd = ConvertTo-SecureString "password" -AsPlainText -Force&lt;/P&gt;
&lt;P&gt;PS C:\Users\Administrator&amp;gt; $cred = New-Object Management.Automation.PSCredential ('admin', $pwd)&lt;/P&gt;
&lt;P&gt;PS C:\Users\Administrator&amp;gt; Invoke-RestMethod -method get -uri "&lt;A href="http://10.193.67.10/api/protocols/nfs/connected-clients?svm.name=DEMO&amp;amp;return_timeout=15&amp;amp;return_records=true" target="_blank"&gt;http://10.193.67.10/api/protocols/nfs/connected-clients?svm.name=DEMO&amp;amp;return_timeout=15&amp;amp;return_records=true&lt;/A&gt;" -cred $cred&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;records&lt;/P&gt;
&lt;P&gt;-------&lt;/P&gt;
&lt;P&gt;{@{svm=; node=; server_ip=10.193.67.219; client_ip=10.63.150.51; volume=; protocol=nfs3; _links=}, @{svm=; node=; server_ip=10.193.67.219; client_ip=10.63.150.51; volume=; protocol=nfs3; _links=},...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Powershell 6 and later adds -Authentication, which makes the cred part easier.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 14:08:30 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Get-NFS-clients-using-powershell/m-p/159498#M6236</guid>
      <dc:creator>parisi</dc:creator>
      <dc:date>2020-09-17T14:08:30Z</dc:date>
    </item>
  </channel>
</rss>

