Equipment fault processing method and device, storage medium and electronic equipment

By transferring the fault information to other physical devices in the same LAN for storage when the BMC fails, the problem of difficulty in fault repair in BMC fault handling is solved, the fault information is quickly obtained and transmitted, the fault repair speed is improved and the equipment cost is reduced. Maintenance difficulty.

CN118869438AActive Publication Date: 2024-10-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411170272.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-23
Publication Date
2024-10-29
Estimated Expiration
2044-08-23

AI Technical Summary

Technical Problem

In the existing technology, the BMC fault handling method lacks the means to obtain logs when serious faults such as unrecoverable hangs occur, which makes fault repair difficult and increases the difficulty of equipment maintenance.

Method used

By adding the baseboard management controller of the current physical device to the designated wireless LAN when it has not joined the wireless LAN, and when a fault occurs, the fault information is obtained and transmitted to other baseboard management controllers through the coprocessor to realize fault information. storage and sharing.

Benefits of technology

When a BMC encounters a serious fault such as an unrecoverable hang, the fault information can be quickly obtained without complicated acquisition means, reducing the difficulty of fault repair, increasing the speed of fault repair, and reducing the difficulty of equipment maintenance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869438A_ABST
    Figure CN118869438A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an equipment fault processing method and device, a storage medium and electronic equipment, and the method comprises the steps: adding a current substrate management controller into a specified wireless local area network under the condition that the current substrate management controller of current physical equipment is not added into the wireless local area network, the specified wireless local area network is a wireless local area network obtained by networking by taking a substrate management controller of a group of physical equipment as a node; under the condition that the current substrate management controller breaks down, target fault information corresponding to the fault of the current substrate management controller is obtained through the coprocessor, and the target fault information is used for representing the fault of the current substrate management controller; and sending the target fault information to other substrate management controllers except the current substrate management controller in the specified wireless local area network, so that physical equipment to which the other substrate management controllers belong stores the target fault information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and more specifically, to a method and apparatus for handling device failures, a storage medium, and an electronic device. Background Art

[0002] BMC (Baseboard Management Controller) is a dedicated controller used to monitor and manage physical devices (such as servers, network switches, etc.), providing a way to manage and maintain device hardware at the system level. Once the BMC hangs abnormally, the physical device cannot be monitored and even the business is affected.

[0003] In the related technology, a remote access and control function can be configured on a physical device. Through this function, the console of the physical device can be accessed to observe the startup process or system logs, and abnormal information before the BMC hangs can be found, so as to find the cause of the abnormality in time after the BMC abnormality occurs.

[0004] However, the above-mentioned equipment fault handling method is difficult to repair when the BMC has serious faults such as unrecoverable hang or insufficient means to obtain logs on site, which increases the difficulty of equipment maintenance. It can be seen that the server fault handling method in the related art has the problem of difficulty in fault repair. Summary of the invention

[0005] The present application provides a device fault handling method and apparatus, a storage medium and an electronic device to at least solve the problem that the server fault handling method in the related art is difficult to repair the fault.

[0006] According to one aspect of an embodiment of the present application, a device fault handling method is provided, comprising: in a case where a current baseboard management controller of a current physical device has not joined a wireless local area network, adding the current baseboard management controller to a designated wireless local area network through a coprocessor of the current baseboard management controller, wherein the designated wireless local area network is a wireless local area network obtained by networking a group of baseboard management controllers of physical devices as nodes; in a case where a fault occurs in the current baseboard management controller, obtaining target fault information corresponding to the fault occurring in the current baseboard management controller through the coprocessor of the current baseboard management controller, wherein the target fault information is used to indicate the fault occurring in the current baseboard management controller; and sending the target fault information to other baseboard management controllers in the designated wireless local area network except the current baseboard management controller, so that the physical devices to which the other baseboard management controllers belong store the target fault information.

[0007] According to another aspect of an embodiment of the present application, a device fault handling apparatus is also provided, comprising: a joining unit, for, when a current baseboard management controller of a current physical device has not joined the wireless local area network, joining the current baseboard management controller to a designated wireless local area network through a coprocessor of the current baseboard management controller, wherein the designated wireless local area network is a wireless local area network obtained by networking a group of baseboard management controllers of physical devices as nodes; an acquiring unit, for, when a fault occurs in the current baseboard management controller, acquiring target fault information corresponding to the fault occurring in the current baseboard management controller through the coprocessor of the current baseboard management controller, wherein the target fault information is used to indicate the fault occurring in the current baseboard management controller; a first sending unit, for sending the target fault information to other baseboard management controllers in the designated wireless local area network except the current baseboard management controller, so that the physical devices to which the other baseboard management controllers belong store the target fault information.

[0008] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the method steps in any of the above examples are implemented.

[0009] According to another aspect of an embodiment of the present application, an electronic device is also provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method steps in any of the above examples when executing the computer program.

[0010] In an embodiment of the present application, a method is adopted in which fault information is transmitted to other physical devices for storage through a local area network when a BMC is abnormal. When the current baseboard management controller of the current physical device has not joined the wireless local area network, the current baseboard management controller is added to a specified wireless local area network, wherein the specified wireless local area network is a wireless local area network obtained by networking a group of baseboard management controllers of physical devices as nodes; when a fault occurs in the current baseboard management controller, target fault information corresponding to the fault occurring in the current baseboard management controller is obtained through a coprocessor of the current baseboard management controller, wherein the target fault information is used to indicate the fault occurring in the current baseboard management controller; the target fault information is transmitted to the target baseboard management controller through a coprocessor of the current baseboard management controller. It is sent to other baseboard management controllers except the current baseboard management controller in the specified wireless LAN, so that the target fault information is stored in the physical devices to which the other baseboard management controllers belong. When a BMC fails, the fault information is obtained through the coprocessor, and the obtained fault information is transmitted to the physical devices to which other BMCs belong in the same LAN for storage. Therefore, when the BMC has serious faults such as unrecoverable hang, the fault information of the BMC can be quickly obtained without complicated acquisition means, which can achieve the purpose of reducing the difficulty of fault repair, achieve the technical effect of increasing the speed of fault repair and reducing the difficulty of equipment maintenance, and thus solve the problem of difficulty in fault repair in the server fault handling method in the related technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 is a hardware structure block diagram of an optional server device according to an embodiment of the present application;

[0012] Figure 2 is a flow chart of an optional device failure handling method according to an embodiment of the present application;

[0013] Figure 3 is a flowchart of another optional device failure processing method according to an embodiment of the present application;

[0014] Figure 4 is a schematic diagram of an optional device failure processing method according to an embodiment of the present application;

[0015] Figure 5 is a flowchart of another optional device failure processing method according to an embodiment of the present application;

[0016] Figure 6 is a structural block diagram of an optional device failure processing apparatus according to an embodiment of the present application;

[0017] Figure 7 It is a structural block diagram of a computer system of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0018] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0019] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0020] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 is a hardware structure block diagram of an optional server device according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as an MCU (Microcontroller Unit) or an FPGA (Field-Programmable Gate Array)) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0021] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the device fault handling method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0022] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a NIC (Network Interface Controller), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be an RF (Radio Frequency) module, which is used to communicate with the Internet wirelessly.

[0023] According to one aspect of an embodiment of the present application, a method for handling a device failure is provided. Figure 2 is a flow chart of an optional device failure handling method according to an embodiment of the present application, such as Figure 2 As shown, the process includes the following steps:

[0024] Step S202, when the current baseboard management controller of the current physical device has not joined the wireless local area network, adding the current baseboard management controller to the designated wireless local area network, wherein the designated wireless local area network is a wireless local area network obtained by networking a group of baseboard management controllers of physical devices as nodes;

[0025] Step S204, when the current baseboard management controller fails, obtaining target fault information corresponding to the fault of the current baseboard management controller through the coprocessor of the current baseboard management controller, wherein the target fault information is used to indicate the fault of the current baseboard management controller;

[0026] Step S206: Send the target fault information to other baseboard management controllers except the current baseboard management controller in the designated wireless local area network, so that the physical devices to which the other baseboard management controllers belong store the target fault information.

[0027] The device failure handling method in this embodiment can be applied to the scenario of handling the BMC failure of the physical device. The BMC is a dedicated controller for monitoring and managing the physical device. It has its own processor and memory. The physical device can be a server, a physical switch, etc. In this embodiment, the server is used as an example for explanation. BMC provides a hardware monitoring and management method independent of the operating system, ensuring the stability and reliability of the server. With the continuous upgrading of server equipment and the continuous expansion of the scale of data centers, the role of BMC has become more and more prominent. Once the BMC is abnormally hung (System crashes, system hangs / crashes), the server will be unable to monitor and even affect the business. Therefore, it is an important task of BMC management to promptly find the cause of the abnormality and repair it after the BMC is abnormal.

[0028] In the related art, after the BMC hangs abnormally, the following methods can be used to troubleshoot and repair the abnormality: configure the remote access and control function on the server, access the server console through this function, observe the startup process or system log, and find the abnormal information before the BMC hangs, so as to find the cause of the abnormality in time after the BMC abnormality occurs.

[0029] For example, if the server is configured with the KVM (Keyboard Vide Mouse) over IP (Internet Protocol) function, you can access the server console through KVM over IP, observe the startup process or system log, and look for abnormal information before the BMC hangs.

[0030] In addition, the troubleshooting and repair methods after the BMC abnormal hang may also include: checking the BMC log. If the BMC can log in normally again and can record logs before hanging, these logs may contain important clues to the cause of the fault; troubleshooting hardware faults, according to the server configuration changes before the fault, check the BMC-related hardware connections, such as SPI (Serial Peripheral Interface) flash memory, 12C (Inter-Integrated Circuit) bus, power supply, etc., to ensure that there are no loose or damaged parts; using external debugging tools, for deeper problems, it is necessary to use JTAG (Joint Test Action Group) or SWD (Serial Wire Debug) debugging interfaces, and connect to professional debuggers (such as J-Link) for more detailed hardware status checks and fault location; dump (export) the image in the BMC of the faulty machine, refresh it to a normal machine, check whether the fault phenomenon exists, if so, check whether the corresponding configuration file is abnormal, and speculate the cause of the fault based on the above information.

[0031] However, the above BMC health management method is limited to the scenario where BMC logs or images can be obtained. After obtaining the BMC logs or images, analysis can be performed. If a serious problem occurs on the machine, or the on-site log acquisition method is not sufficient, it will increase the difficulty of server maintenance.

[0032] In order to at least partially solve the above technical problems, in this embodiment, when a BMC fails, fault information is obtained through a coprocessor, and the obtained fault information is transmitted to physical devices to which other BMCs belong in the same local area network for storage. Therefore, when a serious fault such as an unrecoverable hang occurs in the BMC, the fault information of the BMC can be quickly obtained without complex acquisition means, thereby reducing the difficulty of fault repair, improving the speed of fault repair, and reducing the difficulty of equipment maintenance.

[0033] The device failure handling method in this embodiment can be a solution in which multiple BMCs monitor each other's BMC health status, and the multiple BMCs can be BMCs in the same computer room or in an area at the same time. In order to facilitate mutual monitoring of health status, multiple BMCs can form a local area network (LAN) through a radio frequency wireless communication (wireless communication) module in a certain space area. Here, in order to ensure the security and reliability of data transmission, the local area networks that different BMCs are allowed to join can be pre-specified, that is, which BMCs can form a local area network can be pre-specified.

[0034] Optionally, the device fault handling method in this embodiment can be executed by a control component on a physical device, such as a BMC, a main processor of the BMC, a coprocessor of the BMC, or a combination thereof. Here, the main processor and coprocessor of the BMC refer to different processor roles in the BMC system. The main processor is the core of the BMC and is responsible for executing the main control logic and task processing. The coprocessor assists the main processor in its work and is mainly used to process specific tasks or functions to reduce the burden on the main processor. The key to defining the main processor and the coprocessor lies in their responsibilities and functions. The processor roles of different processors can be pre-set as needed, or adjusted according to actual needs.

[0035] For the current physical device, its baseboard management controller is the current baseboard management controller. If the current baseboard management controller has not joined the wireless LAN, the current baseboard management controller can be added to the specified wireless LAN. The current baseboard management controller can join one or more wireless LANs, which can be pre-specified. The specified wireless LAN is one of the wireless LANs that the current baseboard management controller is allowed to join as a node of the wireless LAN. The specified wireless LAN is a wireless LAN obtained by networking a group of physical devices with baseboard management controllers as nodes. Here, the wireless LAN formed refers to a wireless network for information exchange between wireless communication modules.

[0036] A wireless LAN can be established through a wireless communication module, that is, a LAN is established in a certain spatial area through a wireless radio frequency module. The wireless communication module can be selected as needed, and the frequency and model of the wireless communication module can be selected. Considering that the machines are in the same room, relatively concentrated, and the spatial distance is short, a 1.2 GHz wireless communication module can be used. This frequency means that a larger bandwidth and faster data transmission speed can be provided. If the spatial distance is far, a 900 MHz or 443 MHz wireless communication module can be selected.

[0037] Optionally, in this embodiment, in order to handle the impact of the fault on the BMC main processor, the functions related to the wireless communication module can be implemented in the coprocessor. The wireless communication module is connected to the coprocessor, and the wireless communication module and the coprocessor can use SPI (Serial Peripheral Interface), UART (Universal Asynchronous Receiver / Transmitter) and other communication methods. Correspondingly, adding the current baseboard management controller to the specified wireless local area network can be performed by the coprocessor, and the data receiving and sending functions between local areas are controlled by the coprocessor, which can include but are not limited to at least one of the following: forming a local area network, adding a new node, node deregistration, etc.

[0038] Since it takes a while for a serious fault to become unrecoverable, and the manifestation of the fault is different in different time periods, the cause of the unrecoverable fault can be deduced based on the evolution of the fault. The time of occurrence of a serious fault is random (it is usually impossible to determine at which point in time the BMC will be unrecoverably hung). In order to reduce the risk of missing abnormal information, in this embodiment, if the current baseboard management controller fails, the target fault information corresponding to the fault occurring in the current baseboard management controller can be obtained. The target fault information is used to indicate the fault occurring in the current baseboard management controller. It can be a description of the fault or identification information of the fault. The description of the fault can be used to describe the location, event, cause, operating status of related components, etc. of the fault, and the identification information of the fault can be one or more identifications of the fault description information.

[0039] Optionally, the target fault information may correspond to the log information recorded by the current baseboard management controller when the fault occurs, which may be the above-mentioned log information itself, or may be obtained by processing the above-mentioned log information. Considering that only part of the log information recorded by the current baseboard management controller may be related to the fault, the log information may be screened to filter out the available log information. In addition, the fault information may also be determined, for example, by combining the operating status of related components to verify whether a fault has actually occurred (i.e., verifying the authenticity of the fault). Fault information whose authenticity is in doubt may be ignored, or the fault information may be processed in combination with relevant identification information to distinguish it from fault information that has passed the authenticity verification.

