Multi-network card pre-execution environment installation system test method, device, equipment and medium

By obtaining network card information through the Internet Protocol address of the baseboard management controller and automatically traversing and installing multiple operating systems, the problem of heavy server network card testing tasks is solved, realizing automated and intelligent testing of multiple network cards and improving testing efficiency.

CN116633818BActive Publication Date: 2025-12-19INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310785118.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-29
Publication Date
2025-12-19
Estimated Expiration
2043-06-29

AI Technical Summary

Technical Problem

In existing technologies, server network card testing is a heavy task, requires a lot of personnel, and is inefficient. In particular, during the R&D and mass production stages, it is necessary to manually perform PXE functional tests on various network cards, resulting in long testing cycles and high manpower requirements.

Method used

The network card information is obtained through the Internet Protocol address of the baseboard management controller, and the system automatically traverses and installs the operating system to be installed, including Linux and Windows systems in UEFI and Legacy boot modes. The system uses MAC address matching of the network port to perform automated testing and generates test results and error reports.

Benefits of technology

It enables automated and intelligent testing of multiple network cards, reducing manpower, shortening the testing cycle, and improving testing efficiency. It can test network cards of various models and types simultaneously.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116633818B_ABST
    Figure CN116633818B_ABST
Patent Text Reader

Abstract

The application discloses a multi-network card pre-execution environment installation system test method and device, equipment and medium, and relates to the technical field of computers. The method comprises the following steps: connecting a to-be-tested network card to a to-be-tested device, and matching a network port state of the network card as connected; acquiring network card information of all the network cards with the network port state as connected according to a baseboard management controller Internet protocol address of the to-be-tested device; installing a to-be-installed operating system on each network card through the baseboard management controller Internet protocol address of the to-be-tested device according to the network card information; and returning a test result in response to detection that all the network cards are installed. The application can realize automatic PXE function test of the multi-network card, thereby reducing the workload of testers and saving test time.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computers, in particular to a multi-network card pre-execution environment installation system testing method, device, equipment and medium. BACKGROUND

[0002] With the development of the times, servers are developing rapidly, and servers and network cards are updated and replaced quickly, and the demand is large. Network cards are one of the necessary hardware of servers and are necessary components for server communication. All network cards must be tested for PXE (Preboot Execution Environment) installation system testing when testing.

[0003] At present, whether in the research and development stage or in the mass production and maintenance stage, there will be a large number of network card testing requirements. Network card testing tasks are heavy, personnel investment is large, and efficiency is low. Among them, when developing and maintaining main components, multiple types of network cards are simultaneously matched on the server, and each type of network card needs to test different network ports, different modes, and different OS (Operating System) PXE installation. The installation time of each system needs more than half an hour, and multiple combinations will occupy a lot of manpower time. For example, each network card needs to manually traverse the following four combinations of installation systems: 1. UEFI (Unified Extensible Firmware Interface) boot mode installation Linux system; 2. UEFI boot mode installation Windows system; 3. Legacy boot mode installation Linux system; 4. Legacy boot mode installation Windows system. All network cards need to test PXE function test, the test period is long, only manual execution, large manpower occupation, simple technology and repetition, low test efficiency, and no automation and intelligentization.

[0004] Therefore, how to realize the PXE function test of the multi-network card automatically to reduce the workload of the test personnel and save the test time is a technical problem to be solved at present. SUMMARY

[0005] In order to solve at least one problem mentioned in the background, the present application provides a multi-network card pre-execution environment installation system testing method, device, equipment and medium, which can realize the PXE function test of the multi-network card automatically to reduce the workload of the test personnel and save the test time.

[0006] The specific technical solutions provided by the embodiments of the present application are as follows:

[0007] In a first aspect, a multi-network card pre-execution environment installation system testing method is provided, comprising:

[0008] connecting a to-be-tested network card to a to-be-tested device, and matching a network port state of the network card as connected;

[0009] obtaining network card information of all the network cards with the network port state as connected according to an Internet Protocol address of a baseboard management controller of the to-be-tested device;

