Software Development Kit (SDK) and API Discussions

Vfiler Tunneling with C# SDK 5.5

bainy13

Hi All,

 

The bellow code works fine, however the filer i am querying has igroups created under a vfiler.

In powershell you would use something like the following to see igroups under a vfiler

 

Connect-NaController -Name 192.168.1.1 -Credential root -Vfiler vfiler1

Get-NaIgroup

 

I Cannot find any equivilent inside the 5.5 SDK, can anyone offer any answers?

 

 

String connection = "192.168.1.1";
String user = @"root";
String password = "password123";

 

NaFiler filer = new NaFiler(connection);
filer.Credentials = new NetworkCredential(user, password);
filer.ForceUseUnsecure = true;

 

IgroupListInfo igroupIn = new IgroupListInfo();
IgroupListInfoResult igroupOut = igroupIn.Invoke(filer);

 

foreach (InitiatorGroupInfo Igroup in igroupOut.InitiatorGroups)
{
       Console.WriteLine("------------------------------------------------- ");
       Console.WriteLine("InitiatorGroupName: " + Igroup.InitiatorGroupName);
       Console.WriteLine("InitiatorGroupType: " + Igroup.InitiatorGroupType);
}

0 REPLIES 0
Announcements
Register for Insight 2021 Digital

INSIGHT 2021 Digital: Meet the Specialists 2

On October 20-22, gear up for a fully digital, totally immersive virtual experience with a downright legendary lineup of world-renowned specialists. Tune in for visionary conversations, solution deep dives, technical sessions and more.

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