Method, system, equipment and medium for configuring network card in starting process of server

By using the serial bus to read network card information during the server startup process and confirming that initialization is completed, the problem of too long starting time of smart network card is solved, and the server startup efficiency is improved.

CN120447990APending Publication Date: 2025-08-08INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510555786.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-29
Publication Date
2025-08-08

AI Technical Summary

Technical Problem

In the prior art, the start time of the smart network card is too long, which causes the network card to be not ready when the server is initialized and the smart network card is connected, resulting in detection failure or load failure, increasing the server startup time and the waiting time cannot be accurately evaluated.

Method used

By configuring the motherboard and the network card connector to connect through an extended power cable during the server startup process, the serial bus is used to read the on-site replacement unit information of the network card, confirm the existence of the network card and the initialization is completed, and the server startup process is executed, including querying the network card type and operating system parameters matching, and controlling the power-on or power-off of the network card through the power state switching command.

Benefits of technology

It realizes that the server starts after confirming that the smart network card exists and initialization is completed, which reduces the server's waiting time, speeds up the startup process, and improves the server's startup efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120447990A_ABST
    Figure CN120447990A_ABST
Patent Text Reader

Abstract

The invention discloses a method, system and device for configuring a network card in the server starting process and a medium, and relates to the technical field of servers, and the method comprises the steps that firstly, a mainboard of a server is configured to be connected with a connector of the network card through an independent power line, so that communication between the server and the intelligent network card is achieved, and in the server starting process, the mainboard of the server is connected with the connector of the network card; and reading field replaceable unit information in the network card through the serial bus to confirm whether the network card exists, continuing to inquire whether the network card completes initialization after confirming that the network card exists, and controlling the server to start and execute a starting process after the initialization of the network card is completed. The problem that the starting time is increased by waiting for the intelligent network card in the prior art is solved, the starting process of the server is executed after existence of the intelligent network card is confirmed and initialization of the intelligent network card is completed, the waiting time of the server is shortened, and the starting process of the server is accelerated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of servers, and in particular to a method, system, device, and medium for configuring a network card during a server startup process. Background Art

[0002] Smart NICs (Smart NICs) in servers primarily reduce the burden on server processors, improve data processing capabilities, and adapt to the demands of virtualized environments. As Smart NICs become increasingly powerful, their startup time is also increasing. This often leads to the Smart NIC not being ready when the server initializes and connects to it, causing it to go undetected or fail to load.

[0003] In some related technologies, in order to solve the above problem, the method of always keeping the PCIE port of the server open and delaying PCIE initialization to wait is usually adopted. However, this method will increase the startup time of the server regardless of whether the server is connected to the smart network card, and it is impossible to accurately evaluate the waiting time, which greatly increases the time it takes for the server to adapt to the smart network card and affects the normal operation of the business in the server. Summary of the Invention

[0004] The present application provides a method, system, device, and medium for configuring a network card during a server startup process. By accurately identifying a smart network card during the server startup process, the server startup process is executed after the smart network card is confirmed to exist and its initialization is completed, thereby reducing the server's waiting time and speeding up the server startup process.

[0005] The present application provides a method for configuring a network card during a server startup process, the method comprising:

[0006] A mainboard of a configuration server is connected to a connector of a network card via an extended power cable so that the server and the network card communicate via a serial bus; in response to server startup, a controller of the server reads field replaceable unit information of the network card via the serial bus and confirms the existence of the network card based on the field replaceable unit information; in response to confirming the existence of the network card, an initialization status of the network card is queried; and in response to confirming that initialization of the network card is complete, a startup process of the server is executed.

[0007] In a specific embodiment, before configuring the server's motherboard and the connector of the network card to be connected through an extension power cable, it also includes: querying the type parameters of the network card, obtaining the slot parameters of the server's motherboard, and confirming that the type parameters match the slot parameters; querying the operating system parameters supported by the network card, and matching them with the system identifier in the server, and in response to the operating system parameters matching the system identifier, confirming that the network card is compatible with the server.

