<?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: Confused b/c invoke-nassh is lying to me.... in Microsoft Virtualization Discussions</title>
    <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Confused-b-c-invoke-nassh-is-lying-to-me/m-p/56796#M2688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clinton...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm all worked out.. I went with your approach.&lt;/P&gt;&lt;P&gt;$filer = Connect-NaController &amp;lt;filer&amp;gt; -HTTPS -Credential &amp;lt;xxx&amp;gt; -Transient&lt;/P&gt;&lt;P&gt;Invoke-NaSsh -Controller $filer -Command &amp;lt;command&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had it, but was totally blinded that I was connecting via rpc! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for clearing that up with me... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2012 12:33:16 GMT</pubDate>
    <dc:creator>JGPSHNTAP</dc:creator>
    <dc:date>2012-05-10T12:33:16Z</dc:date>
    <item>
      <title>Confused b/c invoke-nassh is lying to me....</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Confused-b-c-invoke-nassh-is-lying-to-me/m-p/56770#M2681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I'm stumped ...&amp;nbsp; Putting my script aside, i'm just doing basic work here and it's giving me fits..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Connect-nacontroller $filer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I confirm connection $global:currentnacontroller for sanity check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I am just typing a basic command... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;invoke-nassh -command "snmp init 0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I'm getting thrown this error..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Invoke-NaSsh : Value cannot be null.&lt;/P&gt;&lt;P&gt;Parameter name: Credentials not provided in cmdlet argument, specified controller, or credentials cache.&lt;/P&gt;&lt;P&gt;At line:1 char:13&lt;/P&gt;&lt;P&gt;+ invoke-nassh &amp;lt;&amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + CategoryInfo&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : InvalidArgument: (:) [Invoke-NaSsh], ArgumentNullException&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; + FullyQualifiedErrorId : CredentialsNotSpecified,DataONTAP.PowerShell.SDK.Cmdlets.Toolkit.Ssh.InvokeNaSsh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's frustrating me to no end!!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2025 06:27:50 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Confused-b-c-invoke-nassh-is-lying-to-me/m-p/56770#M2681</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2025-06-05T06:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Confused b/c invoke-nassh is lying to me....</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Confused-b-c-invoke-nassh-is-lying-to-me/m-p/56775#M2682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you connecting to the controller?&amp;nbsp; If you're using RPC, note that SSH is a separate protocol that requires credentials, so you'd have to provide those explicitly.&amp;nbsp; I'm not sure what else can lead to this condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 20:49:14 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Confused-b-c-invoke-nassh-is-lying-to-me/m-p/56775#M2682</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2012-05-08T20:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Confused b/c invoke-nassh is lying to me....</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Confused-b-c-invoke-nassh-is-lying-to-me/m-p/56780#M2684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clinton,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am connecting to the filer via rpc.&amp;nbsp;&amp;nbsp; But if i add the filers via add-nacredential -systemscope invoke-nassh works.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that my concept is wrong.&amp;nbsp;&amp;nbsp;&amp;nbsp; I am connecting to the controller as above but then invoking nassh.&amp;nbsp;&amp;nbsp; Thats i think whats throwing me off. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;essentially i dont need to connect to controller via connect-nacontroller before i launch the invoke ssh cmdlet.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 22:26:27 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Confused-b-c-invoke-nassh-is-lying-to-me/m-p/56780#M2684</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2012-05-08T22:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: Confused b/c invoke-nassh is lying to me....</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Confused-b-c-invoke-nassh-is-lying-to-me/m-p/56785#M2686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for confirming you use RPC; that makes sense.&amp;nbsp; Making an RPC connection to a controller is immaterial to using &lt;STRONG&gt;Invoke-NaSsh&lt;/STRONG&gt;.&amp;nbsp; RPC doesn't need explicit credentials, while SSH does.&amp;nbsp; Both &lt;STRONG&gt;Connect-NaController&lt;/STRONG&gt; and &lt;STRONG&gt;Invoke-NaSsh&lt;/STRONG&gt; consult the credentials cache, which is why SSH is working for you now.&amp;nbsp; You could have done any number of things, such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Rely on $global:CurrentNaController using an HTTP/HTTPS connection&lt;/P&gt;&lt;P&gt;Connect-NaController &amp;lt;filer&amp;gt; -HTTPS -Credential &amp;lt;xxx&amp;gt;&lt;/P&gt;&lt;P&gt;Invoke-NaSsh &amp;lt;command&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Populate the cache&lt;/P&gt;&lt;P&gt;Add-NaCredential &amp;lt;filer&amp;gt; -Credential &amp;lt;xxx&amp;gt;&lt;/P&gt;&lt;P&gt;Invoke-NaSsh &amp;lt;command&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Specify creds &amp;amp; controller&lt;/P&gt;&lt;P&gt;Invoke-NaSsh -Name &amp;lt;filer&amp;gt; -Credential &amp;lt;xxxx&amp;gt; -Command &amp;lt;command&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* Use a controller variable, as in a loop, without setting the global variable&lt;/P&gt;&lt;P&gt;$filer = Connect-NaController &amp;lt;filer&amp;gt; -HTTPS -Credential &amp;lt;xxx&amp;gt; -Transient&lt;/P&gt;&lt;P&gt;Invoke-NaSsh -Controller $filer -Command &amp;lt;command&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep in mind that with the credentials stored in the cache, &lt;STRONG&gt;Connect-NaController&lt;/STRONG&gt; will now find that first and establish HTTPS (falling back to HTTP) connections unless you specify -RPC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 04:09:47 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Confused-b-c-invoke-nassh-is-lying-to-me/m-p/56785#M2686</guid>
      <dc:creator>cknight</dc:creator>
      <dc:date>2012-05-09T04:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Confused b/c invoke-nassh is lying to me....</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Confused-b-c-invoke-nassh-is-lying-to-me/m-p/56793#M2687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, i was under the assumption that it talks to the credentials cache after it was working.. It just didn't register in my brain fast enough! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah, I can totally add to the credentials cache.&amp;nbsp; I have the logic in place to handle that as per system login/ID,...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm gonna play around and let you know..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 13:08:53 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Confused-b-c-invoke-nassh-is-lying-to-me/m-p/56793#M2687</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2012-05-09T13:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Confused b/c invoke-nassh is lying to me....</title>
      <link>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Confused-b-c-invoke-nassh-is-lying-to-me/m-p/56796#M2688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clinton...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm all worked out.. I went with your approach.&lt;/P&gt;&lt;P&gt;$filer = Connect-NaController &amp;lt;filer&amp;gt; -HTTPS -Credential &amp;lt;xxx&amp;gt; -Transient&lt;/P&gt;&lt;P&gt;Invoke-NaSsh -Controller $filer -Command &amp;lt;command&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had it, but was totally blinded that I was connecting via rpc! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx for clearing that up with me... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 12:33:16 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Microsoft-Virtualization-Discussions/Confused-b-c-invoke-nassh-is-lying-to-me/m-p/56796#M2688</guid>
      <dc:creator>JGPSHNTAP</dc:creator>
      <dc:date>2012-05-10T12:33:16Z</dc:date>
    </item>
  </channel>
</rss>

