I don't think that will work for me. I should have been clearer in my description. I have the size of the data store and it's capacity used already.
What I'd like to collect in addition to that is the size of eachof the files within a folder on the datastore.
NOTE: I am running the toolkit on a dedicated (virtualized) server and connecting to the virtual center server using the Util::Connect mechanism and It is preferred if this task be done using the perl tookit and/or API.
For example, in my output I have the following for a single datastore:
Data Store: DataStoreNumberOne
Type: VMFS
Size: 599.75 GB
Free: 92.7 GB
Folder Path: DataStoreNumberOne -> VMNumberOne/
Files Present:
VMNumberOne-flat.vmdk
VMNumberOne.vmdk
VMNumberOne-ctk.vmdk
vmware-6.log
vmware-7.log
svmware-8.log
What I'm looking for is a process to retrieve the size for each of the files located under "Files Present" using perl and the vmware vitookit/API.
Thank you.
Message was edited by: LinuxMonkey to correct formatting issue.