A network card driver installation method, device, equipment and storage medium
Patent Information
- Application Number
- CN202310639798.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-30
- Publication Date
- 2026-10-13
- Estimated Expiration
- 2043-05-30
AI Technical Summary
[0003]有鉴于此,本发明的目的在于提供一种网卡驱动安装方法、装置、设备及存储介质,能够解决服务器网卡驱动安装步骤复杂,无法自动化的问题,实现网卡驱动的一键安装
[0031]可见,本发明提供了一种网卡驱动安装方法,包括:当服务器的基板管理控制器完成升级之后,接收用户终端发送的IPMI命令;响应所述IPMI命令以将所述基板管理控制器的镜像文件中的网卡驱动程序下载至本地服务器系统得到相应的网卡驱动文件;根据所述网卡驱动文件安装新的网卡驱动;其中,所述网卡驱动程序为在所述基板管理控制器升级之前预先压缩打包至所述基板管理控制器的所述镜像文件中用于更新所述服务器的网卡驱动对应的驱动程序。由此可知,本发明中在服务器系统网卡更换或者是服务器系统中新增网卡时,服务器系统需要安装新的网卡驱动,只需要从完成升级的基板管理控制器中的镜像文件下载网卡驱动程序得到相应的网卡驱动文件,进而根据该网卡驱动文件安装新的网卡驱动,即可实现新的网卡的安装,也即本发明由基板管理控制器传递网卡驱动程序,能够实现网卡驱动的一键安装,从而能够解决服务器网卡驱动安装步骤复杂,无法自动化的问题。
Smart Images

