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

  • Clyde607 on How to Install NVIDIA Enterprise AI Driver on VMware ESXi
  • Bentley1706 on How to Install NVIDIA Enterprise AI Driver on VMware ESXi
  • Eden4639 on How to Install NVIDIA Enterprise AI Driver on VMware ESXi
  • 88jllogin Regular on PowerCLI to see the windows guest IPv4 Network Details.
  • 88jllogin Regular on PowerCLI to see the windows guest IPv4 Network Details.

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.