Hardware detection method of computing device and computing device

By installing the Live CD system in the computing device and using its detection tools, the problem of not being able to detect the hardware of the computing device without the operating system is solved, and the flexibility and reliability are improved.

CN119473735AInactive Publication Date: 2025-02-18HENAN KUNLUN TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411331552.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2025-02-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing computing devices cannot perform hardware detection without the operating system installed, resulting in the inability to detect hardware in the computing device.

Method used

By obtaining the installation files of the Live CD system, install the Live CD system in the volatile storage device of the computing device, and use the detection tools in the Live CD system to detect the hardware.

Benefits of technology

It realizes the detection of hardware without the operating system installed in the computing device, improves the flexibility and reliability of hardware detection, and avoids operating system dependencies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473735A_ABST
    Figure CN119473735A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a hardware detection method of computing equipment and the computing equipment, relates to the field of computers, and can detect hardware in the computing equipment under the condition that an OS (Operating System) is not installed in the computing equipment. The method is applied to the computing device, the computing device comprises at least one piece of hardware to be detected, and the method comprises the following steps: acquiring an installation file of the Live CD system; based on the installation file, an Live CD system is installed, and the Live CD system comprises a detection tool used for detecting to-be-detected hardware; and detecting the hardware to be detected through the detection tool in the Live CD system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and in particular to a hardware detection method for a computing device and a computing device. Background Art

[0002] With the continuous development of computer technology, the number and types of hardware in computing devices (such as servers) are increasing. In order to ensure that computing devices can operate normally, it has become a common method in the art to detect various hardware in computing devices.

[0003] A common method for detecting hardware of a computing device is to install a detection tool for the hardware to be detected in the operating system (OS) of the computing device; and then, to detect the hardware by running the detection tool.

[0004] However, since the above-mentioned hardware detection method needs to rely on the OS of the computing device, it results in the inability to detect the hardware in the computing device when the OS is not installed on the computing device (such as when the computing device leaves the factory); therefore, how to detect the hardware in the computing device without relying on the OS in the computing device is a problem that needs to be urgently solved in the field. Summary of the invention

[0005] The embodiments of the present application provide a hardware detection method for a computing device and a computing device, which can detect the hardware in the computing device without relying on the OS in the computing device.

[0006] In order to achieve the above purpose, the embodiment of the present application adopts the following technical solution:

[0007] In a first aspect, an embodiment of the present application provides a hardware detection method for a computing device, which is applied to a computing device, wherein the computing device includes at least one hardware to be detected, and the method includes: obtaining an installation file of a Live CD system; installing the Live CD system based on the installation file of the Live CD system, wherein the Live CD system includes a detection tool for detecting the hardware to be detected; and detecting the hardware to be detected by using the detection tool in the Live CD system.

[0008] The hardware detection method of a computing device provided in an embodiment of the present application is applied to a computing device, the computing device includes at least one hardware to be detected, the method includes: obtaining the installation file of a Live CD system, installing the Live CD system based on the installation file of the Live CD system, the Live CD system includes a detection tool for detecting the above-mentioned hardware to be detected, and detecting the above-mentioned hardware to be detected through the detection tool in the Live CD system. Since the above-mentioned hardware detection method is to install the Live CD system in the computing device, and detect the hardware to be detected in the computing device based on the detection tool in the Live CD system, the hardware detection method does not rely on the OS of the computing device, and then, in the case where the computing device does not have an OS installed (such as: when the computing device leaves the factory), the detection of the hardware in the computing device can also be realized.

[0009] In a possible implementation, the installing the Live CD system based on the installation file includes: installing the Live CD system in a volatile storage device of the computing device based on the installation file.

[0010] The above embodiment installs a Live CD system in the volatile storage device of the computing device, and then obtains the detection result of the computing hardware by running the detection tool in the Live CD system, thereby realizing the detection of the hardware to be detected in the computing device. Since the above detection tool is run in the Live CD system, the above hardware detection method does not depend on the OS of the computing device; and since the Live CD system is installed in the volatile storage device of the computing device, it does not need to be installed in the hard disk of the computing device. Then, the above embodiment can also detect the hardware in the computing device when the OS is not installed in the computing device (such as: when the computing device leaves the factory) or the hard disk on which the OS is installed fails.

[0011] In addition, since the Live CD system is installed in the volatile storage device of the computing device, when the detection of the hardware to be detected in the computing device is completed, the user does not need to manually uninstall the detection tool and / or the Live CD system in the Live CD system. Instead, the detection tool and the Live CD system can be uninstalled together by restarting the computing device, and there is no problem of unclean uninstallation.

[0012] In a possible implementation, the obtaining of the installation file of the Live CD system includes: obtaining the installation file of the Live CD system from a shared directory based on a pre-boot execution environment PXE service, the installation file including a boot program of the Live CD system; and installing the Live CD system based on the installation file includes: installing the Live CD system in the volatile storage device in response to the boot program of the Live CD system.

[0013] In a possible implementation, the hardware to be detected is detected by using the detection tool in the Live CD system, including: when the detection tool is an executable program in the Live CD system, the hardware to be detected is detected by executing the executable program; when the Live CD system includes an installation package of the detection tool, the detection tool is installed based on the installation package, and the hardware to be detected is detected by running the detection tool.

[0014] In one possible implementation, the detection tool includes: at least one of a toolkit, a toolbox and a filed Diag, wherein the toolkit and toolbox are used to detect a neural network processor NPU in the computing device, and the filed Diag is used to detect a graphics processor GPU in the computing device.

[0015] In a possible implementation, after the detection tool in the Live CD system is used to detect the hardware to be detected, the method further includes: uninstalling the Live CD system.

[0016] In a second aspect, an embodiment of the present application provides a hardware detection method for a computing device, which is applied to a management device, and the management device is used to manage one or more computing devices. The method includes: sending an installation file of a Live CD system based on a pre-boot execution environment PXE service, so that a device to be detected in the computing device installs the Live CD system based on the installation file; wherein the Live CD system includes a detection tool for detecting the hardware to be detected in the computing device; based on a remote connection protocol, establishing a session link between the above-mentioned management device and the LiveCD system installed in the device to be detected; through the above-mentioned session link, sending a detection control command to the device to be detected, so that the device to be detected responds to the detection control command, and detecting the hardware to be detected in the above-mentioned device to be detected through the detection tool.

[0017] In the above embodiment, the management device sends the installation file of the Live CD system based on the PXE service, so that the device to be detected in the computing device installs the Live CD system based on the installation file, and then, based on the remote connection protocol, establishes a session link between the management device and the Live CD system installed in the device to be detected, and sends a detection control command to the device to be detected through the session link, so that the device to be detected responds to the detection control command, and detects the hardware to be detected in the device to be detected through the detection tool running in the Live CD system. Since the detection tool runs in the Live CD system, the hardware detection method does not depend on the OS of the computing device. Then, the above embodiment can also detect the hardware in the computing device when the computing device does not have an OS installed (such as when the computing device leaves the factory).

[0018] In addition, the above-mentioned embodiment manages the computing devices under its management through the management device so as to detect the hardware to be detected in the computing devices under its management; it can be seen that the above-mentioned hardware detection method can detect the hardware to be detected in multiple computing devices under its management at the same time through the management device, thereby improving the detection efficiency of the hardware to be detected in multiple computing devices.

