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

  • Florence3332 on How to Install NVIDIA Enterprise AI Driver on VMware ESXi
  • Marisa473 on How to Install NVIDIA Enterprise AI Driver on VMware ESXi
  • Alexandra2515 on How to Install NVIDIA Enterprise AI Driver on VMware ESXi
  • Antonio3654 on How to Install NVIDIA Enterprise AI Driver on VMware ESXi
  • Atticus3562 on How to Install NVIDIA Enterprise AI Driver on VMware ESXi

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.