0
我想使用netapp ontap api 8.1獲取有關磁盤,聚集和LUN的信息。 我能夠得到使用下面的代碼量的列表:如何使用netapp ontap api(8.1)和java獲取存儲系統的磁盤,聚合和LUN信息?
VolumeListInfoIterStartRequest volumeListReq = new VolumeListInfoIterStartRequest();
Iterator<VolumeInfo> volumeIter = apirunner.iterate(volumeListReq,10);
VolumeInfo volume ;
while(volumeIter.hasNext()) {
System.out.println("------------------------------------------------");
volume = volumeIter.next();
System.out.println("Name : " + volume.getName());
System.out.println("Type : " + volume.getType());
System.out.println("State : " + volume.getState());
System.out.println("Total size (bytes) : " + volume.getSizeTotal());
System.out.println("Used size (bytes) : " + volume.getSizeUsed());
System.out.println("Total disk count is .. "+ volume.getDiskCount());
System.out.println("sysinfo is .. "+ volume.getSis());
System.out.println("Total available size .. " + volume.getSizeAvailable());
System.out.println("UUID is .. "+volume.getUuid());
String vol = volume.getName();
System.out.println("snapshot is "+ volume);
System.out.println("------------------------------------------------");
}
但是當我嘗試使用API,用於LUN完全相同如上我在迭代函數得到錯誤。 我的代碼是:
LunListInfoRequest lunreq = new LunListInfoRequest();
System.out.println("luninfo is .. " + lunreq);
Iterator<LunInfo> lunInfoIter = apirunner.iterate(lunreq,10);
我在最後一行發生錯誤。
如何獲取有關磁盤,聚合和LUN的信息?