I am able to connect to NetApp filer and get a list of LunInfo objects, but all LUN report null for volume. What am I missing? Here is code snippet:
LunListInfoRequest lunReq = new LunListInfoRequest();
LunListInfoResponse lunListInfoResp = runner.run(lunReq);
for (LunInfo lun : lunListInfoResp.getLuns()) {
System.out.println("------------------------------------------------");
System.out.println("Serial Number : " + lun.getSerialNumber());
System.out.println("Device Text Id : " + lun.getDeviceTextId());
System.out.println("Device Id : " + lun.getDeviceId());
System.out.println("Volume : " + lun.getVolume());
System.out.println("Uuid : " + lun.getUuid());
System.out.println("State : " + lun.getState());
System.out.println("Path : " + lun.getPath());
System.out.println("Size : " + lun.getSize());
System.out.println("Used : " + lun.getSizeUsed());
System.out.println("------------------------------------------------");
}
Result: LUNs:
Serial Number : XXXXXXXXXX
Device Text Id : null
Device Id : null
Volume : null
Uuid : 4f316a95-5ac3-5555-ad9b-a197023fc43b
State : null
Path : /vol/netapp1/netapp1
Size : 15393162788864
Used : 2068916805632