[0040] For the above-mentioned target fault information, the target fault information can be sent to other baseboard management controllers in the specified wireless local area network except the current baseboard management controller. The other baseboard management controllers can be all baseboard management controllers except the current baseboard management controller, or can be a specified part of the baseboard management controllers, so as to avoid the same fault information being stored on multiple physical devices and occupying storage resources. Here, if each physical device stores the fault information of all other physical devices in the same local area network, it will occupy too many storage resources.

[0041] For other baseboard management controllers, after receiving the above-mentioned target fault information, the received target fault information can be stored, for example, stored in the storage component of the baseboard management controller, or stored in the storage component of the physical device (located outside the baseboard management controller), and the other baseboard management controllers can store the identification information and fault information of the baseboard management controllers with corresponding relationships. Optionally, the baseboard management controller can inform itself that it is in normal operation through heartbeat information or other methods. Through the above method, the baseboard management controllers can discover irrecoverable faults such as offline from each other, so that such faults can be quickly responded to. If a specified fault is detected in a baseboard management controller (for example, from an online state to an offline state, the transmitted fault information cannot be accurately parsed, etc.), it can package the fault information corresponding to the baseboard management controller, and transmit the packaged fault information to the specified device to prompt that the baseboard management controller has a fault.

[0042] Optionally, the execution order of step S202, step S204 and step S206 may be interchangeable. For example, step S206 may be executed first, and then step S204. As mentioned above, obtaining fault information and transmitting fault information may be continuously executed actions.

[0043] Through the above steps, when the current baseboard management controller of the current physical device has not been added to the wireless local area network, the current baseboard management controller is added to the designated wireless local area network, wherein the designated wireless local area network is a wireless local area network obtained by networking a group of baseboard management controllers of physical devices as nodes; when a fault occurs in the current baseboard management controller, target fault information corresponding to the fault occurring in the current baseboard management controller is obtained through the coprocessor of the current baseboard management controller, wherein the target fault information is used to indicate the fault occurring in the current baseboard management controller; the target fault information is sent to other baseboard management controllers in the designated wireless local area network except the current baseboard management controller, so that the physical devices to which the other baseboard management controllers belong store the target fault information, thereby solving the problem of difficulty in fault repair in the server fault handling method in the related art, improving the fault repair speed, and reducing the difficulty of equipment maintenance.

[0044] In an exemplary embodiment, when a current baseboard management controller fails, obtaining target fault information corresponding to the fault of the current baseboard management controller includes:

[0045] S11, when a fault occurs in the current baseboard management controller, obtaining target fault log information shared by the main processor of the current baseboard management controller through the coprocessor;

[0046] S12, searching a designated database using target fault log information through a coprocessor;

[0047] S13, when a target fault identifier corresponding to the target fault log information is found, determining the target fault identifier as the target fault information;

[0048] S14: If the fault identifier corresponding to the target fault log information is not found, the target fault log information is determined as the target fault information.

[0049] In order to reduce the amount of data transmitted in the wireless local area network, a fault identifier can be used to identify the fault log information. The correspondence between the fault identifier and the fault log information can be agreed upon in advance. By transmitting the fault identifier, the amount of data required for transmission can be reduced while accurately transmitting the information, which can not only reduce the occupation of network resources, but also increase the speed of information transmission. Optionally, a designated database can be used to record the correspondence between the preset fault log information and the fault identifier. By matching the fault log information with the database, the matched fault log information can be converted into the corresponding fault identifier. The fault identifier here can be a fault number or other identification information, which is not limited in this embodiment.

[0050] For the current baseboard management controller, if the current baseboard management controller fails, the main processor can obtain the fault log information recorded by the current baseboard management controller (log information related to the fault recorded by the BMC), and share the obtained target fault log information with the coprocessor, and the coprocessor can obtain the target fault log information shared by the main processor.

[0051] For the acquired target fault log information, the coprocessor can directly use the target fault log information as the target fault information to synchronize within the specified local area network. In order to reduce the amount of data required to be transmitted, the coprocessor can use the target fault log information to search the specified database to determine whether there is a fault identifier that matches the target fault log information. If a target fault identifier corresponding to the target fault log information is found, the target fault identifier can be determined as the target fault information, and correspondingly, the target fault identifier is sent to other baseboard management controllers.

[0052] In this embodiment, if the fault identifier corresponding to the target fault log information is not found, the target fault log information can be directly determined as the target fault information, and correspondingly, the target fault log information is sent to other baseboard management controllers. In order to facilitate database maintenance, if the current baseboard management controller is the first node of the specified wireless local area network, it can assign a corresponding fault identifier to the target fault log information, and carry the assigned fault identifier in the sent message to synchronize the correspondence between the target fault log information and the assigned fault identifier between the nodes of the specified wireless local area network. After receiving the message sent by the current baseboard management controller, other baseboard management controllers can use the target fault log information and the assigned fault identifier to update their own database.

[0053] For example, the BMC may run the Linux system, and developers can implement various applications based on it. When a fault occurs, the BMC will record certain log information and share this part of the log with the coprocessor. The coprocessor matches the above fault log with the database. The database is matched because the logs directly generated by the BMC are relatively large in number of bytes, and it takes a long time to send the message. After matching the existing fault num (number) in the database, the fault num is directly grouped into the message, which can save the message sending time. If the existing fault information in the database cannot be matched, the node will send the BMC fault log to all LANs as much as possible to facilitate maintenance in the database.

[0054] Optionally, a BMC fault analysis database can be established and gradually learned and improved, so that when a BMC fails, the cause of the failure can be given more accurately and quickly. Here, it is possible to avoid transmitting multiple normal power-on and power-off scenarios of the BMC to other nodes to avoid false alarms.

[0055] Through this embodiment, by matching the correspondence between the fault log information and the fault identifier in the database, and when the fault identifier is matched, using the matched fault identifier instead of the fault log information to send to other nodes in the local area network, the amount of data required to be transmitted can be reduced and the message sending time can be shortened.

[0056] In an exemplary embodiment, after acquiring the target fault log information shared by the main processor of the current baseboard management controller through the coprocessor, the method further includes:

[0057] S21, parsing the target fault log information through the coprocessor to obtain a candidate fault object corresponding to the target fault log information;

[0058] S22, detecting the fault state of the candidate fault object through the coprocessor to obtain a fault detection result of the candidate fault object;

[0059] S23, when the fault detection result indicates that the candidate fault object has not failed, determining the first alarm level in a set of alarm levels as the alarm level corresponding to the target fault log information;

[0060] S24, when the fault detection result indicates that the candidate fault object has a fault, determine the second alarm level in a set of alarm levels as the alarm level corresponding to the target fault log information.

[0061] For the fault log information shared by the main processor, the coprocessor can directly synchronize it or the fault identification matched to it within the local area network. In order to avoid false alarms of fault information, the coprocessor can identify the fault log information shared by the main processor and make a secondary confirmation of the direction of the fault. There are many types of system crashes, and secondary confirmation means that the coprocessor identifies the type based on the log information and then makes a second confirmation. The input of the secondary confirmation can be the fault log information, and the output is the fault conclusion of the detection.