[0010] installing a to-be-installed operating system on each network card according to the network card information through the Internet Protocol address of the baseboard management controller of the to-be-tested device;

[0011] in response to detecting that all the network cards are installed, returning a test result.

[0012] Further, the network card includes at least one network port, and the network card information includes at least a media access control address of the network port.

[0013] The installing the to-be-installed operating system on each network card according to the network card information through the Internet Protocol address of the baseboard management controller of the to-be-tested device includes:

[0014] installing the to-be-installed operating system on each network port corresponding to each media access control address according to each media access control address through the Internet Protocol address of the baseboard management controller of the to-be-tested device.

[0015] Further, the installing the to-be-installed operating system includes at least one of the following:

[0016] installing a Linux system through a Unified Extensible Firmware Interface boot mode, installing a Windows system through the Unified Extensible Firmware Interface boot mode, installing the Linux system through a Legacy boot mode, and installing the Windows system through the Legacy boot mode.

[0017] The installing the to-be-installed operating system on each network port corresponding to each media access control address according to each media access control address through the Internet Protocol address of the baseboard management controller of the to-be-tested device includes:

[0018] installing a Linux system through a Unified Extensible Firmware Interface boot mode according to a current media access control address through the Internet Protocol address of the baseboard management controller of the to-be-tested device on the network port corresponding to the current media access control address;

[0019] installing a Windows system through the Unified Extensible Firmware Interface boot mode according to the current media access control address through the Internet Protocol address of the baseboard management controller of the to-be-tested device on the network port corresponding to the current media access control address;

[0020] installing Linux system through Legacy boot mode according to the current MAC address and the BMC IP address corresponding to the network interface matching the current MAC address;

[0021] installing Windows system through Legacy boot mode according to the current MAC address and the BMC IP address corresponding to the network interface matching the current MAC address;

[0022] repeating the step of installing the operating system until all the network cards are installed with the operating system.

[0023] Further, the method further comprises:

[0024] in response to detecting that the installation of the operating system on the network interface corresponding to the current MAC address exceeds a preset installation time threshold, skipping the installation test on the current network interface and performing the installation test on the network interface corresponding to the next MAC address;

[0025] generating and returning a pre-execution environment installation error report, wherein the pre-execution environment installation error report comprises at least one of the current MAC address, the network interface corresponding to the current MAC address, and the installation response time.

[0026] Further, in response to detecting that all the network cards are installed, returning a test result, comprising:

[0027] in response to detecting that there is a failed network card, generating an error log;

[0028] returning the error log and performing error alarm;

[0029] The error log comprises at least one of the information of the failed network card, the information of the network interface corresponding to the failed network card, the information of the failed operating system, the installation error step, and the installation time.

[0030] Further, the network card information further comprises at least one of the network card model, the network interface state, and the version of the operating system to be installed.

[0031] In a second aspect, the device comprises:

[0032] a network card matching module, configured to connect the network card to be tested to the device to be tested, and match the network card with the network interface state of being connected;

[0033] The information acquisition module is configured to acquire network card information of all network cards with a connected network port according to the BMC IP address of the to-be-tested device.

[0034] The installation test module is configured to install an operating system to be installed on each network card through the BMC IP address of the to-be-tested device according to the network card information.

[0035] The result returning module is configured to return a test result in response to detecting that all network cards are installed.

[0036] In a third aspect, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the multi-network card pre-execution environment installation system test method when executing the computer program.

[0037] In a fourth aspect, a computer readable storage medium is provided, which stores computer executable instructions for executing the multi-network card pre-execution environment installation system test method.

[0038] The embodiments of the present application have the following beneficial effects:

[0039] 1. The multi-network card pre-execution environment installation system test method, device, equipment and medium provided by the embodiments of the present application can perform all installation operating system tests on all network ports of all network cards through the traversal installation mode, can realize automation and intelligentization, reduce the occupation of manpower, and reduce the test period.