[0008] In a specific embodiment, the controller of the server reads the field replaceable unit information of the network card through a serial bus, and confirms the existence of the network card based on the field replaceable unit information, specifically including: the controller of the server reads the field replaceable unit information of the network card through a serial bus; if the reading is successful, the preset field in the field replaceable unit information is read through a preset protocol, and if the preset field matches the target model of the network card, the existence of the network card is confirmed; or, if the reading is unsuccessful, a preset number of re-reads are performed, and if the number of re-reads exceeds the preset number, it is confirmed that the network card does not exist, and a server startup process without a network card is executed.

[0009] In a specific embodiment, in response to confirming the existence of the network card, querying the initialization status of the network card specifically includes: in response to confirming the existence of the network card, querying a preset instruction for identifying the initialization status of the network card through the controller of the server; the preset instruction is used to enable the basic input and output system of the server to access the register of the network card and read the register value of the network card; in response to confirming that the register value of the network card includes a preset value, confirming that the initialization of the network card is complete.

[0010] In a specific embodiment, in response to the network card initialization not being completed, a preset time is set to wait for the network card initialization; within the preset time, the initialization status of the network card is cyclically queried until the network card initialization is completed; or in response to the network card initialization not being queried to be completed within the preset time, the network card initialization failure is confirmed, and the server startup process without the network card is executed.

[0011] In a specific embodiment, the current business scenario of the server is obtained, and the host power supply of the server and the extended power state of the network card are configured according to the power usage status in the current business scenario; the next business scenario of the server is obtained, and according to the configuration state of the network card in the next business scenario, if the configuration state of the network card is different from the network card state in the current business scenario, the configuration state of the network card is adjusted; in response to the adjustment of the configuration state of the network card, a power state switching command is executed by the controller of the server to switch the extended power state of the network card to power on or off through the switching command.

[0012] In a specific embodiment, switching the extended power state of the network card to power on or off through the switching command specifically includes: if the switching command is extended power on, then controlling the server startup process to instruct the extended power of the network card to be turned on through the extended power on instruction to power on the network card; if the switching command is extended power off, then controlling the server startup process to instruct the extended power of the network card to be turned off through the extended power off instruction to power off the network card.

[0013] The present application also provides a system for configuring a network card during a server startup process, which is used to implement the above-mentioned method for configuring a network card during a server startup process. The system includes:

[0014] a configuration module, configured to connect a connector of a mainboard of a configuration server to a connector of a network card via an extension power cable, so that the server and the network card communicate via a serial bus;

[0015] a first response module, configured to, in response to a server startup, control a controller of the server to read field replaceable unit information of the network card through a serial bus, and confirm the existence of the network card according to the field replaceable unit information;

[0016] The second response module is configured to query the initialization status of the network card in response to confirming the existence of the network card, and execute the startup process of the server in response to confirming that the initialization of the network card is complete.

[0017] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned methods for configuring a network card during a server startup process when executing the computer program.

[0018] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned methods for configuring a network card during a server startup process are implemented.

[0019] By configuring the server motherboard in this application and connecting the gold finger of the network card through a separate power cord, the communication connection between the server and the network card is realized, and at the same time, the smart network card is powered separately by the extended power supply. During the server startup process, the field replaceable replacement unit information of the network card is first read through the serial bus, and the existence of the network card is confirmed according to the field replaceable unit information. Then, the initialization status of the network card is queried. After confirming that the initialization of the network card is completed, the server startup process is executed. By accurately identifying the smart network card during the server startup process, the existence of the smart network card is confirmed, and the server startup process is executed after its initialization is completed, thereby reducing the waiting time of the server and speeding up the server startup process. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0021] Figure 1 A schematic diagram of a method for configuring a network card during server startup provided in an embodiment of the present application;

