Server failure processing method, device, storage medium and electronic device

Obtaining and analyzing server logs through the out-of-band management system, providing fault diagnosis results and generating maintenance requests, solves the problem of poor fault handling in the existing technology, and enables a wider range of fault detection and efficient hardware replacement processes.

CN111694719BActive Publication Date: 2024-09-10TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010525839.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-10
Publication Date
2024-09-10
Estimated Expiration
2040-06-10

AI Technical Summary

Technical Problem

Existing server fault handling methods rely on the preset diagnostic logic of the baseboard management controller and cannot effectively detect uncovered fault scenarios, resulting in poor fault handling effects.

Method used

Obtain the log information of the target server through the out-of-band management system, analyze and obtain the fault diagnosis results, send them to the hardware monitoring system, prompt for replacement and maintenance processing, and generate a work order to request the spare parts library to obtain the hardware components to be replaced when necessary.

Benefits of technology

It improves the fault detection effect and processing efficiency, expands the coverage of fault detection scenarios, does not rely on baseboard management controller hardware upgrades, and simplifies the update and maintenance of fault diagnosis logic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111694719B
    Figure CN111694719B
Patent Text Reader

Abstract

The present invention discloses a server fault processing method, device, storage medium and electronic device. The method comprises: when receiving abnormal information, obtaining the log information of the target server indicated by the abnormal information through an out-of-band management system, the out-of-band management system is a management system that executes the server fault detection logic; analyzing the log information to obtain a fault diagnosis result that matches the target server; sending the fault diagnosis result to a hardware monitoring system, wherein, when the fault diagnosis result indicates a hardware fault type, prompting the hardware monitoring system to perform replacement maintenance processing on the target server. The present invention can improve the effect of fault processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a server failure processing method, device, storage medium and electronic device Background Art

[0002] Currently, server manufacturers integrate baseboard management controller chips when producing servers, so that server fault handling relies on the baseboard management controller in the server.

[0003] In practice, it is found that when this method is used to detect server failures, only the fault diagnosis logic of the server manufacturer can be used for judgment. For failure scenarios that are not covered by the fault diagnosis logic preset by the server manufacturer, this method cannot detect the failure. It can be seen that the current server failure handling method has the problem of poor fault handling effect.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a server fault processing method, device, storage medium and electronic device, which can improve the effect of fault processing.

[0006] According to one aspect of an embodiment of the present invention, a server fault handling method is provided, comprising: upon receiving exception information, obtaining log information of a target server where the exception occurs as indicated by the exception information through an out-of-band management system, wherein the out-of-band management system is a management system that executes server fault detection logic; analyzing the log information to obtain a fault diagnosis result that matches the target server; and sending the fault diagnosis result to a hardware monitoring system, wherein, in a case where the fault diagnosis result indicates a hardware fault type, the hardware monitoring system is prompted to perform replacement maintenance on the target server.

[0007] According to another aspect of an embodiment of the present invention, a server fault handling method is provided, comprising: receiving a fault diagnosis result sent by an out-of-band management system, the fault diagnosis result being a fault diagnosis result obtained by the out-of-band management system, upon receiving abnormal information, analyzing log information of a target server indicated by the abnormal information where the abnormality has occurred, the fault diagnosis result comprising at least fault description information and fault resolution suggestion information; in a case where the fault resolution suggestion information indicates replacement of a hardware component of the target server, obtaining hardware information to be replaced that matches the fault resolution suggestion information, the hardware information to be replaced being used to instruct a staff member to perform fault maintenance on the target server according to the hardware components to be replaced in the hardware information to be replaced; and sending a work order creation request to an operation and maintenance work order system, the work order creation request carrying the hardware information to be replaced, so that the operation and maintenance work order system creates a work order that matches the hardware information to be replaced and sends an acquisition instruction to a spare parts library for indicating the acquisition of the hardware to be replaced in the hardware information to be replaced.

[0008] According to another aspect of an embodiment of the present invention, a server fault handling device is also provided, including: a first acquisition unit, used to, when receiving exception information, obtain the log information of the target server where the exception occurs through an out-of-band management system, wherein the out-of-band management system is a management system that executes server fault detection logic; an analysis unit, used to analyze the log information to obtain a fault diagnosis result that matches the target server; and a first sending unit, used to send the fault diagnosis result to a hardware monitoring system, wherein, when the fault diagnosis result indicates a hardware fault type, the hardware monitoring system is prompted to replace and maintain the target server.

[0009] According to another aspect of an embodiment of the present invention, a server fault handling device is also provided, including: a receiving unit, used to receive a fault diagnosis result sent by an out-of-band management system, the above-mentioned fault diagnosis result is a fault diagnosis result obtained by the above-mentioned out-of-band management system when receiving the abnormal information, by analyzing the log information of the target server where the abnormality occurs as indicated by the above-mentioned abnormal information, and the above-mentioned fault diagnosis result at least includes fault description information and fault solution suggestion information; a second acquisition unit, used to obtain hardware information to be replaced that matches the above-mentioned fault solution suggestion information when the above-mentioned fault solution suggestion information indicates to replace the hardware components of the above-mentioned target server, the above-mentioned hardware information to be replaced is used to instruct the staff to perform fault maintenance processing on the above-mentioned target server according to the hardware components to be replaced in the above-mentioned hardware information to be replaced; a second sending unit, used to send a work order creation request to an operation and maintenance work order system, the above-mentioned work order creation request carries the above-mentioned hardware information to be replaced, so that the above-mentioned operation and maintenance work order system creates a work order matching the above-mentioned hardware information to be replaced and sends an acquisition instruction to the spare parts library for indicating the acquisition of the hardware to be replaced in the above-mentioned hardware information to be replaced.