[0040] 2. Only the MAC address is needed to perform traversal matching installation test, and then the to-be-installed operating system of all network ports can be installed in turn, and the installation test of the to-be-installed operating system of all network cards can be realized, without the need to pay attention to how many network ports correspond to one network card, thereby reducing the installation process steps and further improving the test efficiency.

[0041] 3. The MAC address can be used as an identifier to install all to-be-installed operating systems of all network ports, and the network card identification is decoupled in units of network ports, the traversal installation test of all network cards can be automatically realized, multiple types of network cards of multiple models can be tested at the same time, the workload of the test personnel is reduced, the test period is reduced, and the test efficiency is improved. DETAILED DESCRIPTION

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0043] Figure 1 A total flowchart of a multi-network card pre-execution environment installation system test method provided by an embodiment of the present application is shown.

[0044] Figure 2 A specific flowchart of a multi-network card pre-execution environment installation system test method according to an embodiment of the present application is shown.

[0045] Figure 3 A structure schematic diagram of a multi-network card pre-execution environment installation system test device provided by an embodiment of the present application is shown.

[0046] Figure 4 An exemplary system that can be used to implement various embodiments described herein is shown. DETAILED DESCRIPTION

[0047] For the purpose of making the objects, technical solutions and advantages of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.

[0048] It should be understood that, in the description of the present application, unless the context clearly requires otherwise, the terms "comprise", "comprising", "include", "including" and the like in the specification and claims of the present application should be interpreted as including, rather than excluding, the meaning of "consisting of"; that is, the meaning of "including but not limited to".

[0049] Embodiment One

[0050] The present application provides a multi-network card pre-execution environment installation system test method, with reference to Figure 1 , comprising:

[0051] S1, connecting a to-be-tested network card to a to-be-tested device, and matching a network port state of the network card as connected;

[0052] S2, obtaining network card information of all network cards with a network port state of connected according to an Internet Protocol address of a baseboard management controller of the to-be-tested device;

[0053] S3, installing a to-be-installed operating system on each network card through the Internet Protocol address of the baseboard management controller of the to-be-tested device according to the network card information;

[0054] S4, in response to detecting that all network cards are installed, returning a test result.

[0055] Specifically, first, the environment of the to-be-tested machine is built, the to-be-tested network card is installed, and all to-be-tested network cards are connected to the to-be-tested device, including switches, servers and the like. The network card information further includes at least one of a network card model, a network port state and a to-be-installed operating system version. The network card models of different network cards can be different, and therefore multiple network cards of different models can be simultaneously tested. The network port state includes at least one of linkup and linkdown, and the to-be-installed operating system version corresponds to the control end to select the OS to be installed on the network card, such as linux-redhat8.6 and Windows2022 and the like. The network port state is acquired as linkup, i.e., the network card is connected, and only when the network port state is linkup can the network port information be further acquired to perform the pre-startup execution environment installation test. Then, the baseboard management controller IP address of the to-be-tested device is added to the control end, the control end acquires the network card information of all connected network cards through the baseboard management controller IP address, and controls to install all required operating system versions on all network cards, and then the test result is returned to the control end. It should be noted that after one operating system version is installed on one network port of each network card, the installation is re-performed until all required operating system versions are installed on all network ports of all network cards. Generally, four operating system versions need to be installed on one network port of one network card, i.e., a Linux system in UEFI boot mode, a Windows system in UEFI boot mode, a Linux system in Legacy boot mode and a Windows system in Legacy boot mode. Then, taking a network card with four network ports as an example, the network card needs to perform 4x4=16 times of installation of operating system test, and manual installation is time-consuming and labor-intensive. Through the above technical means, all installation of operating system tests on all network ports of all network cards can be performed through the traversal installation mode, automation and intelligentization can be achieved, the occupation of manpower can be reduced, and the test period can be shortened.

[0056] In some embodiments, the network card includes at least one network port, and the network card information includes at least a media access control address of the network port. Based on this, S3 includes:

