VMware Cloud Community
ehsanijavad
Enthusiast
Enthusiast
Jump to solution

Get list of Volumes that can add as datastores to the hosts

Hi all

could you please help me to Get list of Volumes that can add as datastores to the hosts?

output of This command: show all luns (include the luns that already exported to the host.)

$scsiLuns = $vmhost | Get-ScsiLun

I am looking for a script to show me luns that they are not consumed.

Snag_1643a8ab.png

Snag_1642ee54.png

 Thanks in advance for your help.

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Try my Get-FreeScsiLun function.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

Try my Get-FreeScsiLun function.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
ehsanijavad
Enthusiast
Enthusiast
Jump to solution

Thanks LucD.

0 Kudos