Figure CN116737199B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, device, and storage medium for installing network card drivers. Background Technology
[0002] Currently, after installing a server system, various network card drivers need to be installed simultaneously. Each network card requires downloading the driver from the network card manufacturer's official website and installing it into the server system to function properly. This means that after installing the server system, the network card driver needs to be downloaded according to the network card being used. If the server replaces or adds a network card, the driver needs to be downloaded again. However, because the server room lacks an external network environment, the driver needs to be manually copied to the system before installation. Furthermore, after reinstalling the server system, the model of the currently installed network card cannot be identified, requiring manual searching, identification, driver download, and manual installation. This complicates the server network card driver installation process. Furthermore, when replacing or adding a network card, manual adaptation, downloading, and installation of the driver are required. Additionally, after reinstalling the server system, the network card model cannot be automatically recognized, requiring manual location of the device, identification of the network card type, and driver download and installation. This significantly increases the difficulty of server maintenance. Summary of the Invention
[0003] In view of this, the purpose of this invention is to provide a network card driver installation method, apparatus, device, and storage medium, which can solve the problem of complex and non-automatable server network card driver installation steps, and achieve one-click installation of network card drivers. The specific solution is as follows:
[0004] In a first aspect, the present invention discloses a network card driver installation method, comprising:
[0005] After the server's baseboard management controller completes the upgrade, it receives IPMI commands sent by the user terminal.
[0006] In response to the IPMI command, the network card driver from the image file of the baseboard management controller is downloaded to the local server system to obtain the corresponding network card driver file;
[0007] Install the new network card driver according to the network card driver file;
[0008] The network card driver is a driver program that is pre-compressed and packaged into the image file of the baseboard management controller before the baseboard management controller is upgraded, and is used to update the network card driver of the server.
[0009] Optionally, receiving the IPMI command sent by the user terminal includes:
[0010] Receive IPMI commands sent by user terminals through the remote login server system interface.
[0011] Optionally, receiving the IPMI command sent by the user terminal through the remote login server system interface includes:
[0012] Receives IPMI commands sent by user terminals to remotely log in to the server system interface using the KVM function of the baseboard management controller.
[0013] Optionally, the step of responding to the IPMI command to download the network card driver from the image file of the baseboard management controller to the local server system to obtain the corresponding network card driver file includes:
[0014] In response to the IPMI command, the network card driver from the image file of the baseboard management controller is downloaded to the local server system via the corresponding physical link to obtain the corresponding network card driver file.
[0015] Optionally, installing a new network card driver based on the network card driver file includes:
[0016] The system responds to the installation command issued by the user terminal to install a new network card driver based on the network card driver file.
[0017] Optionally, the network card driver installation method further includes:
[0018] In response to the compression command issued by the user terminal, the network card driver downloaded according to the factory network card information of the server is compressed to obtain a corresponding compressed file;
[0019] During the compilation of the image file of the baseboard management controller, the compressed file is packaged into the image file of the baseboard management controller to generate a corresponding upgrade firmware version so as to complete the upgrade of the baseboard management controller of the server according to the upgrade firmware version.
[0020] Optionally, upgrading the baseboard management controller of the server according to the upgraded firmware version includes:
[0021] Using a preset target script or preset target tool, the baseboard management controller of the server is upgraded in batches according to the upgraded firmware version, so as to realize the batch update of the network card driver of the server system.
[0022] Secondly, the present invention discloses a network card driver installation device, comprising:
[0023] The command receiving module is used to receive IPMI commands sent by user terminals after the server's baseboard management controller has been upgraded.
[0024] The driver download module is used to respond to the IPMI command to download the network card driver from the image file of the baseboard management controller to the local server system to obtain the corresponding network card driver file;
[0025] A network card driver installation module is used to install a new network card driver based on the network card driver file.
[0026] The network card driver is a driver program that is pre-compressed and packaged into the image file of the baseboard management controller before the baseboard management controller is upgraded, and is used to update the network card driver of the server.
[0027] Thirdly, the present invention discloses an electronic device, comprising:
[0028] Memory, used to store computer programs;
[0029] A processor is used to execute the computer program to implement the steps of the aforementioned network card driver installation method.
[0030] Fourthly, the present invention discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the steps of the aforementioned network card driver installation method.
[0031] As can be seen, this invention provides a network card driver installation method, comprising: after the baseboard management controller of the server completes an upgrade, receiving an IPMI command sent by a user terminal; responding to the IPMI command to download the network card driver program from the image file of the baseboard management controller to the local server system to obtain the corresponding network card driver file; and installing a new network card driver according to the network card driver file; wherein, the network card driver program is a driver program pre-compressed and packaged into the image file of the baseboard management controller before the baseboard management controller is upgraded, used to update the network card driver corresponding to the server. Therefore, in this invention, when the network card in the server system is replaced or a new network card is added to the server system, the server system needs to install a new network card driver. It only needs to download the network card driver program from the image file in the upgraded baseboard management controller to obtain the corresponding network card driver file, and then install the new network card driver according to the network card driver file, thus realizing the installation of the new network card. That is, this invention transmits the network card driver program through the baseboard management controller, enabling one-click installation of the network card driver, thereby solving the problem of complex and non-automatable server network card driver installation steps. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.
[0033] Figure 1 This is a flowchart of a network card driver installation method disclosed in this invention;
[0034] Figure 2 This is a schematic diagram of a network card driver compression package disclosed in this invention;
[0035] Figure 3 This is a flowchart of a specific network card driver installation method disclosed in this invention;
[0036] Figure 4 This is a flowchart of a specific network card driver installation method disclosed in this invention;
[0037] Figure 5 This is a flowchart of a specific network card driver installation method disclosed in this invention;
[0038] Figure 6 This is a flowchart of a specific network card driver installation method disclosed in this invention;
[0039] Figure 7 This is a flowchart of a specific network card driver installation method disclosed in this invention;
[0040] Figure 8 This is a flowchart of a specific network card driver installation method disclosed in this invention;
[0041] Figure 9 This is a flowchart of a specific network card driver installation method disclosed in this invention;
[0042] Figure 10 This is a schematic diagram of a network card driver installation device disclosed in this invention;
[0043] Figure 11 This is a structural diagram of an electronic device disclosed in this invention. Detailed Implementation
[0044] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0045] Currently, after installing a server system, various network card drivers need to be installed simultaneously. Each network card requires downloading the driver from the network card manufacturer's website and installing it into the server system for proper operation. This means that after installing the server system, the corresponding network card driver needs to be downloaded. If the server replaces or adds a network card, the driver needs to be downloaded again. However, because server rooms lack external network access, the driver must be manually copied to the system before installation. Furthermore, after a server system reinstallation, the network card model cannot be identified, requiring manual location, identification, driver download, and installation. This complicates the server network card driver installation process, necessitating manual adaptation, download, and installation of drivers for both network card replacement and addition. Additionally, after a server system reinstallation, the network card model cannot be automatically recognized, requiring manual location, identification, driver download, and installation, significantly increasing server maintenance complexity. Therefore, this invention provides a network card driver installation solution that addresses the complex and non-automatic installation process, enabling one-click network card driver installation.
[0046] This invention discloses a method for installing a network card driver, see [link to relevant documentation]. Figure 1 As shown, the method includes:
[0047] Step S11: After the server's baseboard management controller completes the upgrade, it receives the IPMI command sent by the user terminal.
[0048] In this embodiment, before receiving the IPMI command sent by the user terminal, the process may include: monitoring whether the baseboard management controller of the server has been upgraded; if it is detected that the baseboard management controller of the server has been upgraded, then receiving the IPMI command sent by the user terminal; if it is detected that the baseboard management controller of the server has not been upgraded, then continuing the upgrade of the baseboard management controller.
[0049] Step S12: Respond to the IPMI command to download the network card driver from the image file of the baseboard management controller to the local server system to obtain the corresponding network card driver file; wherein, the network card driver is a driver that is pre-compressed and packaged into the image file of the baseboard management controller before the baseboard management controller is upgraded, and is used to update the network card driver of the server.
[0050] It's important to note that the BMC (Baseboard Management Controller) acts as a remote server management controller. The BMC performs server-related control and information monitoring functions, serving as a platform for intuitively presenting server information. Server clients can access the server's BMC to obtain server information via web, ipmitool, SNMP tools, etc. Servers come with a fixed configuration list and a fixed set of network interface cards (NICs), typically 2-3 NICs. Common NIC types include OCP and PCIe (Peripheral Component Interconnect Express) NICs. Currently, commonly used OCP NICs include I350, X710, E810, X550, and over ten others; commonly used PCIe NICs include CX5, CX6, CX4Lx, CX6Dx, and over 40 others. Each NIC requires a driver downloaded from the NIC manufacturer's website and installed on the server system to function properly. In other words, because servers have a fixed configuration list at the factory, including a fixed network card model, BMC R&D engineers know the model of the network card that the server is paired with. Furthermore, the compressed drivers for the three types of network cards are generally only 10MB in size, the chip storing the BMC image file (i.e., BMC flash) is generally 64MB in size, and the actual application of the BMC image only occupies about 32MB. Therefore, the BMC flash has more than enough space to store the compressed network card driver package.
[0051] In this embodiment, in response to an IPMI command received from a user terminal, the network card driver from the baseboard management controller's image file is downloaded to the local server system to obtain the corresponding network card driver file. The network card driver is a driver pre-compressed and packaged into the baseboard management controller's image file before the baseboard management controller is upgraded, used to update the server's network card driver. It is understood that, before the baseboard management controller is upgraded, a compression command is issued by the user terminal to compress the network card driver downloaded according to the server's factory network card information, resulting in a compressed file. During the compilation of the baseboard management controller's image file, the compressed file is packaged into the baseboard management controller's image file to generate a corresponding upgrade firmware version, enabling the server's baseboard management controller to be upgraded according to the upgrade firmware version. Therefore, when the server system needs to install a new network card driver, the corresponding network card driver can be downloaded from the upgraded baseboard management controller's image file, thereby updating the server system's network card driver.
[0052] For example, see Figure 2As shown, before upgrading the baseboard management controller, BMC R&D personnel will download the corresponding network card driver from the network card manufacturer's website based on the server's factory-configured network card information. The downloaded driver is then compressed, for example using common compression commands like `tar` in Linux, to generate a `NetworkCardDriver.tar.gz` file. This compressed file is then packaged into the baseboard management controller's image file during image compilation to generate the upgrade firmware version, thereby upgrading the BMC firmware. In other words, when the server system's network card is replaced or a new network card is added, only the new driver needs to be recompressed and packaged into the BMC's image file to upgrade the BMC firmware, thus solving the problem of complex and non-automatable server network card driver installation steps. Furthermore, during the BMC upgrade process, preset target scripts or tools can be used to perform batch upgrades of the server's baseboard management controller based on the upgrade firmware version, thereby achieving batch updates of the server system's network card drivers. That is, the server's BMC firmware can be batch upgraded using scripts or tools, i.e., batch updates of the server system's network card drivers are achieved through batch BMC firmware upgrades. It should be noted that the server's BMC firmware can be upgraded online.
[0053] Step S13: Install the new network card driver according to the network card driver file.
[0054] In this embodiment, the network card driver is downloaded from the upgraded BMC image file to obtain the corresponding network card driver file, and then the new network card driver is installed according to the network card driver file.
[0055] Therefore, in this embodiment of the invention, when the network card of the server system is replaced or a new network card is added to the server system, the server system needs to install a new network card driver. It only needs to download the network card driver program from the image file in the upgraded baseboard management controller to obtain the corresponding network card driver file, and then install the new network card driver according to the network card driver file to realize the installation of the new network card. That is, the present invention transmits the network card driver program through the baseboard management controller, which can realize one-click installation of the network card driver, thereby solving the problem that the server network card driver installation steps are complicated and cannot be automated.
[0056] See Figure 3 As shown, this embodiment of the invention discloses a specific method for installing a network card driver. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution.
[0057] Step S21: After the server's baseboard management controller completes the upgrade, it receives the IPMI command sent by the user terminal through the remote login server system interface.
[0058] In this embodiment, before receiving the IPMI command sent by the user terminal through the remote login server system interface, the process may include: monitoring whether the server's baseboard management controller (BMC) has been upgraded; if the upgrade of the server's BMC is detected, then the IPMI command sent by the user terminal through the remote login server system interface is received; if the upgrade of the server's BMC is detected, then the upgrade of the BMC continues. In other words, the IPMI command is sent through the remote login server system interface only after the server's BMC upgrade is complete.
[0059] Step S22: Respond to the IPMI command to download the network card driver from the image file of the baseboard management controller to the local server system to obtain the corresponding network card driver file; wherein, the network card driver is a driver that is pre-compressed and packaged into the image file of the baseboard management controller before the baseboard management controller is upgraded, and is used to update the network card driver of the server.
[0060] Step S23: Install the new network card driver according to the network card driver file.
[0061] For details regarding steps S22 to S23, please refer to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.
[0062] Therefore, in this embodiment of the invention, when the network card of the server system is replaced or a new network card is added to the server system, the server system needs to install a new network card driver. It only needs to download the network card driver program from the image file in the upgraded baseboard management controller to obtain the corresponding network card driver file, and then install the new network card driver according to the network card driver file to realize the installation of the new network card. That is, the present invention transmits the network card driver program through the baseboard management controller, which can realize one-click installation of the network card driver, thereby solving the problem that the server network card driver installation steps are complicated and cannot be automated.
[0063] See Figure 4 As shown, this embodiment of the invention discloses a specific method for installing a network card driver. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution.
[0064] Step S31: After the server's baseboard management controller completes the upgrade, it receives the IPMI command sent by the user terminal to remotely log in to the server system interface using the KVM function of the baseboard management controller.
[0065] In this embodiment, before receiving the IPMI command sent by the user terminal to remotely log in to the server system interface using the KVM (Kernel-based Virtual Machine, an open-source system virtualization module) function of the baseboard management controller, the process may include: monitoring whether the server's baseboard management controller has been upgraded; if the upgrade of the server's baseboard management controller is detected, then receiving the IPMI command sent by the user terminal to remotely log in to the server system interface using the KVM function of the baseboard management controller; if the upgrade of the server's baseboard management controller is detected, then continuing the upgrade of the baseboard management controller. In other words, after the server's baseboard management controller upgrade is complete, the KVM function of the baseboard management controller is used to remotely log in to the server system interface and issue the IPMI command.
[0066] Step S32: Respond to the IPMI command to download the network card driver from the image file of the baseboard management controller to the local server system to obtain the corresponding network card driver file; wherein, the network card driver is a driver that is pre-compressed and packaged into the image file of the baseboard management controller before the baseboard management controller is upgraded, and is used to update the network card driver of the server.
[0067] Step S33: Install the new network card driver according to the network card driver file.
[0068] For details regarding steps S32 to S33, please refer to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.
[0069] Therefore, in this embodiment of the invention, when the network card of the server system is replaced or a new network card is added to the server system, the server system needs to install a new network card driver. It only needs to download the network card driver program from the image file in the upgraded baseboard management controller to obtain the corresponding network card driver file, and then install the new network card driver according to the network card driver file to realize the installation of the new network card. That is, the present invention transmits the network card driver program through the baseboard management controller, which can realize one-click installation of the network card driver, thereby solving the problem that the server network card driver installation steps are complicated and cannot be automated.
[0070] See Figure 5 As shown, this embodiment of the invention discloses a specific method for installing a network card driver. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution.
[0071] Step S41: After the server's baseboard management controller completes the upgrade, it receives the IPMI command sent by the user terminal.
[0072] Step S42: Respond to the IPMI command to download the network card driver from the image file of the baseboard management controller to the local server system via the corresponding physical link to obtain the corresponding network card driver file; wherein, the network card driver is a driver that is pre-compressed and packaged into the image file of the baseboard management controller before the baseboard management controller is upgraded, and is used to update the network card driver of the server.
[0073] It is understood that when responding to the IPMI command to download the network card driver from the baseboard management controller image file to the local server system, the network card driver can be downloaded through the corresponding physical link, for example, through the KCS physical link.
[0074] Step S43: Install the new network card driver according to the network card driver file.
[0075] For details regarding steps S41 and S43, please refer to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.
[0076] Therefore, in this embodiment of the invention, when the network card of the server system is replaced or a new network card is added to the server system, the server system needs to install a new network card driver. It only needs to download the network card driver program from the image file in the upgraded baseboard management controller to obtain the corresponding network card driver file, and then install the new network card driver according to the network card driver file to realize the installation of the new network card. That is, the present invention transmits the network card driver program through the baseboard management controller, which can realize one-click installation of the network card driver, thereby solving the problem that the server network card driver installation steps are complicated and cannot be automated.
[0077] See Figure 6 As shown, this embodiment of the invention discloses a specific method for installing a network card driver. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution.
[0078] Step S51: After the server's baseboard management controller completes the upgrade, it receives the IPMI command sent by the user terminal.
[0079] Step S52: Respond to the IPMI command to download the network card driver from the image file of the baseboard management controller to the local server system to obtain the corresponding network card driver file; wherein, the network card driver is a driver that is pre-compressed and packaged into the image file of the baseboard management controller before the baseboard management controller is upgraded, and is used to update the network card driver of the server.
[0080] Step S53: Respond to the installation command issued by the user terminal to install the new network card driver according to the network card driver file.
[0081] Understandably, on the server system, the network card driver file in the BMC image file is downloaded in response to the IPMI command. After the network card driver file is downloaded, the network card driver in the server system can be updated according to the network card driver file by responding to the installation command issued by the user terminal.
[0082] For details regarding steps S51 to S52, please refer to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.
[0083] Therefore, in this embodiment of the invention, when the network card of the server system is replaced or a new network card is added to the server system, the server system needs to install a new network card driver. It only needs to download the network card driver program from the image file in the upgraded baseboard management controller to obtain the corresponding network card driver file, and then install the new network card driver according to the network card driver file to realize the installation of the new network card. That is, the present invention transmits the network card driver program through the baseboard management controller, which can realize one-click installation of the network card driver, thereby solving the problem that the server network card driver installation steps are complicated and cannot be automated.
[0084] See Figure 7 As shown, this embodiment of the invention discloses a specific method for installing a network card driver. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution.
[0085] Step S61: After the server's baseboard management controller completes the upgrade, it receives the IPMI command sent by the user terminal to remotely log in to the server system interface using the KVM function of the baseboard management controller.
[0086] Step S62: Respond to the IPMI command to download the network card driver from the image file of the baseboard management controller to the local server system via the corresponding physical link to obtain the corresponding network card driver file; wherein, the network card driver is a driver program that is pre-compressed and packaged into the image file of the baseboard management controller before the baseboard management controller is upgraded, and is used to update the network card driver of the server.
[0087] Step S63: Respond to the installation command issued by the user terminal to install a new network card driver according to the network card driver file.
[0088] For details regarding steps S61 to S63, please refer to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.
[0089] Therefore, in this embodiment of the invention, when the network card of the server system is replaced or a new network card is added to the server system, the server system needs to install a new network card driver. It only needs to download the network card driver program from the image file in the upgraded baseboard management controller to obtain the corresponding network card driver file, and then install the new network card driver according to the network card driver file to realize the installation of the new network card. That is, the present invention transmits the network card driver program through the baseboard management controller, which can realize one-click installation of the network card driver, thereby solving the problem that the server network card driver installation steps are complicated and cannot be automated.
[0090] For example, Figure 8 As shown, for data security reasons, the server itself has no external network connection. When the server needs to update its network card driver, BMC developers will pre-compress and package the required network card driver into the BMC image file. Server maintenance personnel can then use scripts or tools via the data center intranet to batch upgrade the server's BMC firmware. After the batch upgrade of the server's BMC firmware is complete, the KVM function of the BMC firmware is used to remotely log in to the server system interface, issue IPMI commands (i.e., the server system and BMC interaction protocol), and download the network card driver file from the BMC image file to the server system via the KCS physical link, thereby installing the new network card driver. Moreover, the above technical solution of the present invention can also transmit other information of other server devices.
[0091] See Figure 9 As shown, this embodiment of the invention discloses a specific method for installing a network card driver. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution.
[0092] Step S71: After the server's baseboard management controller completes the upgrade, it receives the IPMI command sent by the user terminal.
[0093] Step S72: Respond to the IPMI command to download the network card driver from the image file of the baseboard management controller to the local server system to obtain the corresponding network card driver file; wherein, the network card driver is a driver that is pre-compressed and packaged into the image file of the baseboard management controller before the baseboard management controller is upgraded, and is used to update the network card driver of the server.
[0094] Step S73: Install the new network card driver according to the network card driver file.
[0095] Step S74: Check if the current server network card driver has been successfully updated.
[0096] Step S75: If the current server network card driver update fails, re-execute the step of responding to the IPMI command to download the network card driver from the baseboard management controller image file to the local server system to obtain the corresponding network card driver file and subsequent steps.
[0097] Step S76: If the current server network card driver update is successful, then the process ends.
[0098] Understandably, after installing the new network card driver in the server system, it is possible to check whether the current server network card driver has been updated successfully. If the update fails, it should be reinstalled, that is, the network card driver in the image file of the baseboard management controller should be downloaded to the local server system again, so as to ensure the successful installation of the new network card driver in the server system.
[0099] For details regarding steps S71 to S73, please refer to the corresponding content disclosed in the foregoing embodiments, which will not be repeated here.
[0100] Therefore, in this embodiment of the invention, when the network card of the server system is replaced or a new network card is added to the server system, the server system needs to install a new network card driver. It only needs to download the network card driver program from the image file in the upgraded baseboard management controller to obtain the corresponding network card driver file, and then install the new network card driver according to the network card driver file to realize the installation of the new network card. That is, the present invention transmits the network card driver program through the baseboard management controller, which can realize one-click installation of the network card driver, thereby solving the problem that the server network card driver installation steps are complicated and cannot be automated.
[0101] Accordingly, this invention also discloses a network card driver installation device, see [link to relevant documentation]. Figure 10 As shown, the device includes:
[0102] Command receiving module 11 is used to receive IPMI commands sent by user terminals after the baseboard management controller of the server has completed the upgrade.
[0103] The driver download module 12 is used to respond to the IPMI command to download the network card driver from the image file of the baseboard management controller to the local server system to obtain the corresponding network card driver file;
[0104] Network card driver installation module 13 is used to install a new network card driver according to the network card driver file;
[0105] The network card driver is a driver program that is pre-compressed and packaged into the image file of the baseboard management controller before the baseboard management controller is upgraded, and is used to update the network card driver of the server.
[0106] As can be seen from the above, in this embodiment of the invention, when the network card of the server system is replaced or a new network card is added to the server system, the server system needs to install a new network card driver. It is only necessary to download the network card driver program from the image file in the upgraded baseboard management controller to obtain the corresponding network card driver file, and then install the new network card driver according to the network card driver file to realize the installation of the new network card. That is, the present invention transmits the network card driver program through the baseboard management controller, which can realize one-click installation of the network card driver, thereby solving the problem that the server network card driver installation steps are complicated and cannot be automated.
[0107] In some specific embodiments, the command receiving module 11 may specifically include:
[0108] The command receiving unit is used to receive IPMI commands sent by user terminals through the remote login server system interface.
[0109] In some specific embodiments, the command receiving unit may specifically include:
[0110] The command receiving subunit is used to receive IPMI commands sent by the user terminal to remotely log in to the server system interface using the KVM function of the baseboard management controller.
[0111] In some specific embodiments, the driver download module 12 may specifically include:
[0112] The driver download unit is used to respond to the IPMI command to download the network card driver from the image file of the baseboard management controller to the local server system via the corresponding physical link to obtain the corresponding network card driver file.
[0113] In some specific embodiments, the network card driver installation module 13 may specifically include:
[0114] The network card driver installation unit is used to respond to the installation command issued by the user terminal to install a new network card driver according to the network card driver file.
[0115] In some specific embodiments, the network card driver installation device may further include:
[0116] The compression module is used to respond to the compression command issued by the user terminal to compress the network card driver downloaded according to the factory network card information of the server to obtain the corresponding compressed file.
[0117] The packaging module is used to package the compressed file into the image file of the baseboard management controller during the compilation of the image file of the baseboard management controller to generate a corresponding upgrade firmware version so as to complete the upgrade of the baseboard management controller of the server according to the upgrade firmware version.
[0118] In some specific embodiments, the packaging module may further include:
[0119] The network card batch update unit is used to use a preset target script or preset target tool to complete the batch upgrade of the baseboard management controller of the server according to the upgrade firmware version, so as to realize the batch update of the network card driver of the server system.
[0120] Furthermore, embodiments of the present invention also provide an electronic device. Figure 11 This is a structural diagram of an electronic device 20 according to an exemplary embodiment. The content of the diagram should not be construed as limiting the scope of the invention.
[0121] Figure 11 This is a schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present invention. Specifically, the electronic device 20 may include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the network card driver installation method disclosed in any of the foregoing embodiments. Alternatively, the electronic device 20 in this embodiment may specifically be a computer.
[0122] In this embodiment, the power supply 23 is used to provide operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this invention, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0123] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.
[0124] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20 and the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the network card driver installation method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include computer programs capable of performing other specific tasks.
[0125] Furthermore, this embodiment of the invention also discloses a computer-readable storage medium storing a computer program. When the computer program is loaded and executed by a processor, it implements the network card driver installation method steps disclosed in any of the foregoing embodiments.
[0126] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since it corresponds to the method disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section.
[0127] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0128] The foregoing has provided a detailed description of a network card driver installation method, apparatus, device, and storage medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for installing a network card driver, characterized in that, include: After the server's baseboard management controller completes the upgrade, it receives IPMI commands sent by the user terminal. In response to the IPMI command, the network card driver from the image file of the baseboard management controller is downloaded to the local server system to obtain the corresponding network card driver file; Install the new network card driver according to the network card driver file; The network card driver is a driver program that is pre-compressed and packaged into the image file of the baseboard management controller before the baseboard management controller is upgraded, and is used to update the network card driver of the server.
2. The network card driver installation method according to claim 1, characterized in that, The receiving of IPMI commands sent by the user terminal includes: Receive IPMI commands sent by user terminals through the remote login server system interface.
3. The network card driver installation method according to claim 2, characterized in that, The receiving of IPMI commands sent by the user terminal through the remote login server system interface includes: Receives IPMI commands sent by user terminals to remotely log in to the server system interface using the KVM function of the baseboard management controller.
4. The network card driver installation method according to claim 1, characterized in that, The step of responding to the IPMI command to download the network card driver from the image file of the baseboard management controller to the local server system to obtain the corresponding network card driver file includes: In response to the IPMI command, the network card driver from the image file of the baseboard management controller is downloaded to the local server system via the corresponding physical link to obtain the corresponding network card driver file.
5. The network card driver installation method according to claim 1, characterized in that, The step of installing a new network card driver based on the network card driver file includes: The system responds to the installation command issued by the user terminal to install a new network card driver based on the network card driver file.
6. The network card driver installation method according to any one of claims 1 to 5, characterized in that, Also includes: In response to the compression command issued by the user terminal, the network card driver downloaded according to the factory network card information of the server is compressed to obtain a corresponding compressed file; During the compilation of the image file of the baseboard management controller, the compressed file is packaged into the image file of the baseboard management controller to generate a corresponding upgrade firmware version so as to complete the upgrade of the baseboard management controller of the server according to the upgrade firmware version.
7. The network card driver installation method according to claim 6, characterized in that, The step of upgrading the baseboard management controller of the server according to the upgraded firmware version includes: Using a preset target script or preset target tool, the baseboard management controller of the server is upgraded in batches according to the upgraded firmware version, so as to realize the batch update of the network card driver of the server system.
8. A network card driver installation device, characterized in that, include: The command receiving module is used to receive IPMI commands sent by user terminals after the server's baseboard management controller has been upgraded. The driver download module is used to respond to the IPMI command to download the network card driver from the image file of the baseboard management controller to the local server system to obtain the corresponding network card driver file; A network card driver installation module is used to install a new network card driver based on the network card driver file. The network card driver is a driver program that is pre-compressed and packaged into the image file of the baseboard management controller before the baseboard management controller is upgraded, and is used to update the network card driver of the server.
9. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the network card driver installation method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, Used to store computer programs; wherein, when the computer programs are executed by a processor, they implement the steps of the network card driver installation method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Network card drive firmware stability test method and system, terminal and storage medium
CN111078476A
Remote control method, terminal device, management server, and remote control system
WO2016112825A1