[0057] S31, according to each media access control address, each network port is matched and installed with a to-be-installed operating system through the baseboard management controller Internet protocol address of the to-be-tested device corresponding to each media access control address.

[0058] Specifically, the network card includes one or more network ports, and one network card can have one network port, two network ports, or four network ports, etc. The network port corresponds to a media access control address, i.e., a MAC address, of the network port. The control end can control the corresponding network port to be found through the matching of the MAC address based on the IP address of the to-be-tested device baseboard management controller, and then perform the installation test of the to-be-installed operating system on the corresponding network port. Through the technical scheme, the to-be-installed operating system of all network ports can be installed in turn through the matching and installation test based on the MAC address, and then the installation test of the to-be-installed operating system of all network cards can be realized, without the need to pay attention to how many network ports correspond to one network card, reducing the installation process steps, and further improving the test efficiency.

[0059] In some embodiments, installing the to-be-installed operating system includes at least one of:

[0060] installing the Linux system through the UEFI boot mode, installing the Windows system through the UEFI boot mode, installing the Linux system through the Legacy boot mode, and installing the Windows system through the Legacy boot mode.

[0061] In some embodiments, based on this, referring to Figure 2 , S31 includes:

[0062] S311, installing the Linux system through the UEFI boot mode on the corresponding network port according to the current MAC address through the matching of the current MAC address based on the IP address of the to-be-tested device baseboard management controller.

[0063] S312, installing the Windows system through the UEFI boot mode on the corresponding network port according to the current MAC address through the matching of the current MAC address based on the IP address of the to-be-tested device baseboard management controller.

[0064] S313, installing the Linux system through the Legacy boot mode on the corresponding network port according to the current MAC address through the matching of the current MAC address based on the IP address of the to-be-tested device baseboard management controller.

[0065] S314, installing the Windows system through the Legacy boot mode on the corresponding network port according to the current MAC address through the matching of the current MAC address based on the IP address of the to-be-tested device baseboard management controller.

[0066] S315, repeatedly performing the matching and installation of the to-be-installed operating system until all to-be-installed operating systems corresponding to all network ports of all network cards are installed.

[0067] Specifically, the installation of the to-be-installed operating system for each network port generally includes the installation of a Linux system through the Unified Extensible Firmware Interface boot mode, the installation of a Windows system through the Unified Extensible Firmware Interface boot mode, the installation of a Linux system through the Legacy boot mode, and the installation of a Windows system through the Legacy boot mode. Generally, when performing operating system installation tests on a network port, the above four OS installation tests need to be performed. For example, after finding the corresponding network port through the Unified Extensible Firmware Interface boot mode to install a Linux system through the current MAC address traversal matching, the corresponding network port is found again through the current MAC address traversal matching, and then a Windows system is installed through the Unified Extensible Firmware Interface boot mode. Then, the corresponding network port is found again through the current MAC address traversal matching, and then a Linux system is installed through the Legacy boot mode. Then, the corresponding network port is found again through the current MAC address traversal matching, and then a Windows system is installed through the Legacy boot mode. In this way, the installation tests of the four OSs for one network port are completed, and the above steps are repeated until the installation tests of all network ports and all four OSs are completed. In this way, the installation tests of all network cards and all operating systems are completed. It should be noted that the above operating system installation test process is only an example, and there is no sequence restriction for the installation tests of the four operating systems. There is also no restriction on the installation test sequence of the network ports. For example, after installing a Windows system through the Unified Extensible Firmware Interface boot mode for the first network port, a Windows system through the Unified Extensible Firmware Interface boot mode for the second network port can be installed, a Linux system through the Legacy boot mode for the second network port can be installed, or a Windows system through the Legacy boot mode for the third network port can be installed. That is, the installation tests are not performed in the order of the network ports. As long as all to-be-installed operating systems for all network ports are installed and no repeated installation of one or more operating systems is performed, the installation tests can be performed. By using such a technical means, all to-be-installed operating systems for all network ports can be installed through MAC address traversal matching, the identification of the network cards is decoupled, the automatic traversal installation tests of all network cards are realized, multiple models and multiple types of network cards can be tested at the same time, the workload of the test personnel is reduced, the test period is shortened, and the test efficiency is improved.

