Fault information query method and device, baseboard management controller, system and medium

By setting up an information list at the server slot location and pasting identification marks to record the logical position and fault information of the hardware device, the problem that the logical position information of the hardware device in the prior art is difficult to reflect the physical position, and the efficiency of operation and maintenance personnel in troubleshooting is improved.

CN119597812APending Publication Date: 2025-03-11INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411748842.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-30
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

In the prior art, the logical position information of the hardware device is difficult to reflect its actual physical location, resulting in low efficiency of operation and maintenance personnel in troubleshooting.

Method used

By setting up an information list at the slot location of the server and pasting identification marks at the slot location of the hardware device, recording the logical location and fault information of the hardware device, it is convenient for operation and maintenance personnel to query and troubleshoot.

Benefits of technology

It improves the convenience and efficiency of operation and maintenance personnel when troubleshooting hardware equipment failures, and can directly view the slot location, logical location and fault information of the hardware equipment from the information list.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119597812A_ABST
    Figure CN119597812A_ABST
Patent Text Reader

Abstract

The invention provides a fault information query method and device, a baseboard management controller, a system and a medium, and relates to the field of servers, the method is applied to the baseboard management controller, and the method comprises the following steps: determining slot positions in a server, and generating an information list for the slot positions; wherein the slot position of the server is pasted with a corresponding identification mark; obtaining a logic position of the hardware equipment accessed to the slot position, establishing a corresponding relation between the slot position and the logic position, and storing the corresponding relation to an information list of the slot position; fault information of the hardware equipment is obtained, a corresponding information list is inquired according to logic position information contained in the fault information, and the fault information is stored in the corresponding information list; when a query request for the information list sent by query equipment is received, sending the information list to the query equipment; wherein the query device generates a query request by scanning the identification identifier; and the convenience of troubleshooting hardware equipment faults by operation and maintenance personnel can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of servers, and in particular to a fault information query method, device, baseboard management controller, system and medium. Background Art

[0002] With the development of server technology, the types of hardware devices installed in current servers are increasing, the speed of each hardware device is getting higher and higher, and the functions are becoming more complex. It is inevitable that some hardware devices will have various faults during the boot process or operation. In the related art, when a hardware device fails, the basic input and output system of the server usually returns the fault information and logical location information of the hardware device to the baseboard management controller. However, the logical location information is difficult to reflect the actual physical location of the hardware device, which is not conducive to the operation and maintenance personnel to troubleshoot the fault of the hardware device. Summary of the invention

[0003] The purpose of the present invention is to provide a fault information query method, device, baseboard management controller, system and medium, which can set a corresponding information list for a slot position, and can record the logical position fault information corresponding to the hardware device connected to the slot position in the information list, and can paste an identification mark for accessing the information list at the slot position of the server, so as to facilitate users to troubleshoot hardware device faults.

[0004] In order to solve the above technical problems, the present invention provides a fault information query method, which is applied to a baseboard management controller, and the method comprises:

[0005] Determine the slot position in the server and generate an information list for the slot position; wherein a corresponding identification mark is affixed to the slot position of the server;

[0006] Acquire the logical position of the hardware device connected to the slot position, establish a correspondence between the slot position and the logical position, and save the correspondence to the information list of the slot position;

[0007] Acquire the fault information of the hardware device, query the corresponding information list according to the logical location information contained in the fault information, and save the fault information to the corresponding information list;

[0008] When receiving a query request for the information list sent by a query device, the information list is sent to the query device; wherein the query device generates the query request by scanning the identification mark.

[0009] Optionally, obtaining the logical position of the hardware device connected to the slot position includes:

[0010] The hardware devices connected to the slot positions are enumerated, and the logical positions are read from the configuration space of the hardware devices.

[0011] Optionally, it also includes:

[0012] Determine whether the server is restarted;

[0013] When it is determined that the server is restarted, waiting for a basic input and output system of the server to perform a logic position setting operation on a hardware device connected to the slot position;

[0014] When it is determined that the basic input and output system completes the logic position setting operation, enumerate the hardware devices and read the logic position to be compared from the configuration space of the hardware devices;

[0015] Obtaining an information list corresponding to the slot position where the hardware device is located, and determining whether the logical position to be compared is the same as the logical position recorded in the information list;

