ONTAP Discussions

Highlighted

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

language : powershell

 

ontap9 woks below code.

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

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

$s.TransportType = "HTTPS";

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

 

but 7-mode dosen't work.

 

4 REPLIES 4
Highlighted

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

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. 

Highlighted

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

Thank you for your answer.

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

Is PowershellToolkit the only way?

 

best regards.

Highlighted

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

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. 

Highlighted

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

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

Check out the KB!
NetApp Insights To Action
All Community Forums