[0068] In some embodiments, the method further comprises:

[0069] 101、in response to detecting that the installation of the to-be-installed operating system for the network port corresponding to the current MAC address exceeds the preset installation time threshold, skipping the installation test of the current network port to perform the installation test on the network port corresponding to the next MAC address;

[0070] 102. generate and return a pre-execution environment installation error report, the pre-execution environment installation error report including at least one of a current media access control address, a network port corresponding to the current media access control address, and an installation response time.

[0071] Specifically, when the control end controls the traversal installation of the operating system on all network cards through the IP address of the baseboard management controller of the to-be-tested device, it also continuously monitors the installation time and installation state of each network port. When the installation duration of the corresponding network port according to the current MAC address traversal matching exceeds the preset installation time threshold, it indicates that the installation of the corresponding network port may have a problem, and the pre-boot execution environment may not be entered or a problem may occur in the installation step. At this time, the installation test of the current network port is skipped, and the next MAC address traversal matching of the corresponding network port is re-installed to ensure that the overall installation process continues and the test efficiency is ensured. At the same time, a PXE installation error report is generated and returned to enable the operator to understand the specific reason for the installation error of which network card and which network port, so as to timely debug the network card for subsequent testing or processing and improve the test efficiency.

[0072] In some embodiments, S4 includes:

[0073] S41, in response to detecting that there is a network card installation failure, generating an error log;

[0074] S42, returning the error log and performing error alarm.

[0075] The error log includes at least one of the installation failure information of the network card, the corresponding network port information in the installation failure network card, the installation failure operating system information, the installation error step, and the installation time.

[0076] Specifically, the network card operating system installation process includes pass and fail states. The pass means that the current network card operating system installation is successful, and the fail means that the current network card operating system installation has a failure, which can specifically include which operating system of the current network card one or more network ports has a failure. When there is a failure, an error log is automatically generated. After all the network cards in the current batch are installed, the error logs corresponding to the network cards in the current batch are integrated to describe which network cards pass and which network cards fail in the current batch of network cards, and to display the installation failure information of the network card, the corresponding network port information in the installation failure network card, the installation failure operating system information, the installation error step, and the installation time. Alarm is executed to enable the operator or business personnel to know and process the error information in time to further improve the test efficiency or processing efficiency.

[0077] In the embodiment, all installation operating system tests can be performed on all network ports of all network cards through the traversal installation mode, automation and intelligence can be realized, human occupation can be reduced, and the test period can be reduced.

[0078] It should be noted that the terms "S1", "S2", and the like are only used for the purpose of describing the steps and do not particularly indicate the order or sequence, nor are they used to limit the present application. They are merely used to facilitate the description of the method of the present application and cannot be understood as indicating the sequence of the steps. In addition, the technical solutions of various embodiments can be combined with each other, but must be based on the realization of a person skilled in the art. When the combination of technical solutions contradicts each other or cannot be realized, it should be considered that the combination of technical solutions does not exist and is not within the protection scope required by the present application.

[0079] Embodiment Two

[0080] Corresponding to the above embodiment, the present application also provides a multi-network card pre-execution environment installation system test device, referring to Figure 3 The device includes a network card matching module, an information acquisition module, an installation test module, and a result returning module.

[0081] The network card matching module is used to connect the network card to be tested to the device to be tested, and match the network port state to the network card that has been connected. The information acquisition module is used to acquire the network card information of all network cards with the network port state of being connected according to the Internet Protocol address of the baseboard management controller of the device to be tested. The installation test module is used to traverse the installation of the operating system to be installed on each network card through the Internet Protocol address of the baseboard management controller of the device to be tested according to the network card information. The result returning module is used to return the test result in response to detecting that all network cards have been installed.

