
com.vmware.vim25.mo.samples.storage.PrintStorageSystem.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vijava Show documentation
Show all versions of vijava Show documentation
Java API for accessing VMWare web services API
The newest version!
???? 2? 6com/vmware/vim25/mo/samples/storage/PrintStorageSystem java/lang/Object ()V Code
LineNumberTable LocalVariableTable this 8Lcom/vmware/vim25/mo/samples/storage/PrintStorageSystem; main ([Ljava/lang/String;)V
Exceptions java/lang/Exception java/lang/System out Ljava/io/PrintStream; :Usage: java PrintStorageSystem
java/io/PrintStream println (Ljava/lang/String;)V " #com/vmware/vim25/mo/ServiceInstance $ java/net/URL
# &
! ( ) 6(Ljava/net/URL;Ljava/lang/String;Ljava/lang/String;Z)V + sjin-dev1.eng.vmware.com
! - . /
getRootFolder ()Lcom/vmware/vim25/mo/Folder; 1 &com/vmware/vim25/mo/InventoryNavigator
0 3 4 &(Lcom/vmware/vim25/mo/ManagedEntity;)V 6
HostSystem
0 8 9 : searchManagedEntity I(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/mo/ManagedEntity; < com/vmware/vim25/mo/HostSystem > Host not found
! @ A B getServerConnection (()Lcom/vmware/vim25/mo/ServerConnection;
D F E $com/vmware/vim25/mo/ServerConnection G logout
; I J K getHostStorageSystem )()Lcom/vmware/vim25/mo/HostStorageSystem; M #Supported file system volume types:
O Q P %com/vmware/vim25/mo/HostStorageSystem R S getFileSystemVolumeInfo -()Lcom/vmware/vim25/HostFileSystemVolumeInfo;
U V W printFileVolumeInfo .(Lcom/vmware/vim25/HostFileSystemVolumeInfo;)V Y
Storage device information:
O [ \ ] getStorageDeviceInfo *()Lcom/vmware/vim25/HostStorageDeviceInfo;
_ ` a printStorageDeviceInfo +(Lcom/vmware/vim25/HostStorageDeviceInfo;)V args [Ljava/lang/String; si %Lcom/vmware/vim25/mo/ServiceInstance; hostname Ljava/lang/String;
rootFolder Lcom/vmware/vim25/mo/Folder; host Lcom/vmware/vim25/mo/HostSystem; hds 'Lcom/vmware/vim25/mo/HostStorageSystem; vi +Lcom/vmware/vim25/HostFileSystemVolumeInfo; hsdi (Lcom/vmware/vim25/HostStorageDeviceInfo;
StackMapTable c u java/lang/String w com/vmware/vim25/mo/Folder y
Host bus adapters
{ } | &com/vmware/vim25/HostStorageDeviceInfo ~ getHostBusAdapter (()[Lcom/vmware/vim25/HostHostBusAdapter;
? ? ? printHBAs )([Lcom/vmware/vim25/HostHostBusAdapter;)V ?
Multipath information
{ ? ? ? getMultipathInfo &()Lcom/vmware/vim25/HostMultipathInfo;
? ? ? printMultiPathInfo '(Lcom/vmware/vim25/HostMultipathInfo;)V ?
SCSI LUNs
{ ? ? ?
getScsiLun ()[Lcom/vmware/vim25/ScsiLun;
? ? ?
printScsiLuns ([Lcom/vmware/vim25/ScsiLun;)V
{ ? ? ? getScsiTopology %()Lcom/vmware/vim25/HostScsiTopology;
? ? ? printScsiTopology &(Lcom/vmware/vim25/HostScsiTopology;)V ? java/lang/StringBuilder ?
Software iSCSI enabled:
? &
{ ? ? ? isSoftwareInternetScsiEnabled ()Z
? ? ? ? append (Z)Ljava/lang/StringBuilder;
? ? ? ? toString ()Ljava/lang/String; hmi $Lcom/vmware/vim25/HostMultipathInfo; hst #Lcom/vmware/vim25/HostScsiTopology; ? Device:
? ? ? #com/vmware/vim25/HostHostBusAdapter ? ? getDevice
? ? ? ? -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? Bus:
? ? ? ? getBus ()I
? ? ? ? (I)Ljava/lang/StringBuilder; ? Driver:
? ? ? ? getDriver ? Key:
? ? ? ? getKey ? Model:
? ? ? ? getModel ? PCI:
? ? ? ? getPci ? Status:
? ? ? ? getStatus hbas &[Lcom/vmware/vim25/HostHostBusAdapter; i I
? ? ? !com/vmware/vim25/HostScsiTopology ? ?
getAdapter /()[Lcom/vmware/vim25/HostScsiTopologyInterface; ? Adapter:
? ? ? *com/vmware/vim25/HostScsiTopologyInterface ? ?
? ?
? ? ? ? getTarget ,()[Lcom/vmware/vim25/HostScsiTopologyTarget;
? ? ? 'com/vmware/vim25/HostScsiTopologyTarget ? Target:
? ? ? ? ?
Transport:
? getTransport (()Lcom/vmware/vim25/HostTargetTransport;
getClass ()Ljava/lang/Class;
java/lang/Class ? getName
?
getLun )()[Lcom/vmware/vim25/HostScsiTopologyLun;
? $com/vmware/vim25/HostScsiTopologyLun LUN:
? ScsiLun:
? ? hstis -[Lcom/vmware/vim25/HostScsiTopologyInterface; hstts *[Lcom/vmware/vim25/HostScsiTopologyTarget; j luns '[Lcom/vmware/vim25/HostScsiTopologyLun; k!' UUID:
)+* com/vmware/vim25/ScsiLun, ? getUuid. CanonicalName:
)01 ? getCanonicalName3 LunType:
)56 ?
getLunType8 OperationalState:
:; print
)=>? getOperationalState ()[Ljava/lang/String;
tABC valueOf &(Ljava/lang/Object;)Ljava/lang/String;E G
SCSI Level:
)IJK getScsiLevel ()Ljava/lang/Integer;
?M ?N -(Ljava/lang/Object;)Ljava/lang/StringBuilder;P Vendor:
)RS ? getVendor sls [Lcom/vmware/vim25/ScsiLun; states
XZY "com/vmware/vim25/HostMultipathInfo[ 2()[Lcom/vmware/vim25/HostMultipathInfoLogicalUnit;] ID:
_a` -com/vmware/vim25/HostMultipathInfoLogicalUnitb ? getId
_ ?
_e ?
_ghi getPath +()[Lcom/vmware/vim25/HostMultipathInfoPath;k Adpator:
m ?n &com/vmware/vim25/HostMultipathInfoPath
meq Name:
m
t
PathState:
mvw ? getPathState
m
_z{| getPolicy 7()Lcom/vmware/vim25/HostMultipathInfoLogicalUnitPolicy;~ Policy:
??? 3com/vmware/vim25/HostMultipathInfoLogicalUnitPolicy{ ? lus 0[Lcom/vmware/vim25/HostMultipathInfoLogicalUnit; hmips )[Lcom/vmware/vim25/HostMultipathInfoPath; policy 5Lcom/vmware/vim25/HostMultipathInfoLogicalUnitPolicy;??
??? )com/vmware/vim25/HostFileSystemVolumeInfo?? getVolumeTypeList? !
The file system volumes mounted:
???? getMountInfo -()[Lcom/vmware/vim25/HostFileSystemMountInfo;
??? (com/vmware/vim25/HostFileSystemMountInfo?? "()Lcom/vmware/vim25/HostMountInfo;?
Accessible:
??? com/vmware/vim25/HostMountInfo??
getAccessible ()Ljava/lang/Boolean;? AccessMode:
??? ?
getAccessMode? Path:
??h ?
???? getVolume )()Lcom/vmware/vim25/HostFileSystemVolume;? Capacity:
??? %com/vmware/vim25/HostFileSystemVolume?? getCapacity ()J
?? ?? (J)Ljava/lang/StringBuilder;
?
? Type:
??? ? getType info volTypes mis +[Lcom/vmware/vim25/HostFileSystemMountInfo; Lcom/vmware/vim25/HostMountInfo; hfsv 'Lcom/vmware/vim25/HostFileSystemVolume;?
SourceFile PrintStorageSystem.java ! / *? ?
<