<?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: ONTAP Select PowerShell credential error in ONTAP Rest API Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-Select-PowerShell-credential-error/m-p/431089#M271</link>
    <description>&lt;P&gt;If the service policy on the target LIF isn't configured correctly, then using the powershell commands will not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you able to connect to the console to configure the LIF service policy from there?&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jan 2022 06:45:17 GMT</pubDate>
    <dc:creator>aladd</dc:creator>
    <dc:date>2022-01-20T06:45:17Z</dc:date>
    <item>
      <title>ONTAP Select PowerShell credential error</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-Select-PowerShell-credential-error/m-p/431001#M270</link>
      <description>&lt;P&gt;The following error i got when i'm running the commands when i'm using ONTAP Select, where we can't configure the service-policy on the lif&lt;BR /&gt;i have 20 HA ONTAP Select systems, and i'm getting the error below for 2 HA ONTAP Select systems.&lt;/P&gt;&lt;P&gt;when running the following command for svm1 on the cluster "connect-nccontroller svm1 -credential $credential -verbose -debug - https"&lt;BR /&gt;and providing the right local username/password, we can see the name of the svm and the ontap version, but&lt;BR /&gt;when running the same command for svm2, we are getting the following error:&lt;BR /&gt;verbose: trying http/ https&lt;BR /&gt;connect-nccontroller" cloud not command to svm2 on port 443 for protocol https&lt;BR /&gt;connect-nccontroller -name svm2 - https -credential $credential -V...&lt;BR /&gt;category info: invalidresult :(svm1:nccontroller) [connect-nccontroller], naconnectionSSLexception&lt;BR /&gt;fullyqualifederrorid: httpconnection failed,dataontap.c.powershell.sdk.connnectnccontroller&lt;BR /&gt;verbose: failed to connect to svm2&lt;BR /&gt;verbose: setting value of&lt;BR /&gt;global:currentnccontroller&lt;BR /&gt;verbose: starting ems logging&lt;BR /&gt;verbose: failed to complete emc logging object reference not set to an&lt;BR /&gt;instance of an object&lt;/P&gt;&lt;P&gt;i have create new ssl certificate for svm1 and svm2, but still not working.&lt;BR /&gt;ontap powershell version 9.9.1.2106 , ontap version 9.5P5&lt;/P&gt;&lt;P&gt;tried running the command for svm2 with the ip of one of the interfaces , svm name, full dns name&lt;BR /&gt;of the svm.&lt;BR /&gt;svm1 and svm2 are using "dns load balancing", each svm has 4 lifs.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 10:06:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-Select-PowerShell-credential-error/m-p/431001#M270</guid>
      <dc:creator>YehudaLevi1999</dc:creator>
      <dc:date>2025-06-04T10:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: ONTAP Select PowerShell credential error</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-Select-PowerShell-credential-error/m-p/431089#M271</link>
      <description>&lt;P&gt;If the service policy on the target LIF isn't configured correctly, then using the powershell commands will not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you able to connect to the console to configure the LIF service policy from there?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 06:45:17 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-Select-PowerShell-credential-error/m-p/431089#M271</guid>
      <dc:creator>aladd</dc:creator>
      <dc:date>2022-01-20T06:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: ONTAP Select PowerShell credential error</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-Select-PowerShell-credential-error/m-p/431507#M276</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Sorry for the late respond, I didn't saw any service policy on the ONTAP Select cifs vserver, i only saw that i have service-policy on the cluster (intercluster-core 0.0.0.0/0 and management-bgp 0.0.0.0/0), the same configuration is configured at all the other ONTAP Select that are working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 10:45:21 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-Select-PowerShell-credential-error/m-p/431507#M276</guid>
      <dc:creator>YehudaLevi1999</dc:creator>
      <dc:date>2022-02-01T10:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: ONTAP Select PowerShell credential error</title>
      <link>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-Select-PowerShell-credential-error/m-p/433044#M291</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.netapp.com/t5/user/viewprofilepage/user-id/106848"&gt;@YehudaLevi1999&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the errors you shared, the initial connection handshake is failing, thus any other powershell calls will fail. Below are a few observations:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your command includes a blank space between the dash - and HTTPS argument, resulting in the connection to first attempt HTTP method and failing:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"connect-nccontroller svm1 -credential $credential -verbose -debug &lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;- https&lt;/STRONG&gt;&lt;/FONT&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here we see the HTTPS being ignored:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;verbose: trying http/ https&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Here we see the blank space between the dash and HTTPS again with the additional argument to call upon variable $credential to authenticate:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;"connect-nccontroller -name svm2&lt;FONT color="#0000FF"&gt; - https&lt;/FONT&gt; -credential $credential -V.."&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then we see the error header failing to connect via HTTP not HTTPS:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;"&lt;SPAN&gt;category info: invalidresult :(svm1:nccontroller) [connect-nccontroller], naconnectionSSLexception&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;fullyqualifederrorid: &lt;FONT color="#0000FF"&gt;httpconnection&lt;/FONT&gt; failed,dataontap.c.powershell.sdk.connnectnccontroller"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please check the command for any syntax errors, along with the configuration for $credential; to eliminate HTTPS or SSL certificate as the issue, simplify the $credential variable configuration and test using HTTP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sharing a connection test I used in a lab:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;PS LAB&amp;gt; $creds_nc1 = Get-Credential -message 'Please provide password for nc1'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;PS LAB&amp;gt; $creds_nc2 = Get-Credential -message 'Please provide password for nc2'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;PS LAB&amp;gt; $nc1 = Connect-NcController lab-cluster1 -Credential $creds_nc1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;PS LAB&amp;gt; $nc2 = Connect-NcController lab-cluster2 -Credential $creds_nc2&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Team NetApp&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 06:27:09 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Rest-API-Discussions/ONTAP-Select-PowerShell-credential-error/m-p/433044#M291</guid>
      <dc:creator>ttran</dc:creator>
      <dc:date>2022-03-16T06:27:09Z</dc:date>
    </item>
  </channel>
</rss>