[0082] Further, the network card includes at least one network port, and the network card information includes at least the media access control address of the network port. The installation test module is further used to traverse the installation of the operating system to be installed on each network port corresponding to each media access control address through the Internet Protocol address of the baseboard management controller of the device to be tested according to each media access control address.

[0083] Further, the installation of the operating system to be installed includes at least one of the following:

[0084] The Linux system is installed through the Unified Extensible Firmware Interface boot mode, the Windows system is installed through the Unified Extensible Firmware Interface boot mode, the Linux system is installed through the Legacy boot mode, and the Windows system is installed through the Legacy boot mode.

[0085] Further, the installation test module is further configured to install Linux system through the UEFI boot mode according to the current MAC address through the BMC IP address corresponding to the network port matched with the current MAC address, install Windows system through the UEFI boot mode according to the current MAC address through the BMC IP address corresponding to the network port matched with the current MAC address, install Linux system through the Legacy boot mode according to the current MAC address through the BMC IP address corresponding to the network port matched with the current MAC address, and install Windows system through the Legacy boot mode according to the current MAC address through the BMC IP address corresponding to the network port matched with the current MAC address.

[0086] Further, the installation test module is further configured to skip the installation test of the current network port to the installation test of the network port corresponding to the next MAC address if it is detected that the installation of the to-be-installed operating system on the network port corresponding to the current MAC address exceeds a preset installation time threshold, and generate and return a pre-execution environment installation error report, wherein the pre-execution environment installation error report includes at least one of the current MAC address, the network port corresponding to the current MAC address, and an installation response time.

[0087] Further, the result returning module is further configured to generate an error log if it is detected that the network card installation fails, and return the error log and perform error alarm, wherein the error log includes at least one of network card information of the installation failure, corresponding network port information of the network card of the installation failure, operating system information of the installation failure, an installation error step, and an installation time.

[0088] Further, the network card information further includes at least one of a network card model, a network port state, and a to-be-installed operating system version.

[0089] The specific definitions of the multi-network card pre-execution environment installation system test device can refer to the related definitions of the multi-network card pre-execution environment installation system test method in the above embodiments, and thus will not be repeated here. Each module in the above multi-network card pre-execution environment installation system test device can be realized by software, hardware, and a combination thereof, in whole or in part. The above modules can be embedded in or independent of the processor in the computer device in hardware form, or can be stored in the memory in the computer device in software form, so as to be called and executed by the processor to perform the operations corresponding to each of the above modules.

[0090] Embodiment Three

[0091] Corresponding to the above embodiments, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor can implement the above multi-network card pre-execution environment installation system test method when executing the program.

[0092] As Figure 4 shown, in some embodiments, the system can be used as the above electronic device for the multi-network card pre-execution environment installation system test method in any of the embodiments. In some embodiments, the system can include one or more computer-readable media (e.g., system memory or NVM / storage device) having instructions and one or more processors (e.g., processor(s)) coupled with the one or more computer-readable media and configured to execute the instructions to implement modules to perform the actions described in the present application.

[0093] For one embodiment, the system control module can include any suitable interface controller to provide any suitable interface to at least one of the processor(s) and / or any suitable device or component in communication with the system control module.

[0094] The system control module can include a memory controller module to provide an interface to the system memory. The memory controller module can be a hardware module, a software module, and / or a firmware module.

[0095] The system memory can be used, for example, to load the system and store data and / or instructions. For one embodiment, the system memory can include any suitable volatile memory, such as suitable DRAM. In some embodiments, the system memory can include double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).

[0096] For one embodiment, the system control module can include one or more input / output (I / O) controllers to provide an interface to the NVM / storage device and the communication interface(s).

[0097] For example, the NVM / storage device can be used to store data and / or instructions. The NVM / storage device can include any suitable non-volatile memory (e.g., flash memory) and / or can include any suitable non-volatile storage device(s) (e.g., hard disk drive(s) (HDD(s)), compact disk (CD) drive(s), and / or digital versatile disk (DVD) drive(s)).

