VMware Cloud Community
tdubb123
Expert
Expert
Jump to solution

finding uuid of vmfs datastore

how do i find the uuid of a datastore like this from esxcli?

Screen Shot 2017-10-25 at 6.54.47 AM.png

1 Solution

Accepted Solutions
conyards
Expert
Expert
Jump to solution

http://thephuck.com/virtualization/powercli-script-to-get-datastore-uuids/

Has a script that I'm sure you can modify to get the required output.

Simon

https://virtual-simon.co.uk/

View solution in original post

0 Kudos
5 Replies
conyards
Expert
Expert
Jump to solution

I'm confused...  the esxcli command to find the UUID of the datastores is in the screenshot;

esxcli storage filesystem list

If you where searching for one in a long list, you could used grep.

esxcli storage filesystem list | grep -i NameOfDataStore

Simon

https://virtual-simon.co.uk/
0 Kudos
tdubb123
Expert
Expert
Jump to solution

Sorry I mean how do I do it from powercli.

does get-datastore or get-scsilun provide some options?

conyards
Expert
Expert
Jump to solution

Sorry, just noticed the sub forum this is in.

Get-ScsiLun - vSphere PowerCLI Cmdlets Reference looks like it'll provide what you are looking for.

Simon

https://virtual-simon.co.uk/
0 Kudos
conyards
Expert
Expert
Jump to solution

http://thephuck.com/virtualization/powercli-script-to-get-datastore-uuids/

Has a script that I'm sure you can modify to get the required output.

Simon

https://virtual-simon.co.uk/
0 Kudos
tdubb123
Expert
Expert
Jump to solution

Thanks

guess it also works with esxcli in powercli

$esxcli.storage.filesystem.list()

0 Kudos