[0010] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned server failure handling method when running.

[0011] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the server fault handling method through the computer program.

[0012] In an embodiment of the present invention, when abnormal information is received, the log information of the target server where the abnormality occurs is obtained through an out-of-band management system, and the out-of-band management system is a management system that executes server fault detection logic; the log information is analyzed to obtain a fault diagnosis result that matches the target server; the fault diagnosis result is sent to the hardware monitoring system, wherein, when the fault diagnosis result indicates a hardware fault type, the hardware monitoring system prompts to replace and maintain the target server. This process can use the out-of-band management system to obtain log information and analyze the log information to obtain the fault diagnosis result, so that there is no need to rely on the baseboard management controller in the server to execute the server fault detection logic, and thus the fault detection scenario is not limited to the fault diagnosis logic preset by the server manufacturer in the baseboard management controller, which can improve the fault detection effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0014] Figure 1 is a schematic structural diagram of an optional server fault processing system according to an embodiment of the present invention;

[0015] Figure 2 is a schematic structural diagram of another optional server fault processing system according to an embodiment of the present invention;

[0016] Figure 3 is a flow chart of an optional server failure processing method according to an embodiment of the present invention;

[0017] Figure 4 is a flow chart of another optional server failure processing method according to an embodiment of the present invention;

[0018] Figure 5 is a flow chart of another optional server failure processing method according to an embodiment of the present invention;

[0019] Figure 6 is a flow chart of another optional server failure processing method according to an embodiment of the present invention;

[0020] Figure 7 is a schematic diagram of an optional server failure processing device according to an embodiment of the present invention;

[0021] Figure 8 is a schematic diagram of another optional server failure processing device according to an embodiment of the present invention;

[0022] Fig. 9 is a schematic diagram of an optional electronic device according to an embodiment of the present invention;

[0023] Fig.10 is a schematic structural diagram of another optional electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0026] According to one aspect of an embodiment of the present invention, a server failure processing method is provided. Optionally, as an optional implementation, the server failure processing method can be but is not limited to being applied to: Figure 1In the server fault processing system in the network environment shown, the server fault processing system may include a server 101, an abnormal monitoring system 102, an out-of-band management system 103, a hardware monitoring system 104, and an operation and maintenance work order system 105, wherein the number of servers 101 may be multiple, and the abnormal monitoring system 102 is used to monitor the operation of multiple servers 101. When a server 101 fails, an abnormal alarm will be generated. Specifically, an alarm log such as IERR, MCERR, PCIE, etc. may be generated out-of-band, and an alarm such as PING unreachable and Agent timeout may be generated in-band. When the abnormal monitoring system 102 detects a server 101 with an abnormal alarm, it may send abnormal information to the out-of-band management system 103. After receiving the abnormal information, the out-of-band management system 103 may collect the log information of the target server with abnormality in the server 101, and parse the log information to obtain the fault diagnosis result. Among them, the out-of-band management system 103 may also store the log information of the target server with abnormality in the server 101, so as to summarize and analyze the fault information. After the out-of-band management system 103 obtains the fault diagnosis result, the fault diagnosis result can be sent to the hardware monitoring system 104. The hardware monitoring system 104 is used to manage the hardware component information of the server. After the hardware monitoring system 104 receives the fault diagnosis result, the hardware component information to be replaced can be matched according to the fault diagnosis result when the fault diagnosis result is a hardware fault type. The hardware component information may include but is not limited to the hardware component type, the hardware component slot, etc., which is not limited in the embodiment of the present invention. Further, the hardware monitoring system 104 can also send a request for generating a work order to the operation and maintenance work order system 105, so that the operation and maintenance work order system 105 generates a work order according to the hardware component information and the target server, and the operation and maintenance work order system 105 can also send the work order to the staff for maintaining the target server, so that the staff performs hardware replacement fault maintenance on the target server according to the work order. Further optionally, the operation and maintenance work order system 105 can also prepare according to the hardware component information, and automatically prepare each hardware component in the hardware component information, so that the staff can quickly take the hardware component, realize the fault maintenance of hardware replacement, and improve the automation of server fault processing.