[0016] If they are the same, the step of obtaining the information list corresponding to the slot position of the hardware device and determining whether the logical position to be compared is the same as the logical position recorded in the information list is performed for the next hardware device;

[0017] If they are not the same, the logical position in the information list is updated using the logical position to be compared.

[0018] Optionally, it also includes:

[0019] generating a network link for the information list;

[0020] The network link is converted into the identification mark, so that the query device generates a query request for accessing the network link by identifying the identification mark.

[0021] Optionally, converting the network link into the identification mark includes:

[0022] The network link is converted into a QR code, and the QR code is used as the identification mark.

[0023] Optionally, generating an information list for the slot position includes:

[0024] Determine whether the hardware device is inserted into the slot position;

[0025] If inserted, the information list is generated for the slot position.

[0026] Optionally, it also includes:

[0027] Determine whether the hardware device in the slot position is replaced;

[0028] When it is determined that the hardware device in the slot position has been replaced, the device replacement information is recorded in the information list corresponding to the slot position.

[0029] The present invention also provides a fault information query device, which is applied to a baseboard management controller, and the device comprises:

[0030] A list generation module, used to determine the slot position in the server and generate an information list for the slot position; wherein the slot position of the server is affixed with a corresponding identification mark;

[0031] A corresponding relationship saving module, used for obtaining the logical position of the hardware device connected to the slot position, establishing a corresponding relationship between the slot position and the logical position, and saving the corresponding relationship to the information list of the slot position;

[0032] A recording module, used to obtain the fault information of the hardware device, query the corresponding information list according to the logical location information contained in the fault information, and save the fault information to the corresponding information list;

[0033] The query response module is used to send the information list to the query device when receiving a query request for the information list sent by the query device; wherein the query device generates the query request by scanning the identification mark.

[0034] The present invention also provides a baseboard management controller, comprising:

[0035] Memory for storing computer programs;

[0036] A processor is used to implement the fault information query method as described above when executing the computer program.

[0037] The present invention also provides a fault information query system, comprising:

[0038] A baseboard management controller, used to execute the fault information query method as described above;

[0039] The query device is used to scan the identification mark pasted at the slot position of the server, generate a query request for the information list; send the query request to the baseboard management controller, and receive the information list corresponding to the slot position returned by the baseboard management controller.

[0040] The present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the fault information query method as described above is implemented.

[0041] The present invention provides a fault information query method, which is applied to a baseboard management controller. The method comprises: determining a slot position in a server, and generating an information list for the slot position; wherein a corresponding identification mark is pasted at the slot position of the server; obtaining a logical position of a hardware device connected to the slot position, establishing a corresponding relationship between the slot position and the logical position, and saving the corresponding relationship to an information list of the slot position; obtaining fault information of the hardware device, querying a corresponding information list according to the logical position information contained in the fault information, and saving the fault information to the corresponding information list; when receiving a query request for the information list sent by a query device, sending the information list to the query device; wherein the query device generates the query request by scanning the identification mark.

[0042] It can be seen that in the present invention, the baseboard management controller can first determine the slot position in the server, and can generate an information list for the slot position; wherein, a corresponding identification mark is pasted at the slot position of the server, and the operation and maintenance personnel can use the query device to scan the identification mark, and then access the information list. Subsequently, the baseboard management controller can obtain the logical position of the hardware device connected to the slot position, establish a corresponding relationship between the slot position and the logical position, and save the corresponding relationship to the information list of the slot position, that is, the logical position information of the hardware device is corresponded to the slot position. Subsequently, the baseboard management controller can also obtain the fault information of the hardware device, query the corresponding information list according to the logical position information contained in the fault information, and save the fault information to the corresponding information list. Furthermore, when a query request for the information list sent by the query device is received, the information list is sent to the query device, so that the operation and maintenance personnel can directly view the slot position, logical position and fault information of the hardware device from the information list, thereby improving the convenience of the operation and maintenance personnel in troubleshooting the hardware device fault. The present invention also provides a fault information query device, a baseboard management controller, a fault information query system and a computer-readable storage medium, which have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0044] Figure 1 A flowchart of a fault information query method provided by an embodiment of the present invention;

[0045] Figure 2 A schematic diagram of a two-dimensional code generation process provided by an embodiment of the present invention;

[0046] Figure 3 A flow chart of a device fault information query provided by an embodiment of the present invention;