[0062] For the target fault log information, the coprocessor can parse the target fault log information to obtain a candidate fault object corresponding to the target fault log information, where the candidate fault object refers to the object that triggers the current baseboard management controller to record the target fault log information; then the fault state of the candidate fault object is detected to obtain a fault detection result of the candidate fault object, where the fault state of the candidate fault object can be determined based on an object state related to a fault cause of the candidate fault object indicated in the target fault log information, that is, based on an object state related to a fault cause of the candidate fault object indicated in the target fault log information, determine whether the candidate fault object has failed, and the obtained fault detection result is used to indicate whether the candidate fault object has failed.

[0063] If the fault detection result indicates that the candidate fault object has not failed, the first alarm level in a set of alarm levels can be determined as the alarm level corresponding to the target fault log information, and if the fault detection result indicates that the candidate fault object has failed, the second alarm level in a set of alarm levels can be determined as the alarm level corresponding to the target fault log information, and the second alarm level is higher than the first alarm level. The baseboard management controller can include an alarm level field (lnfo level) in the message of synchronizing fault information in the local area network to indicate the alarm level corresponding to the fault information. The higher the alarm level, the greater the probability that the baseboard management controller fails. Correspondingly, the indication information of the alarm level corresponding to the target fault log information and the target fault information are sent through the same message.

[0064] For example, after the fault log is reconfirmed and matched with the existing fault information in the database, if the existing fault information is matched, the alarm level of the message can be set to critical (serious alarm). If the BMC has an unrecoverable abnormality (unrecoverable hang), the maintenance personnel will repair the BMC based on the information recorded by other nodes in the LAN. If the coprocessor does not get a consistent result when reconfirming the fault, the fault information will also be sent to the LAN at the info level (low priority alarm).

[0065] For example, the coprocessor identifies the type based on the log information, and then performs a secondary confirmation, searching for some keywords to identify the direction it points to. If it is identified as a power problem, the current power supply voltage can be confirmed to determine whether there is a problem with the power supply.

[0066] Through this embodiment, by performing a second confirmation on the fault log information and setting the corresponding alarm level in the sent message based on whether the fault conclusions of the second confirmation are consistent, subsequent fault tracing can be facilitated. At the same time, the setting of the alarm level can also prompt the possibility of a fault in the baseboard management controller, so that maintenance personnel can discover the fault in time, thereby improving the timeliness of fault discovery and the convenience of fault tracing.

[0067] In an exemplary embodiment, the same check code is used between nodes in the same local area network. When the coprocessor processes the received message, if the check code is parsed to be different from its own check code, the current message is discarded, thereby improving the message processing efficiency. For a designated wireless local area network, the messages (e.g., heartbeat messages, deregistration messages, etc.) sent by the nodes in the designated wireless local area network all carry the designated check code. In the designated local area network, different nodes can be distinguished by node ID (ldentifier). In order to avoid conflicts when multiple nodes in the local area network send and receive data at the same time, the nodes in the designated wireless local area network send heartbeat messages in sequence in the designated wireless local area network based on the order of the corresponding node IDs, and the heartbeat messages sent by the nodes in the designated wireless local area network all carry the designated check code.

[0068] Optionally, the sending of heartbeat messages by nodes in a specified wireless local area network may be executed according to a specified period, where the specified period may be determined based on the timestamp or other time information carried in the heartbeat message received from the previous node, or may be determined according to the agreed message occurrence time. The time for the node to send the heartbeat message may also be specified by other means.

[0069] Correspondingly, when the current baseboard management controller of the current server is not added to the wireless local area network, adding the current baseboard management controller to the designated wireless local area network includes:

[0070] S31, when the current baseboard management controller is not added to the wireless local area network, receiving a heartbeat message in the current space local area network through the wireless communication module of the current server within a specified time period;

[0071] S32, when no message carrying the specified check code is received within the specified time period, the current baseboard management controller is determined as the head node of the specified wireless local area network to form a network, thereby obtaining the specified wireless local area network;

[0072] S33, when a heartbeat message carrying a specified check code is received within a specified time period, after receiving a heartbeat message sent by the last node in the specified wireless LAN, a LAN joining application message is sent in the specified wireless LAN to apply to join the specified wireless LAN; when a topology update message is received from the first node of the specified wireless LAN, it is determined that the current baseboard management controller has joined the specified wireless LAN, wherein the topology update message is used to indicate the LAN topology of the specified wireless LAN after joining the current baseboard management controller in the order of the node IDs of the nodes in the specified wireless LAN.

[0073] In this embodiment, if the current baseboard management controller is not added to the wireless local area network, the heartbeat message in the current space local area network is received through the wireless communication module of the current server within the specified time period. The duration of the specified time period is greater than or equal to the cycle duration of the specified period, so that within the specified time period, a heartbeat message sent by a node in the specified local area network can be received at least once.

[0074] For example, when the machine in the computer room is powered on for the first time, the coprocessor can receive the data in the current space LAN in real time through the wireless communication module during the waiting time to determine whether a wireless LAN already exists. The waiting time can be: the time of the last byte of the dedicated port MAC (Media Access Control) plus a random number. The above time needs to be greater than the time difference for sending data between two nodes in a normal LAN. Here, the data sent can be a heartbeat message or heartbeat information.

[0075] If a message carrying a specified check code is not received within a specified time period, the current baseboard management controller is determined as the first node of the specified wireless local area network for networking to obtain the specified wireless local area network, that is, if a message consistent with its own check code is not received, the node is the first node (first node) corresponding to the check code. If a heartbeat message carrying a specified check code is received within a specified time period, an application can be made to join the existing specified wireless local area network, and the method of applying to join can be: sending a local area network joining application message within the specified wireless local area network to apply to join the specified wireless local area network.

[0076] Optionally, the LAN joining application message may be sent after receiving the heartbeat message sent by the last node in the designated wireless LAN. In order to facilitate the new node to join the LAN, after the last node sends the heartbeat message, the first node may wait for a period of time before sending the next round of heartbeat messages. Sending the application message at this time can reduce the conflict of sending and receiving messages.

[0077] In a wireless LAN, the first node can maintain and synchronize the LAN topology (the topology of the LAN, which can represent the order between nodes determined based on the node ID). After sending the LAN joining application message, you can wait to receive the topology update message sent by the first node of the specified wireless LAN (the topology will change after the new node successfully joins); when receiving the topology update message sent by the first node of the specified wireless LAN, it can be determined that the current baseboard management controller has joined the specified wireless LAN. The above-mentioned topology update message can be used to indicate the LAN topology of the specified wireless LAN after joining the current baseboard management controller, which is updated according to the order of the node IDs of the nodes in the specified wireless LAN.

[0078] For example, if a message consistent with its own verification code is received during the time of waiting for the last byte of the dedicated port MAC plus a random number, it means that the current LAN already exists and only needs to apply to join the LAN. After determining the last node data in the LAN, this node sends a message to apply to join the LAN. After the first node of the LAN receives the above application, it will update the LAN topology in the order of the numerical value of the node ID and send a message with a function code of 0x02. After receiving it, each node in the LAN will update its own saved information such as the upper and lower node IDs according to the latest topology.

[0079] Here, the wireless communication protocol message may be a message in a data format sent / received between wireless communication modules. When sending data, fill the content in a fixed byte position according to the message protocol format; the receiving end parses the message according to the protocol format, and after judgment, performs the next action based on the received content. The message format of the wireless communication protocol message may include a function code. Different function codes may represent specified functions, and may include but are not limited to the function codes shown in Table 1.