[0022] Figure 2 A schematic diagram of the connection status between the server and the network card provided in an embodiment of the present application;

[0023] Figure 3 A schematic diagram of obtaining the register value of a network card through a server provided in an embodiment of the present application;

[0024] Figure 4 A schematic diagram of the server startup process provided in an embodiment of the present application;

[0025] Figure 5 A schematic diagram of power switching in a server provided in an embodiment of the present application;

[0026] Figure 6 A system diagram of configuring a network card during the server startup process provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the accompanying drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0028] It should be noted that, in the description of this application, the terms "comprises," "includes," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. The terms "first," "second," etc., in this application are used to distinguish similar objects, and are not used to describe a particular order or sequence.

[0029] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0030] The embodiment of the present application provides a method for configuring a network card during a server startup process, such as Figure 1 As shown, the method includes:

[0031] Step 1: Connect the connectors of the server's motherboard and the network card through an extension power cable so that the server and the network card can communicate through a serial bus.

[0032] The network card in this embodiment, such as Figure 2 As shown, the configuration is selected to include but not limited to a BF2 network card or a BF3 network card. By setting a separate extended power cord on the server's motherboard, the other end of the extended power cord is connected to the gold finger of the network card to achieve communication connection between the server and the network card, and the network card can be powered separately through the extended power supply. At the same time, BMC and BIOS are configured in the server, and the BMC and BIOS communicate with the network card through the I2C bus. It should be noted that BMC is the Baseboard Management Controller, also known as the baseboard management controller, which is used to monitor and manage the server; BIOS is the Basic Input Output System, also known as the basic input and output system, which is used to implement parameter settings for the server system hardware.

[0033] Furthermore, in order to ensure that the network card connected to the server's mainboard can be adapted to the server, it also includes: querying the type parameters of the network card, and obtaining the slot parameters of the server's mainboard, and confirming that the type parameters match the slot parameters; querying the operating system parameters supported by the network card, and matching them with the system identifier in the server, and in response to the operating system parameters matching the system identifier, confirming that the network card is compatible with the server.

[0034] Exemplarily, the slot parameters of the server's motherboard include the slot type and slot version. The PCIE slot type of the server's motherboard is obtained, including x8 and x16. The slot version of the server's motherboard is obtained, including PCIE 3.0 and PCIE4.0. The slot type and slot version supported by the network card are queried according to the material number of the network card. It is confirmed that the above slot type and slot version are within the range supported by the network card, thereby confirming that the type parameter matches the slot parameter.

[0035] Step 2: In response to the server starting up, the controller of the server reads the field replaceable unit information of the network card through the serial bus, and confirms the existence of the network card according to the field replaceable unit information.

[0036] Specifically, step 2.1, the controller of the server reads the field replaceable unit information of the network card through the serial bus;

[0037] Step 2.2: If the reading is successful, the preset field in the field replaceable unit information is read through the preset protocol. If the preset field matches the target model of the network card, the network card is confirmed to exist.

[0038] Step 2.3: If the reading is unsuccessful, the server will be re-read a preset number of times. If the number of re-reads exceeds the preset number, it is confirmed that the network card does not exist, and the server startup process without the network card is executed.

[0039] When the server is powered on, the server's BMC or BIOS is configured to read the Smart NIC's field replaceable unit (FRU) information through the cheat sheet and the FRU protocol. This involves reading the Smart NIC's EEPROM through the cheat sheet's I2C interface and reading the Product Name field in the FRU. If the Product Name field in the FRU matches the target model of the NIC, the NIC is confirmed to exist.

[0040] Furthermore, if reading the field replaceable unit information fails, retry three times is set. If it still fails after three times, it means that the smart network card does not exist, and the server startup process without the network card is executed.

[0041] Step 3: In response to confirming the existence of the network card, query the initialization status of the network card; in response to confirming that the initialization of the network card is complete, execute the server startup process.

