Thursday, January 19, 2012

PowerCLI to get VMs Hard disk info

PS C:\Users\Nutanix01> get-VM *PDS* -Location *Atlas* |Get-HardDisk
CapacityKB Persistence Filename
---------- ----------- --------
104857600 Persistent ...RED-DS-01] Win2003_PDS_RDM/Win2003_PDS_RDM.vmdk
104857600 Persistent ...D-DS-01] Win2003_PDS_RDM/Win2003_PDS_RDM_1.vmdk
104857600 Persistent ...D-DS-01] Win2003_PDS_RDM/Win2003_PDS_RDM_2.vmdk
209715200 Persistent ...D-DS-01] Win2003_PDS_RDM/Win2003_PDS_RDM_3.vmdk
209715200 Persistent ...D-DS-01] Win2003_PDS_RDM/Win2003_PDS_RDM_4.vmdk

PS C:\Users\Nutanix01> get-VM *PDS* -Location *Atlas* |Get-HardDisk |fl

DeviceName : vml.010000000077696e323030335f4f535f363430363365653764636663383966383665373338386631383263564449534b20
ScsiCanonicalName : t10.NUTANIX_win2003_OS_64063ee7dcfc89f86e7388f182c2fa112d6420c5
Persistence : Persistent
DiskType : RawVirtual
Filename : [ATLAS-SHARED-DS-01] Win2003_PDS_RDM/Win2003_PDS_RDM.vmdk
CapacityKB : 104857600
ParentId : VirtualMachine-vm-2922
Parent : Win2003_PDS_RDM
Uid : /VIServer=root@172.16.4.254:443/VirtualMachine=VirtualMachine-vm-2922/HardDisk=2000/
ConnectionState :
ExtensionData : VMware.Vim.VirtualDisk
Id : VirtualMachine-vm-2922/2000
Name : Hard disk 1
DeviceName : vml.010000000077696e323030335f4c4f47315f62363139353438366163613762613663323066323966306531564449534b20
ScsiCanonicalName : t10.NUTANIX_win2003_LOG1_b6195486aca7ba6c20f29f0e1b66cdc0a0838a84
Persistence : Persistent
DiskType : RawVirtual
Filename : [ATLAS-SHARED-DS-01] Win2003_PDS_RDM/Win2003_PDS_RDM_1.vmdk
CapacityKB : 104857600
ParentId : VirtualMachine-vm-2922
Parent : Win2003_PDS_RDM
Uid : /VIServer=root@172.16.4.254:443/VirtualMachine=VirtualMachine-vm-2922/HardDisk=2001/
ConnectionState :
ExtensionData : VMware.Vim.VirtualDisk
Id : VirtualMachine-vm-2922/2001
Name : Hard disk 2
DeviceName : vml.010000000077696e323030335f4c4f47325f38346333376565643634633135623538663565356266343463564449534b20
ScsiCanonicalName : t10.NUTANIX_win2003_LOG2_84c37eed64c15b58f5e5bf44c3de99ef3dd8ea28
Persistence : Persistent
DiskType : RawVirtual
Filename : [ATLAS-SHARED-DS-01] Win2003_PDS_RDM/Win2003_PDS_RDM_2.vmdk
CapacityKB : 104857600
ParentId : VirtualMachine-vm-2922
Parent : Win2003_PDS_RDM
Uid : /VIServer=root@172.16.4.254:443/VirtualMachine=VirtualMachine-vm-2922/HardDisk=2002/
ConnectionState :
ExtensionData : VMware.Vim.VirtualDisk
Id : VirtualMachine-vm-2922/2002
Name : Hard disk 3
DeviceName : vml.010000000077696e323030335f4442315f3731356236383061633339376363346162336434653034646364564449534b20
ScsiCanonicalName : t10.NUTANIX_win2003_DB1_715b680ac397cc4ab3d4e04dcd8013b49906f710
Persistence : Persistent
DiskType : RawVirtual
Filename : [ATLAS-SHARED-DS-01] Win2003_PDS_RDM/Win2003_PDS_RDM_3.vmdk
CapacityKB : 209715200
ParentId : VirtualMachine-vm-2922
Parent : Win2003_PDS_RDM
Uid : /VIServer=root@172.16.4.254:443/VirtualMachine=VirtualMachine-vm-2922/HardDisk=2003/
ConnectionState :
ExtensionData : VMware.Vim.VirtualDisk
Id : VirtualMachine-vm-2922/2003
Name : Hard disk 4
DeviceName : vml.010000000077696e323030335f4442325f3138633663663332613031633334633539303136343638313533564449534b20
ScsiCanonicalName : t10.NUTANIX_win2003_DB2_18c6cf32a01c34c5901646815349a59859006b77
Persistence : Persistent
DiskType : RawVirtual
Filename : [ATLAS-SHARED-DS-01] Win2003_PDS_RDM/Win2003_PDS_RDM_4.vmdk
CapacityKB : 209715200
ParentId : VirtualMachine-vm-2922
Parent : Win2003_PDS_RDM
Uid : /VIServer=root@172.16.4.254:443/VirtualMachine=VirtualMachine-vm-2922/HardDisk=2004/
ConnectionState :
ExtensionData : VMware.Vim.VirtualDisk
Id : VirtualMachine-vm-2922/2004
Name : Hard disk 5