[0080] Table 1

[0081] Function code Functional Explanation Ox01 After a single node is powered on, it applies to join the current wireless LAN for the first time 0x02 The first node broadcasts the latest topology of the current LAN Ox03 During normal operation, the node sends a heartbeat message 0x04 The node is restarted normally, powered off, etc., and finally sends a node deregistration message Ox05 When a node fails, it sends a fault message ...... ......

[0082] As shown in Table 1, the message with the function code 0x02 is a message for the first node to broadcast the latest topology of the current LAN. The function code and the corresponding function can be set and modified according to the use requirements. Table 1 is only an example of the function code.

[0083] Through this embodiment, nodes in the same local area network send heartbeat messages in sequence according to the node ID, which can reduce data transmission and reception conflicts while ensuring the timeliness of node status synchronization; within the set waiting time, it is determined whether the wireless local area network already exists based on the verification code carried in the received message, and a matching action is performed, which can ensure the accuracy of joining the local area network.

[0084] In an exemplary embodiment, in order to facilitate the determination of the data of the last node in the local area network, the message (e.g., heartbeat message) sent by the node in the specified wireless local area network can carry its own ID and the next node ID (the first one contains the ID of the second one...the nth one contains the ID of the first one). Exemplarily, the message format of the wireless communication protocol message used in this embodiment can be shown in Table 2.

[0085] Table 2

[0086] Contents of the Agreement Byte length Example Header 1 0xa5 Check code 2 Ox1 20x34 Self ID 1 Ox02 Next Node ID 1 Ox03 Function code 1 Ox01 Alarm level 1 01~03 Data length 1 Ox01 data N Data check code 1 0×FF End of the report 1 0x5a

[0087] Among them, the header and footer can be set by yourself, and the same server manufacturer can set the same content to improve the compatibility between different models; the next node ID refers to the node that sends data next time after the current node sends data, so as to avoid conflicts when multiple nodes in the local area network send and receive data at the same time; the check code, function code, and alarm level are similar to those mentioned above; the data length, data, and data check code are fields related to the data that needs to be sent in the message.

[0088] Correspondingly, the above method also includes: in the case of receiving a heartbeat message carrying a specified verification code within a specified time period, sequentially performing a judgment operation on the received heartbeat messages carrying the specified verification code as the current heartbeat messages until the heartbeat message sent by the last node in the specified wireless local area network is judged, that is, if it is judged that the heartbeat message sent by the last node in the specified wireless local area network has been received, the judgment operation ends; if it is judged that the heartbeat message sent by the last node in the specified wireless local area network has not been received, continue to wait for the heartbeat message sent by the next node.

[0089] The above-mentioned judgment operation can be: compare the self-ID carried in the current heartbeat message and the next node ID carried in the current heartbeat message; when the self-ID carried in the current heartbeat message is smaller than the next node ID carried in the current heartbeat message, determine that the current heartbeat message is not the heartbeat message sent by the last node in the specified wireless local area network; when the self-ID carried in the current heartbeat message is greater than the next node ID carried in the current heartbeat message, determine that the current heartbeat message is the heartbeat message sent by the last node in the specified wireless local area network.

[0090] Here, since the heartbeat message is sent in sequence according to the node ID, the current baseboard management controller has not yet joined the specified wireless LAN, and the node ID of the last node cannot be known. By comparing its own ID carried in the current heartbeat message and the next node ID, if the next node ID is smaller than its own ID, it means that the next heartbeat message is sent by the first node, and the heartbeat message received at this time is not the heartbeat message sent by the last node.

[0091] For example, the message sent by the last node can be determined based on the size of the node ID in the current LAN, and the largest node can be compared and saved. After the ID of the largest node is sent out, it can apply to join the LAN. After the first node receives the message of the new application to join the node, it sorts the message according to the ID size of the entire LAN, and then sends a message. Each node determines its own position based on this message and remembers the previous node and the next node.

[0092] Through this embodiment, the message sent by the node carries its own ID and the next node ID, and based on the size of its own ID and the next node ID carried in the heartbeat message, it is determined whether the heartbeat message of the last node is received, which can improve the convenience of information determination.

[0093] The device failure handling method in the embodiment of the present application is explained below in conjunction with an optional example. In this optional example, the physical device is a server, and the functions of the function codes in the message are shown in Table 1.

[0094] Figure 3 is a flow chart of another optional device failure handling method according to an embodiment of the present application, such as Figure 3 As shown, the process of the method includes the following steps:

[0095] Step S302, receiving a message and waiting for the time of the last byte of the dedicated port MAC plus a random number;

[0096] Step S304, determining whether the verification code in the received message is consistent with the verification code itself, if not, executing step S306, otherwise, executing step S308;

[0097] Step S306, if no message consistent with its own verification code is received, it is determined that the node is the first node (first node) of the local area network corresponding to the verification code;

[0098] Step S308: If a message that is consistent with its own verification code is received within the waiting time, a message with a function code of 0x02 is sent to apply to join the existing local area network;

[0099] Step S310: The head node of the local area network updates the local area network topology and sends the updated local area network topology in the local area network.

[0100] Step S312, networking is completed.

[0101] Through this optional example, within a certain spatial area, multiple BMCs form a local area network through wireless communication modules (the network can use a handshake protocol) so that when an abnormality occurs in a certain BMC, the coprocessor sends the collected fault information to other nodes in the local area network through the wireless communication module to improve the fault repair rate.

[0102] In an exemplary embodiment, after adding the current baseboard management controller to the designated wireless local area network, the method further includes:

[0103] S41, collecting node information of each node in the designated wireless local area network through the coprocessor, and saving the node information of each node in the designated wireless local area network into a designated configuration file;

[0104] S43, reading node information of each node in the specified wireless local area network in the specified configuration file through the main processor, and displaying the topology of the specified wireless local area network on the web page interface of the current baseboard management controller based on the read node information of each node in the specified wireless local area network.

[0105] In this embodiment, in order to facilitate relevant personnel to intuitively view the node structure of the specified wireless local area network, the topological structure of the specified wireless local area network can be displayed on the web page interface of the current baseboard management controller based on the node information of each node in the specified wireless local area network. The displayed topological structure may include the association relationship between nodes and the node information of each node, such as the name of the node (the name of the corresponding server), the location of the node, the function of the node (the business type of the node), etc., and may also include other content that relevant personnel need to know, which is not limited in this embodiment.

[0106] For example, Figure 4 As shown, the wireless local area network includes 5 nodes, which correspond to baseboard management controllers on 5 servers respectively. The displayed topology structure may include the order between the nodes and node information, and the node information includes relevant information of the corresponding server.

[0107] Displaying the topology of the specified wireless local area network on the web page interface of the current baseboard management controller can be performed by the main processor, and some configuration files are stored in the common flash memory of the main processor and the coprocessor, wherein the specified configuration file can be used to store the node information of each node in the specified wireless local area network. The main processor can read the node information of each node in the specified wireless local area network in the specified configuration file, and perform the aforementioned display operation based on the node information of each node in the specified wireless local area network read. Optionally, in addition to the common flash memory, the specified configuration file can also be stored in other locations.

[0108] For a scenario where the specified configuration file is stored in the above-mentioned public memory, the coprocessor can collect node information of each node in the specified wireless local area network, and save the node information of each node in the specified wireless local area network to the specified configuration file. The above-mentioned collection process can be executed periodically according to a set collection cycle, can be executed according to a set collection time, or can be executed based on event triggering, which is not limited in this embodiment.

