ONTAP Discussions

how do i connect to 7-mode from managibility-sdk https?

h-maeda
3,118 Views

language : powershell

 

ontap9 woks below code.

--------------------

[NetApp.Manage.NaServer] $s = New-Object NetApp.Manage.NaServer ---

$s.TransportType = "HTTPS";

--------------------

 

but 7-mode dosen't work.

 

1 ACCEPTED SOLUTION

h-maeda
3,003 Views

Thank you for your answer

 

There is a reason to use powershell,that is in this program set  ACL to qtree too.

※we use cifs protocol

 

I will consider other options as you say.

 

Thank you for your cooperation.

View solution in original post

4 REPLIES 4

donny_lang
3,094 Views

You can use the "Connect-NaController" cmdlet to connect to a 7-Mode system and specify the HTTPS parameter to force the connection to use HTTPS and not fall back to HTTP in the event of a failure:

 

Connect-NaController <controller> -HTTPS 

 

See the output of the  "Get-Help Connect-NaController -Full" command for complete documentation, and cmdlet examples. 

h-maeda
3,069 Views

Thank you for your answer.

but i have already created many programs with managibility-sdk.

Is PowershellToolkit the only way?

 

best regards.

donny_lang
3,048 Views

PowerShell is certainly not the only option you have for leveraging the SDK - Python, Perl, Ansible (and probably more that I'm not listing) are also available. I'm a lot less familiar with those options since we are heavily invested in PowerShell at my organization, but I have seen references to many examples in various online documentation. 

h-maeda
3,004 Views

Thank you for your answer

 

There is a reason to use powershell,that is in this program set  ACL to qtree too.

※we use cifs protocol

 

I will consider other options as you say.

 

Thank you for your cooperation.

Public