[0027] Furthermore, the server fault handling system can also use the out-of-band management system to collect and parse the logs of the target server to determine the fault detection result when the target server with an abnormality is restarted or shut down. Alternatively, if the target server with an abnormality does not reach the abnormal alarm threshold out-of-band, the server fault handling system can still be used to determine the fault detection result. That is, the server fault handling system does not rely on the internal baseboard management controller of the target server with an abnormality, is not limited by the diagnostic logic of the baseboard control manager, and can use the server fault handling system to build a diagnostic logic that includes more fault scenarios. Optionally, the server fault handling system can also continuously update the version of the server fault handling system by updating the code according to the diagnostic needs, so as to continuously improve the fault diagnosis logic, and there is no need to perform hardware upgrades on the baseboard management controller in the server, so it is more convenient to improve the fault diagnosis logic.

[0028] Please also read Figure 2 , Figure 2 is a schematic diagram of the structure of another optional server fault processing system disclosed in an embodiment of the present invention, such as Figure 2 As shown, the server 101 includes a baseboard management controller 1011, a central processing unit 1012 and a peripheral device 1013, wherein the baseboard management controller 1011 can be enabled to execute the server fault processing logic by performing a hardware upgrade on the baseboard management controller 1011. In the server fault processing system described in the embodiment of the present invention, the server fault processing logic can be implemented without relying on the baseboard management controller 1011 hardware inside the server, but can be implemented through the out-of-band management system 103. During the update process, there is no need to update the hardware, only the software needs to be updated, thereby improving the update efficiency.

[0029] Optionally, as an optional implementation, as Figure 3 As shown, the above server failure processing method may include:

[0030] S301, when receiving the abnormal information, obtaining the log information of the target server where the abnormality occurs indicated by the abnormal information through the out-of-band management system, where the out-of-band management system is a management system that executes the server fault detection logic;

[0031] S302, analyzing the log information to obtain a fault diagnosis result that matches the target server;

[0032] S303, sending the fault diagnosis result to the hardware monitoring system, wherein, when the fault diagnosis result indicates a hardware fault type, the hardware monitoring system is prompted to perform replacement maintenance processing on the target server.

[0033] In the embodiment of the present invention, out-of-band refers to a dedicated channel independent of the data network, in-band refers to a channel for data transmission in the data network, out-of-band management is a management method for centralized integrated management of the computer room network equipment, server equipment and computer room power supply system through a dedicated management channel independent of the data network, and the out-of-band management system is a system independent of the server, which is used to obtain the log of the abnormal target server and analyze it to obtain the fault diagnosis result. In addition, the out-of-band management system can be a system that manages the data information in the target server through a dedicated management channel independent of the data network. The out-of-band management system has server fault detection logic. Specifically, when the abnormal monitoring system detects that the target server is abnormal, it will send abnormal information to the out-of-band management system, so that the out-of-band management system can obtain the log information of the target server, analyze the log information, and obtain the fault diagnosis result that matches the target server. Among them, the log information may include but is not limited to register logs, black box logs, audit logs, and SEL, SDR, BMC one-click collection logs, etc. Further optionally, after the out-of-band management system obtains the log information, it can also obtain auxiliary information for auxiliary fault diagnosis. The auxiliary information may include but is not limited to mapping table information, machine configuration information, and baseboard management controller time information, etc., wherein the mapping table information may include but is not limited to field replaceable unit information, logical volume status mapping table, and silk screen mapping table, etc. Optionally, the out-of-band management system can analyze the log information and auxiliary information to obtain a fault diagnosis result that matches the target server. Among them, the fault diagnosis result is used to describe the fault type of the target server, and the fault type may include but is not limited to hardware fault type, software fault type, etc. And after the fault diagnosis result indicates a hardware fault type and the fault diagnosis result is obtained, the fault diagnosis result can be sent to the hardware monitoring system, wherein the hardware monitoring system is used to determine the type of component that has failed in the target server and other information based on the fault diagnosis result, and can send a request for creating a work order to the operation and maintenance work order system based on the type of component that has failed in the target server and other information, so that the operation and maintenance work order system creates a work order for instructing the target server to replace the component according to the component type and other information. The operation and maintenance work order system can also send the work order to the electronic device used by the staff responsible for maintaining the target server, and can also send an acquisition instruction to the spare parts warehouse for instructing to obtain the hardware to be replaced, so as to realize automatic stocking of the hardware to be replaced. After the staff receives the work order, they can directly get the prepared hardware to be replaced and perform replacement maintenance processing on the target server, thereby improving the efficiency of server fault processing.

[0034] As another optional implementation, Figure 4 As shown, the above server failure processing method may also include:

[0035] S401, when a version update instruction for an out-of-band management system is detected, obtaining a code to be updated, where the out-of-band management system is a management system that executes server fault detection logic;

[0036] S402, updating the code of the out-of-band management system using the code to be updated;

[0037] S403, when the abnormal information is received, if the baseboard management controller of the target server has a register collection function, collect register logs by using the baseboard management controller through the out-of-band management system;

[0038] S404, when the baseboard management controller of the target server does not have a register collection function, collecting register logs through the out-of-band management system using the platform environment control interface;

[0039] S405, obtaining an auxiliary log in the target server, and determining the register log and the auxiliary log as log information of the target server where the abnormality occurs as indicated by the abnormality information, the auxiliary log including at least a black box log and an audit log;

[0040] S406, using the audit log to filter the register log in the log information to obtain the target register log;

