VMware

getAllVMsDiskFormatType.pl

VERSION 3 Published

Created on: Sep 14, 2009 3:14 PM by lamw - Last Modified:  Sep 14, 2009 3:26 PM by lamw

Script to retrieve VMs disk format type, specifically either 'thick' or 'thin' from either an ESX(i) host or vCenter.

Requirements:
ESX(i) 3.5 or 4.0
vCenter 2.5 or 4.0
VIMA 1.0 or vMA 4.0
VI Perl Toolkit or vSphere SDK for Perl

Sample Execution:

[vi-admin@scofield ~]$ ./getAllVMsDiskFormatType.pl --server himalaya.primp-industries.com --username root 
Enter password:

vm-1
=============================================
[himalaya-local-storage-1] vm-1/vm-1.vmdk isThinProv: NO
=============================================

vm-2
=============================================
[himalaya-local-storage-1] vm-2/vm-2.vmdk isThinProv: NO
=============================================

vm-3
=============================================
[himalaya-local-storage-2] vm-3/vm-3.vmdk isThinProv: YES
=============================================

Attachments:
Average User Rating
(0 ratings)




Comments

There are no comments on this document

 

Developer Social Media

Communities