A method, apparatus and medium for operating a network card
By establishing a database to store configuration matching information tables, network card operation policies are automatically executed, solving the problems of cumbersome network card operation and data leakage, and achieving efficient and secure network card operation processing.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- INSPUR SUZHOU INTELLIGENT TECH CO LTD
- Filing Date
- 2022-07-28
- Publication Date
- 2026-05-26
Smart Images

Figure CN115269021B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of server technology, and in particular to a network card operation processing method, apparatus and medium. Background Technology
[0002] Currently, network traffic and computational time and space complexity are constantly increasing. The computing power provided by the Central Processing Unit (CPU) alone is gradually unable to meet the ever-increasing computing demands. Therefore, network interface cards (NICs) are increasingly being deployed on servers. With their independent computing units, they can perform all the functions of ordinary NICs and also have specific infrastructure functions.
[0003] Different network cards require different operations. Before use, it's necessary to manually update the firmware (FW) version, the Complex Programmable Logic Device (CPLD) version, and modify the Basic Input Output System (BIOS) options within the network card, depending on the specific operation. During this process, frequent access to the network card's internal operating system (OS) necessitates frequent interaction between the server OS and the network card's internal OS, making the operation complex and cumbersome, with a high error rate that severely impacts the network card's normal operation. Furthermore, manual operation requires the transfer of factory-issued operation documents and files, which carries a risk of data leakage.
[0004] Therefore, improving the operational accuracy and security of network cards is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] The purpose of this invention is to provide a network card operation processing method, device, and medium that can effectively avoid the risk of data leakage. By executing the corresponding network card operation processing strategy through instructions, it avoids the problem of high error rate in manual operation, reduces the workload of staff, and improves accuracy.
[0006] To solve the above technical problems, the present invention provides a network card operation processing method, including:
[0007] Obtain the target operation information and original operation information of the network card;
[0008] Retrieve the configuration matching information tables of network cards and servers from the database. The configuration matching information tables include system matching tables, firmware matching tables, and CPLD matching tables.
[0009] When the target operation information differs from the original operation information, the network card is subjected to a corresponding instruction execution strategy based on the target operation information and / or the configuration matching information table to complete the network card operation. The instruction execution strategy includes at least one of the following strategies: BIOS option modification operation strategy, driver installation firmware upgrade strategy, and CPLD upgrade strategy.
[0010] Preferably, the database creation process includes the following steps:
[0011] Establish separate system matching tables, firmware matching tables, and CPLD matching tables for network cards and servers;
[0012] The system matching table includes the network card name and the corresponding system version of the supporting server;
[0013] The firmware matching table includes firmware information and driver file information for the system version corresponding to the network card;
[0014] The CPLD matching table includes the network card and the corresponding CPLD version of the supporting server.
[0015] Preferably, when the target operation information differs from the firmware information and / or driver file information of the original operation information, a corresponding instruction execution strategy is applied to the network card based on the target operation information and / or configuration matching information table, including:
[0016] Use the `cat` command to view the server's system version;
[0017] Obtain the network card driver version using the ethool command;
[0018] Determine whether the server's system version and network card driver version match based on the target operation information and configuration matching information table;
[0019] If they do not match, it indicates that the network card driver version is abnormal.
[0020] The system retrieves the target driver version that matches the server's system version from the configuration matching information table, loads it, and returns to the step of determining whether the server's system version matches the network card's driver version based on the target operation information and the configuration matching information table.
[0021] If a match is found, the network card is configured with a local yum repository, and the dependency environment information and screen function are installed in the local yum repository.
[0022] Access the operating system of the network card using the screen function;
[0023] The firmware information corresponding to the matched driver version is refreshed by the firmware refresh command to complete the cold reboot operation of the network card and complete the driver installation and firmware upgrade strategy.
[0024] Preferably, when the target operation information differs from the CPLD version of the original operation information, a corresponding instruction execution strategy is applied to the network card based on the target operation information and / or the configuration matching information table, including:
[0025] Obtain the CPLD version information for the target operation;
[0026] Copy the refresh file corresponding to the CPLD version information to the server's operating system;
[0027] The operating system of the network card corresponding to the CPLD version information is found by configuring the matching information table;
[0028] Copy the refresh file to the network card's operating system using the SCP command;
[0029] The CPLD upgrade strategy is completed by refreshing the CPLD version information using the Flashtool tool.
[0030] Preferably, when the BIOS options and option values of the target operation information differ from those of the original operation information, the network card is executed with a corresponding instruction execution strategy based on the target operation information to complete the network card's operation processing, including:
[0031] Obtain the target BIOS options and target option values from the target operation information, and write the target BIOS options and target option values into the requirements document;
[0032] Copy the requirements document to the network card's operating system using the SCP command;
[0033] Access the system via the copied network card using the screen function;
[0034] The SCE tool is used to export the BIOS options built into the network card as a txt file.
[0035] Compare the options and option values in the txt file with those in the requirements document;
[0036] Modify the requirements document based on the comparison results;
[0037] The modified requirements document was re-imported into the network card's BIOS using the SCE tool to complete the BIOS option modification operation.
[0038] Preferably, the process of obtaining a table of network interface card (NIC) and server configuration matching information from the database includes:
[0039] Enter the database password to connect to the database and obtain the configuration matching information table.
[0040] Preferably, when revising the requirements document based on the comparison results, the method further includes:
[0041] If the target BIOS option in the requirements document does not exist in the txt file, output a message indicating that the option does not exist;
[0042] If the target option values in the requirements document are different from the option value formats in the txt file, an error message indicating that the option values are incorrect will be output.
[0043] To address the aforementioned technical problems, the present invention also provides an operation processing device for a network interface card (NIC), comprising:
[0044] The first acquisition module is used to acquire the target operation information and the original operation information of the network card;
[0045] The second acquisition module is used to acquire the configuration matching information table between the network card and the server in the database, wherein the configuration matching information table includes the system matching table, the firmware matching table and the CPLD matching table;
[0046] The execution module is used to perform corresponding instruction execution strategies on the network card to complete the network card operation when the target operation information is different from the original operation information, based on the target operation information and / or the configuration matching information table. The instruction execution strategy includes at least one of the following strategies: BIOS option modification operation strategy, driver installation firmware upgrade strategy, and CPLD upgrade strategy.
[0047] To address the aforementioned technical problems, the present invention also provides an operation processing device for a network interface card (NIC), comprising:
[0048] Memory, used to store computer programs;
[0049] A processor is used to execute computer programs and implement the operation and processing methods of a network card as described above.
[0050] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the network card operation processing method described above.
[0051] This invention provides a network interface card (NIC) operation processing method, comprising: acquiring target operation information and original operation information of the NIC; acquiring a configuration matching information table between the NIC and the server in a database, wherein the configuration matching information table includes a system matching table, a firmware matching table, and a CPLD matching table; when the target operation information differs from the original operation information, performing a corresponding instruction execution strategy on the NIC according to the target operation information and / or the configuration matching information table to complete the NIC operation processing, wherein the instruction execution strategy includes at least one of a BIOS option modification operation strategy, a driver installation firmware upgrade strategy, and a CPLD upgrade strategy. This method uses a database as a data storage medium and leverages the database's built-in data encryption function to effectively avoid the risk of stored data leakage. By executing corresponding NIC operation processing strategies through instruction execution, it avoids the high error rate problem associated with manual operation, reduces the workload of staff, improves accuracy, and extends the NIC's lifespan by eliminating the need for frequent manual OS interaction between the server and the NIC.
[0052] In addition, the present invention also provides a network card operation processing device and medium, which have the same beneficial effects as the network card operation processing method described above. Attached Figure Description
[0053] To more clearly illustrate the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0054] Figure 1 A flowchart of a network card operation processing method provided in an embodiment of the present invention;
[0055] Figure 2 This is a structural diagram of an operation processing device for a network interface card (NIC) provided in an embodiment of the present invention;
[0056] Figure 3 This is a structural diagram of another network card operation processing device provided in an embodiment of the present invention. Detailed Implementation
[0057] 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 of ordinary skill in the art without creative effort are within the protection scope of the present invention.
[0058] The core of this invention is to provide a network card operation processing method, device, and medium, which can effectively avoid the risk of data leakage. By executing the corresponding network card operation processing strategy through instructions, it avoids the problem of high error rate in manual operation, reduces the workload of staff, and improves accuracy.
[0059] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0060] It should be noted that network interface cards (NICs) can be either ordinary NICs or smart NICs. NICs can provide architectural computing units to handle server workloads and offload workloads from the general-purpose computing kernel, thereby reducing CPU load. NICs can perform specific reorganization acceleration, security acceleration, and virtualization operations, offering significant performance improvements and functional enhancements compared to ordinary NICs. The NIC operation processing method provided in this invention is applicable to smart NICs. However, the types and functions of smart NICs are increasing, and their usage is becoming more complex. Existing flashing and modification processes are done manually, requiring operators to follow the manual to manually flash the firmware and CPLD versions and manually modify built-in BIOS options. This process is cumbersome and error-prone. In customer scenarios, this requires the transfer of operation documents and files, posing a risk of data leakage. The NIC operation processing method provided in this invention overcomes these shortcomings.
[0061] The core of a smart network interface card (NIC) is to assist the CPU in handling network load through an FPGA, program network interface functions, improve application and virtualization performance, and realize the advantages of software-defined networking and network function virtualization. This removes network virtualization, load balancing, and other low-level functions from the server's CPU, ensuring maximum processing power for applications. Simultaneously, smart NICs can also provide distributed computing resources, allowing users to develop their own software or provide access services, thereby accelerating specific applications.
[0062] Figure 1 A flowchart of a network card operation processing method provided in an embodiment of the present invention is shown below. Figure 1 As shown, the method includes:
[0063] S11: Obtain the target operation information and original operation information of the network card;
[0064] S12: Obtain the configuration matching information table between the network card and the server in the database, where the configuration matching information table includes the system matching table, firmware matching table and CPLD matching table;
[0065] S13: When the target operation information is different from the original operation information, the network card is subjected to a corresponding instruction execution strategy according to the target operation information and / or the configuration matching information table to complete the operation processing of the network card. The instruction execution strategy includes at least one of the following strategies: BIOS option modification operation strategy, driver installation firmware upgrade strategy, and CPLD upgrade strategy.
[0066] Specifically, the process involves acquiring both the target operation information and the raw operation information of the network card. The target operation information can be the deployment information related to the preprocessing of the smart network card's environment, as requested by the user based on the current usage scenario. The raw operation information is based on the current deployment information of the smart network card. Both types of operation information can include the smart network card's OS system version, the server's OS system version, firmware information and driver files for specific OS versions, CPLD version information, and BIOS option information for the smart network card, etc. No specific limitations are imposed here; the specific operation information content can be acquired according to the actual situation.
[0067] Retrieving the configuration matching information tables between network interface cards (NICs) and servers from the database is crucial. This database, based on SQL Server relational databases, serves as the data storage medium, establishing the data mapping relationship between NICs and servers. The configuration matching information tables include system matching tables, firmware matching tables, and CPLD matching tables.
[0068] SQL Server relational databases offer more secure and reliable storage capabilities. Compared to ordinary files, their response speed and security are greatly improved. Local or domain databases can be created to prevent data leaks. Utilizing SQL improves program responsiveness and provides a more intuitive display of operation processes and data relationships. Furthermore, SQL Server has built-in data encryption capabilities, effectively preventing the risk of stored data leakage. The requirement to enter a password every time you connect to the database further enhances security.
[0069] When users perform corresponding operations, they can directly select the specific execution strategy on the interface, or they can upload a template file to read the table content in the database to achieve batch operations and improve executability.
[0070] The system matches the compatibility relationship between the OS version of the table storage server and the smart network card; the firmware matches the relationship between the smart network card and the firmware files and driver files under different server OSes; and the CPLD matches the mapping relationship between the smart network card and the CPLD.
[0071] When the target operation information differs from the original operation information, it indicates a change in the current state of the smart network interface card (NIC), requiring environmental deployment based on the target operation information. Furthermore, using the target operation information and / or the configuration matching information table as a reference, the corresponding instruction execution strategy is implemented on the NIC.
[0072] It should be noted that, since the target operation information and the original operation information contain a lot of information and the corresponding operation processing are different, the execution strategy of the instruction is different for different information. Accordingly, the configuration matching information table can not be used as a reference for all operation information. Therefore, it is necessary to use different reference execution strategies for different types of operation information.
[0073] As one embodiment, if the CPLD version of the operation information is different, the network card is subjected to a corresponding instruction execution strategy (CPLD upgrade strategy) according to the target operation information and the configuration matching information table; if the firmware information and / or driver file information of the operation information are different, the network card is subjected to a corresponding instruction execution strategy (driver installation firmware upgrade strategy) according to the target operation information and the configuration matching information table; if the BIOS options and option values of the operation information are different, the network card is subjected to a corresponding instruction execution strategy (BIOS option modification operation strategy) according to the target operation information.
[0074] It is understood that the present invention can simultaneously perform multiple operation strategies as described above, based on the differences in specific information between the target operation information and the original operation information. It can also execute multiple operation strategies in a certain order, the order of which is not specifically limited and can be set according to the actual situation.
[0075] When the target operation information is the same as the original operation information, it means that the current state of the smart network card has not changed and the smart network card can be used normally.
[0076] This invention provides a network interface card (NIC) operation processing method, comprising: acquiring target operation information and original operation information of the NIC; acquiring a configuration matching information table between the NIC and the server in a database, wherein the configuration matching information table includes a system matching table, a firmware matching table, and a CPLD matching table; when the target operation information differs from the original operation information, performing a corresponding instruction execution strategy on the NIC according to the target operation information and / or the configuration matching information table to complete the NIC operation processing, wherein the instruction execution strategy includes at least one of a BIOS option modification operation strategy, a driver installation firmware upgrade strategy, and a CPLD upgrade strategy. This method uses a database as a data storage carrier and leverages the database's built-in data encryption function to effectively avoid the risk of stored data leakage. By executing the corresponding NIC operation processing strategy through instruction execution, it avoids the high error rate problem associated with manual operation, reduces the workload of staff, improves accuracy, and extends the NIC's lifespan by eliminating the need for frequent manual OS interaction between the server and the NIC.
[0077] Based on the above embodiments, the database establishment process in step S12 includes the following steps:
[0078] Establish separate system matching tables, firmware matching tables, and CPLD matching tables for network cards and servers;
[0079] The system matching table includes the network card name and the corresponding system version of the supporting server;
[0080] The firmware matching table includes firmware information and driver file information for the system version corresponding to the network card;
[0081] The CPLD matching table includes the network card and the corresponding CPLD version of the supporting server.
[0082] Specifically, the system matches and stores the network interface card (NIC) names of smart NICs with the supported server system versions in a table. Each smart NIC supports a list of operating systems (OS), with data sourced from manual maintenance and imported from specifications. The system retrieves data by searching for supported OS keywords in the specifications to establish an OS mapping between the smart NIC and the server. Users can retrieve supported server OS versions by manually entering the NIC name. Entering both the NIC name and OS version simultaneously displays compatibility information.
[0083] The firmware matching table shows the relationship between the smart network card and the firmware information and driver file information under different server OS versions. After obtaining the network card name and OS version, the corresponding firmware information and driver file information can be found in a timely manner.
[0084] The CPLD matching table is a mapping table between smart network interface cards (NICs) and CPLDs, which can be used to find information on all CPLD versions supported by the same smart NIC.
[0085] The embodiments of the present invention provide system matching tables, firmware matching tables, and CPLD matching tables for establishing network interface cards and servers, respectively, which improve response speed and security, prevent data leakage, and provide a more intuitive operation process and relationship between data.
[0086] Based on the above embodiments, when the firmware information and / or driver file information of the target operation information differ from the original operation information, a corresponding instruction execution strategy is applied to the network card according to the target operation information and / or configuration matching information table, including:
[0087] Use the `cat` command to view the server's system version;
[0088] Obtain the network card driver version using the ethool command;
[0089] Determine whether the server's system version and network card driver version match based on the target operation information and configuration matching information table;
[0090] If they do not match, it indicates that the network card driver version is abnormal.
[0091] The system retrieves the target driver version that matches the server's system version from the configuration matching information table, loads it, and returns to the step of determining whether the server's system version matches the network card's driver version based on the target operation information and the configuration matching information table.
[0092] If a match is found, the network card is configured with a local yum repository, and the dependency environment information and screen function are installed in the local yum repository.
[0093] Access the operating system of the network card using the screen function;
[0094] The firmware information corresponding to the matched driver version is refreshed by the firmware refresh command to complete the cold reboot operation of the network card and complete the driver installation and firmware upgrade strategy.
[0095] Specifically, the server's system version is obtained using the `cat` command (`cat / etc / centos-release`), and the network interface card (NIC) driver version is obtained using the `ethtool` command (`ethtool -i eth0`). The system version and NIC driver version are then compared against the target operation information and configuration matching information tables to determine if they match. In other words, the system version and NIC driver version in the configuration matching information table are compared with the system matching table and firmware matching table to check for a mapping relationship. If not, the system version and driver version do not match; otherwise, they match.
[0096] When the server's system version and the network card's driver version do not match, the correct driver information for the smart network card needs to be installed. The target driver version corresponding to the target operation information needs to be known to load it. After loading, return to the judgment step until a match is found.
[0097] When the server's system version matches the network card's driver version, a local yum repository is configured. This repository installs the necessary dependencies (ncurses library) and the `screen` function. The `screen` function then accesses the smart network card's internal OS, avoiding the extra steps required by SSH and eliminating the need for a network cable connection. This allows for access to the smart network card's OS without using SSH serial ports.
[0098] The firmware information corresponding to the matched driver version is updated using the firmware flashing command to initiate a cold reboot. Before flashing, the firmware information is created in a folder; for example, the firmware file is created in / dev / rshim0 / boot using `cat DOCA_v1.0_BlueField_OS***.bfb> / dev / rshim0 / boot`. After the upgrade is complete, the firmware version information needs to be checked for accuracy.
[0099] The embodiments of the present invention provide a strategy for executing corresponding instructions on the network card based on the target operation information and / or configuration matching information table. The screen function is used to access the internal OS of the smart network card, avoiding the extra operations brought by SSH and eliminating the need for a network cable connection, thus simplifying the operation process.
[0100] Based on the above embodiments, when the target operation information differs from the CPLD version of the original operation information, a corresponding instruction execution strategy is applied to the network card according to the target operation information and / or the configuration matching information table, including:
[0101] Obtain the CPLD version information for the target operation;
[0102] Copy the refresh file corresponding to the CPLD version information to the server's operating system;
[0103] The operating system of the network card corresponding to the CPLD version information is found by configuring the matching information table;
[0104] Copy the refresh file to the network card's operating system using the SCP command;
[0105] The CPLD upgrade strategy is completed by refreshing the CPLD version information using the Flashtool tool.
[0106] Specifically, the CPLD version information of the target operation information is obtained, and its corresponding refresh file is copied to the server's OS. Then, the refresh file is copied to the network card's operating system using the SCP command. This copying to the network card's operating system requires first accessing the network card's operating system via the screen function. It should be noted that at this point, the matching relationship between the network card's operating system, the server's operating system, and the target operation information is the same.
[0107] Furthermore, the CPLD version information corresponding to the CPLD is refreshed using the Flashtool tool to complete the CPLD upgrade strategy operation. After the operation is completed, the 2nd to 5th bytes of the return value are checked using ipmitool to verify that the CPLD version number is the same as the upgraded CPLD version number to ensure accuracy.
[0108] The embodiments of the present invention provide a strategy for executing corresponding instructions on the network card based on the target operation information and / or configuration matching information table, and refreshes the CPLD by using the screen function and Flashtool access tool, which avoids the problem of high error rate in manual operation, reduces the workload of staff, and improves accuracy.
[0109] Based on the above embodiments, when the BIOS options and option values of the target operation information differ from those of the original operation information, the network card is executed according to the corresponding instruction execution strategy based on the target operation information to complete the network card operation processing, including:
[0110] Obtain the target BIOS options and target option values from the target operation information, and write the target BIOS options and target option values into the requirements document;
[0111] Copy the requirements document to the network card's operating system using the SCP command;
[0112] Access the system via the copied network card using the screen function;
[0113] The SCE tool is used to export the BIOS options built into the network card as a txt file.
[0114] Compare the options and option values in the txt file with those in the requirements document;
[0115] Modify the requirements document based on the comparison results;
[0116] The modified requirements document was re-imported into the network card's BIOS using the SCE tool to complete the BIOS option modification operation.
[0117] Specifically, the target BIOS options and their values are obtained from the target operation information and written into the requirements document. The requirements document is then copied to the network card's OS system using the SCP command. The copied network card system is then accessed again using the screen function, allowing the SCE tool to export the network card's built-in BIOS options as a .txt file. At this point, the target BIOS options and their values from the requirements document are not yet imported into the network card's built-in BIOS options.
[0118] The options and their values in the txt file and the requirements document are compared one by one. In this embodiment, the comparison is performed sequentially. If the target BIOS option in the requirements document does not exist in the txt file, it needs to be deleted or selected and stored in a separate folder, while the options that exist in the txt file are retained. If the option value format is incorrect, it needs to be deleted or selected and stored in another folder. This process continues until all modified values have been completed. Then, the requirements document information is re-imported into the network card's BIOS using the SCE tool.
[0119] As a preferred embodiment, when modifying the requirements document based on the comparison results, the method further includes:
[0120] If the target BIOS option in the requirements document does not exist in the txt file, output a message indicating that the option does not exist;
[0121] If the target option values in the requirements document are different from the option value formats in the txt file, an error message indicating that the option values are incorrect will be output.
[0122] The notification messages are designed to remind staff whether the target operation information they have set is reasonable, so that they can make changes later. This invention does not specifically limit the form of the notification messages; they can be sent via voice, pop-up dialog boxes, or compiled into a log in the background.
[0123] The existing BIOS is flashed during the startup process of the smart network card and the server, and the flashing process can only be completed after shutting down and restarting.
[0124] This invention provides a strategy for executing corresponding instructions on the network card based on target operation information to complete the network card's operation. It uses the SCE tool to access the smart network card's BIOS, generates a BIOS option file, directly modifies this file, and then uses the SCE tool to transfer the file back to the BIOS, thus achieving the purpose of flashing the BIOS. This avoids the need for repeated power-on and power-off operations.
[0125] Based on the above embodiments, step S12, obtaining the network card and server configuration matching information table in the database, includes:
[0126] Enter the database password to connect to the database and obtain the configuration matching information table.
[0127] Specifically, data is stored in an SQL Server database, and connections are established through three mapping tables. Utilizing SQL improves program responsiveness and provides a more intuitive display of the operation process and the relationships between data. Furthermore, SQL Server has built-in data encryption capabilities, effectively preventing the risk of data leakage. The requirement to enter a password each time connecting to the database further enhances security.
[0128] After entering the password, the system automatically connects to the database. The user enters the network card name, and the system automatically searches the database tables for the card. If not found, the user can fill in the file information and network card information required in the operation details into a template file to enable a built-in upload connection. The data is then uploaded to the database using the INSERT INTO statement. This allows for further operation. If network card information exists, the program automatically determines the supported OS list and uses a system matching table to retrieve relationships. The user can check for compatibility issues between the smart network card and the OS. Next, the user selects the operation to perform. The user can choose to perform one or more upgrade operations simultaneously. The program uses SQL statements to determine the feasibility of the operation and displays the original and new information in a prompt window, along with real-time logs and progress updates.
[0129] This invention provides a method for connecting to a database by entering a database password to obtain a configuration matching information table. Utilizing SQL Server's built-in data encryption function effectively avoids the risk of stored data leakage. Furthermore, requiring a password each time the database is connected further enhances security.
[0130] The foregoing has described in detail various embodiments of the network card operation processing method. Based on this, the present invention also discloses a network card operation processing apparatus corresponding to the above method. Figure 2 This is a structural diagram of an operation processing device for a network interface card (NIC) provided in an embodiment of the present invention. Figure 2As shown, the network card's operation processing device includes:
[0131] The first acquisition module 11 is used to acquire the target operation information and the original operation information of the network card;
[0132] The second acquisition module 12 is used to acquire the configuration matching information table between the network card and the server in the database, wherein the configuration matching information table includes a system matching table, a firmware matching table and a CPLD matching table;
[0133] The execution module 13 is used to perform corresponding instruction execution strategies on the network card to complete the operation processing of the network card when the target operation information is different from the original operation information, based on the target operation information and / or the configuration matching information table. The instruction execution strategy includes at least one of the following strategies: BIOS option modification operation strategy, driver installation firmware upgrade strategy, and CPLD upgrade strategy.
[0134] Since the embodiments of the device part correspond to the embodiments described above, please refer to the embodiments described in the method part for the embodiments of the device part, and will not be repeated here.
[0135] For a description of the network card operation processing device provided by the present invention, please refer to the above method embodiments. The present invention will not be described again here, but it has the same beneficial effects as the above network card operation processing method.
[0136] Figure 3 A structural diagram of another network card operation processing device provided in an embodiment of the present invention is shown below. Figure 3 As shown, the device includes:
[0137] Memory 21 is used to store computer programs;
[0138] Processor 22 is used to implement the operation processing method of the network card when executing computer programs.
[0139] The network card operation processing device provided in this embodiment may include, but is not limited to, smartphones, tablets, laptops, or desktop computers.
[0140] The processor 22 may include one or more processing cores, such as a quad-core processor or an octa-core processor. The processor 22 may be implemented using at least one of the following hardware forms: Digital Signal Processor (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor 22 may also include a main processor and a coprocessor. The main processor, also known as the CPU, is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, the processor 22 may integrate a Graphics Processing Unit (GPU), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, the processor 22 may also include an Artificial Intelligence (AI) processor, which handles computational operations related to machine learning.
[0141] The memory 21 may include one or more computer-readable storage media, which may be non-transitory. The memory 21 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In this embodiment, the memory 21 is used to store at least the following computer program 201, which, after being loaded and executed by the processor 22, is capable of implementing the relevant steps of the network card operation processing method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 21 may also include an operating system 202 and data 203, etc., and the storage method may be temporary storage or permanent storage. The operating system 202 may include Windows, Unix, Linux, etc. The data 203 may include, but is not limited to, the data involved in the network card operation processing method, etc.
[0142] In some embodiments, the network card's operation processing device may further include a display screen 23, an input / output interface 24, a communication interface 25, a power supply 26, and a communication bus 27.
[0143] Those skilled in the field can understand, Figure 3 The structure shown does not constitute a limitation on the operation and processing device of the network interface card and may include more or fewer components than shown.
[0144] The processor 22 implements the network card operation processing method provided in any of the above embodiments by calling the instructions stored in the memory 21.
[0145] For a description of the network card operation processing device provided by the present invention, please refer to the above method embodiments. The present invention will not be described again here, but it has the same beneficial effects as the above network card operation processing method.
[0146] Furthermore, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by the processor 22, implements the steps of the network card operation processing method described above.
[0147] It is understood that if the methods in the above embodiments are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and executes all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0148] For an introduction to the computer-readable storage medium provided by the present invention, please refer to the above method embodiments. The present invention will not be described in detail here, but it has the same beneficial effects as the above network card operation and processing method.
[0149] The above provides a detailed description of the network card operation processing method, network card operation processing device, and medium provided by the present invention. The various embodiments in the 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 devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to in the method section. It should be noted that those skilled in the art can make several improvements and modifications to the present invention without departing from the principles of the invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
[0150] It should also be noted that, in this specification, 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.
Claims
1. A method for operating a network interface card (NIC), characterized in that, include: Obtain the target operation information and original operation information of the network card; Obtain the configuration matching information table between the network card and the server in the database, wherein the configuration matching information table includes a system matching table, a firmware matching table, and a CPLD matching table; When the target operation information is different from the original operation information, the network card is subjected to a corresponding instruction execution strategy according to the target operation information and / or the configuration matching information table to complete the operation processing of the network card. The instruction execution strategy includes at least one of the following strategies: BIOS option modification operation strategy, driver installation firmware upgrade strategy and CPLD upgrade strategy. Correspondingly, when the target operation information differs from the CPLD version of the original operation information, the step of applying a corresponding instruction execution strategy to the network card based on the target operation information and / or the configuration matching information table includes: Obtain the CPLD version information of the target operation information; Copy the refresh file corresponding to the CPLD version information to the operating system of the server; The operating system of the network card corresponding to the CPLD version information is found by using the configuration matching information table; The refresh file is copied to the operating system of the network card using the SCP command; The CPLD version information corresponding to the CPLD is refreshed using the Flashtool tool to complete the operation of the CPLD upgrade strategy.
2. The network card operation processing method according to claim 1, characterized in that, The process of establishing the database includes the following steps: Establish the system matching table, firmware matching table, and CPLD matching table for the network card and the server, respectively; The system matching table includes the network card name and the corresponding system version that supports the server. The firmware matching table includes firmware information and driver file information for the system version corresponding to the network card; The CPLD matching table includes the network card and the corresponding CPLD version that supports the server.
3. The network card operation processing method according to claim 2, characterized in that, When the target operation information differs from the firmware information and / or driver file information of the original operation information, the step of applying a corresponding instruction execution strategy to the network card based on the target operation information and / or the configuration matching information table includes: Use the `cat` command to read the system version of the server; The driver version of the network card is obtained using the ethool command; Based on the target operation information and the configuration matching information table, determine whether the system version of the server matches the driver version of the network card; If they do not match, it is determined that the driver version of the network card is abnormal; The target driver version that matches the system version of the server is obtained according to the configuration matching information table, and loaded. Then, the process returns to the step of determining whether the system version of the server matches the driver version of the network card based on the target operation information and the configuration matching information table. If a match is found, the network card is configured with a local yum repository, and the dependent environment information and the screen function are installed in the local yum repository. Access the operating system of the network card through the screen function; The firmware information corresponding to the driver version after matching is refreshed by the firmware refresh command to complete the cold reboot operation of the network card and complete the operation processing of the driver installation firmware upgrade strategy.
4. The network card operation processing method according to claim 2, characterized in that, When the target operation information differs from the BIOS options and option values of the original operation information, the network card is processed according to the corresponding instruction execution strategy based on the target operation information to complete the operation of the network card, including: Obtain the target BIOS options and target option values of the target operation information, and write the target BIOS options and target option values into the requirements document; The requirements document is copied into the operating system of the network card using the SCP command; Access the system of the copied network card using the screen function; The BIOS options built into the network card are exported as a txt file using the SCE tool. Compare the options and option values in the txt file with those in the requirements document; Modify the requirements document based on the results of the comparison; The modified requirements document is re-imported into the BIOS of the network card using the SCE tool to complete the BIOS option modification operation strategy.
5. The network card operation processing method according to claim 2, characterized in that, The step of obtaining the configuration matching information table between the network card and the server in the database includes: Enter the password for the database to connect to the database and obtain the configuration matching information table.
6. The network card operation processing method according to claim 4, characterized in that, When modifying the requirements document based on the comparison result, the method further includes: If the target BIOS option in the requirements document does not exist in the txt file, a message indicating that the option does not exist will be output. If the target option value in the requirement document is different from the option value format in the txt file, an incorrect option value message will be output.
7. A network card operation processing device, characterized in that, include: The first acquisition module is used to acquire the target operation information and the original operation information of the network card; The second acquisition module is used to acquire the configuration matching information table between the network card and the server in the database, wherein the configuration matching information table includes a system matching table, a firmware matching table and a CPLD matching table; An execution module is used to perform corresponding instruction execution strategies on the network card to complete the operation processing of the network card when the target operation information is different from the original operation information, according to the target operation information and / or the configuration matching information table. The instruction execution strategy includes at least one of the following strategies: BIOS option modification operation strategy, driver installation firmware upgrade strategy, and CPLD upgrade strategy. Correspondingly, when the target operation information differs from the CPLD version of the original operation information, the step of applying a corresponding instruction execution strategy to the network card based on the target operation information and / or the configuration matching information table includes: Obtain the CPLD version information of the target operation information; Copy the refresh file corresponding to the CPLD version information to the operating system of the server; The operating system of the network card corresponding to the CPLD version information is found by using the configuration matching information table; The refresh file is copied to the operating system of the network card using the SCP command; The CPLD version information corresponding to the CPLD is refreshed using the Flashtool tool to complete the operation of the CPLD upgrade strategy.
8. A network card operation processing device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the network interface card operation processing method as described in any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the network card operation processing method as described in any one of claims 1 to 6.