[0042] After confirming the existence of the network card, querying the initialization status of the network card to confirm that the initialization of the network card is complete, specifically including: in response to confirming the existence of the network card, querying a preset instruction for identifying the initialization status of the network card through a controller of the server; the preset instruction is used to enable the basic input and output system of the server to access the register of the network card and read the register value of the network card; in response to confirming that the register value of the network card includes the preset value, confirming that the initialization of the network card is complete.

[0043] like Figure 3 As shown, the IPMI instruction of the network card is queried through the server's BMC, where the IPMI instruction is used to indicate the initialization status of the smart network card. The server BMC accesses the registers in the smart network card system through the MCTP over Smbus protocol and reads the register value of the smart network card. The register value is preset to 0X02 to indicate that the network card initialization is complete. That is, when the register value of the smart network card includes 0X02, it indicates that the network card initialization is complete.

[0044] Step 3.1. In response to the network card initialization not being completed, set a preset time to wait for the network card initialization; within the preset time, cyclically query the initialization status of the network card until the network card initialization is completed; or in response to the network card initialization not being completed within the preset time, confirm that the network card initialization has failed, and execute the server startup process without the network card.

[0045] like Figure 4 As shown in the figure, if the network card initialization is not completed, it is necessary to print "Waiting for Smart NIC initialization to complete" on the screen, delay for 2 seconds, continue to check the Smart NIC initialization status, and execute the loop until the Smart NIC initialization is completed; or if the waiting time exceeds 5 minutes, after the waiting time exceeds 5 minutes, if the Smart NIC initialization is not completed, print "Smart NIC initialization failure", send the BMC SEL error log, and continue to boot.

[0046] In a specific embodiment, the use of the smart network card in the server needs to be confirmed based on the business it actually processes. When the smart network card needs to be used, it is necessary to control the startup of the smart network card and perform relevant configurations, specifically including: obtaining the current business scenario of the server, and configuring the host power supply of the server and the extended power state of the network card according to the power usage status in the current business scenario; obtaining the next business scenario of the server, and adjusting the configuration state of the network card according to the configuration state of the network card in the next business scenario. If the configuration state of the network card is different from the network card state in the current business scenario, the configuration state of the network card is adjusted; in response to the adjustment of the configuration state of the network card, a power state switching command is executed through the controller of the server to switch the extended power state of the network card to power on or off through the switching command.

[0047] Among them, when the switching command is to power on the extended power supply, the control server startup process will instruct the extended power supply of the network card to power on through the extended power supply power-on instruction to realize the power-on of the network card; when the switching command is to shut down the extended power supply, the control server startup process will instruct the extended power supply of the network card to shut down through the extended power supply shutdown instruction to realize the power-off of the network card.

[0048] Specifically, the server's power state is configured through the server's BIOS, and the switch between different power states is achieved through the server's BMC, such as Figure 5 As shown in the figure, IPMI commands are used to switch to different power states. The server power states include S5, ExS5, and S0. S5 indicates that the server is in S5 state and the Smart NIC is powered. ExS5 indicates that the extended power supply is in S5 state, and the server motherboard and Smart NIC are powered off. S0 indicates that the server is in S0 state and the remote display is enabled, that is, the normal screen is displayed through KVM and VNC.

[0049] For example, the power-on command for controlling the server is "ipmitool chassis power on", and the power-off command for controlling the server is "ipmitool chassis power off". The extended power-on command implements extended power-on based on ipmitoolraw, and powers on the smart network card during the startup process. The extended power-off command implements extended power-off based on ipmitool raw, and powers off the smart network card during the shutdown process.

[0050] For example, in the current business scenario of the server, when the smart network card needs to be used, the server power is configured to be turned on, and the extended power supply is configured to power the smart network card; after the current business is completed, the next business to be executed in the server is obtained. If the business to be executed needs to continue to use the smart network card, the configuration status of the network card is not adjusted. If the business to be executed does not need to continue to use the smart network card, the configuration status of the network card is adjusted, that is, the extended power status of the network card is switched to power off.

