Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 176760

Misaligned VMDK's Powercli Script Help

$
0
0

I have a script that I run against a vCenter server. Basically finds all vm's in vCenter and ruins a get-wmiobject command against them to get the VMNAME, Partition, Offset and Status and exports it to excel.

 

Here's a sample output of the data that gets exported to excel:

 

VMNamePartitionOffsetStatus
pdxvvmdb1Disk #0, Partition #18193150KBPartition NOT aligned
pdxvvmdb1Disk #0, Partition #18193150KBPartition NOT aligned

 

My "problem" is its not giving me the correct partition info in excel (via system info), see below.

 

 

It only has 1 vmdk with 2 partitions, so it should output both partition 1 and 2 and the offsets, since they're both incorrect?

 

Also looking to add a line to the script to add the datastore and the vmdk file location ([PDXESX1_RAID] pdxvvmdb1/pdxvvmdb1.vmdk) in this case and have that output to the excel. Possible?

 

I attached the script since its pretty long....


Viewing all articles
Browse latest Browse all 176760

Trending Articles