[0047] Figure 4 A structural block diagram of a fault information query device provided by an embodiment of the present invention;

[0048] Figure 5 A structural block diagram of a baseboard management controller provided by an embodiment of the present invention;

[0049] Figure 6 This is a structural block diagram of a fault information query system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments 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.

[0051] With the development of server technology, there are more and more types of hardware devices installed in current servers, the speed of each hardware device is getting higher and higher, and the functions are more complex. It is inevitable that some hardware devices will have various faults during the boot process or operation. In the related art, when a hardware device fails, the basic input and output system of the server usually returns the fault information and logical location information of the hardware device to the baseboard management controller. For example, for PCIe devices (Peripheral Component Interconnect express, a high-speed serial computer expansion bus standard), the basic input and output system generally returns the fault information and BDF number (Bus, Device, Function) of the PCIe device to the baseboard management controller. However, the logical location information is difficult to reflect the actual physical location of the hardware device, which is not conducive to the operation and maintenance personnel to troubleshoot the fault of the hardware device. Moreover, it is difficult for the operation and maintenance personnel to compare the hardware device positions one by one in the server according to the preset hardware design topology diagram, and it is also difficult to achieve a high troubleshooting efficiency.

[0052] In view of this, in order to solve the technical problem of how to improve the convenience for operation and maintenance personnel to troubleshoot hardware faults, the present invention can provide a fault information query method, which can set a corresponding information list for the slot position, and can record the logical position fault information corresponding to the hardware device connected to the slot position in the information list, and can paste an identification mark for accessing the information list at the slot position of the server, so as to facilitate users to troubleshoot hardware device faults.

[0053] For easier understanding, please refer to Figure 1 , Figure 1 A flowchart of a fault information query method provided by an embodiment of the present invention, the method is applied to a baseboard management controller and may include:

[0054] S101. Determine a slot position in a server and generate an information list for the slot position; wherein a corresponding identification mark is pasted at the slot position of the server.

[0055] In this embodiment, the baseboard management controller can first set an information list for each slot position in the server, so as to use the information list to save the relevant information corresponding to the hardware device inserted into the slot position. In addition, corresponding identification tags can be pasted on each slot position of the server for accessing the above information list. The identification tag can be identified by scanning. When the operation and maintenance personnel use the query device to scan the identification tag, the query device can parse the identification tag, generate a query request to access the information list, and send the query request to the baseboard management controller to access the above information list.

[0056] It should be noted that this embodiment does not limit the method of generating the identification mark, nor does it limit the subject that generates the identification mark, as long as it can ensure that the query device can access the information list of the corresponding slot position when scanning and parsing the identification mark. For example, the baseboard management controller can generate a network link (such as URL, Uniform Resource Locator) for the information list and convert the network link into an identification mark. In this way, when the query device scans the identification mark, it can automatically generate a query request to access the network link, thereby accessing the information list based on the query request.

[0057] Based on this, the method may further include:

[0058] Step 11: Generate a network link for the information list;

[0059] Step 12: Convert the network link into the identification mark, so that the query device generates a query request for accessing the network link by identifying the identification mark.

[0060] It should also be noted that this embodiment does not limit the specific type of the identification mark, and it can be a QR code, barcode, etc. Since the QR code has a small area and is easy to paste, the network link can be converted into a QR code and the QR code is used as the above identification mark.

[0061] Based on this, converting the network link into the identification mark may include:

[0062] Step 21: Convert the network link into a QR code, and use the QR code as the identification mark.

[0063] Furthermore, since the information list is mainly used to store relevant information corresponding to the hardware device connected to the slot position, before generating the information list, it can be determined whether the slot position is connected to the hardware device, and only generate the information list for the slot position that has been connected to the hardware device, thereby saving resources.

[0064] Based on this, generating an information list for the slot position may include:

[0065] Step 31: Determine whether the hardware device is inserted into the slot; if yes, proceed to step 32; if no, proceed to step 33.

[0066] Step 32: Generate the information list for the slot position.

[0067] Step 33: Do not generate the information list for the slot position.

[0068] S102: Acquire the logical position of the hardware device connected to the slot position, establish a corresponding relationship between the slot position and the logical position, and save the corresponding relationship to the information list of the slot position.