[0041] S407, when the target register log is a log collected by the baseboard management controller and the target register log is a log associated with the abnormal information, the target register log is parsed, and a fault diagnosis result matching the target server is obtained by using the parsed target register log and the black box log;

[0042] S408, when the target register log is a log collected by the platform environment control interface, parsing the target register log, and obtaining a fault diagnosis result matching the target server by using the parsed target register log and the black box log;

[0043] S409, outputting the fault diagnosis result according to the result output format, where the fault diagnosis result at least includes fault description information and fault solution suggestion information;

[0044] S410, sending the fault diagnosis result to the hardware monitoring system, wherein, when the fault diagnosis result indicates a hardware fault type, the hardware monitoring system is prompted to perform replacement maintenance processing on the target server.

[0045] In an embodiment of the present invention, the out-of-band management system can be updated. Specifically, when a version update instruction for the out-of-band management system is detected, the code to be updated can be obtained, and the code of the out-of-band management system can be updated using the code to be updated. This process realizes the version update of the out-of-band management system using the code to be updated, without upgrading the hardware inside the server. It only needs to modify the software code of the out-of-band management system to achieve rapid iterative upgrade, thereby improving the upgrade efficiency of the fault diagnosis logic. Further, the baseboard management controller does not necessarily have a register acquisition function. For a baseboard management controller with a register acquisition function, the baseboard management controller can be directly used to collect register logs; for a baseboard management controller without a register acquisition function, the platform environment control interface can be used to collect register logs. In addition, the auxiliary logs in the target server can be obtained, wherein the auxiliary logs may include but are not limited to black box logs and audit logs. The black box log is a log pre-set by the server manufacturer, and the audit log is a log that records the collected data of each log. For example, the audit log can record the collection time of each log, the validity of each log, and the abnormal conditions of each log. This process not only relies on the register log for server fault detection, but also can obtain more auxiliary logs to assist in obtaining fault detection results, thereby improving the validity of fault detection results. In the case of parsing the log information, the audit log can be used to filter the register log first to obtain a valid target register log. Optionally, the audit log can also be used to filter other auxiliary logs such as black box logs to obtain a valid auxiliary log. Since the logs collected by the baseboard management controller are not real-time logs, and the logs collected by the platform environment control interface are real-time logs, the target register log is parsed only when the target register log is a log collected by the baseboard management controller and the target register log is a log associated with the abnormal information, and the parsed target register log and black box log are used to obtain a fault diagnosis result that matches the target server. In the case where the target register log is a log collected by the platform environment interface, the target register log can be directly parsed, and the parsed target register log and black box log are used to obtain a fault diagnosis result that matches the target server. Further optionally, the out-of-band management system can also output the fault diagnosis result according to the result output format. Among them, the fault diagnosis result includes at least fault description information and fault resolution suggestion information. The result output format includes multiple output categories and the output order corresponding to each output category. The output categories may include but are not limited to whether the log information collection is successful, the time taken for the log information collection, whether the log information analysis is successful, the cause of the failure, handling suggestions, and detailed fault information.Among them, for the output of the fault cause, the fault description information in the fault diagnosis result can be obtained first, and the fault component type, the fault component silk screen slot, the fault type and the detailed fault description can be determined and output from the fault description information. For the output of the processing suggestion, the fault solution suggestion information in the fault diagnosis result can be obtained first, and the processing measures, the error silk screen slot and the error component type can be determined and output from the fault solution suggestion information. ..

[0046] As an optional implementation manner, when the target register log is a log collected by a baseboard management controller, the following steps may also be performed:

[0047] When the collection time of the target register log matches the current time of the baseboard management controller, it is determined that the target register log is a log associated with the abnormal information.

[0048] In an embodiment of the present invention, if the target register log is a log collected by the baseboard management controller, since the log collected by the baseboard management controller is not a log collected in real time, the log may be a log associated with the current abnormal information or a log associated with the last abnormal information. At this time, the collection time of the target register log and the current time of the baseboard management controller may be matched. If the collection time of the target register log and the current time of the baseboard management controller match successfully, the target register log is determined to be a log associated with the abnormal information. Optionally, before checking whether the collection time of the target register log and the current time of the baseboard management controller match, the collection time of the target register log and the current time of the baseboard management controller may be converted to the time corresponding to the same time zone, and then the collection time of the target register log converted to the same time zone and the current time of the baseboard management controller may be matched.

[0049] As an optional implementation, when the acquisition time of the target register log does not match the current time of the baseboard management controller, the following steps may be further performed:

[0050] The target register log is determined to be a log not associated with the abnormal information, and the target register log is stored as the historical fault information.

[0051] In the embodiment of the present invention, if the target register log is a log not associated with abnormal information, it means that the target register log is a log associated with historical abnormal information. In this case, the target register log can be stored as historical fault information.

[0052] Optionally, as an optional implementation, as Figure 5 As shown, the above server failure processing method may also include:

[0053] S501, receiving a fault diagnosis result sent by the out-of-band management system, where the fault diagnosis result is obtained by the out-of-band management system after analyzing the log information of the target server where the abnormality occurs as indicated by the abnormality information when the abnormality information is received, and the fault diagnosis result at least includes fault description information and fault resolution suggestion information;