[0109] For example, a configuration file and a data packet are saved in a shared flash, wherein the configuration file is some configurations of the wireless communication module made by relevant personnel through the main processor and saved in the configuration file, and the coprocessor sets the wireless communication module by reading the configuration file; the data packet is some logs that need to be interacted between the main and coprocessors, as well as BMC identity information corresponding to each node ID and other information used for positioning, and the data interaction between the main and coprocessors is not limited to this method.

[0110] After the relevant personnel set the verification code of the wireless communication module of the machine in the BMC web (World Wide Web), the coprocessor reads it from the configuration file and fills it into the interactive message. The coprocessor saves the collected information of each node in the local area network in the configuration file. After the main processor reads it, it is displayed on the BMC web page, so that the relevant personnel can intuitively view the node structure of the local area network.

[0111] After the network is established, each node can send out the machine's identity information once according to the topology sequence sent by the first node, so that it can be displayed and located through the web. After that, each node sends out its own heartbeat information one by one to inform itself that the current BMC is operating normally.

[0112] Through this embodiment, the coprocessor saves the collected information of each node in the local area network in the configuration file, and after the main processor reads it, it is displayed on the BMC web page, which can facilitate the intuitive display of the local area network node structure and improve the convenience of information viewing.

[0113] In an exemplary embodiment, in some scenarios, a node deregistration is performed, and the node can no longer send or receive messages. The above node deregistration can include: normal deregistration and abnormal deregistration, and normal deregistration can also be divided into normal restart of BMC and machine power off.

[0114] As an optional implementation, after the current baseboard management controller is added to the designated wireless local area network, when the current baseboard management controller is restarted, a first node deregistration message is sent in the designated wireless local area network, and the first node deregistration message is used to indicate the deregistration of the current baseboard management controller in the designated wireless local area network.

[0115] During maintenance or in other scenarios, the BMC can be restarted normally. The BMC will update the operation to the coprocessor, and the coprocessor will send a first node deregistration message, which is used to instruct the current baseboard management controller to deregister from the specified wireless LAN. Combined with Table 2, the above-mentioned first node deregistration message can be a message with a function code of 0×04. After the first node of the designated wireless LAN receives the above-mentioned first node deregistration message, it will update the topology. The update method can be: the first node sends the node ID information of the entire LAN. Here, within a loop, when the first node does not receive a message from a certain node, it will delete the node and update the LAN ID information.

[0116] As another optional implementation, after the current baseboard management controller is added to the designated wireless local area network, when the current baseboard management controller is powered off, descriptive information describing the loss of AC power to the power supply unit is transmitted to the coprocessor in the form of an interrupt signal; in response to the received interrupt signal, a second node deregistration message is sent within the designated wireless local area network, wherein the second node deregistration message is used to indicate deregistration of the current baseboard management controller in the designated wireless local area network.

[0117] For the scenario where the current baseboard management controller is powered off, this information can be transmitted to the coprocessor via an interrupt signal. In response to the received interrupt signal, a second node deregistration message is sent within the specified wireless LAN. The second node deregistration message is used to instruct the current baseboard management controller to deregister from the specified wireless LAN. Combined with Table 2, the above-mentioned second node deregistration message can be a message with a function code of 0x04. The above-mentioned interrupt signal may transmit descriptive information describing that the power supply unit has lost alternating current (PSU AC LOST, Power Supply Unit Alternating Current LOST). When the machine is powered off, the PSU AC LOST related information can be connected to the coprocessor in the form of an interrupt. Since the machine has a capacitor energy storage function, it is sufficient for the coprocessor to send the message.

[0118] Optionally, for abnormal node deregistration, when the BMC fails, the coprocessor will send a message with a function code of 0x05. If the node sends information later, the first node will update the topology in a similar way to the above embodiment. Here, node deregistration messages triggered by different reasons can be distinguished by different function codes.

[0119] Through this embodiment, when the BMC is restarted normally or the BMC is powered off, a node deregistration message is sent in the wireless LAN, and the LAN topology of the wireless LAN can be updated in time when the node can no longer send or receive messages, which can improve the accuracy of information in the LAN.

[0120] The following is an explanation of the device failure handling method in the embodiment of the present application in conjunction with an optional example. In this optional example, the physical device is a server. In this optional example, a local area network is established in a certain spatial area through a wireless communication module (for example, a wireless radio frequency module), including scenarios such as server power-on and BMC restart.

[0121] Under normal circumstances, the nodes in the LAN are interconnected. If a BMC fails, the coprocessor will send the collected fault information to other nodes in the LAN through the wireless communication module. The above solution can solve the problem of BMC failure during actual use. During the maintenance process, the abnormal log before the crash cannot be obtained, resulting in high problem handling costs.

[0122] Figure 5 FIG. 1 is a flowchart of another optional method for secondary confirmation of device failure according to an embodiment of the present application. Figure 5 As shown, the process of the method includes the following steps:

[0123] Step S502, BMC operates normally;

[0124] Step S504, determining whether the BMC fails. If so, collect the failure log and execute step S506. Otherwise, continue to execute step S502.

[0125] Step S506, sharing the collected fault logs to the coprocessor to perform secondary confirmation of the fault information;

[0126] Step S508, judging whether there is a fault based on whether the secondary determination results are consistent, if yes, executing step S510, otherwise, executing step S512;

[0127] Step S510, if the results are inconsistent, the fault information is sent to the local area network at the info level;

[0128] Step S512: if the results are consistent, match the fault information with the database, where the database may be an established BMC fault analysis database;

[0129] Step S514: if the fault num is matched, a message of the matched fault num is sent;

[0130] Step S516: If the fault information in the database is not matched, the BMC fault log is sent to the local area network.

[0131] Through this optional example, the fatal fault information of a server BMC can be sent to other servers. The collected logs that may cause BMC abnormalities are sent to the BMC of the adjacent node in real time through wireless communication. During the maintenance process, the logs are obtained to facilitate fault tracing after the BMC is unrecoverably hung, thereby improving the efficiency of fault repair.

[0132] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0133] According to another aspect of the embodiments of the present application, a device for handling equipment failure is also provided, and the device is used to implement the device failure handling method provided in the above embodiments, and the description thereof has been made without further explanation. As used below, the term "module" may implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and contemplated.

[0134] Figure 6 is a structural block diagram of an optional device failure processing device according to an embodiment of the present application, such as Figure 6 As shown, the device comprises:

[0135] A joining unit 602 is used to join the current baseboard management controller of the current physical device to a specified wireless local area network through a coprocessor of the current baseboard management controller when the current baseboard management controller has not joined the wireless local area network, wherein the specified wireless local area network is a wireless local area network obtained by networking a group of baseboard management controllers of physical devices as nodes;

[0136] The acquisition unit 604 is used to acquire target fault information corresponding to the fault of the current baseboard management controller through the coprocessor of the current baseboard management controller when the current baseboard management controller fails, wherein the target fault information is used to indicate the fault of the current baseboard management controller;

[0137] The first sending unit 606 is configured to send the target fault information to other baseboard management controllers except the current baseboard management controller in the designated wireless local area network, so that the physical devices to which the other baseboard management controllers belong store the target fault information.

[0138] It should be noted that the joining unit 602 in this embodiment can be used to execute the above step S202, the acquiring unit 604 in this embodiment can be used to execute the above step S204, and the first sending unit 606 in this embodiment can be used to execute the above step S206.

