ONTAP Rest API Discussions

error with api login using powershell

YehudaLevi1999
976 Views

when running the following command for svm1 on the cluster "connect-nccontroller svm1 -credential $credential
-verbose -debug - https" and providing the right local username/password, we can see the name of the svm and the ontap version, but
when running the same command for svm2, we are getting the following error:
verbose: trying http/ https
connect-nccontroller" cloud
not command to svm2 on port 443 for protocol https
connect-nccontroller -name svm2 - https -credential $credential -V...
category info: invalidresult :(svm1:nccontroller) [connect-nccontroller], naconnectionSSLexception
fullyqualifederrorid:
httpconnection failed,dataontap.c.powershell.sdk.connnectnccontroller
verbose: failed to connect to svm2
verbose: setting value of
global:currentnccontroller
verbose: starting ems logging
verbose: failed to complete emc logging object reference not set to an
instance of an object

i have create new ssl certificate for svm1 and svm2, but still not working.
ontap powershell version
9.9.1.2106 , ontap version 9.6P9

tried running the command for svm2 with the ip of one of the interfaces , svm name, full dns name
of the svm.
svm1 and svm2 are using "dns load balancing", each svm has 4 lifs.

 

1 ACCEPTED SOLUTION

aladd
882 Views

Can you provide the output from the below commands?

 

::>vserver show -inst

::>net int show -inst

::>net int service-policy show -vserver svm1

::>net int service-policy show -vserver svm2

View solution in original post

3 REPLIES 3

aladd
883 Views

Can you provide the output from the below commands?

 

::>vserver show -inst

::>net int show -inst

::>net int service-policy show -vserver svm1

::>net int service-policy show -vserver svm2

YehudaLevi1999
795 Views

I don't how , but using the commands I figured out what was the problem - the server-policy of the svm2 (not working) missed the "management-https" in order to support the powershell commands.

after adding this service to the policy, everything is working .

Thanks !!!

 

 

YehudaLevi1999
783 Views

Well, it worked on most of  the systems, but i have the same error on two ontap select systems, since there is not service-policy , i can't changed it, also i have create a new ssl certificate for all of the svm's .

any idea ?

Public