UNSOLVED

KishoreG15

updated

10 years ago

K

KishoreG15

1 Message

0

8242

June 25th, 2016 04:00

PowerPath: Is there an option to get Volume Name & Device ID from Power Path or Diskpart

Hello Experts,

I am looking for some help on how to get the details of LUN ID, Volume ##, Disk ##, Mount Point Name & Path and VMAX Device ID from a windows host using either Power Path or Diskpart.

Sample of what I am looking for is:

Volume ##     Disk ##        Label          Size        VMAX Device ID

========    ========    ======     =====     =============

Volume 0      Disk 1           E:\Log       10 GB      1FB5

Volume 1      Disk 2           E:\DB        50 GB      25AD

Any help on this would be highly appreciated. Thank You.

Regards,

Krishna

  • pawelw1

    306 Posts

    5567

    1

    Posted June 26th, 2016 04:00

    Hi Krishna,

    I don't think there is a simple command that will provide such output - you would need to write a PowerShell script that would parse "powermt display dev=all" output, get the harddiskX and LUN names from there (or use Get-Disk cmdlet), then get volume/disk/size information from Get-Partition and/or Get-Volume cmdlets. Or you can try to use Diskpart in a batch mode to achieve the same, but since you are most likely going to write a script, it's probably way easier to use built-in PowerShell cmdlets.

    Hope that helps!

    Br,

    Pawel

  • Sam Claret

    86 Posts

    5567

    1

    Posted June 26th, 2016 05:00

    Hello

    With the EMCReports program - located here https://support.emc.com/search/?text=EMCReports&resource=ST

    There is a utility file called INQ - separately accessible from ftp://ftp.emc.com/pub/symm3000/inquiry/v8.2.0.0/

    Download the file called inq.windowsamd64_exe and rename to inq.exe

    If you execute this in a command prompt with the following switches

    inq -showvol -parent

    this should show you the Disk, Size and Device ID

    Note if Size for a specific disk reports ----- or NA or FAILED - this means the INQ utility was unable to query the size of the disk not that the disk is failed.

    INQ -h will display the options available for this utility.

    Diskpart definitely wont be able to display the VMax device ID. But can display the rest with the "list volume" output

    Apart from that you will probably need to join together outputs from several different commands.

    Thank you

    Sam

  • andress1

    27 Posts

    5567

    1

    Posted July 12th, 2016 13:00

    Hi Krishna,

    There is no way you will be able to get everything you want using PP or DiskPart. What you could do is get the disk/volume/size information from DiskPart and then correlate that with PP:

    DiskPart > select disk <#> (ie. select disk 8) > detail disk

    CMD Admin > powermt display dev=<# matching disk in diskpart> (ie. dev=8)

    Andres