[0054] S502, when the fault resolution suggestion information indicates that a hardware component of the target server should be replaced, obtaining hardware information to be replaced that matches the fault resolution suggestion information, the hardware information to be replaced being used to instruct the staff to perform fault maintenance processing on the target server according to the hardware component to be replaced in the hardware information to be replaced;

[0055] S503, sending a work order creation request to the operation and maintenance work order system, the work order creation request carries the information of the hardware to be replaced, so that the operation and maintenance work order system creates a work order matching the hardware to be replaced information and sends an acquisition instruction to the spare parts library to instruct the acquisition of the hardware to be replaced in the hardware to be replaced information.

[0056] See also Figure 6 , Figure 6 FIG. 1 is a flow chart of another optional server failure handling method provided in an embodiment of the present invention. Figure 6 As shown, the following steps can be performed:

[0057] S601, starting a server fault detection system;

[0058] S602, determining whether the out-of-band management system has passed identity authentication, if yes, executing step S603, if no, executing step S602;

[0059] S603, determining whether the baseboard management controller has a collection register function, if yes, executing step S604, if no, executing step S605;

[0060] S604, using the baseboard management controller to collect register logs;

[0061] S605, using the platform environment interface to collect register logs;

[0062] S606, obtaining auxiliary logs in the target server, where the auxiliary logs include at least black box logs and audit logs;

[0063] S607, parsing the register log and the auxiliary log to obtain a fault diagnosis result;

[0064] S608: Output the fault diagnosis result according to the result output format.

[0065] In the embodiment of the present invention, after starting the server fault detection system, it is possible to verify whether the Internet Protocol address of the out-of-band management system, the account number and password for logging into the out-of-band management system have passed the identity verification, and if it is detected that the identity verification has passed, the server fault detection logic is executed. Further, the register log and the auxiliary log are parsed to obtain the fault diagnosis result, which can be specifically: parsing the register log collected by the baseboard management controller, parsing the register log collected by the platform environment control interface, and parsing the auxiliary log, and comprehensively obtaining the fault diagnosis result.

[0066] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0067] According to another aspect of the embodiment of the present invention, a server fault processing device for implementing the above-mentioned server fault processing method is also provided. Figure 7 As shown, the device comprises:

[0068] The first acquisition unit 701 is used to acquire, when received, log information of a target server where an abnormality occurs indicated by the abnormality information through an out-of-band management system, where the out-of-band management system is a management system that executes server fault detection logic;

[0069] An analysis unit 702 is used to analyze the log information to obtain a fault diagnosis result that matches the target server;

[0070] The first sending unit 703 is used to send the fault diagnosis result to the hardware monitoring system, wherein, when the fault diagnosis result indicates a hardware fault type, the hardware monitoring system is prompted to perform replacement maintenance processing on the target server.

[0071] As an optional implementation manner, the first acquisition unit may acquire the log information of the target server where the abnormality occurs indicated by the abnormality information through the out-of-band management system in the following manner:

[0072] The first acquisition unit is used to collect register logs by using the baseboard management controller through an out-of-band management system when the baseboard management controller of the target server has a register collection function; collect register logs by using a platform environment control interface through an out-of-band management system when the baseboard management controller of the target server does not have a register collection function; obtain auxiliary logs in the target server, and determine the register log and the auxiliary log as log information of the target server where an abnormality is indicated by the abnormality information, and the auxiliary log includes at least a black box log and an audit log.

[0073] As an optional implementation, the analysis unit may include:

[0074] A first acquisition subunit is used to filter the register log in the log information by using the audit log to obtain the target register log;

[0075] A parsing subunit, for parsing the target register log when the target register log is a log collected by the baseboard management controller and the target register log is a log associated with the abnormal information, and obtaining a fault diagnosis result matching the target server by using the parsed target register log and the black box log;

[0076] The second acquisition subunit is used to parse the target register log when the target register log is a log collected by the platform environment control interface, and obtain a fault diagnosis result matching the target server by using the parsed target register log and the black box log.

[0077] As an optional implementation, the above device may further include:

[0078] The determination unit is used to determine that the target register log is a log associated with abnormal information when the target register log is a log collected by the baseboard management controller and the collection time of the target register log matches the current time of the baseboard management controller.

[0079] As an optional implementation, the above device may further include:

[0080] The storage unit is used to determine that the target register log is a log not associated with abnormal information when the collection time of the target register log does not match the current time of the baseboard management controller, and store the target register log as historical fault information.

[0081] As an optional implementation, the above device may further include:

[0082] The output unit is used to output the fault diagnosis result matching the target server according to the result output format after obtaining the fault diagnosis result, and the fault diagnosis result at least includes fault description information and fault solution suggestion information.

[0083] As an optional implementation, the above device may further include:

[0084] The updating unit is used to obtain the code to be updated when a version update instruction for the out-of-band management system is detected before obtaining the log information of the target server where the abnormality occurs indicated by the abnormality information through the out-of-band management system; and update the code of the out-of-band management system using the code to be updated.

