Report on VMs mapped to incorrect Lun under vRanger

Welcome Forums General PowerShell Q&A Report on VMs mapped to incorrect Lun under vRanger

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
2 years, 8 months ago.

  • Author
    Posts
  • #37495

    Participant
    Points: 11
    Rank: Member

    Hi,

    I wrote a script which will report VM's mapped to incorrect Lun under vRanger.

    Get-VM |
    Select Name,
    @{N="Datastore";E={[string]::Join(',',(Get-Datastore -Id $_.DatastoreIdList | Select -ExpandProperty Name))}},
    @{N="Folder";E={$_.Folder.Name}} |
    Export-Csv C:\Users\venkatak\Desktop\script\report.csv -NoTypeInformation -UseCulture

    The report is fine.

    My requirement is I just wanted (If server name is abcapp01, it should be under lun-appXX), if suppose it is under lun-dbXX and vice versa, it should mail me.

    -Kalyan

  • #37496

    Participant
    Points: 26
    Rank: Member

    As this is a specific VMware question, I'd recommend you to post this question at the VMware vSphere PowerCLI forum: https://communities.vmware.com/community/vmtn/automationtools/powercli

The topic ‘Report on VMs mapped to incorrect Lun under vRanger’ is closed to new replies.