VMware Cloud Community
CannibalDuck
Contributor
Contributor
Jump to solution

Any way to get analog of lsusb output in powercli?

Is there any way to get ESXi host USB devices and port information in powercli? I can lsusb through SSH, but  wonder if there's a powercli solution?

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

I'm afraid USB passthrough devices were added to the esxcli command in vSphere 6.5.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
6 Replies
LucD
Leadership
Leadership
Jump to solution

Did you already try like this?

$esxName = 'MyEsx'

$esx = Get-VMHost -Name $esxName

$esxcli = Get-EsxCli -VMHost $esx -V2

$esxcli.hardware.usb.passthrough.device.list.Invoke()


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
CannibalDuck
Contributor
Contributor
Jump to solution

EsxCliElement: hardware

   Elements:

   ---------

   bootdevice

   clock

   cpu

   ipmi

   memory

   pci

   platform

   smartcard

   trustedboot

no usb here. Wrong version?

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Which ESXi version and which PowerCLI version are you using?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
CannibalDuck
Contributor
Contributor
Jump to solution

Get-PowerCLIVersion

PowerCLI Version

----------------

   VMware PowerCLI 6.5 Release 1 build 4624819

and vmhost version  is 6.0.0

Reply
0 Kudos
LucD
Leadership
Leadership
Jump to solution

I'm afraid USB passthrough devices were added to the esxcli command in vSphere 6.5.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
CannibalDuck
Contributor
Contributor
Jump to solution

Well, thanks for help Smiley Happy

Reply
0 Kudos