ONTAP Discussions

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

h-maeda

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

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

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

Thank you for your answer.

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

Is PowershellToolkit the only way?

 

best regards.

donny_lang

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

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

Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public