[0139] Through the embodiments provided by the present application, when the current baseboard management controller of the current physical device has not joined the wireless local area network, the current baseboard management controller is added to the designated wireless local area network through the coprocessor of the current baseboard management controller, wherein the designated wireless local area network is a wireless local area network obtained by networking a group of baseboard management controllers of physical devices as nodes; when the current baseboard management controller fails, the target fault information corresponding to the fault occurring in the current baseboard management controller is obtained through the coprocessor of the current baseboard management controller, wherein the target fault information is used to indicate the fault occurring in the current baseboard management controller; the target fault information is sent to other baseboard management controllers in the designated wireless local area network except the current baseboard management controller, so that the physical devices to which the other baseboard management controllers belong store the target fault information, thereby solving the problem of difficulty in fault repair in the server fault handling method in the related art, improving the fault repair speed, and reducing the difficulty of equipment maintenance.

[0140] In an exemplary embodiment, the acquisition unit includes: an acquisition module, which is used to obtain target fault log information shared by the main processor of the current baseboard management controller through a coprocessor when a fault occurs in the current baseboard management controller, wherein the target fault log information is the fault log information recorded by the current baseboard management controller; a search module, which is used to use the target fault log information to search a designated database through the coprocessor, wherein the designated database is used to record the correspondence between preset fault log information and fault identifiers; a first confirmation module, which is used to determine the target fault identifier as the target fault information when a target fault identifier corresponding to the target fault log information is found; and a second confirmation module, which is used to determine the target fault log information as the target fault information when a fault identifier corresponding to the target fault log information is not found.

[0141] In an exemplary embodiment, the above-mentioned device also includes: a parsing unit, which is used to parse the target fault log information shared by the main processor of the current baseboard management controller through the coprocessor to obtain a candidate fault object corresponding to the target fault log information after obtaining the target fault log information shared by the main processor of the current baseboard management controller through the coprocessor; a detection unit, which is used to detect the fault state of the candidate fault object through the coprocessor to obtain a fault detection result of the candidate fault object; a first determination unit, which is used to determine the first alarm level in a group of alarm levels as the alarm level corresponding to the target fault log information when the fault detection result indicates that the candidate fault object has not failed; a second determination unit, which is used to determine the second alarm level in a group of alarm levels as the alarm level corresponding to the target fault log information when the fault detection result indicates that the candidate fault object has failed; wherein the second alarm level is higher than the first alarm level, and the indication information of the alarm level corresponding to the target fault log information is sent through the same message as the target fault information.

[0142] In an exemplary embodiment, nodes in a designated wireless local area network send heartbeat messages in sequence within the designated wireless local area network according to a designated period based on the order of corresponding node IDs. The heartbeat messages sent by the nodes in the designated wireless local area network all carry a designated check code, and the designated check code is used to identify that the corresponding heartbeat message is sent by a node in the designated wireless local area network. The joining unit includes: a receiving module, which is used to receive a heartbeat message in the current space local area network through the wireless communication module of the current physical device within a specified time period when the current baseboard management controller has not joined the wireless local area network, wherein the duration of the specified time period is greater than or equal to the period duration of the specified period; a third determination module, which is used to determine the current baseboard management controller as the first node of the specified wireless local area network for networking to obtain the specified wireless local area network when no message carrying the specified check code is received within the specified time period; an execution module, which is used to send a local area network joining application message in the specified wireless local area network after receiving the heartbeat message sent by the last node in the specified wireless local area network to apply for joining the specified wireless local area network when the heartbeat message carrying the specified check code is received within the specified time period to apply for joining the specified wireless local area network; and determine that the current baseboard management controller has joined the specified wireless local area network when a topology structure update message sent by the first node of the specified wireless local area network is received, wherein the topology structure update message is used to indicate the local area network topology updated in the order of the node IDs of the nodes in the specified wireless local area network after joining the current baseboard management controller.

[0143] In an exemplary embodiment, the heartbeat message sent by the node in the designated wireless local area network carries its own ID and the next node ID. Correspondingly, the above-mentioned device also includes: a first execution unit, which is used to, when a heartbeat message carrying a designated check code is received within a designated time period, sequentially use the received heartbeat message carrying the designated check code as the current heartbeat message to perform the following judgment operations until the heartbeat message sent by the last node in the designated wireless local area network is judged: compare the own ID carried in the current heartbeat message with the next node ID carried in the current heartbeat message; when the own ID carried in the current heartbeat message is less than the next node ID carried in the current heartbeat message, determine that the current heartbeat message is not the heartbeat message sent by the last node in the designated wireless local area network; when the own ID carried in the current heartbeat message is greater than the next node ID carried in the current heartbeat message, determine that the current heartbeat message is the heartbeat message sent by the last node in the designated wireless local area network.

[0144] In an exemplary embodiment, the above-mentioned device also includes: a second execution unit, which is used to collect node information of each node in the specified wireless local area network through a coprocessor after adding the current baseboard management controller to the specified wireless local area network, and save the node information of each node in the specified wireless local area network to a specified configuration file, wherein the specified configuration file is a configuration file saved in a shared flash memory of a main processor and a coprocessor of the current baseboard management controller; a third execution unit, which is used to read the node information of each node in the specified wireless local area network in the specified configuration file through the main processor, and based on the read node information of each node in the specified wireless local area network, display the topology of the specified wireless local area network on the web page interface of the current baseboard management controller.

[0145] In an exemplary embodiment, the above-mentioned device also includes: a second sending unit, which is used to send a first node deregistration message in the designated wireless local area network after the current baseboard management controller is added to the designated wireless local area network and when the current baseboard management controller is restarted, wherein the first node deregistration message is used to indicate the deregistration of the current baseboard management controller in the designated wireless local area network; a third execution unit, which is used to transmit the description information describing the loss of alternating current power to the coprocessor in the form of an interrupt signal when the current baseboard management controller is powered off; and in response to the received interrupt signal, send a second node deregistration message in the designated wireless local area network, wherein the second node deregistration message is used to indicate the deregistration of the current baseboard management controller in the designated wireless local area network.

[0146] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0147] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored program, wherein the program executes the steps of any of the above method embodiments when it is run.

[0148] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, at least one of the following: a USB flash drive, a RAM (Random Access Memory), a ROM (Read-Only Memory), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0149] According to another aspect of the embodiments of the present application, there is further provided an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to execute the steps in any of the above method embodiments through the computer program.

[0150] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0151] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0152] According to another aspect of the embodiment of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer program / instruction comprising a program code for executing the method shown in the flowchart. Figure 7 The computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processor 701, various functions provided by the embodiments of the present application are executed. The serial numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0153] refer to Figure 7 , Figure 7 It is a structural block diagram of a computer system of an optional electronic device according to an embodiment of the present application. Figure 7 The computer system structure block diagram of the electronic device used to implement the embodiment of the present application is schematically shown. Figure 7As shown, the computer system 700 includes a central processing unit 701 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 702 (ROM) or the program loaded from the storage part 708 to the random access memory 703 (RAM). Various programs and data required for system operation are also stored in the random access memory 703. The central processing unit 701, the read-only memory 702 and the random access memory 703 are connected to each other through a bus 704. An input / output interface 705 (Input / Output interface, i.e., I / O interface) is also connected to the bus 704.