[0098] The NVM / storage device can include a storage resource that is physically part of the device on which the system is installed or it can be accessed by the device without being physically part of the device. For example, the NVM / storage device can be accessed over a network via the communication interface(s).

[0099] The communication interface(s) can provide an interface to the system to communicate over one or more networks and / or with any other suitable device. The system can communicate wirelessly with one or more components of a wireless network according to any of one or more wireless network standards and / or protocols.

[0100] For one embodiment, at least one of the processor(s) can be packaged together with logic of one or more controllers of the system control module (e.g., a memory controller module). For one embodiment, at least one of the processor(s) can be packaged together with logic of one or more controllers of the system control module to form a system-in-a-package (SiP). For one embodiment, at least one of the processor(s) can be integrated on the same die with logic of one or more controllers of the system control module. For one embodiment, at least one of the processor(s) can be integrated on the same die with logic of one or more controllers of the system control module to form a system-on-a-chip (SoC).

[0101] In various embodiments, the system can be, but is not limited to, a server, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.). In various embodiments, the system can have more or less components, and / or different architectures. For example, in some embodiments, the system includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including touch screen displays), non-volatile memory port, multiple antennas, a graphics chip, an application specific integrated circuit (ASIC), and a speaker.

[0102] It is to be understood that the present application can be implemented in software and / or a combination of software and hardware, e.g., an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware devices. In one embodiment, the software program of the present application is implemented by the processor to perform the steps or functions described above. Also, the software program of the present application (including related data structures) can be stored in a computer readable medium, e.g., a RAM memory, a magnetic or optical drive or diskette, and the like. Additionally, some of the steps or functions can be implemented in hardware, e.g., as circuitry which cooperates with the processor in performing the various steps or functions.

[0103] In addition, some of the embodiments of the present application can be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can invoke or provide the method and / or technical solutions according to the present application through the operation of the computer. Those skilled in the art should understand that the form of the computer program instruction in the computer readable medium includes but is not limited to source files, executable files, installation package files, etc. Correspondingly, the way of the computer program instruction executed by the computer includes but is not limited to that the computer directly executes the instruction, or the computer executes the corresponding compiled program after compiling the instruction, or the computer reads and executes the instruction, or the computer executes the corresponding installed program after reading and installing the instruction. Here, the computer readable medium can be any available computer readable storage medium or communication medium accessible by the computer.

[0104] Communication media includes any medium to facilitate the transfer of a computer program from one place to another. A storage medium can include one or more types of computer-readable storage media. Computer-readable storage media include, but are not limited to, random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory, compact disk (CD) ROM or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information in a computer-readable format. Note that the computer-readable medium can be paper, if the program is presented on the paper in a printed form using one or more print technologies. The computer program product can be transmitted using any appropriate medium, including but not limited to wireless, wire line, optical fiber cable, RF, etc.

[0105] Here, according to one embodiment of the present application includes a device, the device includes a memory for storing computer program instructions and a processor for executing program instructions, wherein when the computer program instructions are executed by the processor, the device is triggered to run the method and / or technical solutions based on the foregoing embodiments according to the present application.

[0106] Embodiment four

[0107] Corresponding to the above-mentioned embodiments, the present application also provides a computer readable storage medium, which stores computer executable instructions for executing the multi-network card pre-execution environment installation system test method.

[0108] In the present embodiment, the computer readable storage medium can include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer readable instructions, data structures, program modules or other data. For example, the computer readable storage medium includes, but is not limited to, volatile memory such as random access memory (RAM, DRAM, SRAM); and non-volatile memory such as flash memory, various read-only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic / ferroelectric memories (MRAM, FeRAM); and magnetic and optical storage devices (hard disk, magnetic tape, CD, DVD); or other now known or later developed media capable of storing computer readable information / data for use by a computer system.

[0109] Although the preferred embodiments in the present application have been described, those skilled in the art can make additional changes and modifications to these embodiments once they know the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0110] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application also intends to include these modifications and variations.

Claims

