VMware Cloud Community
Ravi1987
Contributor
Contributor
Jump to solution

How to generate report for LUN attched to esx

hi i m using esx 3.5 with vc 2.5 u 3 .we are using 4 host cluster and having 25 luns attached to them vm creation is very frquent in our production testing environment. can any body tell me the command or way so i can generate report for every lun attached to the esx like size of lun ,,used,free..second how many vm's i have on perticulr lun

Ravi
Tags (3)
0 Kudos
1 Solution

Accepted Solutions
benma
Hot Shot
Hot Shot
Jump to solution

vdf -h

should fit your needs

View solution in original post

0 Kudos
4 Replies
benma
Hot Shot
Hot Shot
Jump to solution

vdf -h

should fit your needs

0 Kudos
Ravi1987
Contributor
Contributor
Jump to solution

thanks for reply .

but it will generate first all the machine per lun .and please can we do both activity in single shot

Ravi
0 Kudos
benma
Hot Shot
Hot Shot
Jump to solution

how many vms on a lun:

ls /vmfs/volume/DS1/ | wc -l

0 Kudos
runclear
Expert
Expert
Jump to solution

Grab the VI-Tool Kit,... or add the cmdlets to powershell and run...

Connect-VIserverOnce Connected... Run This will return all DataStores (Name + FreeSpace + Capacity)

Get-Datastore

-


-------------------- What the f* is the cloud?!
0 Kudos