[0051] Furthermore, since there are multiple tasks that need to be executed in the server, and different task types need to be implemented in combination with network cards of different functions, when obtaining the next business to be executed on the server, the functional configuration information of the business to be executed is queried at the same time, and matched with the functional type of the current smart network card. If the functional configuration information of the business to be executed matches the functional type of the current smart network card, the current smart network card is confirmed to be retained; if the functional configuration information of the business to be executed does not match the functional type of the current smart network card, the updated smart network card associated with it is queried in combination with the functional configuration information of the business to be executed, and the updated smart network card is set to match the functional configuration information of the business to be executed, so as to set the updated smart network card as the associated network card of the business to be executed. At the same time, the extended power state of the current smart network card is set to be network card power-off, and the extended power state associated with the updated smart network card is configured to be updated smart network card power-on.

[0052] It should be noted that since multiple smart network cards are configured in the server, and each smart network card is configured with a separate extended power supply for powering it, in order to ensure that the server's BMC can accurately adjust the status of each extended power supply to control the power supply to each smart network card, the extended power supplies associated with the smart network cards are set to be associated with the corresponding network card numbers, that is, the extended power supplies are set to have corresponding network card numbers, and the network card numbers are associated with their corresponding smart network cards one-to-one, and the above information is formed into an information list to be configured in the server. In response to the need to configure power supply for one of the smart network cards, the network card number associated with the smart network card is queried through the information list, and its extended power supply is obtained according to the network card number, so as to realize the power on or off of the smart network card by configuring the status of the extended power supply to suit different functional services.

[0053] Through the above settings, the server's motherboard and the gold finger of the network card are connected through a separate power cord to achieve communication connection between the server and the network card. At the same time, power is supplied to the smart network card separately through the extended power supply. During the server startup process, the field replaceable replacement unit information of the network card is first read through the serial bus, and the existence of the network card is confirmed according to the field replaceable unit information. Then, the initialization status of the network card is queried. After confirming that the initialization of the network card is completed, the server startup process is executed. By accurately identifying the smart network card during the server startup process, the existence of the smart network card is confirmed, and the server startup process is executed after its initialization is completed, thereby reducing the waiting time of the server and speeding up the server startup process.

[0054] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.

[0055] The embodiment of the present application also provides a system for configuring a network card during a server startup process, such as Figure 6 As shown, the system includes:

[0056] A configuration module, used to connect the connector of the server's mainboard to the network card via an extension power cable so that the server and the network card can communicate via a serial bus;

[0057] a first response module, configured to, in response to the server being started, control a controller of the server to read field replaceable unit information of the network card through a serial bus, and confirm the existence of the network card according to the field replaceable unit information;

[0058] The second response module is configured to query the initialization status of the network card in response to confirming the existence of the network card, and execute a startup process of the server in response to confirming that the initialization of the network card is complete.

[0059] In a specific embodiment, the first response module is also used to control the controller of the server to read the field replaceable unit information of the network card through the serial bus; if the reading is successful, the preset field in the field replaceable unit information is read through the preset protocol, and if the preset field matches the target model of the network card, the existence of the network card is confirmed; or, if the reading is unsuccessful, a preset number of re-reads are performed, and if the preset number of re-reads is exceeded, it is confirmed that the network card does not exist, and the server startup process without the network card is executed.

[0060] In a specific embodiment, the second response module is further configured to query, through the controller of the server, a preset instruction for identifying an initialization state of the network card in response to confirming the existence of the network card;

[0061] The preset instruction is used to enable the basic input and output system of the server to access the register of the network card and read the register value of the network card; in response to confirming that the register value of the network card includes the preset value, it is confirmed that the network card initialization is completed.

