VMware

This Question is Answered

2 "helpful" answers available (6 pts)
4 Replies Last post: Oct 30, 2009 3:32 AM by Dexxt0r  

Get size of file in datastore posted: Oct 22, 2009 2:31 AM

Click to view Dexxt0r's profile Novice 8 posts since
Jul 6, 2009

Hi,

I have a question regarding VMware Remote CLI scripts. The script vifs.pl allows us to manage files on a particular datastore.

With it, we can list files, upload, download, delete files...

And my question is if there's a way to retrieve size of file by using VMware SDK for Perl

Thanks in advance,

AnhTu


Re: Get size of file in datastore

1. Oct 22, 2009 6:54 AM in response to: Dexxt0r
Click to view lamw's profile Champion 2,818 posts since
Nov 27, 2007
You sure can, take a look at this script: listDatastoreFiles.pl

=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity
Twitter: @lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

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

Developer Social Media

Communities