[0085] According to another aspect of the embodiment of the present invention, a server fault processing device for implementing the above-mentioned server fault processing method is also provided. Figure 8 As shown, the device comprises:

[0086] The receiving unit 801 is used to receive the fault diagnosis result sent by the out-of-band management system. The fault diagnosis result is a fault diagnosis result obtained by the out-of-band management system after analyzing the log information of the target server where the abnormality occurs as indicated by the abnormal information when the abnormal information is received. The fault diagnosis result includes at least fault description information and fault solution suggestion information.

[0087] The second acquisition unit 802 is used to acquire hardware information to be replaced that matches the fault resolution suggestion information when the fault resolution suggestion information indicates that a hardware component of the target server should be replaced, and the hardware information to be replaced is used to instruct the staff to perform fault maintenance processing on the target server according to the hardware component to be replaced in the hardware information to be replaced;

[0088] The second sending unit 803 is used to send a work order creation request to the operation and maintenance work order system, where the work order creation request carries the information of the hardware to be replaced, so that the operation and maintenance work order system creates a work order matching the hardware to be replaced information and sends an acquisition instruction to the spare parts library to instruct the spare parts library to obtain the hardware to be replaced in the hardware to be replaced information.

[0089] According to another aspect of the embodiment of the present invention, an electronic device for implementing the above-mentioned server failure processing method is also provided. Fig. 9 As shown, the electronic device includes a memory 902 and a processor 904. The memory 902 stores a computer program, and the processor 904 is configured to execute the steps in any of the above method embodiments through the computer program.

[0090] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0091] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0092] S1, when receiving the abnormal information, obtaining the log information of the target server where the abnormality occurs indicated by the abnormal information through the out-of-band management system, where the out-of-band management system is a management system that executes the server fault detection logic;

[0093] S2, analyzing the log information to obtain a fault diagnosis result that matches the target server;

[0094] S3, sending the fault diagnosis result to the hardware monitoring system, wherein, when the fault diagnosis result indicates a hardware fault type, the hardware monitoring system is prompted to perform replacement maintenance processing on the target server.

[0095] Alternatively, a person skilled in the art may understand that: Fig. 9 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, or other terminal devices. Fig. 9 The structure of the electronic device is not limited. Fig. 9 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig. 9 Different configurations are shown.

[0096] Among them, the memory 902 can be used to store software programs and modules, such as the program instructions / modules corresponding to the server fault handling method and device in the embodiments of the present invention. The processor 904 executes various functional applications and data processing by running the software programs and modules stored in the memory 902, that is, to implement the above-mentioned server fault handling method. The memory 902 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 instances, the memory 902 may further include a memory remotely located relative to the processor 904, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 902 can be specifically, but not limited to, used to store information such as operating instructions. As an example, such as Fig. 9 As shown, the memory 902 may include but is not limited to the first acquisition unit 701, analysis unit 702 and first sending unit 703 in the server fault processing device. In addition, it may also include but is not limited to other module units in the server fault processing device, which will not be repeated in this example.

[0097] Optionally, the transmission device 906 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 906 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 906 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0098] In addition, the electronic device further comprises: a connection bus 908 for connecting various module components in the electronic device.

[0099] According to another aspect of the embodiment of the present invention, an electronic device for implementing the above-mentioned server failure processing method is also provided. Fig.10 As shown, the electronic device includes a memory 1002 and a processor 1004. The memory 1002 stores a computer program, and the processor 1004 is configured to execute the steps in any of the above method embodiments through the computer program.

[0100] Optionally, in this embodiment, the electronic device may be located in at least one network device among a plurality of network devices of a computer network.

[0101] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0102] S1, receiving a fault diagnosis result sent by the out-of-band management system, where the fault diagnosis result is obtained by the out-of-band management system analyzing log information of a target server where an abnormality occurs as indicated by the abnormal information when the out-of-band management system receives the abnormal information, and the fault diagnosis result at least includes fault description information and fault resolution suggestion information;

[0103] S2, when the fault resolution suggestion information indicates that a hardware component of the target server should be replaced, obtaining hardware information to be replaced that matches the fault resolution suggestion information, the hardware information to be replaced being used to instruct the staff to perform fault maintenance processing on the target server according to the hardware component to be replaced in the hardware information to be replaced;

[0104] S3, sending a work order creation request to the operation and maintenance work order system, the work order creation request carries the hardware information to be replaced, so that the operation and maintenance work order system creates a work order matching the hardware information to be replaced and sends an acquisition instruction to the spare parts library to instruct the acquisition of the hardware to be replaced in the hardware information to be replaced.

[0105] Alternatively, a person skilled in the art may understand that: Fig.10 The structure shown is for illustration only, and the electronic device may also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a PDA, a mobile Internet device (MID), a PAD, or other terminal devices. Fig.10 The structure of the electronic device is not limited. Fig.10 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.10 Different configurations are shown.