[0069] In this step, the baseboard management controller can obtain the logical information corresponding to the hardware device connected to the slot position, establish a corresponding relationship between the slot position and the logical position, and save the corresponding relationship to the information list of the slot position. For example, the baseboard management controller can obtain the BDF number corresponding to the PCIe device connected to the slot position, establish a corresponding relationship between the slot position and the BDF number, and save the corresponding relationship to the information list corresponding to the slot position.

[0070] It should be noted that this embodiment does not limit how to obtain the logical position of the hardware device, and reference is made to the relevant technology of the server. For example, for a PCIe hardware device, the hardware device may be enumerated and the logical position may be read from the configuration space of the hardware device.

[0071] Based on this, obtaining the logical position of the hardware device connected to the slot position may include:

[0072] Step 41: Enumerate the hardware devices connected to the slot position, and read the logical position from the configuration space of the hardware device.

[0073] S103: Acquire fault information of the hardware device, query a corresponding information list according to logical location information included in the fault information, and save the fault information to the corresponding information list.

[0074] As described above, since the information list stores the correspondence between the slot position and the logical position of the hardware device, when receiving the fault information of the hardware device, the baseboard management controller can query the information list of the corresponding slot position according to the logical position information in the fault information, and save the fault information in the information list. The operation and maintenance personnel only need to scan the identification mark in the server motherboard to quickly view the fault information of the corresponding hardware device, which improves the efficiency of the operation and maintenance personnel in troubleshooting hardware device faults.

[0075] Of course, in addition to saving the fault information of the hardware device, the hardware device replacement information of the slot position can also be recorded in the information list corresponding to the slot position. For example, when the operation and maintenance personnel replace the hardware device, they can verify whether the hardware device is replaced correctly by querying the information in the corresponding information list. This can prevent the operation and maintenance personnel from replacing the wrong device, thereby effectively ensuring the reliability of server operation and maintenance.

[0076] Based on this, the method may further include:

[0077] Step 51: Determine whether the hardware device in the slot position is replaced;

[0078] Step 52: When it is determined that the hardware device in the slot position has been replaced, the device replacement information is recorded in the information list corresponding to the slot position.

[0079] S104: When receiving a query request for the information list sent by a query device, send the information list to the query device; wherein the query device generates the query request by scanning the identification mark.

[0080] As described above, the identification tags attached to the slots of the server can be scanned and identified by the query device and generate a query request for accessing the corresponding information list. Therefore, when the baseboard management controller receives the query request, it can send the corresponding information list to the corresponding query device for the operation and maintenance personnel to view.

[0081] It should be noted that this embodiment does not limit the manner in which the baseboard management controller and the query device communicate with each other, for example, they may communicate via a network, or they may communicate via Bluetooth, etc. Since the baseboard management controller generally provides a BMC Web function, that is, the baseboard management controller can be accessed via a network, for the convenience of implementation, the query device can communicate with the baseboard management controller via a network.

[0082] Furthermore, this embodiment does not limit the type of query device, which may be a mobile device (such as a mobile phone, a tablet computer, etc.), a personal computer with a camera, a dedicated device, etc., and may be set according to actual application requirements.

[0083] Based on the above embodiments, in the present invention, the baseboard management controller can first determine the slot position in the server, and can generate an information list for the slot position; wherein, a corresponding identification mark is pasted at the slot position of the server, and the operation and maintenance personnel can use the query device to scan the identification mark, and then access the information list. Subsequently, the baseboard management controller can obtain the logical position of the hardware device connected to the slot position, establish a corresponding relationship between the slot position and the logical position, and save the corresponding relationship to the information list of the slot position, that is, the logical position information of the hardware device is corresponded to the slot position. Subsequently, the baseboard management controller can also obtain the fault information of the hardware device, query the corresponding information list according to the logical position information contained in the fault information, and save the fault information to the corresponding information list. Furthermore, when a query request for the information list sent by the query device is received, the information list is sent to the query device, so that the operation and maintenance personnel can directly view the slot position, logical position and fault information of the hardware device from the information list, thereby improving the convenience of the operation and maintenance personnel in troubleshooting hardware device faults.

[0084] Based on the above embodiment, since the logical position of the hardware device is set by the basic input and output system of the server, if the hardware device is changed, if the server is restarted, the basic input and output system may change the logical position of the existing hardware device, causing the correspondence between the slot position and the logical position recorded in the information list to become invalid. Therefore, this embodiment can also add a logical position update function to the baseboard management controller, which can update the logical position in each information list when the server restart is detected. Based on this, the method can also include:

[0085] S201, determine whether the server is restarted; if it is determined that the server is restarted, proceed to step S202; if it is not determined that the server is restarted, proceed to step S201.

[0086] S202: When it is determined that the server is restarted, wait for a basic input / output system of the server to perform a logic position setting operation on a hardware device connected to the slot position.

[0087] S203: When it is determined that the basic input / output system completes the logic position setting operation, enumerate the hardware devices and read the logic positions to be compared from the configuration space of the hardware devices.

[0088] S204: Obtain an information list corresponding to the slot position where the hardware device is located, and determine whether the logical position to be compared is the same as the logical position recorded in the information list.

[0089] S205, if they are the same, executing the step of obtaining the information list corresponding to the slot position of the hardware device for the next hardware device, and determining whether the logical position to be compared is the same as the logical position recorded in the information list;

[0090] S206: If they are not the same, the logical position in the information list is updated using the logical position to be compared.

[0091] In steps S202 to S206, after the basic input and output system re-creates the logical position information of the hardware devices in each slot position, the baseboard management controller needs to re-enumerate the hardware devices and use the logical position read from the configuration space of the hardware device as the logical position to be compared. Subsequently, the baseboard management controller needs to obtain the information list of the slot position where the hardware device is located, and determine whether the logical position recorded in the information list is the same as the logical position to be compared. If they are the same, the logical position of the next hardware device can be compared. If they are not the same, it means that the logical position in the information list has expired. At this time, the logical position in the information list needs to be updated using the logical position to be compared to ensure that the information in the information list is correct. In this way, the present embodiment can dynamically record the correspondence between the slot position and the logical position, thereby effectively ensuring the reliability of hardware device operation and maintenance.

[0092] Based on the above embodiment, the above fault information query method is introduced below based on a specific example. The present invention provides a method for locating a PCIe fault position through a QR code, which may include:

[0093] 1. Establish PCIe device location mapping: obtain the physical location and logical location (such as BDF number) of the PCIe device, and establish the mapping relationship between the physical location and the logical location according to the hardware design topology diagram, marked as mapping table 1;

[0094] 2. BMC enumerates PCIe devices: BMC enumerates all PCIe devices and obtains the BDF number of each device;

[0095] 3. BMC mapping table PCIe device is URL: BMC maps the enumerated PCIe device BDF number to a separate URL to generate mapping table 2;

[0096] 4. BMC establishes a PCIe fault handling mechanism: BMC presets a PCIe fault handling mechanism. Specifically, when a PCIe device fails, BMC parses the PCIe device BDF in the fault information, matches the faulty device BDF with the mapping table established above, and fills the processed fault information into the corresponding URL;

[0097] 5. Generate QR code label: Use the QR code generation tool to convert the URL generated by BMC for each PCIe device into a QR code. The QR code generation algorithm is relatively simple;

[0098] 6. Paste the QR code label on the PCIe device: Paste the generated QR code label in a conspicuous position of the PCIe device so that it can be quickly scanned when needed.

[0099] For easier understanding, please refer to Figure 2 , Figure 2 A schematic diagram of a QR code generation process provided by an embodiment of the present invention.

[0100] The present invention also provides a method for querying equipment fault information, specifically:

[0101] Scan the QR code label to obtain the device fault status: When a PCIe device fails, use a QR code scanning device (such as a smartphone, tablet computer, etc.) to scan the QR code label on the PCIe device to obtain the PCIe device fault status information and confirm the location of the faulty device.

[0102] For easier understanding, please refer to Figure 3 , Figure 3 A flowchart of device fault information query provided by an embodiment of the present invention.

[0103] In summary, the present invention completes the correspondence between the physical location and the logical location of the PCIe device by presetting the QR code. The fault status of each PCIe device is updated one by one through the PCIe fault handling mechanism preset by the BMC, and the accurate positioning of the PCIe device status is achieved by generating the QR code through the URL.

[0104] The fault information query device, baseboard management controller, fault information query system, computer program product, and computer-readable storage medium provided in the embodiments of the present invention are introduced below. The fault information query device, baseboard management controller, fault information query system, computer program product, and computer-readable storage medium described below can be referenced to each other with the fault information query method described above.