[0062] In a specific embodiment, the second response module is also used to set a preset time to wait for network card initialization in response to the incomplete initialization of the network card; within the preset time, cyclically query the initialization status of the network card until the initialization of the network card is completed; or in response to the failure to query the completion of the network card initialization within the preset time, confirm that the network card initialization has failed, and execute the server startup process without the network card.

[0063] In a specific embodiment, an analysis module is also included, which is used to query the type parameters of the network card, obtain the slot parameters of the server's mainboard, and confirm that the type parameters match the slot parameters; query the operating system parameters supported by the network card, and match them with the system identifier in the server. In response to the operating system parameters matching the system identifier, it is confirmed that the network card is compatible with the server.

[0064] In a specific embodiment, it also includes an adjustment module, which is used to obtain the current business scenario of the server, and configure the host power supply of the server and the extended power state of the network card according to the power usage status in the current business scenario; obtain the next business scenario of the server, and according to the configuration state of the network card in the next business scenario, if the configuration state of the network card is different from the network card state in the current business scenario, adjust the configuration state of the network card; in response to the adjustment of the configuration state of the network card, execute a power state switching command through the controller of the server to switch the extended power state of the network card to power on or off through the switching command.

[0065] In a specific embodiment, the adjustment module also includes if the switching command is to power on the extended power supply, then during the control server startup process, the extended power supply of the network card is instructed to be turned on through the extended power supply power-on instruction to power on the network card; if the switching command is to shut down the extended power supply, then during the control server startup process, the extended power supply of the network card is instructed to be shut down through the extended power supply shutdown instruction to power off the network card.

[0066] For descriptions of features in the embodiments corresponding to the system for configuring a network card during server startup, reference may be made to the descriptions of features in the embodiments corresponding to the method for configuring a network card during server startup, which will not be detailed here.

[0067] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to perform the steps in any of the above-mentioned embodiments of the method for configuring a network card during a server startup process, including:

[0068] Step 101: Connect the connectors of the server's mainboard and the network card via an extension power cable so that the server and the network card can communicate via a serial bus.

[0069] Step 102: In response to the server being started, the controller of the server reads the field replaceable unit information of the network card through the serial bus, and confirms the existence of the network card according to the field replaceable unit information;

[0070] Step 103: In response to confirming the existence of the network card, query the initialization status of the network card. In response to confirming that the initialization of the network card is complete, execute the server startup process.

[0071] An embodiment of the present application further provides a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps of any of the above-mentioned embodiments of the method for configuring a network card during a server startup process when running, including:

[0072] Step 201: Connect the connectors of the server's mainboard and the network card via an extension power cable so that the server and the network card can communicate via a serial bus.

[0073] Step 202: In response to the server being started, the controller of the server reads the field replaceable unit information of the network card through the serial bus, and confirms the existence of the network card according to the field replaceable unit information;

[0074] Step 203: In response to confirming the existence of the network card, query the initialization status of the network card. In response to confirming that the initialization of the network card is complete, execute the server startup process.

[0075] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0076] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above-mentioned embodiments of the method for configuring a network card during a server startup process are implemented.

[0077] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps in any of the above-mentioned server startup process configuration network card method embodiments.

[0078] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0079] The above is a detailed introduction to the method, system, device and medium for configuring a network card during the server startup process provided by this application. Specific examples are used herein to illustrate the principles and implementation methods of this application. The description of the above embodiments is only used to help understand the method and core ideas of this application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the scope of protection of the claims of this application.

Claims

1. A method for configuring a network card during a server startup process, characterized in that: The method comprises: Connecting a mainboard of a configuration server to a connector of a network card via an extension power cable so that the server and the network card communicate via a serial bus; In response to the server being started, the controller of the server reads the field replaceable unit information of the network card through the serial bus, and confirms the existence of the network card according to the field replaceable unit information; In response to confirming that the network card exists, querying the initialization status of the network card, and in response to confirming that the initialization of the network card is completed, executing the startup process of the server.

