Reply to Message

View discussion in a popup

Replying to:
lamw
Community Manager
Community Manager

If you've installed vCLI and vSphere SDK for Perl, you'll have additional utilities on top of what's there with the vCLI, take a look at this list:

One script that can help with listing datastore files for a given VM is dsbrowse.pl

Here is an example:

[vi-admin@scofield ~]$ /usr/lib/vmware-vcli/apps/host/dsbrowse.pl --server himalaya.primp-industries.com --username root --name dlgCore-iSCSI.test


Information about datastore : 'dlgCore-iSCSI.test'
---------------------------
Summary
 Name             : dlgCore-iSCSI.test
 Location         : /vmfs/volumes/4a26f505-02dfd8a4-6867-003048d9586a
 File system      : VMFS
 Maximum Capacity : 15.75 GB
 Available space  : 11.654296875 GB

Hosts associated with this datastore.
 himalaya.primp-industries.com

Virtual machines on this datastore.
 None

Templates on this datastore.
 None

Datastore Folder Structure.
 Folder Path: '[http://dlgCore-iSCSI.test|http://dlgCore-iSCSI.test]'
 Files present
  testagain
  testlab-1
  testlab-2
  testlab-3
  testlab-4
  testlab-5
  testlab-6
  testlab-7
  testlab-8
  testlab-9
  testlab-10
  testlab-11
  testlab-12
  testlab-13
  testlab-14
  testlab-15

 Folder Path: '[http://dlgCore-iSCSI.test|http://dlgCore-iSCSI.test] testagain'
 Files present
  testagain.vmdk
  vmware.log
  testagain.nvram
  vmware-70.log
  vmware-65.log
  vmware-66.log
  vmware-68.log
  vmware-67.log
  vmware-69.log
  testagain-flat.vmdk
  testagain.vmx
  testagain.vmxf
  testagain.vmsd


=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

If you find this information useful, please award points for "correct" or "helpful".

View solution in original post

Reply
0 Kudos