[0105] Please refer to Figure 4 , Figure 4 This is a structural block diagram of a fault information query device provided by an embodiment of the present invention. The device is applied to a baseboard management controller and may include:

[0106] A list generation module 401 is used to determine the slot position in the server and generate an information list for the slot position; wherein the slot position of the server is pasted with a corresponding identification mark;

[0107] A corresponding relationship saving module 402, used for obtaining the logical position of the hardware device connected to the slot position, establishing a corresponding relationship between the slot position and the logical position, and saving the corresponding relationship to the information list of the slot position;

[0108] The recording module 403 is used to obtain the fault information of the hardware device, query the corresponding information list according to the logical location information contained in the fault information, and save the fault information to the corresponding information list;

[0109] The query response module 404 is used to send the information list to the query device when receiving a query request for the information list sent by the query device; wherein the query device generates the query request by scanning the identification mark.

[0110] Optionally, the corresponding relationship saving module 402 may include:

[0111] The logical position reading submodule is used to enumerate the hardware devices connected to the slot position and read the logical position from the configuration space of the hardware device.

[0112] Optionally, the device may further include:

[0113] A restart determination module, used to determine whether the server is restarted;

[0114] A waiting module, used for waiting for a basic input and output system of the server to perform a logic position setting operation on a hardware device connected to the slot position when it is determined that the server is restarted;

[0115] An enumeration module, configured to enumerate the hardware devices and read the to-be-compared logical positions from the configuration space of the hardware devices when it is determined that the basic input / output system completes the logical position setting operation;

[0116] A comparison module, used to obtain an information list corresponding to the slot position where the hardware device is located, and determine whether the logical position to be compared is the same as the logical position recorded in the information list;

[0117] A loop control module, for executing the step of obtaining the information list corresponding to the slot position of the hardware device for the next hardware device if the two are the same, and determining whether the logical position to be compared is the same as the logical position recorded in the information list;

[0118] An updating module is used to update the logical position in the information list using the logical position to be compared if they are not the same.

[0119] Optionally, the device may further include:

[0120] A link generation module, used for generating a network link for the information list;

[0121] The identification generating module is used to convert the network link into the identification so that the query device generates a query request for accessing the network link by identifying the identification.

[0122] Optionally, the identification generation module may be used to:

[0123] The network link is converted into a QR code, and the QR code is used as the identification mark.

[0124] Optionally, the list generating module 401 may include:

[0125] The judging submodule is used to judge whether the slot position has the hardware device inserted therein; if so, to generate the information list for the slot position.

[0126] Optionally, the device may further include:

[0127] The device replacement detection module is used to determine whether the hardware device in the slot position has been replaced; when it is determined that the hardware device in the slot position has been replaced, the device replacement information is recorded in the information list corresponding to the slot position.

[0128] Please refer to Figure 5 , Figure 5 This is a structural block diagram of a baseboard management controller provided in an embodiment of the present invention. The embodiment of the present invention provides a baseboard management controller 10, including a processor 11 and a memory 12; wherein the memory 12 is used to store a computer program; the processor 11 is used to execute the fault information query method provided in the aforementioned embodiment when executing the computer program.

[0129] For the specific process of the above-mentioned fault information query method, reference may be made to the corresponding contents provided in the aforementioned embodiments, which will not be repeated here.

[0130] Furthermore, the memory 12 as a carrier for storing resources may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the storage method may be temporary storage or permanent storage.

[0131] In addition, the baseboard management controller 10 also includes a power supply 13, a communication interface 14, an input / output interface 15 and a communication bus 16; wherein the power supply 13 is used to provide working voltage for each hardware device on the baseboard management controller 10; the communication interface 14 can create a data transmission channel between the baseboard management controller 10 and external devices, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present invention, and is not specifically limited here; the input / output interface 15 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0132] Please refer to Figure 6 , Figure 6 A structural block diagram of a fault information query system provided by an embodiment of the present invention, the system may include:

[0133] The baseboard management controller 10 is used to execute the fault information query method as described above;

[0134] At least one query device 20 communicates with the baseboard management controller 10 through the network, and is used to scan the identification mark pasted at the slot position of the server, generate a query request for the information list; send the query request to the baseboard management controller 10, and receive the information list corresponding to the slot position returned by the baseboard management controller 10.

[0135] Since the embodiments of the fault information query system part correspond to the embodiments of the fault information query method part, the embodiments of the fault information query system part refer to the description of the embodiments of the fault information query method part, which will not be repeated here.

[0136] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, and when the computer program / instruction is executed by a processor, the fault information query method described in the above embodiment is implemented.

[0137] Since the embodiments of the computer program product part correspond to the embodiments of the fault information query method part, please refer to the description of the embodiments of the fault information query method part for the embodiments of the computer program product part, and will not be repeated here.

[0138] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the fault information query method described in the above embodiment is implemented.

[0139] Since the embodiments of the computer-readable storage medium part correspond to the embodiments of the fault information query method part, please refer to the description of the embodiments of the fault information query method part for the embodiments of the storage medium part, which will not be repeated here.

[0140] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

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

[0142] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0143] The fault information query method, device, baseboard management controller, system and medium provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified in a number of ways, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A fault information query method, characterized in that: Applied to a baseboard management controller, the method comprises: Determine the slot position in the server and generate an information list for the slot position; wherein a corresponding identification mark is affixed to the slot position of the server; Acquire the logical position of the hardware device connected to the slot position, establish a correspondence between the slot position and the logical position, and save the correspondence to the information list of the slot position; Acquire the fault information of the hardware device, query the corresponding information list according to the logical location information contained in the fault information, and save the fault information to the corresponding information list; When receiving a query request for the information list sent by a query device, the information list is sent to the query device; wherein the query device generates the query request by scanning the identification mark.

2. The fault information query method according to claim 1, characterized in that: The obtaining of the logical position of the hardware device connected to the slot position includes: The hardware devices connected to the slot positions are enumerated, and the logical positions are read from the configuration space of the hardware devices.

3. The fault information query method according to claim 2, characterized in that: Also includes: Determine whether the server is restarted; When it is determined that the server is restarted, waiting for a basic input and output system of the server to perform a logic position setting operation on a hardware device connected to the slot position; When it is determined that the basic input and output system completes the logic position setting operation, enumerate the hardware devices and read the logic position to be compared from the configuration space of the hardware devices; Obtaining an information list corresponding to the slot position where the hardware device is located, and determining whether the logical position to be compared is the same as the logical position recorded in the information list; If they are the same, the step of obtaining the information list corresponding to the slot position of the hardware device and determining whether the logical position to be compared is the same as the logical position recorded in the information list is performed for the next hardware device; If they are not the same, the logical position in the information list is updated using the logical position to be compared.

4. The fault information query method according to claim 1, characterized in that: Also includes: generating a network link for the information list; The network link is converted into the identification mark, so that the query device generates a query request for accessing the network link by identifying the identification mark.

5. The fault information query method according to claim 4, characterized in that: The converting the network link into the identification mark comprises: The network link is converted into a QR code, and the QR code is used as the identification mark.

6. The fault information query method according to claim 1, characterized in that: The generating of the information list for the slot position comprises: Determine whether the hardware device is inserted into the slot position; If inserted, the information list is generated for the slot position.

7. A fault information query device, characterized in that: Applied to a baseboard management controller, the device comprises: A list generation module, used to determine the slot position in the server and generate an information list for the slot position; wherein the slot position of the server is affixed with a corresponding identification mark; A corresponding relationship saving module, used for obtaining the logical position of the hardware device connected to the slot position, establishing a corresponding relationship between the slot position and the logical position, and saving the corresponding relationship to the information list of the slot position; A recording module, used to obtain the fault information of the hardware device, query the corresponding information list according to the logical location information contained in the fault information, and save the fault information to the corresponding information list; The query response module is used to send the information list to the query device when receiving a query request for the information list sent by the query device; wherein the query device generates the query request by scanning the identification mark.

8. A baseboard management controller, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the fault information query method according to any one of claims 1 to 6 when executing the computer program.

9. A fault information query system, characterized in that: include: A baseboard management controller, used to execute the fault information query method according to any one of claims 1 to 6; The query device is used to scan the identification mark pasted at the slot position of the server, generate a query request for the information list; send the query request to the baseboard management controller, and receive the information list corresponding to the slot position returned by the baseboard management controller.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by the processor, the fault information query method according to any one of claims 1 to 6 is implemented.