1 2 Previous Next 23 Replies Latest reply on Mar 28, 2017 12:46 AM by vin01 Go to original post
      • 15. Re: Host Hardware info with HBA and nic driver information
        Pinball Enthusiast
        vExpert

        Morning Luc

         

        Thanks for the work on this script. I've tried using it but end up with no driver Version Info.The script provide no errors to work with as to why it's missing.

         

        I'm using PowerCli 6 on vSphere 5.5 U2

         

        Fnicvendor   : {Emulex Corporation, Emulex Corporation}

        fnicdriver   :

        enicdriver   :

        Enicvendor   : Emulex

         

        Could you please guide me as to where to start looking for the missing piece.

         

        Done so far: $esxcli = Get-EsxCli -VMhost "hostname"

        Unable to list the details as a whole to see the syntax of the version.

         

        I might be misunderstanding as to how the query construct works.

         

        Thanks

         

        Johan

        • 16. Re: Host Hardware info with HBA and nic driver information
          LucD Guru
          User ModeratorsvExpertCommunity Warriors

          Are you sure you have those drivers installed ?

          Do a

           

          $esxcli.system.module.list() | where {$_.Name -like "*enic*"}

           

          Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
          • 17. Re: Host Hardware info with HBA and nic driver information
            poncia23 Lurker

            Hello, I know this is an older thread, how can i export the content to an csv?

            • 18. Re: Host Hardware info with HBA and nic driver information
              LucD Guru
              Community WarriorsUser ModeratorsvExpert

              Pipe the result to an Export-Csv cmdlet, eventually put a Select-Object before to select only the properties you want.

              Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
              • 19. Re: Host Hardware info with HBA and nic driver information
                vin01 Hot Shot

                You can do something like this.

                 

                Save the original script in .ps1 file and call the script and then export the output.

                 

                Ex:

                .\Hosthardwareinfo.ps1 |Export-Csv -Path 'D:\Temp\hosthardwareinfo.csv' -NoTypeInformation -NoClobber

                Regards
                Vineeth.K
                • 20. Re: Host Hardware info with HBA and nic driver information
                  swamynaveen Novice

                  Hi LucD/Vineeth,

                   

                  this script isn't pulling HBA model for Cisco UCS Blades. Please refer below output.

                   

                     

                  HostmodelDeviceModelStatusWWPNWWNFnicvendor
                  UCSB-B420-M3vmhba1Cisco VIC FCoE HBA Driveronline20:00:00:25:b5:25:00:0220:00:00:25:b5:25:a0:05Cisco Systems Inc
                  UCSB-B420-M3vmhba2Cisco VIC FCoE HBA Driveronline20:00:00:25:b5:25:00:0220:00:00:25:b5:25:b0:05Cisco Systems Inc
                  UCSB-B420-M3vmhba3Cisco VIC FCoE HBA Driveronline20:00:00:25:b5:25:00:0220:00:00:25:b5:25:a0:04Cisco Systems Inc
                  UCSB-B420-M3vmhba4Cisco VIC FCoE HBA Driveronline20:00:00:25:b5:25:00:0220:00:00:25:b5:25:b0:04Cisco Systems Inc
                  UCSB-B420-M3vmhba1Cisco VIC FCoE HBA Driveronline20:00:00:25:b5:25:00:0320:00:00:25:b5:25:a0:07Cisco Systems Inc
                  UCSB-B420-M3vmhba2Cisco VIC FCoE HBA Driveronline20:00:00:25:b5:25:00:0320:00:00:25:b5:25:b0:07Cisco Systems Inc
                  UCSB-B420-M3vmhba3Cisco VIC FCoE HBA Driveronline20:00:00:25:b5:25:00:0320:00:00:25:b5:25:a0:06Cisco Systems Inc
                  UCSB-B420-M3vmhba4Cisco VIC FCoE HBA Driveronline20:00:00:25:b5:25:00:0320:00:00:25:b5:25:b0:06Cisco Systems Inc
                  UCSB-B420-M3vmhba1Cisco VIC FCoE HBA Driveronline20:00:00:25:b5:25:00:0420:00:00:25:b5:25:a0:09Cisco Systems Inc
                  UCSB-B420-M3vmhba2Cisco VIC FCoE HBA Driveronline20:00:00:25:b5:25:00:0420:00:00:25:b5:25:b0:09Cisco Systems Inc
                  UCSB-B420-M3vmhba3Cisco VIC FCoE HBA Driveronline20:00:00:25:b5:25:00:0420:00:00:25:b5:25:a0:08Cisco Systems Inc

                   

                   

                  Best Regards,

                  Swamy Naveen.

                  • 21. Re: Host Hardware info with HBA and nic driver information
                    LucD Guru
                    Community WarriorsUser ModeratorsvExpert

                    If the UCS blades do not expose the info in the way ESXi expects it, you will not be able to obtain that info in this way.

                     

                    But have a look at  3.  Re: Can we write "PowerCLI Script" to get Cisco UCS VIC1240 Card Details (Firmware???

                    Blog: http://lucd.info | Twitter: @LucD22 | PowerCLI Reference co-author: http://tinyurl.com/hkn4glz
                    • 22. Re: Host Hardware info with HBA and nic driver information
                      AlbertWT Master

                      vineeth,

                       

                      So what does the remarked lines are for:

                       

                      @{N="Fnicvendor";E={$esxcli.software.vib.list() | ? {$_.Name -match ".*$($hba.hbadriver).*"} | Select -First 1 -Expand Vendor}},

                      @{N="Enicvendor";E={$esxcli.software.vib.list() | ? {$_.Name -match ".net.*"} | Select -First 1 -Expand Vendor}},

                      @{N="Enicvendor";E={$esxcli.network.nic.list() | where {$vmnic.name -eq $_.vmnic1} | select -First 1 -ExpandProperty Description }}

                      • 23. Re: Host Hardware info with HBA and nic driver information
                        vin01 Hot Shot

                        You can remove those lines which are commented with # from the script which is marked as correct.

                        While working on the script I have tested multiple ways to get Fnic and Enic vendor info. Mistakenly I have copied those lines in main script you can ignore or remove the lines which are marked with #

                        Regards
                        Vineeth.K
                        1 2 Previous Next