4 Replies Latest reply on May 17, 2019 10:08 PM by LucD

    Find linux box

    fborges555 Enthusiast

      Hi Gurus


      has anyone here have a PScli that I can use to find Linux box and its adapter type , that I can use.



        • 1. Re: Find linux box
          LucD Guru
          vExpertCommunity WarriorsUser Moderators

          Do you the VMware Tools installed on your VMs?
          Which adapter, storage or network?

          • 2. Re: Find linux box
            daphnissov Guru
            vExpertCommunity Warriors

            Please explain better what you mean. No idea what you're asking for.

            • 3. Re: Find linux box
              fborges555 Enthusiast



              The vast vm has VM tools install and I am looking at vmxnet3 adapter.


              I have windows vm and Linux vm on my cluster and I would like to run a ps so I can come up with a list of only Linux and what type of adapter they have


              Thanks L.

              • 4. Re: Find linux box
                LucD Guru
                User ModeratorsCommunity WarriorsvExpert

                Try something like this


                Get-VM |

                where{$_.ExtensionData.GuestFamily -ne 'windowsGuest'} |

                Select Name,


                   @{N='vNICType';E={(Get-NetworkAdapter -VM $_).Type -join '|'}}


                If you don't want to rely on the VMware Tools and you are sure that all your VMs were configured with the correct GuestId, you could do


                Get-VM |

                where{$_.GuestId -notmatch 'windows'} |

                Select Name,


                   @{N='vNICType';E={(Get-NetworkAdapter -VM $_).Type -join '|'}}