设为首页 收藏本站
查看: 797|回复: 0

[经验分享] How to check firmware and drivers of a VMware ESXi host

[复制链接]

尚未签到

发表于 2018-6-4 10:09:55 | 显示全部楼层 |阅读模式
  方法一:
  http://www.nycnetworkers.com/vmware/check-firmware-drivers-vmware-esxi-host/
  Something that came up in the field, a ESXi host for some reason magically lost connection to our vCenter cluster. I checked the networking side and nothing came up (just connection down for the ports connecting to the host). I then KVMed into the server and the NICs looked like they were up as well! What? I couldnt ping or RDP to any vm on the host — what gives??
The decision from mgmt was to reboot the box. After rebooting the host, I was able to ping/RDP to the device and it came back into the vCenter. OK so what happened?
  Generally I keep the SSH on the ESXi Firewall turned off for obvious security reasons. I went into ESXi to turn it on and I SSHed into the host.
  login as: root
Using keyboard-interactive authentication.
Password:
The time and date of this login have been sent to the system logs.
VMware offers supported, powerful system administration tools. Please see www.vmware.com/go/sysadmintools for details.
The ESXi Shell can be disabled by an administrative user. See the vSphere Security documentation for more information.

  OK so now that I’m in, lets run a few commands….
  ~ # esxcfg-nics -l
  Name PCI Driver Link Speed Duplex MAC Address MTU Description
  vmnic0 0000:0b:00.00 bnx2 Up 1000Mbps Full 34:40:b5:d4:4e:c4 1500 Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T
  vmnic1 0000:0b:00.01 bnx2 Down 0Mbps Half 34:40:b5:d4:4e:c6 1500 Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T
  vmnic2 0000:10:00.00 bnx2 Down 0Mbps Half 5c:f3:fc:9e:c7:d8 1500 Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T
  vmnic3 0000:10:00.01 bnx2 Down 0Mbps Half 5c:f3:fc:9e:c7:da 1500 Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T
  vmnic4 0000:1a:00.00 be2net Up 10000Mbps Full 00:00:c9:da:3a:62 1500 Emulex Corporation OneConnect 10Gb NIC
  vmnic5 0000:1a:00.01 be2net Up 10000Mbps Full 00:00:c9:da:3a:66 1500 Emulex Corporation OneConnect 10Gb NIC
  vusb0 Pseudo cdc_ether Up 10Mbps Half 36:40:b5:f9:3d:8f 1500 Unknown Unknown
  This command list out the NICs I got on this host. It also tells me the name VMware gives it. In this case, we got I’m interested in 2 NICs on this host named vmnic4 and vmnic5. So to get more details on them run the following…
  ~ # ethtool -i vmnic4
driver: be2net
version: 4.1.255.11
firmware-version: 4.2.433.3
bus-info: 0000:1a:00.0

  ~ # ethtool -i vmnic0
driver: bnx2
version: 2.0.15g.v50.11-7vmw
firmware-version: bc 7.4.0 NCSI 2.0.11
bus-info: 0000:0b:00.0

  OK this gives me the driver version and the firmware version. Why is this information important for this post? After the VMware Admin went through the logs and found nothing showing why the host lost networking connectivity, and after I looked on my end and nothing looked out of the ordinary, we called up VMware Support and sure — a BUG with this version. The fix was to upgrade this code to a newer code and as of one week (when we did it), so far so good!
  方法二:
  https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1002413
Identifying the firmware of a Qlogic or Emulex FC HBA (1002413)
  
  
Details
  This article provides information to determine the firmware that an HBA is running.

Solution
  The steps below require shell access to the ESXi/ESX host. For instructions, see:

  •   Using ESXi Shell in ESXi 5.x (2004746)
  •   Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910)

  •   Enabling root SSH login on an ESX host (8375637)
  Once you have shell access to the host, proceed to step 1 in the relevant section for your HBA.
  

QLogic
  To determine the firmware for a QLogic fibre adapter, run these commands on the ESXi/ESX host:


  •   Go to /proc/scsi/qla####.

    Where #### is the model of the Qlogic HBA


  •   Run the ls command to see all of the adapters in the directory.

    The output appears similar to:

    1 2 HbaApiNode


  •   Run the command:

    head -2 #

    Where # is the HBA number.

    You see output similar to:

    QLogic PCI to Fibre Channel Host Adapter for QLA2340 :
    Firmware version: 3.03.19, Driver version 7.07.04.2vmw
  To determine the firmware for a QLogic iSCSI hardware initiator on an ESXi/ESX host:


  •   Go to /proc/scsi/qla####.

    Where #### is the model of the Qlogic HBA


  •   Run the ls command to see all of the adapters in the directory.

    You see output similar to:

    1 2 HbaApiNode


  •   Run the command:

    head -4 #

    Where # is the HBA number.

    You see output similar to:

    QLogic iSCSI Adapter for ISP 4022:
    Driver version 3.24
    Code starts at address = 0x82a314
    Firmware version 2.00.00.45
Emulex
  To determine the firmware for a Emulex HBA on an ESXi/ESX host:


  •   Go to /proc/scsi/lpfc.

    Note: the lpfc may be appended with model number appended. For example, /proc/scsi/lpfc820


  •   Run the ls command to see all of the adapters in the directory.

    You see output similar to:

    1 2


  •   Run the command:

    head -5 #

    where # is the HBA number.

    You see output similar to:

    Emulex LightPulse FC SCSI 7.3.2_vmw2
    Emulex LP10000DC 2Gb 2-port PCI-X Fibre Channel Adapter on PCI bus 42 device 08 irq 42
    SerialNum: BG51909398
    Firmware Version: 1.91A5 (T2D1.91A5)

Notes:

  •   You can determine the firmware of HBAs only using Direct Console access or SSH and not via RCLI or vMA.
  •   In ESXi 5.5, you do not see native drivers in the /proc nodes. To view native driver details, run the command:

    /usr/lib/vmware/vmkmgmt_keyval/vmkmgmt_keyval -a

    For more information, see Identifying correct driver for ESXi/ESX host PCI devices (HBA) using VMware Hardware Compatibility Guide (HCL) (1031534).


  •   You can find these information in the vm-support bundle. For more information, see Collecting diagnostic information using vm-support command in VMware ESX/ESXi (1010705).

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-518227-1-1.html 上篇帖子: VMware ESXi Windows虚拟机磁盘扩展小结 下篇帖子: VMware Horizon View 5.2配置手册
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表