[0019] In a possible implementation, the above-mentioned pre-boot execution environment PXE service sends the installation file of the Live CD system so that the device to be detected in the computing device installs the Live CD system based on the above-mentioned installation file, including: sending the installation file of the above-mentioned Live CD system to a shared directory based on the PXE service, so that the device to be detected obtains the installation file from the shared directory, and based on the installation file, installs the LiveCD system in the volatile storage device of the above-mentioned device to be detected, wherein the shared directory is a file directory in which both the above-mentioned device to be detected and the management device can read and write data.

[0020] In the above embodiment, the management device sends the installation file of the Live CD system to a shared directory, so that the above-mentioned device to be detected obtains the installation file from the shared directory, and installs the Live CD system in the volatile storage device of the device to be detected based on the installation file; there is no need to directly transmit the installation file of the Live CD system between the management device and the device to be detected, thereby saving transmission resources between the management device and the device to be detected.

[0021] In addition, since the Live CD system that runs the detection tool is installed in the volatile storage device of the device to be detected, and not in the hard disk of the device to be detected, the Live CD system does not rely on the hard disk in the device to be detected. Therefore, even if the hard disk of the device to be detected fails, the detection of the hardware to be detected in the device to be detected can also be achieved.

[0022] In a possible implementation, the above-mentioned pre-boot execution environment PXE service sends the installation file of the Live CD system so that the device to be detected in the computing device installs the Live CD system based on the installation file, including: based on the PXE service, sending the installation file to the above-mentioned device to be detected, so that the device to be detected installs the above-mentioned Live CD system in the volatile storage device of the device to be detected based on the above-mentioned installation file.

[0023] In the above embodiment, the Live CD system is installed in the volatile storage device of the device to be detected, and is not installed in the hard disk of the device to be detected. Therefore, the Live CD system does not rely on the hard disk in the device to be detected. Moreover, since the detection tool for detecting the hardware to be detected is installed in the Live CD system, the detection tool does not rely on the hard disk in the device to be detected. Therefore, in the event that the hard disk of the device to be detected fails, the detection of the hardware to be detected in the device to be detected can also be achieved.

[0024] In a third aspect, an embodiment of the present application provides a hardware detection device, which is applied to a computing device, and the computing device includes at least one hardware to be detected. The hardware detection device includes: a transceiver unit and a processing unit; the transceiver unit is used to obtain the installation file of the Live CD system; the processing unit is used to install the Live CD system based on the installation file, and the Live CD system includes a detection tool for detecting the hardware to be detected; the processing unit is also used to detect the hardware to be detected through the detection tool in the Live CD system.

[0025] In a possible implementation, the processing unit is specifically configured to install the Live CD system in a volatile storage device of the computing device based on the installation file.

[0026] In one possible implementation, the transceiver unit is used to obtain the installation file of the Live CD system from a shared directory based on the pre-boot execution environment PXE service, and the installation file includes the boot program of the Live CD system; the processing unit is used to install the Live CD system in a volatile storage device in response to the boot program of the Live CD system.

[0027] In one possible implementation, the processing unit is used to detect the hardware to be detected by executing the executable program when the detection tool is an executable program in the Live CD system; the processing unit is also used to install the detection tool based on the installation package when the Live CD system includes an installation package of the detection tool, and detect the hardware to be detected by running the detection tool.

[0028] In one possible implementation, the detection tool includes: at least one of a toolkit, a toolbox, and a filed Diag, wherein the toolkit and toolbox are used to detect a neural network processor NPU in a computing device, and the filed Diag is used to detect a graphics processor GPU in a computing device.

[0029] In a possible implementation, the processing unit is further configured to uninstall the Live CD system.

[0030] In a fourth aspect, an embodiment of the present application provides another hardware detection device, which is applied to a management device, and the management device is used to manage one or more computing devices. The hardware detection device includes: a transceiver unit and a creation unit; the transceiver unit is used to send the installation file of the Live CD system based on the pre-boot execution environment PXE service, so that the device to be detected in the computing device installs the Live CD system based on the installation file; wherein the Live CD system includes a detection tool for detecting the hardware to be detected in the computing device; the creation unit is used to establish a session link between the management device and the LiveCD system installed in the device to be detected based on a remote connection protocol; the transceiver unit is used to send a detection control command to the device to be detected through the session link, so that the device to be detected responds to the detection control command, and detects the hardware to be detected in the device to be detected through the detection tool.

[0031] In one possible implementation, the transceiver unit is used to send the installation file of the Live CD system to a shared directory based on the PXE service, so that the device to be detected obtains the installation file from the shared directory, and installs the Live CD system in the volatile storage device of the device to be detected based on the installation file, wherein the shared directory is a file directory in which both the device to be detected and the management device can read and write data.

[0032] In a possible implementation, the transceiver unit is used to send the installation file to the device to be detected based on the PXE service, so that the device to be detected installs the Live CD system in the volatile storage device of the device to be detected based on the installation file.

[0033] In a fifth aspect, a computing device is provided, comprising a processor and a memory, wherein the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code comprises computer instructions; when the computer instructions are executed by the processor, the method of the first aspect or the second aspect and possible implementation methods thereof are implemented.

[0034] In a sixth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions. When the computer instructions in the computer-readable storage medium are executed by a computing device, the computing device executes the method of the first aspect or the second aspect and possible implementation methods thereof.

[0035] In a seventh aspect, a computer program product comprising instructions is provided, which, when executed on a computing device, enables the computing device to execute the method of the first aspect or the second aspect and possible implementation methods thereof.

[0036] It should be understood that the beneficial effects achieved by the technical solutions of the third to seventh aspects of the embodiments of the present application and the corresponding possible implementation methods can be referred to the technical effects of the first aspect, the second aspect and their corresponding possible implementation methods mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A schematic diagram of a management system provided in an embodiment of the present application;

[0038] Figure 2 A schematic diagram of the hardware structure of a computing device provided in an embodiment of the present application;

[0039] Figure 3 A schematic diagram of a hardware detection method for a computing device provided in an embodiment of the present application Figure 1 ;

[0040] Figure 4 A schematic diagram of a hardware detection method for a computing device provided in an embodiment of the present application Figure 2 ;

[0041] Figure 5 A schematic diagram of a hardware detection method for a computing device provided in an embodiment of the present application Figure 3 ;

[0042] Figure 6 A schematic diagram of a hardware detection method for a computing device provided in an embodiment of the present application Figure 4 ;

[0043] Figure 7 A schematic diagram of a hardware detection method for a computing device provided in an embodiment of the present application Figure 5 ;

[0044] Figure 8 A schematic diagram of a device display interface provided in an embodiment of the present application;

[0045] Fig. 9 A schematic diagram of a system display interface provided in an embodiment of the present application;

[0046] Fig.10 A schematic diagram of a configuration interface provided in an embodiment of the present application;

[0047] Fig.11 A schematic diagram of a test result interface provided in an embodiment of the present application;

[0048] Fig.12 A schematic diagram of a hardware detection method for a computing device provided in an embodiment of the present application Figure 6 ;

[0049] Fig.13 A schematic diagram of an upload interface provided in an embodiment of the present application;

[0050] Fig.14 A schematic diagram of another system display interface provided in an embodiment of the present application;

[0051] Fig.15 A schematic diagram of a hardware detection device provided in an embodiment of the present application;

[0052] Fig.16 A schematic diagram of another hardware detection device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0053] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0054] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0055] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more than two. For example, multiple computing devices refers to two or more computing devices.

[0056] First, a hardware detection method for a computing device provided in an embodiment of the present application and some concepts involved in the computing device are explained as follows:

[0057] Live CD system: also known as a live system, is a special computer operating system that does not need to be installed on the hard disk of a computing device.

[0058] Preboot execution environment (PXE): is a technology that allows a computer to boot through a network interface. It allows the computer to load necessary boot files and operating systems from a server on the network during the startup process without relying on local storage devices.

[0059] The embodiment of the present application provides a method for detecting hardware of a computing device, which detects the hardware to be detected in the computing device by installing a Live CD system in the computing device and then running a detection tool on the Live CD system. Since the detection tool used to detect the hardware to be detected in the above detection method is run on the Live CD system installed in the above computing device, the hardware detection method does not rely on the OS of the computing device, and then, even if the computing device does not have an OS installed (such as when the computing device leaves the factory), the hardware in the computing device can also be detected.

[0060] In some embodiments, the hardware detection method of a computing device provided in an embodiment of the present application is applied to a computing device, the computing device includes at least one hardware to be detected, the method includes: obtaining the installation file of a Live CD system, installing the Live CD system based on the installation file of the Live CD system, the Live CD system includes a detection tool for detecting the above-mentioned hardware to be detected, and detecting the above-mentioned hardware to be detected through the detection tool in the Live CD system. Since the above-mentioned hardware detection method is to install the Live CD system in the computing device, and detect the hardware to be detected in the computing device based on the detection tool in the Live CD system. Therefore, the hardware detection method does not rely on the OS of the computing device, and then, in the case where the computing device does not have an OS installed (such as: when the computing device leaves the factory), the detection of the hardware in the computing device can also be achieved.

[0061] In one implementation, the hardware detection method of the computing device provided in the embodiment of the present application is applied to Figure 1 In the management system shown, the management system includes: a management device and multiple managed computing devices; wherein the management device has a network link with the out-of-band controller of each of the multiple computing devices; the multiple computing devices include computing devices A to computing devices X. As an example, the network can be a public network, an intranet where a data center is located, an enterprise intranet, or a school intranet, etc., which is not limited in the embodiments of the present application.

[0062] The management device is used to send a control instruction to the computing device, so that the computing device managed by the management device responds to the control instruction and performs a control action.

[0063] The computing device is used to respond to the control instruction sent by the management device and execute the control action corresponding to the control instruction. The management device and the computing device can be a computing device with processing and receiving capabilities such as a desktop computer, a laptop computer, a mobile phone, and a server.

[0064] Exemplary: The management device stores the installation files of the Live CD system in a shared directory, so that the computing device can obtain and install the Live CD system from the shared directory. Then, the management device sends a detection instruction to the computing device, so that the computing device responds to the detection instruction and detects the hardware in the computing device through the detection tool on the Live CD system.

[0065] In another implementation, the hardware detection method of the computing device provided in the embodiment of the present application is applied to a single computing device (such as a server) (such as a processor of the computing device), and the computing device installs the Live CD system based on the installation file of the Live CD system obtained, and detects the hardware to be detected in the computing device through the detection tool in the Live CD system. The specific implementation thereof is referred to in the following S110-S130, which will not be repeated here.

[0066] For example, Figure 2 is the above Figure 1 A schematic diagram of a hardware structure of a computing device of a management device or a computing device in a computer system. Taking the computing device as a server as an example, the server can be a high-density server, a rack server, or a whole cabinet server in terms of form; and can be a general-purpose server, a GPU (graphics processing unit) server, or an artificial intelligence (AI) server in terms of performance.

[0067] The hardware part of the computing device includes a processor, an out-of-band controller and a memory, and the software part includes an out-of-band management module, a processor firmware and an OS management unit.

[0068] The out-of-band management module runs in the out-of-band controller, and the OS management unit runs on the processor (such as Figure 2 ), the processor firmware may be located within the processor (as shown in Figure 2As shown). The out-of-band management module may be a management unit of a non-business module. For example, the out-of-band management module may remotely maintain and manage the computing device through a dedicated data channel. The out-of-band management module is completely independent of the operating system of the computing device and may communicate with the OS through the out-of-band management interface of the computing device.

[0069] Exemplarily, the out-of-band management module may include a management unit for the computing device operation mode, a management system in a management chip outside the processor, a computing device motherboard management unit (baseboard management controller, BMC), a system management module (system management mode, SMM), etc. It should be noted that the embodiments of the present application do not limit the specific form of the out-of-band management module, and the above is only an exemplary description. In the following embodiments, only the out-of-band management module is taken as an example for description.

[0070] Among them, the memory, also called internal memory or main memory, is installed in the memory slot on the motherboard of the computing device, and the memory communicates with the memory controller through a memory channel.

[0071] It should be understood that the system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0072] It is necessary to explain the following Figure 3 and Figure 4 The hardware detection method of the computing device shown is applied in the scenario of a single computing device. Figures 5 to 7 as well as Fig.12 The hardware detection method of the computing device shown is applied in Figure 1 The management system shown; please refer to the following embodiments for details and will not be repeated here.

[0073] The present application embodiment provides a method for hardware detection of a computing device. The method is applied as follows: Figure 2 A processor in a computing device as shown; Figure 3 As shown, the method includes S110-S130.

[0074] S110. Obtain the installation file of the Live CD system.

[0075] The installation file of the Live CD system includes: an image file of the Live CD system or a boot program of the Live CD system; wherein the image file of the Live CD system includes all files required for installing the Live CD system; the boot program of the Live CD system is a program for guiding the processor to install the Live CD system.

[0076] It should be noted that the above-mentioned processor can obtain the installation file of the above-mentioned Live CD system from an external device of the computing device; it can also obtain the installation file of the Live CD system from other devices (such as: management device), and the specific embodiments of this application do not specifically limit it.

[0077] In the case where the processor obtains the installation file of the Live CD system from the management device, the above S110 includes two implementation methods, which are as follows:

[0078] In the first implementation method, the processor obtains the installation files of the Live CD system from a shared directory based on the preboot execution environment (PXE) service; its specific implementation includes: when there is a PXE client in the network card of the above-mentioned computing device and there is a PXE server in the above-mentioned management device, the PXE server stores the installation files of the above-mentioned Live CD system in a shared directory, and then, when the computing device is started in legacy boot mode, the above-mentioned processor controls the PXE client to obtain the installation files of the Live CD system from the shared directory.

[0079] Both the management device and the computing device may perform read and write operations on the files or data in the shared directory; that is, the shared directory is a file directory where both the computing device and the management device may read and write data.

[0080] In the second implementation method, the processor obtains the installation file of the Live CD system from the management device based on the PXE service; its specific implementation includes: when there is a PXE client in the network card of the above-mentioned computing device and there is a PXE server in the above-mentioned management device, when the computing device is started in the legacy startup mode, the processor controls the communication link between the PXE client in the network card and the PXE server in the management device; then, the processor obtains the installation file of the above-mentioned Live CD system from the management device based on the communication link.

[0081] It should be noted that the implementation method for the above-mentioned processor to obtain the installation file of the above-mentioned Live CD system from the management device based on the communication link can be that the processor in the computing device sends a request for acquisition to the management device, and the management device responds to the acquisition request and sends the installation file of the above-mentioned Live CD system to the computing device through the communication link; or the management device actively sends the installation file of the above-mentioned Live CD system to the above-mentioned computing device; the specific embodiment of the present application does not specifically limit it.

[0082] The external device of the computing device includes: a USB flash drive, an optical disk or a mobile hard disk inserted into the physical interface of the computing device.

[0083] In the case where the processor obtains the installation file of the Live CD system from an external device of the computing device (such as a USB flash drive), the implementation method of the above S110 includes: the processor reads the installation file of the Live CD system from the USB flash drive when the computing device is started in the USB flash drive startup mode.

[0084] S120 . Install the Live CD system in the computing device based on the installation file of the Live CD system.

[0085] The system files of the Live CD system include a detection tool for detecting the hardware to be detected in the computing device; specifically, the system files of the Live CD system may include an installation package (i.e., installation file) of the detection tool; it may also include the detection tool that has been installed, that is, the detection tool is an executable program in the Live CD system.

[0086] It should be understood that when the system files of the Live CD system include the installation file of the detection tool, the detection tool needs to be installed in the Live CD system based on the installation file; the specific implementation thereof is referred to in S240 below and will not be described in detail here.

[0087] Different detection tools correspond to different hardware to be detected in the above-mentioned computing devices; for example, when the hardware to be detected is an embedded neural network processor (neural processing unit, NPU), the detection tools used to detect the NPU may include detection software such as toolkit, toolbox and geekbench AI; when the hardware to be detected is a graphics processing unit (graphics processing unit, GPU), the detection tools used to detect the GPU may include detection software such as nvtop and filed Diag.

[0088] The specific installation location of the Live CD system installed in the computing device can be a volatile storage device in the computing device (such as a memory), a non-volatile storage device in the computing device (such as a hard disk), or an external storage device in the computing device (such as a USB flash drive). The specific embodiment of the present application does not limit the installation location of the Live CD system.

[0089] In the case where the installation file of the Live CD system includes the boot program of the Live CD system, the implementation method of the above S120 includes: the processor installs the Live CD system in the computing device in response to the boot program of the Live CD system; its specific implementation refers to the relevant technology and is not repeated here.

[0090] In the case where the installation file of the Live CD system includes the image file of the Live CD system, the implementation method of the above S120 includes: installing the Live CD system in the computing device based on the image file of the Live CD system; the specific implementation thereof refers to the related art and will not be described in detail here.

[0091] S130 , detecting the hardware to be detected in the computing device by using the detection tool in the Live CD system.

[0092] It should be understood that the above S130 is executed on the basis of the computing device running the above Live CD system, wherein the process of the above computing device running the Live CD system may be that the processor in the above computing device executes the startup program of the Live CD system installed in the above computing device, so that the Live CD system runs in the memory of the above computing device; it may also be that other devices (such as: management devices) send control instructions for starting the Live CD system to the above computing device, so that the processor in the computing device responds to the control instruction and runs the Live CD system in the memory of the computing device; the specific embodiments of the present application do not specifically limit it.

[0093] The implementation of the above S130 includes: running the detection function of the detection tool on the Live CD system running in the memory of the computing device to detect the hardware to be detected in the computing device; the details are as follows:

[0094] When the detection tool is an executable program in the Live CD system (ie, the system file of the Live CD system includes the detection tool that has been installed), the implementation method of S130 includes: the processor detects the hardware to be detected by executing the executable program corresponding to the detection tool.

[0095] When the Live CD system includes the installation package of the detection tool, the detection tool is installed based on the installation package, and the hardware to be detected is detected by running the detection tool.

[0096] The hardware detection method of a computing device provided in an embodiment of the present application is applied to a computing device, the computing device includes at least one hardware to be detected, the method includes: obtaining the installation file of a Live CD system, installing the Live CD system based on the installation file of the Live CD system, the Live CD system includes a detection tool for detecting the above-mentioned hardware to be detected, and detecting the above-mentioned hardware to be detected through the detection tool in the Live CD system. Since the above-mentioned hardware detection method is to install the Live CD system in the computing device, and detect the hardware to be detected in the computing device based on the detection tool in the Live CD system, the hardware detection method does not rely on the OS of the computing device, and then, in the case where the computing device does not have an OS installed (such as: when the computing device leaves the factory), the detection of the hardware in the computing device can also be realized.

[0097] based on Figure 3 The hardware detection method of the computing device shown in the present application provides a specific implementation, such as Figure 4 As shown, the method includes: S210-S260.

[0098] S210. Obtain the installation file of the Live CD system.

[0099] It should be noted that the implementation method of the above S210 is similar to the implementation method of S110. For the specific description of S210, reference may be made to the above related description of S110, which will not be repeated here.

[0100] S220: Install the Live CD system in the volatile storage device based on the installation file of the Live CD system.

[0101] In the case where the installation file of the Live CD system includes a boot program of the Live CD system, the implementation method of the above S220 includes: the processor installs the Live CD system in a volatile storage device (such as a memory) of the computing device in response to the boot program of the Live CD system; its specific implementation refers to the relevant technology and will not be repeated here.

[0102] In the case where the installation file of the Live CD system includes an image file of the Live CD system, the implementation method of the above S220 includes: based on the image file of the Live CD system, installing the Live CD system in a volatile storage device (such as: memory) of the computing device (such as: decompressing the image file of the Live CD system); its specific implementation refers to the relevant technology and will not be repeated here.

[0103] S230: Run the Live CD system in the computing device.

[0104] The implementation of S230 is as follows: the processor executes the startup file of the Live CD system to enable the Live CD system to run in the memory of the computing device.

[0105] S240. In the Live CD system, install the detection tool.

[0106] The above detection tool is software used to detect the hardware to be detected in the computing device.

[0107] In the first implementation method, when the system files of the above-mentioned Live CD system include the installation package of the detection tool, the implementation method of the above-mentioned S240 is based on the installation package of the detection tool to realize the installation of the detection tool; its specific implementation includes: the processor decompresses the installation package of the detection tool into the system files of the Live CD system, thereby realizing the installation of the detection tool.

[0108] In the second implementation, when the system files of the Live CD system do not include the installation package of the detection tool, the processor obtains the installation package of the detection tool from the management device based on the PXE service; then, the processor installs the detection tool based on the installation package.

[0109] It should be noted that the implementation method of obtaining the installation package of the above-mentioned detection tool from the management device based on the PXE service is similar to the implementation method of obtaining the installation file of the Live CD system from the management device in the above-mentioned S110. For details, please refer to the relevant description in the above-mentioned S110, which will not be repeated here.

[0110] It should be understood that, in the case that the system file of the Live CD system contains a detection tool that has been installed, the processor does not need to execute S240.

[0111] S250. Run the detection tool on the Live CD system to obtain the detection result of the computing hardware.

[0112] The implementation method of the above S250 includes: the processor controls the detection function of the detection tool to enable, so that the detection tool detects the hardware to be detected in the computing device and obtains the detection result; wherein the detection result includes the detection values ​​of various indicators of the hardware to be detected.

[0113] S260: Uninstall the Live CD system in the computing device.

[0114] The above S260 can be implemented by the above processor executing the uninstall program of the Live CD system to uninstall the Live CD system, or by restarting the above computing device to format the Live CD system installed in the volatile storage device of the computing device, thereby uninstalling the Live CD system.

[0115] It should be understood that when the Live CD system is uninstalled, the detection tool installed in the Live CD system will also be uninstalled.

[0116] The above embodiment installs a Live CD system in the volatile storage device of the computing device, and then obtains the detection result of the computing hardware by running the detection tool in the Live CD system, thereby realizing the detection of the hardware to be detected in the computing device. Since the above detection tool is run in the Live CD system, the above hardware detection method does not depend on the OS of the computing device; and since the Live CD system is installed in the volatile storage device of the computing device, it does not need to be installed in the hard disk of the computing device. Then, the above embodiment can also detect the hardware in the computing device when the OS is not installed in the computing device (such as: when the computing device leaves the factory) or the hard disk on which the OS is installed fails.

[0117] In addition, since the Live CD system is installed in the volatile storage device of the computing device, when the detection of the hardware to be detected in the computing device is completed, the user does not need to manually uninstall the detection tool and / or the Live CD system in the Live CD system. Instead, the detection tool and the Live CD system can be uninstalled together by restarting the computing device, and there is no problem of unclean uninstallation.

[0118] The present application embodiment provides another hardware detection method for a computing device. The method is applied to Figure 1 A management device in the management system shown, the management device is used to manage one or more computing devices; Figure 5 As shown, the method includes: S310-S330.

[0119] S310: Send the installation file of the Live CD system based on the PXE service, so that the device to be detected in the computing device installs the Live CD system based on the installation file of the Live CD system.

[0120] The above-mentioned device to be detected is a computing device among the multiple computing devices managed by the above-mentioned management device, on which the hardware to be detected needs to be detected; wherein, the management device manages the multiple computing devices through the out-of-band controllers (such as: BMC) in the multiple computing devices.

[0121] The specific installation location of the Live CD system in the device to be detected can be a volatile storage device (such as memory) in the device to be detected, a non-volatile storage device (such as a hard disk) in the device to be detected, or an external storage device (such as a USB flash drive) in the device to be detected; the specific embodiment of the present application does not limit the installation location of the Live CD system.

[0122] In one implementation, the implementation of S130 includes: the management device sends the installation file of the LiveCD system to a shared directory based on the PXE service, so that the device to be detected obtains the installation file from the shared directory, and installs the Live CD system in the volatile storage device of the device to be detected based on the installation file.

[0123] The above-mentioned shared directory is a file directory where both the device to be detected and the management device can read and write data.

[0124] It should be noted that the management device sends the installation file of the Live CD system to a shared directory based on the PXE service so that the device to be detected obtains the installation file from the shared directory. For the specific implementation, see the first implementation method in S110 above, which will not be repeated here.

[0125] In the above embodiment, the management device sends the installation file of the Live CD system to a shared directory, so that the above-mentioned device to be detected obtains the installation file from the shared directory, and installs the Live CD system in the volatile storage device of the device to be detected based on the installation file; there is no need to directly transmit the installation file of the Live CD system between the management device and the device to be detected, thereby saving transmission resources between the management device and the device to be detected.

[0126] In addition, since the Live CD system that runs the detection tool is installed in the volatile storage device of the device to be detected, and not in the hard disk of the device to be detected, the Live CD system does not rely on the hard disk in the device to be detected. Therefore, even if the hard disk of the device to be detected fails, the detection of the hardware to be detected in the device to be detected can also be achieved.

[0127] In another implementation, the implementation of S130 includes: the management device sends the installation file of the Live CD system to the device to be detected based on the PXE service, so that the device to be detected installs the Live CD system in the volatile storage device of the device to be detected based on the installation file.

[0128] For the specific implementation of the management device sending the installation file of the Live CD system to the device to be detected based on the PXE service, refer to the second implementation in S110 above, which will not be described in detail here.

[0129] It should be noted that in the above two implementation methods, the implementation method of installing the Live CD system in the volatile storage device of the device to be detected based on the installation file of the Live CD system is similar to the implementation method of the above S120. For details, please refer to the relevant description in the above S120, which will not be repeated here.

[0130] In the above embodiment, the Live CD system is installed in the volatile storage device of the device to be detected, and is not installed in the hard disk of the device to be detected. Therefore, the Live CD system does not rely on the hard disk in the device to be detected. Moreover, since the detection tool for detecting the hardware to be detected is installed in the Live CD system, the detection tool does not rely on the hard disk in the device to be detected. Therefore, in the event that the hard disk of the device to be detected fails, the detection of the hardware to be detected in the device to be detected can also be achieved.

[0131] The system files of the Live CD system include a detection tool for detecting the hardware to be detected in the computing device (i.e., the device to be detected); specifically, the system files of the Live CD system may include an installation package of the detection tool, or may include a detection tool that has been pre-installed, which is not specifically limited in the embodiments of the present application.

[0132] It should be understood that, in the case that the system files of the Live CD system include the detection tool that has been installed, after the processor completes the installation of the Live CD system, the Live CD system includes the executable detection tool.

[0133] In one implementation, when the system files of the Live CD system include the installation package of the above-mentioned detection tool, after the above-mentioned S310, it also includes: the management device controls the device to be detected, and installs the detection tool based on the installation package of the detection tool. Its specific implementation is similar to the first implementation in the above-mentioned S240. For details, please refer to the relevant description in the above-mentioned S240, which will not be repeated here.

[0134] Optionally, when the system files of the Live CD system that has been installed above do not include the detection tool, after the above S310, it also includes: the management device sends the installation package of the detection tool to the above shared directory based on the PXE service, so that the device to be detected obtains the installation package from the shared directory, and installs the detection tool in the Live CD system based on the installation package.

[0135] S320: Based on the remote connection protocol, a session link is established between the management device and the Live CD system installed in the device to be detected.

[0136] It should be noted that the above-mentioned management device manages the computing device based on the out-of-band controller in the computing device it manages; however, the out-of-band controller based on the computing device cannot control the Live CD system running in the memory of the computing device, so the session link that needs to be established in the above-mentioned S320 is the link between the management device and the Live CD system installed in the device to be detected.

[0137] The above remote link protocol includes: secure shell (SSH) protocol or telnet protocol.

[0138] In the case where the above-mentioned remote link protocol is the SSH protocol, the implementation method of the above-mentioned S320 includes: the management device installs an SSH client on the device to be detected; then, establishes a session link between the SSH client and the SSH server on the management device. Its specific implementation refers to the relevant technology and will not be repeated here.

[0139] In the case where the remote link protocol is the Telnet protocol, the implementation of S320 is described in the related art and will not be described in detail here.

[0140] S330: Send a detection control command to the device to be detected through the session link, so that the device to be detected responds to the detection control command, and detects the hardware to be detected in the device to be detected through the detection tool.

[0141] The detection control command is used to instruct the device to be detected to run the detection tool in the Live CD system to detect the hardware to be detected in the device to be detected.

[0142] In the above embodiment, the management device sends the installation file of the Live CD system based on the PXE service, so that the device to be detected in the computing device installs the Live CD system based on the installation file, and then, based on the remote connection protocol, establishes a session link between the management device and the Live CD system installed in the device to be detected, and sends a detection control command to the device to be detected through the session link, so that the device to be detected responds to the detection control command, and detects the hardware to be detected in the device to be detected through the detection tool running in the Live CD system. Since the detection tool runs in the Live CD system, the hardware detection method does not depend on the OS of the computing device. Then, the above embodiment can also detect the hardware in the computing device when the computing device does not have an OS installed (such as when the computing device leaves the factory).

[0143] In addition, the above-mentioned embodiment manages the computing devices under its management through the management device so as to detect the hardware to be detected in the computing devices under its management; it can be seen that the above-mentioned hardware detection method can detect the hardware to be detected in multiple computing devices under its management at the same time through the management device, thereby improving the detection efficiency of the hardware to be detected in multiple computing devices.

[0144] Based on the above Figure 5 The hardware detection method of the computing device shown in the figure, the embodiment of the present application provides a specific implementation, such as Figure 6 As shown, the method includes: S410-S440.

[0145] S410: The management device stores the installation files of the Live CD system in a shared directory.

[0146] The above-mentioned shared directory is a file directory in which both the device to be detected and the management device can read and write data; wherein, the shared directory can be in the management device or in other devices except the management device, and the specific embodiments of the present application do not specifically limit it.

[0147] S420: The device to be detected obtains the installation file of the Live CD system from the shared directory, and installs and runs the Live CD system in the volatile storage device based on the installation file.

[0148] It should be noted that the implementation method of the above S420 is similar to the implementation method of S220-S230. For the specific description of S420, please refer to the above related description of S220-S230, which will not be repeated here.

[0149] S430: The management device establishes a session link between the management device and the Live CD system installed in the device to be detected based on the remote connection protocol.

[0150] It should be noted that the implementation method of the above S430 is similar to the implementation method of S320. For the specific description of S430, please refer to the above related description of S320, which will not be repeated here.

[0151] S440: The management device sends a detection control command to the device to be detected through the session link.

[0152] The detection control command is used to instruct the device to be detected to run the detection tool in the Live CD system to detect the hardware to be detected in the device to be detected.

[0153] S450: The device to be detected responds to the detection control command and detects the hardware to be detected in the device to be detected by using a detection tool.

[0154] The implementation of S450 includes: the device to be detected runs the detection function of the detection tool on the Live CD system to detect the hardware to be detected of the device to be detected.

[0155] S460: The management device obtains the detection result of the hardware to be detected from the device to be detected.

[0156] The above test results include the test values ​​of various indicators of the hardware to be tested.

[0157] The implementation method of the above S460 can be that, after the device to be detected completes the detection of the hardware to be detected on it through the detection tool, the device to be detected actively sends the detection result to the management device so that the management device receives the detection result; it can also be that the management device sends an acquisition request to the device to be detected, and the device to be detected responds to the acquisition request and sends the detection result to the management device; the specific implementation method of the above S460 is not limited in the embodiment of the present application.

[0158] In the above embodiment, after the management device installs and runs the Live CD system on the volatile storage device of the device to be detected, the management device establishes a session link between the management device and the Live CD system installed in the device to be detected based on the remote connection protocol; then, the management device sends a detection control command to the device to be detected through the session link, so that the device to be detected detects the hardware to be detected in the device to be detected through the detection tool. Since the above detection tool runs on the Live CD system, the above hardware detection method does not depend on the OS of the computing device, and since the Live CD system is installed in the volatile storage device of the device to be detected, it does not need to be installed in the hard disk of the device to be detected. Then, the above embodiment can also detect the hardware in the computing device when the OS is not installed on the computing device (such as: when the computing device leaves the factory) or the hard disk on which the OS is installed fails.

[0159] In addition, since the above-mentioned Live CD system is installed in the volatile storage device of the computing device, when the detection of the hardware to be detected in the computing device is completed, the user does not need to manually uninstall the detection tool and / or the Live CD system in the Live CD system. Instead, the detection tool and the Live CD system can be uninstalled together by restarting the computing device, and there is no problem of unclean uninstallation.

[0160] based on Figure 5 or Figure 6 The hardware detection method of the computing device shown in the figure, the embodiment of the present application provides another hardware detection method of the computing device, such as Figure 7 As shown, the method includes: S510-S580.

[0161] S510: The management device obtains a device identification of a device to be detected selected by a user from a plurality of computing devices displayed on a device display interface.

[0162] The above-mentioned device display interface is used to display the device information of the computing devices managed by the management device; wherein, the device display interface can be displayed on the display device of the above-mentioned management device, and can also be displayed on the display devices of other devices, and the specific embodiments of the present application do not specifically limit it.

[0163] It should be understood that the above-mentioned device information includes at least one of: device identification, Internet Protocol (IP) address, device serial number, device model, iBMC host name and management status, and the specific embodiment of the present application does not limit the specific content of the device information.

[0164] For example, Figure 8 As shown, the device display interface displays the device information of three computing devices, and the device information includes: device identification and device model; among them, the device identification of the first device is "device A", and the device model is "2288HV5"; the device identification of the second device is "device B", and the device model is "8100V5"; the device identification of the third device is "device C", and the device model is "1288H V5". When the user selects device A and device B on the device display interface and clicks the confirmation button, the management device obtains the device identification of the device to be detected from the device display interface, including: "device A" and "device B"; then, in S410, the management device sends the above installation instruction to the device to be detected indicated by "device A" and the device to be detected indicated by "device B".

[0165] In the above embodiment, the management device obtains the device to be detected selected by the user from multiple computing devices displayed on the device display interface; then, the Live CD system is installed on the volatile storage device of the device to be detected selected by the user; compared with the above-mentioned method in which the device to be detected is a preset device, the above embodiment improves the user experience while increasing the flexibility of selecting the device to be detected.

[0166] S520: The management device obtains a target Live CD system selected by the user from a plurality of Live CD systems displayed on the system display interface.

[0167] The system display interface is used to display system information of multiple different Live CD systems (such as Live CD systems of different versions, or Live CD systems including different detection tools), wherein the system information includes at least one of image name, system name, system identifier, system version, applicable server type, applicable server model, system size, and update time (i.e., update time of the Live CD system).

[0168] For example, Fig. 9 As shown, the system display interface displays system information of three Live CD systems; the system information includes: system identification, system version and update time; the system identification of the first Live CD system is "Live CD System A", the system version is "8.2", and the update time is "2023-07-21"; the system identification of the second Live CD system is "Live CD System B", the system version is "8.2.1", and the update time is "2023-08-21"; the system identification of the third Live CD system is "Live CD System C", the system version is "8.1.5", and the update time is "2023-02-21".

[0169] like Fig. 9 As shown, after the user selects the system identifier "Live CD System B" in the system display interface and clicks the OK button, the target Live CD system obtained by the management device from the system display interface is the Live CD system indicated by "Live CD System B".

[0170] S530: The management device stores the installation files of the Live CD system in a shared directory.

[0171] S540: The device to be detected obtains the installation file of the Live CD system from the shared directory, and installs and runs the Live CD system in the volatile storage device based on the installation file.

[0172] It should be understood that the above S530 - S540 is an implementation method in which the management device installs the target Live CD system in the volatile storage device of the device to be detected.

[0173] It should be noted that the implementation method of the above S530-S540 is consistent with the implementation method of the above S410-S420. For the specific description of S530-S540, please refer to the above related description of S410-S420, which will not be repeated here.

[0174] S550: The management device obtains configuration information of the hardware to be detected from the user in the configuration interface.

[0175] The above configuration information includes: items to be detected of the hardware to be detected, and / or parameters of the items to be detected; wherein the items to be detected include: at least one of the detection items such as TDP test time, HBM test time, RoCE network port test and EDP power consumption test.

[0176] For example, assuming that the hardware to be detected is NPU, the configuration information displayed on the above configuration interface is as follows: Fig.10 The following are shown: thermal design power (TDP), high bandwidth memory (HBM), RDMA over converged ethernet (RoCE) network port test and embedded display port (EDP) power consumption test; the TDP test time set by the user is 1800 seconds, the HBM test time is 1800 seconds, the RoCE network port test is selected, and the EDP power consumption test is not selected; then at this time, when the user clicks the confirmation button, the configuration information obtained by the management device includes: the TDP test time is 1800 seconds, the HBM test time is 1800 seconds and the test identifier of the RoCE network port test.

[0177] S560: The management device sends a detection control command including configuration information to the device to be detected.

[0178] It should be noted that the implementation method of the above S560 is similar to the implementation method of S440. For the specific description of S560, please refer to the above related description of S440, which will not be repeated here.

[0179] S570: The device to be detected responds to the detection control command and detects the items to be detected in the hardware to be detected by using a detection tool.

[0180] The implementation of S570 includes: the device to be detected responds to the detection control command, runs the detection tool in the target Live CD system, and controls the detection tool to test the hardware to be detected in the device to be detected based on the detection items and detection item parameters in the configuration information.

[0181] Exemplarily, based on the example in S550 above, the detection tool in S570 detects the TDP of the NPU in the device to be detected for 1800 seconds, detects the HBM of the NPU for 1800 seconds, and tests the RoCE network port of the NPU.

[0182] Optionally, in one implementation, the management device may first execute S510, S520, and S550, and then send the target Live CD system and the configuration information in the acquired display interface (i.e., the device display interface, the system display interface, and the configuration interface) to the device to be tested specified by the user in S510, so that after the device to be tested installs and runs the target Live CD system, the hardware to be tested in the device to be tested is tested through the detection tool and based on the detection items and detection item parameters in the configuration information.

[0183] S580: The device to be tested sends the test result to the management device.

[0184] The above detection result is a detection result of the hardware to be detected in the device to be detected based on the above configuration information; the detection result includes: at least one of the device identification, detection status, detection data and detection progress of the device to be detected.

[0185] The above management device is used to display the test results in the test result interface.

[0186] For example, Fig.11 As shown, the above detection result interface shows the detection results of 2 devices to be detected, and the detection results include: device identification, detection status and detection data; among them, the device identification of the first computing device is "Device A", the detection status is "Success", and the detection data is that by clicking the "Download" component, the detection data can be downloaded; the device identification of the second computing device is "Device B", the detection status is "Failure", and the detection data is that by clicking the "Download" component, the detection data can be downloaded.

[0187] In the above embodiment, the user specifies the device to be detected, the target Live CD system and the items to be detected of the hardware to be detected on the display interface; so that the management device installs the target Live CD system selected by the user on the device to be detected specified by the user; and in the target Live CD system, the items to be detected specified by the user in the hardware to be detected of the device to be detected are detected by the detection tool; thereby, while improving the user experience, the flexibility of detecting the items to be detected of the hardware to be detected is also improved.

[0188] based on Figure 5-Figure 7 The hardware detection method of the computing device shown in the figure, the embodiment of the present application also provides a hardware detection method of the computing device, the method is before S510 or after S580, such as Fig.12 Also shown are: S610-S630.

[0189] S610: The management device obtains the Live CD system including the detection tool uploaded by the user to the management device.

[0190] It should be noted that, before executing the above S610, the user needs to mount the detection tool into the system file of the Live CD system. The specific implementation thereof can be found in the related art and will not be described in detail here.

[0191] It should be understood that the above-mentioned management device can obtain the Live CD system through the network, and can also obtain the Live CD system through an external storage device, which is not specifically limited in the embodiments of the present application.

[0192] Exemplarily, when the management device obtains the Live CD system through the network, the user opens the Live CD system. Fig.13 After the upload interface is displayed, enter "Live CD System D" in the input box corresponding to the system name in the upload interface, and enter "8.3.0" in the input box corresponding to the system version; then, drag the Live CD system including the detection tool to the upload box, and click the upload button; at this time, the management device obtains the Live CD system and the system information of the Live CD system from the above upload interface.

[0193] It should be understood that the user can actively fill in the system information of the Live CD system during the process of uploading the Live CD system; or directly upload the Live CD system to the management device, and the management device obtains the system information from the Live CD system. The specific embodiments of the present application do not specifically limit this.

[0194] S620. Manage the device storage Live CD system.

[0195] The implementation of the above S620 includes: the management device stores the Live CD system in a non-volatile storage device (such as a hard disk).

[0196] S630: The management device displays the Live CD system in the system display interface.

[0197] Exemplarily, after the user uploads the Live CD system to the management device, the system display interface is Fig. 9 As shown in the basis, Fig.14 Also shown is system information: system identification is "Live CD System D", system version is "8.3.0", and update time is "2023-08-21".

[0198] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0199] The embodiment of the present application can divide the hardware detection device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0200] In the case of dividing each functional module into corresponding functional modules, Fig.15 FIG. 1 is a schematic diagram showing a possible structure of the hardware detection device 1500 involved in the above embodiment. Fig.15 As shown, the hardware detection device 1500 includes: a transceiver unit 1501 and a processing unit 1502 .

[0201] The transceiver unit 1501 is used to obtain the installation file of the Live CD system; for example, execute step S110 in the above method embodiment.

[0202] The processing unit 1502 is used to install the Live CD system based on the installation file; for example, execute step S120 in the above method embodiment.

[0203] The processing unit 1502 is used to detect the hardware to be detected by using the detection tool in the Live CD system; for example, executing step S130 in the above method embodiment.

[0204] Optionally, the processing unit 1502 is configured to install the Live CD system in a volatile storage device of the computing device based on the installation file; for example, executing step S220 in the above method embodiment.

[0205] Optionally, the transceiver unit 1501 is configured to obtain the installation file of the LiveCD system from the shared directory based on the pre-boot execution environment PXE service.

[0206] The processing unit 1502 is configured to install the Live CD system in a volatile storage device in response to a boot program of the Live CD system.

[0207] Optionally, the processing unit 1502 is configured to detect the hardware to be detected by executing the executable program when the detection tool is an executable program in the Live CD system;

[0208] The processing unit 1502 is further configured to install the detection tool based on the installation package when the Live CD system includes an installation package of the detection tool, and detect the hardware to be detected by running the detection tool.

[0209] Optionally, the above-mentioned detection tool includes: at least one detection tool among toolkit, toolbox and filed Diag, wherein toolkit and toolbox are used to detect the neural network processor NPU in the computing device, and filed Diag is used to detect the graphics processor GPU in the computing device.

[0210] Optionally, the processing unit 1502 is further configured to uninstall the Live CD system; for example, to execute step S260 in the above method embodiment.

[0211] The various units of the hardware detection device 1500 may also be used to execute other actions in the method embodiment. All relevant contents of the steps involved in the method embodiment may be referred to the functional description of the corresponding functional modules and will not be repeated here.

[0212] The embodiment of the present application can divide the hardware detection device according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0213] In the case of dividing each functional module into corresponding functional modules, Fig.16 FIG. 1 is a schematic diagram showing a possible structure of the hardware detection device 1600 involved in the above embodiment. Fig.16 As shown, the hardware detection device 1600 includes: a transceiver unit 1601 and a creation unit 1602 .

[0214] The transceiver unit 1601 is used to send the installation file of the Live CD system based on the pre-boot execution environment PXE service, so that the device to be detected in the computing device installs the Live CD system based on the installation file; for example, execute step S310 in the above method embodiment.

[0215] The creation unit 1602 is used to establish a session link between the management device and the LiveCD system installed in the device to be detected based on the remote connection protocol; for example, executing step S320 in the above method embodiment.

[0216] The transceiver unit 1601 is also used to send a detection control command to the device to be detected through a session link, so that the device to be detected responds to the detection control command and detects the hardware to be detected in the device to be detected through a detection tool; for example, executing step S330 in the above method embodiment.

[0217] Optionally, the transceiver unit 1601 is used to send the installation file of the Live CD system to the shared directory based on the PXE service; for example, executing step S410 in the above method embodiment.

[0218] Optionally, the transceiver unit 1601 is used to send an installation file to the device to be detected based on the PXE service, so that the device to be detected installs the Live CD system in the volatile storage device of the device to be detected based on the installation file.

[0219] The various units of the hardware detection device 1600 may also be used to execute other actions in the method embodiment. All relevant contents of the steps involved in the method embodiment may be referred to the functional description of the corresponding functional modules and will not be repeated here.

[0220] An embodiment of the present application also provides a computing device, including a memory and a processor, wherein the memory and the processor are coupled; the memory is used to store computer program code, and the computer program code includes computer instructions; when the computer instructions are executed by the processor, the hardware detection method of the above-mentioned computing device is implemented.

[0221] The embodiment of the present application also provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed on a host machine, the hardware detection method of the computing device described above is implemented.

[0222] For the explanation of the relevant contents and description of the beneficial effects of any of the above-mentioned computer-readable storage media, reference may be made to the above-mentioned corresponding embodiments, which will not be repeated here.

[0223] An embodiment of the present application provides a computer program product, which, when executed on a computing device, enables the computing device to execute the above-mentioned hardware detection method for the computing device.

[0224] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function in accordance with the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instruction can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) mode or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a magnetic disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).

[0225] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0226] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0227] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0228] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0229] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, or all or part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk, and other media that can store program codes.

[0230] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for hardware detection of a computing device, characterized in that: Applied to a computing device, the computing device includes at least one hardware to be detected, the method includes: Get the installation file of the Live CD system; Based on the installation file, installing the Live CD system, wherein the Live CD system includes a detection tool for detecting the hardware to be detected; The hardware to be detected is detected by using the detection tool in the Live CD system.

2. The method according to claim 1, characterized in that The step of installing the Live CD system based on the installation file includes: The Live CD system is installed in a volatile storage device of the computing device based on the installation file.

3. The method according to claim 1 or 2, characterized in that: The step of obtaining the installation files of the Live CD system includes: Acquire the installation file of the Live CD system from the shared directory based on the pre-boot execution environment PXE service, wherein the installation file includes the boot program of the Live CD system; The step of installing the Live CD system based on the installation file includes: In response to the boot program of the Live CD system, the Live CD system is installed in the volatile storage device.

4. The method according to any one of claims 1 to 3, characterized in that: Using the detection tool in the Live CD system, the hardware to be detected is detected, including: When the detection tool is an executable program in the Live CD system, the hardware to be detected is detected by executing the executable program; When the Live CD system includes the installation package of the detection tool, the detection tool is installed based on the installation package, and the hardware to be detected is detected by running the detection tool.

5. The method according to any one of claims 1 to 4, characterized in that: The detection tool includes: at least one detection tool among toolkit, toolbox and filed Diag, wherein the toolkit and the toolbox are used to detect the neural network processor NPU in the computing device, and the filedDiag is used to detect the graphics processor GPU in the computing device.

6. The method according to any one of claims 1 to 5, characterized in that: After the detection tool in the Live CD system is used to detect the hardware to be detected, the method further includes: Uninstall the Live CD system installed in the computing device.

7. A method for hardware detection of a computing device, characterized in that: The method is applied to a management device, the management device is used to manage one or more computing devices, and the method includes: Sending an installation file of the Live CD system based on a pre-boot execution environment (PXE) service, so that the device to be detected in the computing device installs the Live CD system based on the installation file; wherein the Live CD system includes a detection tool for detecting the hardware to be detected in the computing device; Based on a remote connection protocol, establishing a session link between the management device and the Live CD system installed in the device to be detected; A detection control command is sent to the device to be detected through the session link, so that the device to be detected responds to the detection control command and detects the hardware to be detected in the device to be detected through the detection tool.

8. The method according to claim 7, characterized in that The method of sending the installation file of the Live CD system based on the pre-boot execution environment PXE service so that the device to be detected in the computing device installs the Live CD system based on the installation file includes: The installation file of the Live CD system is sent to a shared directory based on the PXE service, so that the device to be detected obtains the installation file from the shared directory, and based on the installation file, the Live CD system is installed in the volatile storage device of the device to be detected, wherein the shared directory is a file directory where both the device to be detected and the management device can read and write data.

9. The method according to claim 7, characterized in that: The method of sending the installation file of the Live CD system based on the pre-boot execution environment PXE service so that the device to be detected in the computing device installs the Live CD system based on the installation file includes: Based on the PXE service, the installation file is sent to the device to be detected, so that the device to be detected installs the Live CD system in the volatile storage device of the device to be detected based on the installation file.

10. A computing device, characterized in that It comprises a memory and a processor, the memory is coupled to the processor; the memory is used to store computer program code, the computer program code comprises computer instructions; when the computer instructions are executed by the processor, the processor executes the method as described in any one of claims 1 to 9.

Citation Information

Patent Citations

  • NAS test system, method and computer-readable storage medium

    CN109471784A

  • Method and device for testing disk performance of Linux system

    CN110399256A

  • Method and device for installing system, terminal and storage medium

    CN114153471A

  • Server test method and device, test platform and readable storage medium

    CN114817042A