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

  • Carey1828 on How to Install NVIDIA Enterprise AI Driver on VMware ESXi
  • erly liraglutide injection side effects on Uninstalling NVIDIA Enterprise AI Drivers from ESXi
  • liraglutide and tirzepatide together on How to Uninstall the Spherelet from an ESXi Host
  • orlistat capsulas blandas on Simplifying Host Commissioning in VMware Cloud Foundation with Bulk Commission
  • bupropion uses reddit on Simplifying VM Deployments with vGPU Policies in VMware Cloud Director 10.5.1

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.