<?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: Powershell for cDot in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-for-cDot/m-p/120772#M25895</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to using NC commands, use connect-nccontroller to connect to the cluster, not a vserver. &amp;nbsp;You can use it with -vserver to tunnel commands to a vserver, although I find that rarely necessary. &amp;nbsp;Once you have a cluster connection object, any cmdlet that needs a vserver will generally have a -vserver switch you can use then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$cluster = connect-nccontroller &amp;lt;your cluster&amp;gt; -cred $cred
get-NCVol -Name &amp;lt;volname&amp;gt;

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jun 2016 20:56:32 GMT</pubDate>
    <dc:creator>J_curl</dc:creator>
    <dc:date>2016-06-29T20:56:32Z</dc:date>
    <item>
      <title>Powershell for cDot</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-for-cDot/m-p/120633#M25860</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have connected to one of my vservers running on a cDot cluster version 8.2.3 p6,&lt;/P&gt;&lt;P&gt;as the following:&lt;/P&gt;&lt;P&gt;Connect-NcController &amp;lt;vservername&amp;gt; &amp;nbsp;-Credential $mycred,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I received a message saying that I'm connected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After that, I have tried to run many commands, such as get-navol, get-naqtree and many more,&lt;/P&gt;&lt;P&gt;And I have received the following message everytime:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-NaVol : Value in $global:CurrentNaController is not of type NetApp.Ontapi.Filer.NaController&lt;BR /&gt;At line:1 char:1&lt;BR /&gt;+ Get-NaVol -Name&amp;nbsp;&amp;lt;volname&amp;gt;&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidArgument: (:) [Get-NaVol], ArgumentException&lt;BR /&gt;+ FullyQualifiedErrorId : ControllerNotSpecified,DataONTAP.PowerShell.SDK.Cmdlets.Volume.GetNaVol&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I have to specify the controller name although i'm at the vserver level?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Even when I do, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;et-NaVol : Incorrect credentials for &amp;lt;vservername&amp;gt;.&lt;BR /&gt;At line:1 char:1&lt;BR /&gt;+ Get-NaVol -Name vmis -Controller &lt;SPAN&gt;&amp;lt;vservername&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (&lt;SPAN&gt;&amp;lt;vservername&amp;gt;&lt;/SPAN&gt;:NaController) [Get-NaVol], NaAuthException&lt;BR /&gt;+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Volume.GetNaVol&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How come the credentials are incorrect if I'm already connected to the vserver?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does someone know what is the issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 20:13:20 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-for-cDot/m-p/120633#M25860</guid>
      <dc:creator>olympus</dc:creator>
      <dc:date>2025-06-04T20:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell for cDot</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-for-cDot/m-p/120638#M25861</link>
      <description>&lt;P&gt;The powershell cmdlets are split into 7-mode and cdot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 7-mode ones start with get-na&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the cDot ones start with get-nc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;get-nchelp&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2016 12:55:43 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-for-cDot/m-p/120638#M25861</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2016-06-27T12:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Powershell for cDot</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-for-cDot/m-p/120772#M25895</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to using NC commands, use connect-nccontroller to connect to the cluster, not a vserver. &amp;nbsp;You can use it with -vserver to tunnel commands to a vserver, although I find that rarely necessary. &amp;nbsp;Once you have a cluster connection object, any cmdlet that needs a vserver will generally have a -vserver switch you can use then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$cluster = connect-nccontroller &amp;lt;your cluster&amp;gt; -cred $cred
get-NCVol -Name &amp;lt;volname&amp;gt;

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2016 20:56:32 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Powershell-for-cDot/m-p/120772#M25895</guid>
      <dc:creator>J_curl</dc:creator>
      <dc:date>2016-06-29T20:56:32Z</dc:date>
    </item>
  </channel>
</rss>