1. A multi-network card pre-execution environment installation system test method, characterized by, The method comprises the following steps: connecting a to-be-tested network card to a to-be-tested device, and matching the network card with a connected network port state; obtaining network card information of all network cards with the connected network port state according to an IPMI address of a BMC of the to-be-tested device, wherein the network card comprises at least one network port, and the network card information at least comprises a MAC address of the network port; installing a to-be-installed operating system on each network card through the IPMI address of the BMC of the to-be-tested device according to the network card information; returning a test result in response to detecting that all the network cards are installed; skipping the installation test of the current network port to the installation test of a network port corresponding to a next MAC address in response to detecting that the installation of the to-be-installed operating system on the network port corresponding to the current MAC address exceeds a preset installation time threshold; generating and returning a pre-execution environment installation error report, wherein the pre-execution environment installation error report comprises at least one of the current MAC address, the network port corresponding to the current MAC address, and an installation response time; the step of installing the to-be-installed operating system on each network card through the IPMI address of the BMC of the to-be-tested device according to the network card information comprises the following steps: installing the to-be-installed operating system on each network port corresponding to each MAC address through the IPMI address of the BMC of the to-be-tested device according to each MAC address; the step of returning the test result in response to detecting that all the network cards are installed comprises the following steps: generating an error log in response to detecting that there is a failed network card; returning the error log and performing error alarm; the error log comprises at least one of network card information of a failed network card, network port information corresponding to the failed network card, operating system information of a failed operating system, an installation error step, and an installation time; wherein the network card operating system installation process at least comprises a fail state, and the fail state indicates that the current network card operating system installation has a failure.

2. The multi-network card pre-execution environment installation system test method of claim 1, wherein, the step of installing the to-be-installed operating system comprises at least one of the following: installing a Linux system through a UEFI boot mode, installing a Windows system through a UEFI boot mode, installing a Linux system through a Legacy boot mode, and installing a Windows system through a Legacy boot mode.

3. The multi-network card pre-execution environment installation system test method of claim 2, wherein, the step of installing the to-be-installed operating system on each network port corresponding to each MAC address through the IPMI address of the BMC of the to-be-tested device according to each MAC address comprises the following steps: installing a Linux system through a UEFI boot mode on the network port corresponding to the current MAC address through the IPMI address of the BMC of the to-be-tested device according to the current MAC address. According to the current media access control address, the current media access control address is traversed through the BMC IP address of the device under test to match the corresponding network port, and Windows system is installed through the UEFI boot mode; According to the current media access control address, the current media access control address is traversed through the BMC IP address of the device under test to match the corresponding network port, and Linux system is installed through the Legacy boot mode; According to the current media access control address, the current media access control address is traversed through the BMC IP address of the device under test to match the corresponding network port, and Windows system is installed through the Legacy boot mode; The installation of the operating system to be installed is repeatedly performed until all the operating systems to be installed corresponding to all the network ports of all the network cards are installed.

4. The multi-network card pre-execution environment installation system test method of claim 1, wherein, The network card information further includes at least one of a network card model, a network port state, and a version of an operating system to be installed.

5. A multi-network card pre-execution environment installation system testing apparatus for implementing the multi-network card pre-execution environment installation system testing method according to any one of claims 1 to 4, characterized by The apparatus comprises: a network card matching module configured to connect a network card to be tested to a device under test, and match the network card with a network port state of being connected; an information acquisition module configured to acquire network card information of all the network cards with the network port state of being connected according to a BMC IP address of the device under test; an installation test module configured to install an operating system to be installed on each network card according to the network card information through the BMC IP address of the device under test; a result returning module configured to return a test result in response to detecting that all the network cards are installed.

6. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor implements the multi-network card pre-execution environment installation system test method according to any one of claims 1 to 4 when executing the computer program.

7. A computer-readable storage medium storing computer-executable instructions, characterized in that, The computer executable instructions are used to execute the multi-network card pre-execution environment installation system test method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Automatic discovery and automatic deployment method of cloud host

    CN106790467A

  • Integrated management method, system and device for network card test

    CN115550221A