2 Replies Latest reply on Aug 8, 2017 9:59 PM by mthiha207au

    Get-scsilunpath with VMhost name on output

    mthiha207au Lurker

      Dear All,

       

      I am still new to PowerCLI. My goal is to find death luns path in all the hosts.

      I can use this command  Get-VMHost  | Get-ScsiLun  | Get-scsilunpath | Where {$_.state -eq “Dead”}. This will give me nice the output like this. But No VMhost name.

       

      Name                SanID          State          Preferred

      -------               -------           ------          ----------

      vmhba.xxx       xx.xx.xx       Dead           True

       

      How can I have another column that includes hostname?

       

      Thank you!

      Max