Hard disk on cloned :
PS C:\Users\Nutanix01> get-VM *PDS* -Location *Proteus* |Get-HardDisk|fl


StorageFormat : Thick
Persistence : Persistent
DiskType : Flat
Filename : [PDS_VMFS] New Virtual Machine/New Virtual Machine.vmdk
CapacityKB : 104857600
ParentId : VirtualMachine-vm-2926
Parent : Windows2003-PDS-cloned_from_Atlas
Uid : /VIServer=root@172.16.4.254:443/VirtualMachine=VirtualMachine-vm-2926/HardDisk=2000/
ConnectionState :
ExtensionData : VMware.Vim.VirtualDisk
Id : VirtualMachine-vm-2926/2000
Name : Hard disk 1
StorageFormat : Thick
Persistence : Persistent
DiskType : Flat
Filename : [PDS_VMFS] New Virtual Machine/New Virtual Machine_1.vmdk
CapacityKB : 104857600
ParentId : VirtualMachine-vm-2926
Parent : Windows2003-PDS-cloned_from_Atlas
Uid : /VIServer=root@172.16.4.254:443/VirtualMachine=VirtualMachine-vm-2926/HardDisk=2001/
ConnectionState :
ExtensionData : VMware.Vim.VirtualDisk
Id : VirtualMachine-vm-2926/2001
Name : Hard disk 2
StorageFormat : Thick
Persistence : Persistent
DiskType : Flat
Filename : [PDS_VMFS] New Virtual Machine/New Virtual Machine_2.vmdk
CapacityKB : 104857600
ParentId : VirtualMachine-vm-2926
Parent : Windows2003-PDS-cloned_from_Atlas
Uid : /VIServer=root@172.16.4.254:443/VirtualMachine=VirtualMachine-vm-2926/HardDisk=2002/
ConnectionState :
ExtensionData : VMware.Vim.VirtualDisk
Id : VirtualMachine-vm-2926/2002
Name : Hard disk 3
StorageFormat : Thick
Persistence : Persistent
DiskType : Flat
Filename : [PDS_VMFS] New Virtual Machine/New Virtual Machine_3.vmdk
CapacityKB : 209715200
ParentId : VirtualMachine-vm-2926
Parent : Windows2003-PDS-cloned_from_Atlas
Uid : /VIServer=root@172.16.4.254:443/VirtualMachine=VirtualMachine-vm-2926/HardDisk=2003/
ConnectionState :
ExtensionData : VMware.Vim.VirtualDisk
Id : VirtualMachine-vm-2926/2003
Name : Hard disk 4
StorageFormat : Thick
Persistence : Persistent
DiskType : Flat
Filename : [PDS_VMFS] New Virtual Machine/New Virtual Machine_4.vmdk
CapacityKB : 209715200
ParentId : VirtualMachine-vm-2926
Parent : Windows2003-PDS-cloned_from_Atlas
Uid : /VIServer=root@172.16.4.254:443/VirtualMachine=VirtualMachine-vm-2926/HardDisk=2004/
ConnectionState :
ExtensionData : VMware.Vim.VirtualDisk
Id : VirtualMachine-vm-2926/2004
Name : Hard disk 5

No comments: