Hardware equipment fault positioning processing method and device of computer

By obtaining and analyzing the associated information between the terminal equipment and the forwarding equipment, the problem of complexity of server fault location is solved, efficient and accurate fault location and maintenance is achieved, and labor costs are reduced.

CN118897767APending Publication Date: 2024-11-05INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411377346.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

During the fault location processing process of computer equipment such as servers, due to the complexity of the adapter equipment and connecting cables, the fault location efficiency and accuracy are low, which increases labor costs and affects the user experience.

Method used

By obtaining the hardware identification information of the terminal device, analyzing the association information between the terminal device and the forwarding device, determining the faulty device and its attributes, and sending the information to the user, providing an interface display of charts or stereoscopic assembly diagrams to quickly locate the faulty device. .

Benefits of technology

It improves the efficiency and accuracy of fault location of computer hardware equipment, simplifies the maintenance process, saves labor costs, and facilitates equipment maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897767A_ABST
    Figure CN118897767A_ABST
Patent Text Reader

Abstract

The invention provides a computer hardware equipment fault positioning processing method and device, and the method comprises the steps: obtaining hardware identification information corresponding to terminal equipment under the condition that the terminal equipment connected to a computer mainboard through switching equipment is detected to have a fault; reading a pre-written data structure of associated information of the terminal equipment and the switching equipment from a computer storage module, and performing data analysis to obtain a relationship analysis result; wherein the relation analysis result comprises the current corresponding relation between the hardware identification information of each terminal device in the computer and the hardware identification information and the device attribute information of each switching device; and performing analysis based on the relationship analysis result and the hardware identification information corresponding to the terminal equipment, determining the switching equipment corresponding to the terminal equipment with the fault in the computer and the equipment attribute information, and sending the switching equipment and the equipment attribute information to the user side. According to the method provided by the invention, the fault positioning processing efficiency and accuracy of the hardware equipment of the computer can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to a method and device for locating and processing a computer hardware device fault, and also to an electronic device, a non-transitory computer-readable storage medium, and a computer program product. Background Art

[0002] In recent years, with the rapid development of computer technology, computer equipment such as servers have been increasingly widely used in various fields. There is a problem in the fault location processing process of computer equipment such as servers. There are many hardware devices (i.e., terminal devices) in the computer equipment such as servers, which are connected to the mainboard of computer equipment such as servers through adapter devices (such as riser cards, switch boards, hard disk backplanes, etc.). When a terminal device fails and needs maintenance, a large proportion of the faults are caused by the adapter device, which includes the adapter device itself and the cables, slots, and other connection ports used by the adapter device to connect to the mainboard device. When the machine maintenance personnel are ready to repair the fault of computer equipment such as servers, since they do not know which adapter device the terminal device is connected to, they do not know which spare adapter device and connecting cables need to be prepared, and they need to go to the site to debug one by one. In addition, when arriving at the site, because there are many terminal devices in computer equipment such as servers, and there are many connecting cables, it is often impossible to intuitively determine which adapter the faulty terminal device is connected to. It takes multiple attempts, plugging and unplugging, replacing equipment, and cross-comparison verification to find the connection relationship and location between the faulty terminal device and the adapter. This increases the complexity of locating and troubleshooting faulty equipment, which increases labor costs and affects user experience. Therefore, how to design a more efficient computer hardware equipment fault location processing solution has become a technical problem that needs to be solved urgently. Summary of the invention

[0003] The present invention provides a method for locating a computer hardware device fault, which is used to solve the defect that the existing computer hardware device fault locating solution has high limitations, resulting in poor efficiency and accuracy of locating the computer hardware device fault.

[0004] The present invention provides a method for locating and processing a computer hardware device fault, comprising: When a terminal device connected to a computer mainboard via a switching device is detected to have a fault, obtaining hardware identification information corresponding to the terminal device; Reading a pre-written data structure of the association information between the terminal device and the switching device from a computer storage module, and performing data analysis on the data structure of the association information between the terminal device and the switching device to obtain a relationship analysis result; wherein the relationship analysis result includes a current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device; Based on the relationship resolution result and the hardware identification information corresponding to the terminal device, an analysis is performed to determine the switching device and device attribute information corresponding to the terminal device that fails in the computer, and the terminal device that fails in the computer, the switching device and device attribute information corresponding to the terminal device that fails in the computer are sent to the user end.

[0005] The method for locating a computer hardware device fault according to the present invention further includes, when a terminal device connected to a computer mainboard via a switching device is detected to have a fault, before obtaining hardware identification information corresponding to the terminal device: Obtaining device attribute information of each terminal device and device attribute information of each switching device in the computer; Obtaining a static correspondence between each terminal device and each switching device in the computer; Detecting the presence signal of each terminal device and the presence signal of each switching device in the computer, obtaining a presence signal detection result, and determining the presence status information of each terminal device and each switching device in the computer based on the presence signal detection result; Based on the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the presence information of each terminal device and each switching device in the computer, the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device is determined, the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device is encapsulated as a data structure of association information between the terminal device and the switching device, and the data structure of the association information between the terminal device and the switching device is written into the computer storage module.

[0006] The method for locating a computer hardware device fault according to the present invention, wherein the data structure of the association information of the terminal device and the switching device written in advance is read from the computer storage module, and the data structure of the association information of the terminal device and the switching device is analyzed to obtain the relationship analysis result, specifically comprising: Based on the basic input and output system in the computer, a data structure of the association information between the terminal device and the switching device written in advance is read from the computer storage module, and the data structure of the association information between the terminal device and the switching device is sent to the baseboard management controller in the computer for parsing to obtain a relationship parsing result; or, Based on the basic input and output system in the computer, a data structure of the association information of the terminal device and the switching device written in advance is read from the computer storage module, and based on the basic input and output system, the data structure of the association information of the terminal device and the switching device is parsed to obtain a relationship parsing result, and the basic input and output system sends the relationship parsing result to the baseboard management controller in the computer; or, Based on the baseboard management controller in the computer, the data structure of the association information between the terminal device and the switching device written in advance is read from the computer storage module, and the baseboard management controller is used to parse the data structure of the association information between the terminal device and the switching device to obtain a relationship parsing result; or, Based on the baseboard management controller and the basic input-output system in the computer, the data structure of the association information of the terminal device and the adapter device written in advance is read from the computer storage module according to the preset division of labor strategy, and based on the baseboard management controller and the basic input-output system, the data structure of the association information of the terminal device and the adapter device read respectively is analyzed respectively to obtain the relationship analysis result.

[0007] The method for locating a computer hardware device fault according to the present invention, wherein the detecting of the presence signal of each terminal device and the presence signal of each switching device in the computer, obtaining the presence signal detection result, and determining the presence status information of each terminal device and each switching device in the computer based on the presence signal detection result, specifically comprises: Detecting a presence signal of a terminal device in the computer based on a baseboard management controller in the computer, obtaining a presence signal detection result, and determining whether a corresponding terminal device exists in the computer or does not exist in the computer based on the presence signal detection result; or Detecting a presence signal of a terminal device in the computer based on a basic input / output system in the computer, obtaining a presence signal detection result, and sending the presence signal detection result to a baseboard management controller in the computer through the basic input / output system; analyzing the presence signal detection result based on the baseboard management controller, determining whether a corresponding terminal device exists in the computer or does not exist in the computer; The presence status information includes whether the corresponding terminal device exists in the computer or whether the corresponding terminal device does not exist in the computer.

[0008] The method for locating a computer hardware device fault according to the present invention, when a terminal device connected to a computer mainboard via a switching device is detected to have a fault, obtaining hardware identification information corresponding to the terminal device specifically includes: When a hardware failure is detected in the computer, determine whether the hardware device is a terminal device connected to the mainboard via a switching device. If so, obtain the hardware identification information corresponding to the terminal device, and report the hardware identification information corresponding to the terminal device to the basic input and output system or baseboard management controller in the computer for analysis; if not, obtain the hardware identification information corresponding to the terminal device, and send the hardware identification information corresponding to the terminal device to the user end.

[0009] The method for locating a computer hardware device fault according to the present invention further comprises, after determining the switching device and device attribute information corresponding to the terminal device having a fault in the computer, the following steps: Acquire first silk-screen identification information of the terminal device that has failed in the computer; wherein the first silk-screen identification information is the physical location number of the terminal device that has failed in the computer; Obtaining second silk-screen identification information of the switching device corresponding to the terminal device that has failed in the computer; wherein the second silk-screen identification information is the physical location number of the switching device corresponding to the terminal device that has failed in the computer; The first silk-screen identification information and the second silk-screen identification information are sent to a user terminal.

[0010] The method for locating a computer hardware device fault according to the present invention is based on the relationship analysis result and the hardware identification information corresponding to the terminal device to analyze and determine the switching device and device attribute information corresponding to the terminal device that has a fault in the computer, including: Using the hardware identification information corresponding to the terminal device as an index, a matching analysis is performed on the relationship resolution result to find out the terminal device that has failed in the computer and its corresponding switching device that match the hardware identification information corresponding to the terminal device, as well as the device attribute information between the terminal device that has failed in the computer and its corresponding switching device; the device attribute information includes the connection port information between the terminal device that has failed in the computer and its corresponding switching device.

[0011] The method for locating a computer hardware device fault according to the present invention, wherein the terminal device having a fault in the computer, the switching device corresponding to the terminal device having a fault in the computer, and the device attribute information are sent to the user end, specifically comprising: Based on the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information, corresponding interface display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information is generated, and the interface display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information is sent to the user end for display; wherein the interface display information is a graphical structure display information, a radial structure display information, or a three-dimensional assembly drawing structure display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information.

[0012] The method for locating and processing a computer hardware device fault according to the present invention, after writing the data structure of the association information between the terminal device and the switching device into the computer storage module, further comprises: Based on a preset cycle, the actual corresponding relationship between each terminal device and each switching device and device attribute information in the computer is detected; wherein the actual corresponding relationship is a dynamically changing corresponding relationship; In the case where the actual correspondence is different from the current correspondence contained in the data structure of the association information between the terminal device and the switching device, the current correspondence contained in the data structure of the association information between the terminal device and the switching device is updated based on the actual correspondence to obtain a new data structure of the association information between the terminal device and the switching device, and the new data structure of the association information between the terminal device and the switching device is again written into the computer storage module.

[0013] The method for locating a computer hardware device fault according to the present invention further includes, after sending the interface display information including the corresponding relationship between the terminal device having a fault in the computer, the switching device corresponding to the terminal device having a fault in the computer, and the device attribute information to the user terminal for display: Based on a preset cycle, the actual corresponding relationship between each terminal device and each switching device and device attribute information in the computer is detected; wherein the actual corresponding relationship is a dynamically changing corresponding relationship; When the actual correspondence is different from the correspondence included in the interface display information, the correspondence included in the interface display information is updated based on the actual correspondence to obtain new interface display information, and the new interface display information is sent to the user end for display again.

[0014] The method for locating a computer hardware device fault according to the present invention, based on the device attribute information of each terminal device in the computer and the device attribute information of each switching device, the static correspondence between each terminal device and each switching device in the computer, and the in-place information of each terminal device and each switching device in the computer, determines the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device, specifically comprising: Based on the basic input-output system in the computer, the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the on-site status information of each terminal device and each switching device in the computer are analyzed to determine the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device, and the current correspondence is sent to the baseboard management controller through the basic input-output system; or, based on the baseboard management controller in the computer, the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the on-site status information of each terminal device and each switching device in the computer are analyzed to determine the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device.

[0015] The present invention also provides a computer hardware device fault location processing device, comprising: A hardware identification information obtaining unit, used to obtain hardware identification information corresponding to the terminal device when a failure of the terminal device connected to the computer mainboard via the switching device is detected; A data parsing unit, used to read a pre-written data structure of the association information between the terminal device and the switching device from a computer storage module, and perform data parsing on the data structure of the association information between the terminal device and the switching device to obtain a relationship parsing result; wherein the relationship parsing result includes a current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device; A fault information display unit is used to analyze based on the relationship analysis result and the hardware identification information corresponding to the terminal device, determine the switching device and device attribute information corresponding to the terminal device that has failed in the computer, and send the terminal device that has failed in the computer, the switching device and device attribute information corresponding to the terminal device that has failed in the computer to the user end.

[0016] The computer hardware device fault location processing device of the present invention, when detecting that a terminal device connected to the computer mainboard via a switching device fails, before obtaining the hardware identification information corresponding to the terminal device, further comprises: Data structure writing unit, used to: Obtaining device attribute information of each terminal device and device attribute information of each switching device in the computer; Obtaining a static correspondence between each terminal device and each switching device in the computer; Detecting the presence signal of each terminal device and the presence signal of each switching device in the computer, obtaining a presence signal detection result, and determining the presence status information of each terminal device and each switching device in the computer based on the presence signal detection result; Based on the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the presence information of each terminal device and each switching device in the computer, the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device is determined, the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device is encapsulated as a data structure of association information between the terminal device and the switching device, and the data structure of the association information between the terminal device and the switching device is written into the computer storage module.

[0017] The computer hardware device fault location processing device of the present invention, the data parsing unit is specifically used for: Based on the basic input and output system in the computer, a data structure of the association information between the terminal device and the switching device written in advance is read from the computer storage module, and the data structure of the association information between the terminal device and the switching device is sent to the baseboard management controller in the computer for parsing to obtain a relationship parsing result; or, Based on the basic input and output system in the computer, a data structure of the association information of the terminal device and the switching device written in advance is read from the computer storage module, and based on the basic input and output system, the data structure of the association information of the terminal device and the switching device is parsed to obtain a relationship parsing result, and the basic input and output system sends the relationship parsing result to the baseboard management controller in the computer; or, Based on the baseboard management controller in the computer, the data structure of the association information between the terminal device and the switching device written in advance is read from the computer storage module, and the baseboard management controller is used to parse the data structure of the association information between the terminal device and the switching device to obtain a relationship parsing result; or, Based on the baseboard management controller and the basic input-output system in the computer, the data structure of the association information of the terminal device and the adapter device written in advance is read from the computer storage module according to the preset division of labor strategy, and based on the baseboard management controller and the basic input-output system, the data structure of the association information of the terminal device and the adapter device read respectively is analyzed respectively to obtain the relationship analysis result.

[0018] The computer hardware device fault location processing device of the present invention, wherein the detecting the presence signal of each terminal device and the presence signal of each switching device in the computer, obtaining the presence signal detection result, and determining the presence status information of each terminal device and each switching device in the computer based on the presence signal detection result, specifically includes: Detecting a presence signal of a terminal device in the computer based on a baseboard management controller in the computer, obtaining a presence signal detection result, and determining whether a corresponding terminal device exists in the computer or does not exist in the computer based on the presence signal detection result; or Detecting a presence signal of a terminal device in the computer based on a basic input / output system in the computer, obtaining a presence signal detection result, and sending the presence signal detection result to a baseboard management controller in the computer through the basic input / output system; analyzing the presence signal detection result based on the baseboard management controller, determining whether a corresponding terminal device exists in the computer or does not exist in the computer; The presence status information includes whether the corresponding terminal device exists in the computer or whether the corresponding terminal device does not exist in the computer.

[0019] The computer hardware device fault location processing device of the present invention, the hardware identification information obtaining unit is specifically used for: When a hardware failure is detected in the computer, determine whether the hardware device is a terminal device connected to the mainboard via a switching device. If so, obtain the hardware identification information corresponding to the terminal device, and report the hardware identification information corresponding to the terminal device to the basic input and output system or baseboard management controller in the computer for analysis; if not, obtain the hardware identification information corresponding to the terminal device, and send the hardware identification information corresponding to the terminal device to the user end.

[0020] The computer hardware device fault location processing device of the present invention further includes, after determining the switching device and device attribute information corresponding to the terminal device having a fault in the computer: Silk screen logo sending unit, used for: Acquire first silk-screen identification information of the terminal device that has failed in the computer; wherein the first silk-screen identification information is the physical location number of the terminal device that has failed in the computer; Obtaining second silk-screen identification information of the switching device corresponding to the terminal device that has failed in the computer; wherein the second silk-screen identification information is the physical location number of the switching device corresponding to the terminal device that has failed in the computer; The first silk-screen identification information and the second silk-screen identification information are sent to a user terminal.

[0021] The computer hardware device fault location processing device of the present invention, the fault information display unit is specifically used for: Using the hardware identification information corresponding to the terminal device as an index, a matching analysis is performed on the relationship resolution result to find out the terminal device that has failed in the computer and its corresponding switching device that match the hardware identification information corresponding to the terminal device, as well as the device attribute information between the terminal device that has failed in the computer and its corresponding switching device; the device attribute information includes the connection port information between the terminal device that has failed in the computer and its corresponding switching device.

[0022] The computer hardware device fault location processing device of the present invention, the fault information display unit is specifically used for: Based on the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information, corresponding interface display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information is generated, and the interface display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information is sent to the user end for display; wherein the interface display information is a graphical structure display information, a radial structure display information, or a three-dimensional assembly drawing structure display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information.

[0023] The computer hardware device fault location processing device of the present invention, after writing the data structure of the association information between the terminal device and the switching device into the computer storage module, further comprises: Data structure update unit, used to: Based on a preset cycle, the actual corresponding relationship between each terminal device and each switching device and device attribute information in the computer is detected; wherein the actual corresponding relationship is a dynamically changing corresponding relationship; In the case where the actual correspondence is different from the current correspondence contained in the data structure of the association information between the terminal device and the switching device, the current correspondence contained in the data structure of the association information between the terminal device and the switching device is updated based on the actual correspondence to obtain a new data structure of the association information between the terminal device and the switching device, and the new data structure of the association information between the terminal device and the switching device is again written into the computer storage module.

[0024] The computer hardware device fault location processing device of the present invention, after sending the interface display information including the terminal device having a fault in the computer, the switching device corresponding to the terminal device having a fault in the computer, and the corresponding relationship between the device attribute information to the user terminal for display, further includes: The interface display information update unit is used to: Based on a preset cycle, the actual corresponding relationship between each terminal device and each switching device and device attribute information in the computer is detected; wherein the actual corresponding relationship is a dynamically changing corresponding relationship; When the actual correspondence is different from the correspondence included in the interface display information, the correspondence included in the interface display information is updated based on the actual correspondence to obtain new interface display information, and the new interface display information is sent to the user end for display again.

[0025] The computer hardware device fault location processing device of the present invention, based on the device attribute information of each terminal device in the computer and the device attribute information of each switching device, the static correspondence between each terminal device and each switching device in the computer, and the in-place information of each terminal device and each switching device in the computer, determines the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device, specifically including: Based on the basic input-output system in the computer, the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the on-site status information of each terminal device and each switching device in the computer are analyzed to determine the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device, and the current correspondence is sent to the baseboard management controller through the basic input-output system; or, based on the baseboard management controller in the computer, the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the on-site status information of each terminal device and each switching device in the computer are analyzed to determine the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device.

[0026] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for locating a hardware device fault of the computer as described in any one of the above items is implemented.

[0027] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the computer hardware device fault location processing method as described in any of the above items.

[0028] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer hardware device fault location processing method as described in any one of the above items is implemented.

[0029] The present invention provides a method for locating and processing a hardware device fault of a computer. When a terminal device connected to a computer mainboard via a switching device is detected to have a fault, the method obtains the hardware identification information corresponding to the terminal device, reads a data structure of the association information of the terminal device and the switching device written in advance from a computer storage module, and performs data analysis to obtain a relationship analysis result. The relationship analysis result includes the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device. The method performs analysis based on the relationship analysis result and the hardware identification information corresponding to the terminal device, determines the switching device and device attribute information corresponding to the terminal device that has a fault in the computer, and sends the information to a user end. The method can effectively improve the efficiency and accuracy of locating and processing a hardware device fault that is connected to a computer mainboard via a switching device in the computer. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 This is one of the flow charts of the method for locating and processing a computer hardware device fault provided by the present invention.

[0032] Figure 2 This is the second flow chart of the method for locating and processing a computer hardware device fault provided by the present invention.

[0033] Figure 3 It is a schematic diagram of radial structure display information provided by the present invention.

[0034] Figure 4 It is a structural schematic diagram of a computer hardware device fault location processing device provided by the present invention.

[0035] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0037] Combine the following Figure 1-Figure 5 The present invention describes a method and apparatus for locating and processing a hardware device fault of a computer, and describes an embodiment thereof in detail.

[0038] The following is a detailed description of an embodiment of the method for locating a computer hardware device fault according to the present invention. Figure 1 As shown, it is one of the flow charts of the method for locating a computer hardware device fault provided by the present invention, and the specific implementation process includes the following steps: Step 101: When a terminal device connected to a computer mainboard via a switching device is detected to have a fault, hardware identification information corresponding to the terminal device is obtained.

[0039] In an embodiment of the present invention, when a hardware device in a computer is detected to have a fault, it is determined whether the hardware device is a terminal device connected to the mainboard through an adapter device. If so, the hardware identification information corresponding to the terminal device is obtained, and the hardware identification information corresponding to the terminal device is reported to the basic input and output system or baseboard management controller in the computer for analysis; if not, the hardware identification information corresponding to the terminal device is obtained, and the hardware identification information corresponding to the terminal device is sent to the user end. The adapter device is a riser card, a switch board, or a hard disk backplane, etc., wherein a riser card is an adapter card for a hard disk or other device; a switch board is a GPU adapter board.

[0040] It should be noted that, in an embodiment of the present invention, when a terminal device connected to a computer mainboard via a switching device is detected to have a fault, before obtaining the hardware identification information corresponding to the terminal device, it is necessary to pre-write the data structure of the association information between the terminal device and the switching device into the computer storage module. Specifically, first obtain the device attribute information of each terminal device and the device attribute information of each switching device in the computer, and obtain the static correspondence between each terminal device and each switching device in the computer. Detect the presence signal of each terminal device and the presence signal of each switching device in the computer, obtain the presence signal detection result, and determine the presence status information of each terminal device and each switching device in the computer based on the presence signal detection result. Finally, based on the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the presence information of each terminal device and each switching device in the computer, the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device is determined, the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device is encapsulated as a data structure of association information between the terminal device and the switching device, and the data structure of association information between the terminal device and the switching device is written into the computer storage module.

[0041] In the process of obtaining the device attribute information of each terminal device and each switching device in the computer, if Figure 2As shown, the device attribute information of various terminal devices and the device attribute information of each switching device can be collected by the preset basic input / output system (BIOS) in the computer in a static and dynamic manner, and sent to the baseboard management controller (BMC) for use, so as to realize the function of filtering and displaying. On this basis, the baseboard management controller reads the FRU (Field Replace Unit) information of the terminal device and the switching device through the MCTP (Management Component Transport Protocol) protocol, and actively collects the device attribute information that can be collected through these methods for subsequent use.

[0042] In the process of obtaining the static correspondence between each terminal device and each adapter device in the computer, the static correspondence between each terminal device and each adapter device can be in the form of a table, etc., and provided to the basic input and output system and the baseboard management controller. According to the needs of functional implementation, in the specific implementation process, the basic input and output system can send it to the baseboard management controller, or the baseboard management controller can directly obtain the static correspondence between the terminal device and the adapter device, and send it to the WebUI device property list interface.

[0043] In the process of detecting the presence signal of each terminal device and each switching device in the computer, obtaining the presence signal detection result, and determining the presence status information of each terminal device and each switching device in the computer based on the presence signal detection result, the presence signal of each terminal device and each switching device can be obtained from the hardware level, and the baseboard management controller can directly obtain it according to the actual availability of the presence signal, or obtain it through the basic input and output system and then pass it to the baseboard management controller to judge the presence status of the device in turn; for the terminal device, the presence status of the device can also be judged by the device information obtained by the basic input and output system and then passed to the baseboard management controller. If the terminal device or switching device whose presence information can be obtained, it is determined that it is actually in place, that is, it exists in the calculation. If the above-mentioned association information of the terminal device and the switching device is insufficient, from the perspective of system design, the data structure of the association information of the terminal device and the switching device can be described on the current server hardware configuration, and written to the storage module (i.e., storage chip) on the mainboard, including but not limited to EEPROM and other storage chips.

[0044] In addition, after writing the data structure of the association information between the terminal device and the switching device into the computer storage module, the actual correspondence between each terminal device and each switching device and the device attribute information in the computer can also be detected based on a preset cycle period; wherein the actual correspondence is a dynamically changing correspondence, and when the actual correspondence is different from the current correspondence contained in the data structure of the association information between the terminal device and the switching device, the current correspondence contained in the data structure of the association information between the terminal device and the switching device is updated based on the actual correspondence to obtain a new data structure of the association information between the terminal device and the switching device, and the new data structure of the association information between the terminal device and the switching device is again written into the computer storage module.

[0045] Wherein, in the process of detecting the presence signal of each terminal device and the presence signal of each switching device in the computer, obtaining the presence signal detection result, and determining the presence status information of each terminal device and each switching device in the computer based on the presence signal detection result, specifically, the presence signal of the terminal device in the computer can be detected based on the baseboard management controller in the computer, the presence signal detection result can be obtained, and based on the presence signal detection result, it can be determined that the corresponding terminal device exists in the computer or does not exist in the computer; in addition, the presence signal of the terminal device in the computer can be detected based on the basic input and output system in the computer, the presence signal detection result can be obtained, and the presence signal detection result can be sent to the baseboard management controller in the computer through the basic input and output system; based on the baseboard management controller, the presence signal detection result is analyzed to determine that the corresponding terminal device exists in the computer or does not exist in the computer. Wherein, the presence status information includes the presence of the corresponding terminal device in the computer or the absence of the corresponding terminal device in the computer.

[0046] In an embodiment of the present invention, chip information is supported to be read and written by a basic input / output system or a baseboard management controller according to the feasibility of the scheme, and can be divided into: the basic input / output system reads and writes the information and then sends the information to the baseboard management controller for parsing, or the basic input / output system reads and parses the information and then sends the parsing result to the baseboard management controller, and the baseboard management controller reads the information and parses it by itself, or the basic input / output system and the baseboard management controller divide the work and cooperate, each obtains the information suitable for itself, and then summarizes all the information to the baseboard management controller for processing and display.

[0047] It should be noted that the basic input / output system and the baseboard management controller can independently obtain the device attribute information of the adapter device or the terminal device, or the basic input / output system reads the data structure of the association information of the terminal device and the adapter device written in the storage module and passes it to the baseboard management controller. After the baseboard management controller obtains the device attribute information or the data structure of the association information of the terminal device and the adapter device, it parses the obtained device attribute information and the data structure of the association information of the terminal device and the adapter device.

[0048] In addition, the implementation scheme in cooperation with the baseboard management controller can also be to obtain the data structure of the association information between the terminal device and the switching device written in the storage module in the computer and the device attribute information of each switching device or each terminal device through CPLD (Complex Programmable Logic Device, a digital integrated circuit with logical functions constructed by users according to their own needs), and pass it to the baseboard management controller for analysis and processing. Using CPLD is more convenient than using a basic input and output system. In addition, in each scheme and processing scenario, it can also be implemented based on the cooperation of the basic input and output system, the baseboard management controller, and the CPLD, that is, the data structure of the association information between the terminal device and the switching device written in the storage module in the computer and the device attribute information of each switching device or each terminal device are obtained through the division of labor and cooperation between the basic input and output system and the CPLD, and the device attribute information is obtained, and passed to the baseboard management controller for analysis and processing. Using the basic input and output system and the CPLD to divide the work and cooperate is more efficient than the basic input and output system.

[0049] In addition, in the process of determining the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device based on the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the presence information of each terminal device and each switching device in the computer, the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the presence information of each terminal device and each switching device in the computer can be specifically determined based on the basic input and output system in the computer. The information is analyzed to determine the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device, and the current correspondence is sent to the baseboard management controller through the basic input and output system; or, based on the baseboard management controller in the computer, the device attribute information of each terminal device in the computer and the device attribute information of each switching device, the static correspondence between each terminal device and each switching device in the computer, and the in-place status information of each terminal device and each switching device in the computer are analyzed to determine the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device.

[0050] Step 102: read a pre-written data structure of the association information between the terminal device and the switching device from a computer storage module, and perform data analysis on the data structure of the association information between the terminal device and the switching device to obtain a relationship analysis result; wherein the relationship analysis result includes the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device.

[0051] In an embodiment of the present invention, the data structure of the association information of the terminal device and the switching device written in advance can be read from the computer storage module based on the basic input-output system in the computer, and the data structure of the association information of the terminal device and the switching device can be sent to the baseboard management controller in the computer for parsing to obtain the relationship parsing result. Secondly, the data structure of the association information of the terminal device and the switching device written in advance can be read from the computer storage module based on the basic input-output system in the computer, and the data structure of the association information of the terminal device and the switching device can be parsed based on the basic input-output system to obtain the relationship parsing result, and the input-output system can send the relationship parsing result to the baseboard management controller in the computer. In addition, the data structure of the association information of the terminal device and the switching device written in advance can be read from the computer storage module based on the baseboard management controller in the computer, and the data structure of the association information of the terminal device and the switching device can be parsed based on the baseboard management controller to obtain the relationship parsing result. In addition, based on the baseboard management controller and the basic input-output system in the computer, the data structure of the association information of the terminal device and the adapter device written in advance can be read from the computer storage module according to the preset division of labor strategy, and the data structure of the association information of the terminal device and the adapter device read respectively can be analyzed based on the baseboard management controller and the basic input-output system to obtain the relationship analysis result.

[0052] Step 103: perform analysis based on the relationship resolution result and the hardware identification information corresponding to the terminal device, determine the switching device and device attribute information corresponding to the terminal device that fails in the computer, and send the terminal device that fails in the computer, the switching device and device attribute information corresponding to the terminal device that fails in the computer to the user end.

[0053] In an embodiment of the present invention, the hardware identification information corresponding to the terminal device can be used as an index to perform a matching analysis on the relationship resolution result to find out the terminal device that has failed in the computer and its corresponding switching device that match the hardware identification information corresponding to the terminal device, as well as the device attribute information between the terminal device that has failed in the computer and its corresponding switching device; the device attribute information includes the connection port information between the terminal device that has failed in the computer and its corresponding switching device. Furthermore, based on the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information, corresponding interface display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information is generated, and the interface display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information is sent to the user end for display; wherein the interface display information is a graphical structure display information, a radial structure display information, or a three-dimensional assembly drawing structure display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information.

[0054] From the display scheme of the WebUI interface corresponding to the baseboard management controller: the chart structure display information is a series of device attribute information of each row of terminal devices, plus one or more adapter device information, such as Switch board N / Riser card N / backplane N, etc., and if necessary, the manufacturer, driver version and other information of these adapter boards can be added. Further, the radial structure display information includes but is not limited to radial presentation, which can be further processed and displayed in the original terminal device attribute information of each row, or a separate area can be opened to display the corresponding relationship between the adapter device and the terminal device, such as Figure 3 Furthermore, the three-dimensional assembly diagram structure display information can be converted from two-dimensional to three-dimensional, such as an exploded view (three-dimensional assembly diagram). The advantage is that in addition to being able to display the connection relationship between each switching device and terminal device, it can also intuitively see the appearance of the switching device and the terminal device, and intuitively and three-dimensionally display the physical position of each switching device and the terminal device in the server chassis, which is easy to view and locate.

[0055] In addition, after the interface display information including the correspondence between the terminal device that has failed in the computer, the switching device corresponding to the terminal device that has failed in the computer, and the device attribute information is sent to the user end for display, the actual correspondence between each terminal device and each switching device and the device attribute information in the computer can also be detected based on a preset cycle; wherein the actual correspondence is a dynamically changing correspondence. In the case that the actual correspondence is different from the correspondence included in the interface display information, the correspondence included in the interface display information is updated based on the actual correspondence to obtain new interface display information, and the new interface display information is sent to the user end again for display.

[0056] In addition, after determining the switching device and device attribute information corresponding to the terminal device that has failed in the computer, the first silk screen identification information of the terminal device that has failed in the computer can also be obtained; wherein the first silk screen identification information is the physical location number of the terminal device that has failed in the computer; obtain the second silk screen identification information of the switching device corresponding to the terminal device that has failed in the computer; wherein the second silk screen identification information is the physical location number of the switching device corresponding to the terminal device that has failed in the computer; send the first silk screen identification information and the second silk screen identification information to the user end. The present invention realizes the correspondence between various external terminal devices (enddevice) and the silk screen identification information such as the slots and sockets of the corresponding switching devices, and realizes the positioning function of the physical location of the device.

[0057] In the process of running the method described in the present invention on the hardware architecture of the computer, the hardware identification information corresponding to the terminal device can be obtained through BIOS when a terminal device connected to the computer mainboard through a switching device is detected to have failed, and the data structure of the association information between the terminal device and the switching device is written into the computer storage module. The data structure of the association information between the terminal device and the switching device written in advance is read from the computer storage module through the BMC, and the data structure of the association information between the terminal device and the switching device is analyzed to obtain the relationship analysis result; further, the relationship analysis result and the hardware identification information corresponding to the terminal device are analyzed through the BMC to determine the switching device and device attribute information corresponding to the terminal device that has failed in the computer, and the terminal device that has failed in the computer, the switching device and device attribute information corresponding to the terminal device that has failed in the computer are sent to the user end for display.

[0058] In addition, when the BIOS detects that a terminal device connected to the computer mainboard via a switching device fails, the hardware identification information corresponding to the terminal device can be obtained, and the data structure of the association information between the terminal device and the switching device can be written into the computer storage module. The BIOS can read the pre-written data structure of the association information between the terminal device and the switching device from the computer storage module, perform data analysis on the data structure of the association information between the terminal device and the switching device, obtain the relationship analysis result, and send the relationship analysis result to the BMC. Then, the BMC analyzes the relationship analysis result and the hardware identification information corresponding to the terminal device, determines the switching device and device attribute information corresponding to the terminal device that fails in the computer, and sends the terminal device that fails in the computer, the switching device and device attribute information corresponding to the terminal device that fails in the computer to the user end for display.

[0059] In addition, when a terminal device connected to the computer mainboard through a switching device fails, the CPLD can obtain the hardware identification information corresponding to the terminal device, and write the data structure of the association information between the terminal device and the switching device into the computer storage module. The BMC reads the pre-written data structure of the association information between the terminal device and the switching device from the computer storage module, and performs data analysis on the data structure of the association information between the terminal device and the switching device to obtain the relationship analysis result; further, the BMC analyzes the relationship analysis result and the hardware identification information corresponding to the terminal device, determines the switching device and device attribute information corresponding to the terminal device that fails in the computer, and sends the terminal device that fails in the computer, the switching device and device attribute information corresponding to the terminal device that fails in the computer to the user end for display. Correspondingly, when a terminal device connected to the computer mainboard through a switching device fails, the CPLD can obtain the hardware identification information corresponding to the terminal device, and write the data structure of the association information between the terminal device and the switching device into the computer storage module. The CPLD reads the pre-written data structure of the association information between the terminal device and the switching device from the computer storage module, performs data analysis on the data structure of the association information between the terminal device and the switching device, obtains the relationship analysis result, and sends the relationship analysis result to the BMC. Then, the BMC analyzes the relationship analysis result and the hardware identification information corresponding to the terminal device, determines the switching device and device attribute information corresponding to the terminal device that fails in the computer, and sends the terminal device that fails in the computer, the switching device and device attribute information corresponding to the terminal device that fails in the computer to the user end for display.

[0060] The method for locating and processing hardware device faults of a computer provided by the present invention is to obtain the hardware identification information corresponding to the terminal device when a terminal device connected to the computer mainboard through a switching device is detected to have a fault, and read the data structure of the association information of the terminal device and the switching device written in advance from the computer storage module, and perform data analysis to obtain the relationship analysis result; wherein, the relationship analysis result includes the current corresponding relationship between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device; based on the relationship analysis result and the hardware identification information corresponding to the terminal device, the switching device and device attribute information corresponding to the terminal device that has a fault in the computer are determined, and sent to the user end, which can effectively improve the efficiency and accuracy of the hardware device fault location processing connected to the computer mainboard through the switching device in the computer. The present invention effectively solves the problem that the computer equipment such as the server cannot reflect the connection relationship between the terminal device and the switching device because the device list page only displays the terminal device information, and the information display form is simple and single, and the specific position of the device in the chassis is not clear, which leads to the problem that the positioning and maintenance are difficult when the device fails. It is convenient for equipment maintenance personnel to maintain the error reporting equipment, saving maintenance manpower and cost.

[0061] The following is a description of the computer hardware device fault location processing device provided by the present invention. The computer hardware device fault location processing device described below and the computer hardware device fault location processing method described above can be referred to each other. Figure 4 As shown, it is a structural schematic diagram of the computer hardware device fault location processing device provided by the present invention. The computer hardware device fault location processing device of the present invention specifically includes the following parts: The hardware identification information obtaining unit 401 is used to obtain the hardware identification information corresponding to the terminal device when it is detected that a terminal device connected to the computer mainboard via a switching device fails.

[0062] The data parsing unit 402 is used to read the pre-written data structure of the association information between the terminal device and the switching device from the computer storage module, and perform data parsing on the data structure of the association information between the terminal device and the switching device to obtain a relationship parsing result; wherein the relationship parsing result includes the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device.

[0063] The fault information display unit 403 is used to analyze based on the relationship analysis result and the hardware identification information corresponding to the terminal device, determine the switching device and device attribute information corresponding to the terminal device that has failed in the computer, and send the terminal device that has failed in the computer, the switching device and device attribute information corresponding to the terminal device that has failed in the computer to the user end.

[0064] The computer hardware device fault location processing device of the present invention, when detecting that a terminal device connected to the computer mainboard via a switching device fails, before obtaining the hardware identification information corresponding to the terminal device, further comprises: Data structure writing unit, used to: Obtaining device attribute information of each terminal device and device attribute information of each switching device in the computer; Obtaining a static correspondence between each terminal device and each switching device in the computer; Detecting the presence signal of each terminal device and the presence signal of each switching device in the computer, obtaining a presence signal detection result, and determining the presence status information of each terminal device and each switching device in the computer based on the presence signal detection result; Based on the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the presence information of each terminal device and each switching device in the computer, the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device is determined, the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device is encapsulated as a data structure of association information between the terminal device and the switching device, and the data structure of the association information between the terminal device and the switching device is written into the computer storage module.

[0065] The computer hardware device fault location processing device of the present invention, the data parsing unit is specifically used for: Based on the basic input and output system in the computer, a data structure of the association information between the terminal device and the switching device written in advance is read from the computer storage module, and the data structure of the association information between the terminal device and the switching device is sent to the baseboard management controller in the computer for parsing to obtain a relationship parsing result; or, Based on the basic input and output system in the computer, a data structure of the association information of the terminal device and the switching device written in advance is read from the computer storage module, and based on the basic input and output system, the data structure of the association information of the terminal device and the switching device is parsed to obtain a relationship parsing result, and the basic input and output system sends the relationship parsing result to the baseboard management controller in the computer; or, Based on the baseboard management controller in the computer, the data structure of the association information between the terminal device and the switching device written in advance is read from the computer storage module, and the baseboard management controller is used to parse the data structure of the association information between the terminal device and the switching device to obtain a relationship parsing result; or, Based on the baseboard management controller and the basic input-output system in the computer, the data structure of the association information of the terminal device and the adapter device written in advance is read from the computer storage module according to the preset division of labor strategy, and based on the baseboard management controller and the basic input-output system, the data structure of the association information of the terminal device and the adapter device read respectively is analyzed respectively to obtain the relationship analysis result.

[0066] The computer hardware device fault location processing device of the present invention, wherein the detecting the presence signal of each terminal device and the presence signal of each switching device in the computer, obtaining the presence signal detection result, and determining the presence status information of each terminal device and each switching device in the computer based on the presence signal detection result, specifically includes: Detecting a presence signal of a terminal device in the computer based on a baseboard management controller in the computer, obtaining a presence signal detection result, and determining whether a corresponding terminal device exists in the computer or does not exist in the computer based on the presence signal detection result; or Detecting a presence signal of a terminal device in the computer based on a basic input / output system in the computer, obtaining a presence signal detection result, and sending the presence signal detection result to a baseboard management controller in the computer through the basic input / output system; analyzing the presence signal detection result based on the baseboard management controller, determining whether a corresponding terminal device exists in the computer or does not exist in the computer; The presence status information includes whether the corresponding terminal device exists in the computer or whether the corresponding terminal device does not exist in the computer.

[0067] The computer hardware device fault location processing device of the present invention, the hardware identification information obtaining unit is specifically used for: When a hardware failure is detected in the computer, determine whether the hardware device is a terminal device connected to the mainboard via a switching device. If so, obtain the hardware identification information corresponding to the terminal device, and report the hardware identification information corresponding to the terminal device to the basic input and output system or baseboard management controller in the computer for analysis; if not, obtain the hardware identification information corresponding to the terminal device, and send the hardware identification information corresponding to the terminal device to the user end.

[0068] The computer hardware device fault location processing device of the present invention further includes, after determining the switching device and device attribute information corresponding to the terminal device having a fault in the computer: Silk screen logo sending unit, used for: Acquire first silk-screen identification information of the terminal device that has failed in the computer; wherein the first silk-screen identification information is the physical location number of the terminal device that has failed in the computer; Obtaining second silk-screen identification information of the switching device corresponding to the terminal device that has failed in the computer; wherein the second silk-screen identification information is the physical location number of the switching device corresponding to the terminal device that has failed in the computer; The first silk-screen identification information and the second silk-screen identification information are sent to a user terminal.

[0069] The computer hardware device fault location processing device of the present invention, the fault information display unit is specifically used for: Using the hardware identification information corresponding to the terminal device as an index, a matching analysis is performed on the relationship resolution result to find out the terminal device that has failed in the computer and its corresponding switching device that match the hardware identification information corresponding to the terminal device, as well as the device attribute information between the terminal device that has failed in the computer and its corresponding switching device; the device attribute information includes the connection port information between the terminal device that has failed in the computer and its corresponding switching device.

[0070] The computer hardware device fault location processing device of the present invention, the fault information display unit is specifically used for: Based on the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information, corresponding interface display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information is generated, and the interface display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information is sent to the user end for display; wherein the interface display information is a graphical structure display information, a radial structure display information, or a three-dimensional assembly drawing structure display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information.

[0071] The computer hardware device fault location processing device of the present invention, after writing the data structure of the association information between the terminal device and the switching device into the computer storage module, further comprises: Data structure update unit, used to: Based on a preset cycle, the actual corresponding relationship between each terminal device and each switching device and device attribute information in the computer is detected; wherein the actual corresponding relationship is a dynamically changing corresponding relationship; In the case where the actual correspondence is different from the current correspondence contained in the data structure of the association information between the terminal device and the switching device, the current correspondence contained in the data structure of the association information between the terminal device and the switching device is updated based on the actual correspondence to obtain a new data structure of the association information between the terminal device and the switching device, and the new data structure of the association information between the terminal device and the switching device is again written into the computer storage module.

[0072] The computer hardware device fault location processing device of the present invention, after sending the interface display information including the terminal device having a fault in the computer, the switching device corresponding to the terminal device having a fault in the computer, and the corresponding relationship between the device attribute information to the user terminal for display, further includes: The interface display information update unit is used to: Based on a preset cycle, the actual corresponding relationship between each terminal device and each switching device and device attribute information in the computer is detected; wherein the actual corresponding relationship is a dynamically changing corresponding relationship; When the actual correspondence is different from the correspondence included in the interface display information, the correspondence included in the interface display information is updated based on the actual correspondence to obtain new interface display information, and the new interface display information is sent to the user end for display again.

[0073] The computer hardware device fault location processing device of the present invention, based on the device attribute information of each terminal device in the computer and the device attribute information of each switching device, the static correspondence between each terminal device and each switching device in the computer, and the in-place information of each terminal device and each switching device in the computer, determines the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device, specifically including: Based on the basic input-output system in the computer, the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the on-site status information of each terminal device and each switching device in the computer are analyzed to determine the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device, and the current correspondence is sent to the baseboard management controller through the basic input-output system; or, based on the baseboard management controller in the computer, the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the on-site status information of each terminal device and each switching device in the computer are analyzed to determine the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device.

[0074] The computer hardware device fault location processing device provided by the present invention obtains the hardware identification information corresponding to the terminal device when a terminal device connected to the computer mainboard through a switching device is detected to have a fault, and reads the data structure of the association information of the terminal device and the switching device written in advance from the computer storage module, and performs data analysis to obtain a relationship analysis result; wherein the relationship analysis result includes the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device; based on the relationship analysis result and the hardware identification information corresponding to the terminal device, an analysis is performed to determine the switching device and device attribute information corresponding to the terminal device that has a fault in the computer, and send them to the user end, which can effectively improve the efficiency and accuracy of the hardware device fault location processing connected to the computer mainboard through the switching device in the computer.

[0075] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5 As shown, the electronic device may include: a processor (processor) 501, a communication interface (Communications Interface) 504, a memory (memory) 502 and a communication bus 503, wherein the processor 501, the communication interface 504, and the memory 502 communicate with each other through the communication bus 503. The processor 501 can call the logic instructions in the memory 502 to execute a computer hardware device fault location processing method, which includes: when a terminal device connected to the computer mainboard through a switching device is detected to have a fault, obtaining the hardware identification information corresponding to the terminal device; reading the data structure of the association information of the terminal device and the switching device written in advance from the computer storage module, and performing data analysis on the data structure of the association information of the terminal device and the switching device to obtain a relationship analysis result; wherein the relationship analysis result includes the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device; based on the relationship analysis result and the hardware identification information corresponding to the terminal device, an analysis is performed to determine the switching device and device attribute information corresponding to the terminal device that has a fault in the computer, and the terminal device that has a fault in the computer, the switching device and device attribute information corresponding to the terminal device that has a fault in the computer are sent to the user end.

[0076] In addition, the logic instructions in the above-mentioned memory 502 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. 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. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0077] On the other hand, the present application also provides a computer program product, which includes a computer program, which can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the computer hardware device fault location processing method provided by the above-mentioned methods, the method including: when a terminal device connected to the computer mainboard through a switching device is detected to have a fault, obtaining the hardware identification information corresponding to the terminal device; reading a pre-written data structure of the association information of the terminal device and the switching device from a computer storage module, and performing data parsing on the data structure of the association information of the terminal device and the switching device to obtain a relationship parsing result; wherein the relationship parsing result includes the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device; based on the relationship parsing result and the hardware identification information corresponding to the terminal device, an analysis is performed to determine the switching device and device attribute information corresponding to the terminal device that has a fault in the computer, and the terminal device that has a fault in the computer, the switching device and device attribute information corresponding to the terminal device that has a fault in the computer are sent to the user end.

[0078] On the other hand, the present application also provides a computer-readable storage medium, the computer-readable storage medium includes a stored program, wherein the program, when running, executes the computer hardware device fault location processing method provided by the above-mentioned methods, the method comprising: in the case of detecting that a terminal device connected to the computer mainboard through a switching device has a fault, obtaining the hardware identification information corresponding to the terminal device; reading a pre-written data structure of the association information of the terminal device and the switching device from a computer storage module, and performing data analysis on the data structure of the association information of the terminal device and the switching device to obtain a relationship analysis result; wherein the relationship analysis result includes the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device; based on the relationship analysis result and the hardware identification information corresponding to the terminal device, an analysis is performed to determine the switching device and device attribute information corresponding to the terminal device that has a fault in the computer, and the terminal device that has a fault in the computer, the switching device and device attribute information corresponding to the terminal device that has a fault in the computer are sent to the user end.

[0079] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0080] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0081] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for locating a computer hardware device fault, characterized in that: include: When a terminal device connected to a computer mainboard via a switching device is detected to have a fault, obtaining hardware identification information corresponding to the terminal device; Reading a pre-written data structure of the association information between the terminal device and the switching device from a computer storage module, and performing data analysis on the data structure of the association information between the terminal device and the switching device to obtain a relationship analysis result; wherein the relationship analysis result includes a current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device; Based on the relationship resolution result and the hardware identification information corresponding to the terminal device, an analysis is performed to determine the switching device and device attribute information corresponding to the terminal device that fails in the computer, and the terminal device that fails in the computer, the switching device and device attribute information corresponding to the terminal device that fails in the computer are sent to the user end.

2. The method for locating a computer hardware device fault according to claim 1, characterized in that: In the case where a terminal device connected to a computer mainboard via a switching device is detected to have a fault, before obtaining hardware identification information corresponding to the terminal device, the method further includes: Obtaining device attribute information of each terminal device and each switching device in the computer; Obtaining a static correspondence between each terminal device and each switching device in the computer; Detecting the presence signal of each terminal device and the presence signal of each switching device in the computer, obtaining a presence signal detection result, and determining the presence status information of each terminal device and each switching device in the computer based on the presence signal detection result; Based on the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the presence information of each terminal device and each switching device in the computer, the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device is determined, the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device is encapsulated as a data structure of association information between the terminal device and the switching device, and the data structure of the association information between the terminal device and the switching device is written into the computer storage module.

3. The method for locating a computer hardware device fault according to claim 1, characterized in that: The step of reading the pre-written data structure of the association information between the terminal device and the switching device from the computer storage module and performing data analysis on the data structure of the association information between the terminal device and the switching device to obtain the relationship analysis result specifically includes: Based on the basic input and output system in the computer, a data structure of the association information between the terminal device and the switching device written in advance is read from the computer storage module, and the data structure of the association information between the terminal device and the switching device is sent to the baseboard management controller in the computer for parsing to obtain a relationship parsing result; or, Based on the basic input and output system in the computer, a data structure of the association information of the terminal device and the switching device written in advance is read from the computer storage module, and based on the basic input and output system, the data structure of the association information of the terminal device and the switching device is parsed to obtain a relationship parsing result, and the basic input and output system sends the relationship parsing result to the baseboard management controller in the computer; or, Based on the baseboard management controller in the computer, the data structure of the association information between the terminal device and the switching device written in advance is read from the computer storage module, and the baseboard management controller is used to parse the data structure of the association information between the terminal device and the switching device to obtain a relationship parsing result; or, Based on the baseboard management controller and the basic input-output system in the computer, the data structure of the association information of the terminal device and the adapter device written in advance is read from the computer storage module according to the preset division of labor strategy, and based on the baseboard management controller and the basic input-output system, the data structure of the association information of the terminal device and the adapter device read respectively is analyzed respectively to obtain the relationship analysis result.

4. The method for locating a computer hardware device fault according to claim 2, wherein: The detecting the presence signal of each terminal device and the presence signal of each switching device in the computer, obtaining the presence signal detection result, and determining the presence status information of each terminal device and each switching device in the computer based on the presence signal detection result specifically includes: Detecting a presence signal of a terminal device in the computer based on a baseboard management controller in the computer, obtaining a presence signal detection result, and determining whether a corresponding terminal device exists in the computer or does not exist in the computer based on the presence signal detection result; or Detecting a presence signal of a terminal device in the computer based on a basic input / output system in the computer, obtaining a presence signal detection result, and sending the presence signal detection result to a baseboard management controller in the computer through the basic input / output system; analyzing the presence signal detection result based on the baseboard management controller, determining whether a corresponding terminal device exists in the computer or does not exist in the computer; The presence status information includes whether the corresponding terminal device exists in the computer or whether the corresponding terminal device does not exist in the computer.

5. The method for locating a computer hardware device fault according to claim 1, characterized in that: When a terminal device connected to a computer mainboard via a switching device is detected to have a fault, obtaining hardware identification information corresponding to the terminal device specifically includes: When a hardware failure is detected in the computer, determine whether the hardware device is a terminal device connected to the mainboard via a switching device. If so, obtain the hardware identification information corresponding to the terminal device, and report the hardware identification information corresponding to the terminal device to the basic input and output system or baseboard management controller in the computer for analysis; if not, obtain the hardware identification information corresponding to the terminal device, and send the hardware identification information corresponding to the terminal device to the user end.

6. The method for locating a computer hardware device fault according to claim 1, characterized in that: After determining the switching device and device attribute information corresponding to the terminal device having a fault in the computer, the method further includes: Acquire first silk-screen identification information of the terminal device that has failed in the computer; wherein the first silk-screen identification information is the physical location number of the terminal device that has failed in the computer; Obtaining second silk-screen identification information of the switching device corresponding to the terminal device that has failed in the computer; wherein the second silk-screen identification information is the physical location number of the switching device corresponding to the terminal device that has failed in the computer; The first silk-screen identification information and the second silk-screen identification information are sent to a user terminal.

7. The method for locating a computer hardware device fault according to claim 1, characterized in that: The method further comprises: performing analysis based on the relationship analysis result and the hardware identification information corresponding to the terminal device to determine the switching device and device attribute information corresponding to the terminal device having a fault in the computer, including: Using the hardware identification information corresponding to the terminal device as an index, a matching analysis is performed on the relationship resolution result to find out the terminal device that has failed in the computer and its corresponding switching device that match the hardware identification information corresponding to the terminal device, as well as the device attribute information between the terminal device that has failed in the computer and its corresponding switching device; the device attribute information includes the connection port information between the terminal device that has failed in the computer and its corresponding switching device.

8. The method for locating a computer hardware device fault according to claim 1, characterized in that: The sending of the terminal device having a fault in the computer, the switching device corresponding to the terminal device having a fault in the computer, and the device attribute information to the user terminal specifically includes: Based on the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information, corresponding interface display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information is generated, and the interface display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information is sent to the user end for display; wherein the interface display information is a graphical structure display information, a radial structure display information, or a three-dimensional assembly drawing structure display information including the correspondence between the terminal device that fails in the computer, the switching device corresponding to the terminal device that fails in the computer, and the device attribute information.

9. The method for locating a computer hardware device fault according to claim 2, wherein: After the data structure of the association information between the terminal device and the switching device is written into the computer storage module, the method further includes: Based on a preset cycle, the actual corresponding relationship between each terminal device and each switching device and device attribute information in the computer is detected; wherein the actual corresponding relationship is a dynamically changing corresponding relationship; In the case where the actual correspondence is different from the current correspondence contained in the data structure of the association information between the terminal device and the switching device, the current correspondence contained in the data structure of the association information between the terminal device and the switching device is updated based on the actual correspondence to obtain a new data structure of the association information between the terminal device and the switching device, and the new data structure of the association information between the terminal device and the switching device is again written into the computer storage module.

10. The method for locating a computer hardware device fault according to claim 8, characterized in that: After sending the interface display information including the corresponding relationship between the terminal device having a fault in the computer, the switching device corresponding to the terminal device having a fault in the computer, and the device attribute information to the user terminal for display, the method further includes: Based on a preset cycle, the actual corresponding relationship between each terminal device and each switching device and device attribute information in the computer is detected; wherein the actual corresponding relationship is a dynamically changing corresponding relationship; When the actual correspondence is different from the correspondence included in the interface display information, the correspondence included in the interface display information is updated based on the actual correspondence to obtain new interface display information, and the new interface display information is sent to the user end for display again.

11. The method for locating a computer hardware device fault according to claim 2, characterized in that: The determining of the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device based on the device attribute information of each terminal device in the computer and the device attribute information of each switching device, the static correspondence between each terminal device and each switching device in the computer, and the presence information of each terminal device and each switching device in the computer specifically includes: Based on the basic input-output system in the computer, the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the on-site status information of each terminal device and each switching device in the computer are analyzed to determine the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device, and the current correspondence is sent to the baseboard management controller through the basic input-output system; or, based on the baseboard management controller in the computer, the device attribute information of each terminal device and the device attribute information of each switching device in the computer, the static correspondence between each terminal device and each switching device in the computer, and the on-site status information of each terminal device and each switching device in the computer are analyzed to determine the current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device.

12. A computer hardware device fault location processing device, characterized in that: include: A hardware identification information obtaining unit, used to obtain hardware identification information corresponding to the terminal device when a failure of the terminal device connected to the computer mainboard via the switching device is detected; A data parsing unit, used to read a pre-written data structure of the association information between the terminal device and the switching device from a computer storage module, and perform data parsing on the data structure of the association information between the terminal device and the switching device to obtain a relationship parsing result; wherein the relationship parsing result includes a current correspondence between the hardware identification information of each terminal device in the computer and the hardware identification information and device attribute information of each switching device; A fault information display unit is used to analyze based on the relationship analysis result and the hardware identification information corresponding to the terminal device, determine the switching device and device attribute information corresponding to the terminal device that has failed in the computer, and send the terminal device that has failed in the computer, the switching device and device attribute information corresponding to the terminal device that has failed in the computer to the user end.

13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for locating a hardware device fault of a computer according to any one of claims 1 to 11 is implemented.

14. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for locating a hardware device fault of a computer as claimed in any one of claims 1 to 11 is implemented.

15. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method for locating a hardware device fault of a computer as claimed in any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Equipment numbering method and device and computer readable storage medium

    CN111625285A

  • Method and device for identifying faults of expansion bus equipment of high-speed serial computer

    CN115964218A

  • External equipment processing method and device, electronic equipment and readable storage medium

    CN116302134A