[0154] The following components are connected to the input / output interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the input / output interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed so that a computer program read therefrom is installed into the storage section 708 as needed.

[0155] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the central processor 701, various functions defined in the system of the present application are executed.

[0156] It should be noted that Figure 7 The computer system 700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0157] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0158] The above are only preferred embodiments of the present application and are not intended to limit the embodiments of the present application. For those skilled in the art, the embodiments of the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the embodiments of the present application shall be included in the protection scope of the embodiments of the present application.

Claims

1. A method for handling equipment failure, It is characterized in that include: If the current baseboard management controller of the current physical device is not added to the wireless local area network, adding the current baseboard management controller to the designated wireless local area network, wherein the designated wireless local area network is a wireless local area network obtained by networking a group of baseboard management controllers of physical devices as nodes; In the case that the current baseboard management controller fails, obtaining target fault information corresponding to the fault of the current baseboard management controller through a coprocessor of the current baseboard management controller, wherein the target fault information is used to indicate the fault of the current baseboard management controller; The target fault information is sent to other baseboard management controllers except the current baseboard management controller in the designated wireless local area network, so that the physical devices to which the other baseboard management controllers belong store the target fault information.

2. The method according to claim 1, It is characterized in that When the current baseboard management controller fails, obtaining target fault information corresponding to the fault of the current baseboard management controller includes: In the case that the current baseboard management controller fails, obtaining target fault log information shared by the main processor of the current baseboard management controller through the coprocessor, wherein the target fault log information is the fault log information recorded by the current baseboard management controller; Using the target fault log information to search a designated database through the coprocessor, wherein the designated database is used to record the corresponding relationship between the preset fault log information and the fault identifier; In the case where a target fault identifier corresponding to the target fault log information is found, determining the target fault identifier as the target fault information; If the fault identifier corresponding to the target fault log information is not found, the target fault log information is determined as the target fault information.

3. The method according to claim 2, It is characterized in that After acquiring the target fault log information shared by the main processor of the current baseboard management controller through the coprocessor, the method further includes: Parsing the target fault log information by the coprocessor to obtain a candidate fault object corresponding to the target fault log information; Detecting the fault state of the candidate fault object by the coprocessor to obtain a fault detection result of the candidate fault object; When the fault detection result indicates that the candidate fault object has not failed, determining a first alarm level in a set of alarm levels as the alarm level corresponding to the target fault log information; In a case where the fault detection result indicates that the candidate fault object has a fault, determining a second alarm level in a set of alarm levels as an alarm level corresponding to the target fault log information; The second alarm level is higher than the first alarm level, and the indication information of the alarm level corresponding to the target fault log information is sent through the same message as the target fault information.

4. The method according to claim 1, It is characterized in that The nodes in the designated wireless local area network send heartbeat messages in sequence in the designated wireless local area network according to the specified period based on the order of the corresponding node IDs, and the heartbeat messages sent by the nodes in the designated wireless local area network all carry a specified check code, and the specified check code is used to identify that the corresponding heartbeat message is sent by the node in the designated wireless local area network; The method of adding the current baseboard management controller of the current physical device to the designated wireless local area network when the current baseboard management controller of the current physical device has not been added to the wireless local area network comprises: In the case where the current baseboard management controller is not added to the wireless local area network, a heartbeat message in the current spatial local area network is received through the wireless communication module of the current physical device within a specified time period, wherein the duration of the specified time period is greater than or equal to the period duration of the specified period; In the case that no message carrying the specified check code is received within the specified time period, the current baseboard management controller is determined as the head node of the specified wireless local area network to form a network, so as to obtain the specified wireless local area network; In the case where a heartbeat message carrying the specified check code is received within the specified time period, after receiving the heartbeat message sent by the last node in the specified wireless local area network, a local area network joining application message is sent in the specified wireless local area network to apply to join the specified wireless local area network; in the case where a topology structure update message is received from the first node of the specified wireless local area network, it is determined that the current baseboard management controller has joined the specified wireless local area network, wherein the topology structure update message is used to indicate the local area network topology of the specified wireless local area network after joining the current baseboard management controller, which is updated in the order of the node IDs of the nodes in the specified wireless local area network.

5. The method according to claim 4, It is characterized in that The heartbeat message sent by the node in the designated wireless local area network carries its own ID and the next node ID; The method further comprises: In the case where a heartbeat message carrying the specified check code is received within the specified time period, the received heartbeat message carrying the specified check code is sequentially used as the current heartbeat message to perform the following judgment operations until the heartbeat message sent by the last node in the specified wireless local area network is determined: Compare the own ID carried in the current heartbeat message with the next node ID carried in the current heartbeat message; When the self ID carried in the current heartbeat message is less than the next node ID carried in the current heartbeat message, determining that the current heartbeat message is not the heartbeat message sent by the last node in the designated wireless local area network; When the self ID carried in the current heartbeat message is greater than the next node ID carried in the current heartbeat message, it is determined that the current heartbeat message is the heartbeat message sent by the last node in the designated wireless local area network.

6. The method according to claim 1, It is characterized in that After adding the current baseboard management controller to the designated wireless local area network, the method further includes: Collecting node information of each node in the specified wireless local area network through the coprocessor, and saving the node information of each node in the specified wireless local area network into a specified configuration file, wherein the specified configuration file is a configuration file saved in a shared flash memory of a main processor of the current baseboard management controller and the coprocessor; The node information of each node in the designated wireless local area network in the designated configuration file is read by the main processor, and based on the read node information of each node in the designated wireless local area network, the topology of the designated wireless local area network is displayed on the web page interface of the current baseboard management controller.

7. The method according to any one of claims 1 to 6, It is characterized in that After adding the current baseboard management controller to the designated wireless local area network, the method further includes: In the case where the current baseboard management controller is restarted, sending a first node deregistration message in the designated wireless local area network, wherein the first node deregistration message is used to indicate deregistration of the current baseboard management controller in the designated wireless local area network; When the current baseboard management controller is powered off, descriptive information describing that the power supply unit has lost alternating current power is transmitted to the coprocessor in the form of an interrupt signal; in response to the received interrupt signal, a second node deregistration message is sent within the designated wireless local area network, wherein the second node deregistration message is used to indicate the deregistration of the current baseboard management controller in the designated wireless local area network.

8. A device for handling equipment failures, It is characterized in that include: A joining unit, used for joining the current baseboard management controller of the current physical device to a designated wireless local area network when the current baseboard management controller of the current physical device has not joined the wireless local area network, wherein the designated wireless local area network is a wireless local area network obtained by networking a group of baseboard management controllers of physical devices as nodes; an acquisition unit, configured to acquire, when a fault occurs in the current baseboard management controller, target fault information corresponding to the fault occurring in the current baseboard management controller through a coprocessor of the current baseboard management controller, wherein the target fault information is used to indicate the fault occurring in the current baseboard management controller; The first sending unit is used to send the target fault information to other baseboard management controllers except the current baseboard management controller in the designated wireless local area network, so that the physical devices to which the other baseboard management controllers belong store the target fault information.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of any one of the methods of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Control method, substrate management controller and control system

    CN109766110A

  • Server fault processing method and device, storage medium and electronic equipment

    CN111694719A

  • BMC (Baseboard Management Controller) customized automatic configuration method and system and electronic equipment

    CN116668280A

  • Equipment management method and device, equipment and storage medium

    CN118075126A

  • Apparatus, method and system for selectively coupling a LAN controller to a platform management controller

    US20060028993A1