Ping4info
  • Home
  • About

Inspiring Your Journey to the Cloud...

Tag Archives: one-liner

PowerCLI one liner for finding HBA model, WWPN and driver details.

Added July 12, 2013, By Sreejesh Damodaran with No Comments
Reply

Its a one liner for getting HBA details of all hosts connected to a vCenter Server.

[crayon lang=”powershell”]

Connect-VIServer vCenter1

get-vmhost | Get-VMHostHba -Type FibreChannel |
Select  VMHost,Device, model,Driver,PortWorldWideName,NodeWorldWideName |
Export-Csv -NoTypeInformation c:\output\HBA-details.csv

[/crayon]

PowerCLI one-liner to find the VM which has Raw access to a particular LUN

Added April 2, 2013, By Sreejesh Damodaran with No Comments
Reply

We had a requirement to find the VM with RDM which holds specific naa ID. The following one-liner made our task easy.

[crayon lang=”powershell”]
Get-VM | Get-HardDisk-DiskType”RawPhysical”,”RawVirtual” | where {$_.ScsiCanonicalName -eq “naa.60008ac00071254a”} |
Select-Object Parent, ScsiCanonicalName
[/crayon]


Follow @sreejeshd

Recent Comments

  • amit dubey on Steps to find NAA ID of a RDM LUN mapped to a Windows Volume
  • Kenneth Vargas on PowerCLI script to Set Perennial reservation on RDM LUNs in a Cluster
  • John Couch on Steps to find NAA ID of a RDM LUN mapped to a Windows Volume
  • Sreejesh on Steps to find NAA ID of a RDM LUN mapped to a Windows Volume
  • zhdl muhammed on Steps to find NAA ID of a RDM LUN mapped to a Windows Volume

Tags

AI ALP2.1 App Launchpad Automation Bash Cisco Nexus Container Service Extenstion Crond CSE ESXi ESXi 5.1 GPU Kubernetes ML Network NSX-T NVIDIA one-liner Photon OS PowerCLI powershell PSOD Report tanzu Tanzu Kubernetes Grid TCP\IP Tenant App TKGm UCS Upgrade VCD VCD10.3.1 vCenter vCenter 5.1 vCloud VCPP VGPU vMA vmware VMware Appliances VMware Cloud Director vShield Endpoint vSphere
Copyright © 2013 ping4info. All rights reserved.