2. The method for configuring a network card during server startup according to claim 1, wherein: Before connecting the connectors of the mainboard of the configuration server and the network card through the extension power cable, the method further includes: Querying the type parameters of the network card, obtaining the slot parameters of the server's mainboard, and confirming that the type parameters match the slot parameters; Query operating system parameters supported by the network card and match them with the system identifier in the server. In response to the operating system parameters matching the system identifier, confirm that the network card is compatible with the server.

3. The method for configuring a network card during a server startup process according to claim 1 or 2, wherein: The controller of the server reads the field replaceable unit information of the network card through a serial bus, and confirms the existence of the network card according to the field replaceable unit information, specifically including: The controller of the server reads the field replaceable unit information of the network card through a serial bus; If the reading is successful, reading a preset field in the field replaceable unit information through a preset protocol, and confirming that the network card exists if the preset field matches the target model of the network card; Alternatively, if the reading is unsuccessful, re-reading is performed a preset number of times. If the re-reading exceeds the preset number of times, it is confirmed that the network card does not exist, and a server startup process without a network card is performed.

4. The method for configuring a network card during server startup according to claim 3, wherein: In response to confirming that the network card exists, querying the initialization status of the network card specifically includes: In response to confirming that the network card exists, querying the controller of the server for identifying the Default instructions for the initialization state of the network card; The preset instruction is used to enable the basic input and output system of the server to access the register of the network card and read the register value of the network card; In response to confirming that the register value of the network card includes a preset value, it is confirmed that the initialization of the network card is completed.

5. The method for configuring a network card during server startup according to claim 4, wherein: The method further comprises: In response to the network card initialization not being completed, setting a preset time to wait for the network card initialization; Circularly querying the initialization status of the network card within the preset time until the initialization of the network card is completed; Or in response to not finding that the network card initialization is completed within the preset time, it is confirmed that the network card initialization has failed, and the server startup process without the network card is executed.

6. The method for configuring a network card during a server startup process according to claim 1 or 2, characterized in that: The method further comprises: Acquire a current business scenario of the server, and configure a host power supply of the server and an extended power supply state of the network card according to a power usage state in the current business scenario; Obtain a next business scenario of the server, and adjust the configuration state of the network card based on the configuration state of the network card in the next business scenario if the configuration state of the network card is different from the state of the network card in the current business scenario; in response to the adjustment of the configuration state of the network card, execute a power state switching command through the controller of the server to switch the extended power state of the network card to power on or off through the switching command.

7. The method for configuring a network card during server startup according to claim 6, wherein: Switching the extended power state of the network card to power on or power off by the switching command specifically includes: If the switching command is to power on the extended power supply, then instructing the extended power supply of the network card to power on through the extended power supply power on instruction during the server startup process, so as to power on the network card; If the switching command is to shut down the extended power supply, the server startup process is controlled to instruct the extended power supply of the network card to shut down through an extended power supply shutdown instruction, so as to power off the network card.

8. A system for configuring a network card during a server startup process, for implementing the method for configuring a network card during a server startup process according to any one of claims 1 to 7, characterized in that: The system comprises: a configuration module, configured to connect a connector of a mainboard of a configuration server to a connector of a network card via an extension power cable, so that the server and the network card communicate via a serial bus; a first response module, configured to, in response to a server startup, control a controller of the server to read field replaceable unit information of the network card through a serial bus, and confirm the existence of the network card according to the field replaceable unit information; The second response module is configured to query the initialization status of the network card in response to confirming the existence of the network card, and execute the startup process of the server in response to confirming that the initialization of the network card is complete.

9. An electronic device, characterized in that: include: memory for storing computer programs; A processor is configured to implement the steps of the method for configuring a network card during a server startup process as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method for configuring a network card during a server startup process according to any one of claims 1 to 7 are implemented.