[0106] Among them, the memory 1002 can be used to store software programs and modules, such as the program instructions / modules corresponding to the server fault handling method and device in the embodiment of the present invention. The processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, to implement the above-mentioned server fault handling method. The memory 1002 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 instances, the memory 1002 may further include a memory remotely located relative to the processor 1004, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1002 can be specifically, but not limited to, used to store information such as operating instructions. As an example, such as Fig.10 As shown, the memory 1002 may include but is not limited to the receiving unit 801, the second acquiring unit 802 and the second sending unit 803 in the server fault processing device. In addition, it may also include but is not limited to other module units in the server fault processing device, which will not be repeated in this example.

[0107] Optionally, the transmission device 1006 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1006 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0108] In addition, the electronic device further comprises: a connection bus 1008 for connecting various module components in the electronic device.

[0109] According to another aspect of the embodiments of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0110] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0111] S1, when receiving the abnormal information, obtaining the log information of the target server where the abnormality occurs indicated by the abnormal information through the out-of-band management system, where the out-of-band management system is a management system that executes the server fault detection logic;

[0112] S2, analyzing the log information to obtain a fault diagnosis result that matches the target server;

[0113] S3, sending the fault diagnosis result to the hardware monitoring system, wherein, when the fault diagnosis result indicates a hardware fault type, the hardware monitoring system is prompted to perform replacement maintenance processing on the target server.

[0114] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0115] According to another aspect of the embodiments of the present invention, a storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0116] Optionally, in this embodiment, the storage medium may be configured to store a computer program for performing the following steps:

[0117] S1, receiving a fault diagnosis result sent by the out-of-band management system, where the fault diagnosis result is obtained by the out-of-band management system analyzing log information of a target server where an abnormality occurs as indicated by the abnormal information when the out-of-band management system receives the abnormal information, and the fault diagnosis result at least includes fault description information and fault resolution suggestion information;

[0118] S2, when the fault resolution suggestion information indicates that a hardware component of the target server should be replaced, obtaining hardware information to be replaced that matches the fault resolution suggestion information, the hardware information to be replaced being used to instruct the staff to perform fault maintenance processing on the target server according to the hardware component to be replaced in the hardware information to be replaced;

[0119] S3, sending a work order creation request to the operation and maintenance work order system, the work order creation request carries the hardware information to be replaced, so that the operation and maintenance work order system creates a work order matching the hardware information to be replaced and sends an acquisition instruction to the spare parts library to instruct the acquisition of the hardware to be replaced in the hardware information to be replaced.

