Subscribe

Vfiler Tunneling with C# SDK 5.5

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);
}