NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Software Development Kit (SDK) and API Discussions

Vfiler Tunneling with C# SDK 5.5

bainy13
2,305 Views

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
Public