[0120] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0121] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0122] If the integrated units in the above embodiments are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling one or more computer devices (which can be personal computers, servers or network devices, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention.

[0123] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

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

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

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

[0127] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A server failure processing method, characterized in that: include: In the case of receiving the abnormal information, obtaining the log information of the target server indicated by the abnormal information through the out-of-band management system, including: in the case that the baseboard management controller of the target server has a register collection function, collecting the register log by using the baseboard management controller through the out-of-band management system; in the case that the baseboard management controller of the target server does not have the register collection function, collecting the register log by using the platform environment control interface through the out-of-band management system; obtaining the auxiliary log in the target server, and determining the register log and the auxiliary log as the log information of the target server indicated by the abnormal information, the auxiliary log at least includes a black box log and an audit log, and the out-of-band management system is a management system that executes server fault detection logic; Analyzing the log information to obtain a fault diagnosis result matching the target server; The fault diagnosis result is sent to a hardware monitoring system, wherein, when the fault diagnosis result indicates a hardware fault type, the hardware monitoring system is prompted to perform replacement maintenance processing on the target server.

2. The method according to claim 1, characterized in that The analyzing the log information to obtain a fault diagnosis result matching the target server includes: Filtering the register log in the log information using the audit log to obtain a target register log; When the target register log is a log collected by the baseboard management controller and the target register log is a log associated with the abnormal information, the target register log is parsed, and the fault diagnosis result matching the target server is obtained by using the parsed target register log and the black box log; In the case where the target register log is a log collected by the platform environment control interface, the target register log is parsed, and the fault diagnosis result matching the target server is obtained by using the parsed target register log and the black box log.

3. The method according to claim 2, characterized in that In the case where the target register log is a log collected by the baseboard management controller, the method further includes: In a case where the collection time of the target register log matches the current time of the baseboard management controller, the target register log is determined to be a log associated with the abnormal information.

4. The method according to claim 3, characterized in that In the case where the acquisition time of the target register log does not match the current time of the baseboard management controller, the method further includes: The target register log is determined to be a log not associated with the abnormal information, and the target register log is stored as historical fault information.

5. The method according to any one of claims 1 to 4, characterized in that: After obtaining the fault diagnosis result matching the target server, the method further includes: The fault diagnosis result is output according to the result output format, and the fault diagnosis result at least includes fault description information and fault solution suggestion information.

6. The method according to claim 1, characterized in that Before obtaining the log information of the target server where the abnormality occurs indicated by the abnormality information through the out-of-band management system, the method further includes: When a version update instruction for the out-of-band management system is detected, obtaining a code to be updated; The code of the out-of-band management system is updated using the code to be updated.

7. A server failure processing method, characterized in that: include: Receiving a fault diagnosis result sent by the out-of-band management system, wherein the fault diagnosis result is log information of a target server where an abnormality occurs, obtained by the out-of-band management system when the out-of-band management system receives the abnormality information, and indicated by the abnormality information, including: In the case where the baseboard management controller of the target server has a register collection function, the register log is collected by the out-of-band management system using the baseboard management controller; in the case where the baseboard management controller of the target server does not have a register collection function, the register log is collected by the out-of-band management system using a platform environment control interface; the auxiliary log in the target server is obtained, and the register log and the auxiliary log are determined as the log information of the target server where the abnormality is indicated by the abnormality information, the auxiliary log includes at least a black box log and an audit log, and the out-of-band management system is a management system that executes server fault detection logic; A fault diagnosis result obtained by analyzing the log information of the target server where the abnormality occurs as indicated by the abnormality information, wherein the fault diagnosis result at least includes fault description information and fault resolution suggestion information; In the case where the fault resolution suggestion information indicates to replace a hardware component of the target server, obtaining hardware information to be replaced that matches the fault resolution suggestion information, the hardware information to be replaced is used to instruct the staff to perform fault maintenance processing on the target server according to the hardware component to be replaced in the hardware information to be replaced; A request for creating an order is sent to the operation and maintenance work order system, the request for creating an order carries the information of the hardware to be replaced, so that the operation and maintenance work order system creates a work order matching the information of the hardware to be replaced and sends an acquisition instruction to the spare parts library to instruct the acquisition of the hardware to be replaced in the information of the hardware to be replaced.

8. A server fault handling device, characterized in that: include: A first acquisition unit is used to, when receiving the abnormal information, acquire the log information of the target server indicated by the abnormal information through the out-of-band management system, including: when the baseboard management controller of the target server has a register collection function, using the baseboard management controller to collect the register log through the out-of-band management system; when the baseboard management controller of the target server does not have the register collection function, using the platform environment control interface to collect the register log through the out-of-band management system; acquiring the auxiliary log in the target server, and determining the register log and the auxiliary log as the log information of the target server indicated by the abnormal information, the auxiliary log includes at least a black box log and an audit log, and the out-of-band management system is a management system that executes server fault detection logic; An analysis unit, used to analyze the log information to obtain a fault diagnosis result matching the target server; The first sending unit is configured to send the fault diagnosis result to a hardware monitoring system, wherein when the fault diagnosis result indicates a hardware fault type, the hardware monitoring system is prompted to perform replacement maintenance processing on the target server.

9. The device according to claim 8, characterized in that The analysis unit comprises: A first acquisition subunit is used to filter the register log in the log information by using the audit log to obtain a target register log; a parsing subunit, configured to parse the target register log when the target register log is a log collected by the baseboard management controller and the target register log is a log associated with the abnormal information, and obtain the fault diagnosis result matching the target server by using the parsed target register log and the black box log; The second acquisition subunit is used to parse the target register log when the target register log is a log collected by the platform environment control interface, and obtain the fault diagnosis result matching the target server by using the parsed target register log and the black box log.

10. The device according to claim 9, characterized in that Also includes: The determining unit is used to determine that the target register log is a log associated with the abnormal information when the target register log is a log collected by the baseboard management controller and the collection time of the target register log matches the current time of the baseboard management controller.

11. A server fault processing device, characterized in that: include: A receiving unit, used for receiving a fault diagnosis result sent by an out-of-band management system, wherein the fault diagnosis result is that when the out-of-band management system receives the abnormal information, the out-of-band management system obtains the log information of the target server where the abnormality occurs as indicated by the abnormal information, including: when the baseboard management controller of the target server has a register collection function, the out-of-band management system uses the baseboard management controller to collect the register log; when the baseboard management controller of the target server does not have the register collection function, the out-of-band management system uses the platform environment control interface to collect the register log; obtain the auxiliary log in the target server, and determine the register log and the auxiliary log as the log information of the target server where the abnormality occurs as indicated by the abnormal information, the auxiliary log at least includes a black box log and an audit log, and the out-of-band management system is a management system that executes server fault detection logic; A fault diagnosis result obtained by analyzing the log information of the target server where the abnormality occurs as indicated by the abnormality information, wherein the fault diagnosis result at least includes fault description information and fault resolution suggestion information; A second acquisition unit is used to acquire hardware information to be replaced that matches the fault resolution suggestion information when the fault resolution suggestion information indicates that a hardware component of the target server should be replaced, wherein the hardware information to be replaced is used to instruct a staff member to perform fault maintenance processing on the target server according to the hardware component to be replaced in the hardware information to be replaced; The second sending unit is used to send a work order creation request to the operation and maintenance work order system, and the work order creation request carries the information of the hardware to be replaced, so that the operation and maintenance work order system creates a work order matching the information of the hardware to be replaced and sends an acquisition instruction to the spare parts library to instruct the acquisition of the hardware to be replaced in the information of the hardware to be replaced.

12. A computer-readable storage medium, the computer-readable storage medium comprising a stored program, wherein: When the program is run, the method described in any one of claims 1 to 6 or claim 7 is executed.

13. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 1 to 6 or claim 7 through the computer program.