Automation

 View Only
  • 1.  finding uuid of vmfs datastore

    Posted Oct 25, 2017 01:55 PM

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



  • 2.  RE: finding uuid of vmfs datastore

    Posted Oct 25, 2017 02:17 PM

    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



  • 3.  RE: finding uuid of vmfs datastore

    Posted Oct 25, 2017 02:24 PM

    Sorry I mean how do I do it from powercli.

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



  • 4.  RE: finding uuid of vmfs datastore
    Best Answer

    Posted Oct 25, 2017 02:30 PM

    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



  • 5.  RE: finding uuid of vmfs datastore

    Posted Oct 25, 2017 02:43 PM

    Thanks

    guess it also works with esxcli in powercli

    $esxcli.storage.filesystem.list()



  • 6.  RE: finding uuid of vmfs datastore

    Posted Oct 25, 2017 02:27 PM

    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