A method, device, equipment and medium for server fault diagnosis and alarm

By detecting and analyzing IERR, UCE, and FAULT fault alarms of the server, and collecting and analyzing relevant register information, the problem of insufficient fault diagnosis in the existing technology is solved, more accurate fault location and alarm processing are achieved, and the server's reliability is improved. Reliability and availability.

CN115913895BActive Publication Date: 2024-10-15INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202211391140.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-08
Publication Date
2024-10-15
Estimated Expiration
2042-11-08

AI Technical Summary

Technical Problem

The existing technology has difficulties in locating IERR faults in server fault diagnosis. Out-of-band fault diagnosis cannot cover all scenarios, and the location granularity is relatively coarse. In particular, UCE and FAULT faults are highly dependent on enhanced error reporting (AER) location analysis. , and the AER-related status register cannot support out-of-band acquisition.

Method used

By detecting whether the server CPU triggers an IERR fault alarm, the MSR, CSR and PCIEROOT PORT register information is collected, sent to the diagnostic rule base to analyze abnormal risks, and the original fault alarm data is formatted into a log and output according to severity levels; at the same time, UCE and Number of FAULT failures, collect MCA and AER register information, analyze abnormal risks of CPU and MEM, and report alarm information through SNMP and SMTP.

Benefits of technology

Improved server fault diagnosis capabilities, allowing users to accurately locate the source of server downtime, reducing the cost of fault location for operation and maintenance and developers, and improving server reliability and availability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115913895B_ABST
    Figure CN115913895B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, equipment and readable medium for server fault diagnosis and alarm, the method comprising: detecting whether the CPU of the server triggers an IERR type fault alarm; in response to detecting that an IERR type fault alarm occurs in the server, collecting information in the first type of register in the server; sending the collected information of the first type of register to a diagnostic rule library to analyze the abnormal risk of the current CPU operation; formatting the original fault alarm data into a log, and dividing the abnormal risk and fault alarm into severity levels for output. By using the solution of the present invention, the server fault diagnosis capability can be greatly improved, allowing users to accurately locate the source of server downtime, reducing the cost of fault location for operation and maintenance and developers, and improving the reliability and availability of the server.
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 more particularly to a method, device and readable medium for server fault diagnosis and alarm. Background Art

[0002] With the large-scale deployment of 5G and the popularization of the Internet of Things, the era of "Internet of Everything" has arrived. The surge in data demand has led to a continuous increase in the number of servers. While the servers continue to run under load, various fault problems will inevitably occur, such as server downtime, memory UCE, PCIE bus hang, restart, etc. Some types of faults and related faults are highly dependent on enhanced error reporting (AER) positioning analysis. AER and other related status registers cannot support out-of-band acquisition, resulting in out-of-band fault diagnosis cannot cover all scenarios and the positioning granularity is coarse. Summary of the invention

[0003] In view of this, the purpose of the embodiments of the present invention is to propose a method, device, equipment and readable medium for server fault diagnosis and alarm. By using the technical solution of the present invention, the server fault diagnosis capability can be greatly improved, so that users can accurately locate the source of server downtime, reduce the cost of operation and maintenance and developers to locate faults, and improve the reliability and availability of the server.

[0004] Based on the above purpose, an aspect of an embodiment of the present invention provides a method for server fault diagnosis and alarm, comprising the following steps:

[0005] Check whether the server's CPU triggers an IERR fault alarm;

[0006] In response to detecting that an IERR type fault alarm occurs in the server, collecting information in a first type of register in the server;

[0007] Send the collected information of the first type of registers to the diagnosis rule base to analyze the abnormal risk of the current CPU operation;

[0008] The original fault alarm data is formatted into logs, and abnormal risks and fault alarms are classified into severity levels for output.

[0009] According to an embodiment of the present invention, detecting whether the CPU of the server triggers an IERR type fault alarm includes:

[0010] CPLD detects whether the caterr pin led out from the CPU triggers the IERR fault alarm;

[0011] The BMC periodically interacts with the CPLD to obtain the IERR fault alarm information.

[0012] According to one embodiment of the present invention, in response to detecting that an IERR type fault alarm occurs in a server, collecting information in a first type register in the server includes:

[0013] In response to detecting an IERR type fault alarm of the server, information of the MSR register, the CSR register and the PCIEROOT PORT register is obtained, and the information is the CPU internal health status information and the PCIE device status information in the server.

[0014] According to one embodiment of the present invention, it also includes:

[0015] Check whether the server system triggers UCE and FAULT faults;

[0016] In response to detecting that a UCE type fault and a FAULT type fault are triggered by the server system, respectively counting a first number of occurrences of the UCE type fault and a second number of occurrences of the FAULT type fault;

[0017] comparing the first count to a first threshold and comparing the second count to a second threshold;

[0018] In response to the first number being less than the first threshold and / or the second number being less than the second threshold, no processing is performed.

[0019] According to one embodiment of the present invention, it also includes:

[0020] In response to the first number being greater than the first threshold and / or the second number being greater than the second threshold, collecting information in the second type of register in the server, and sending the collected information to the BMC;

[0021] Sending the collected information of the second type of registers to a diagnostic rule base to analyze the abnormal risk of the current CPU operation and the abnormal risk of the MEM operation;

[0022] The original fault alarm data is formatted into logs, and abnormal risks and fault alarms are classified into severity levels for output.

[0023] According to one embodiment of the present invention, in response to the first number being greater than the first threshold and / or the second number being greater than the second threshold, collecting information in the second type of register in the server, and sending the collected information to the BMC includes:

[0024] In response to the first number being greater than a first threshold and / or the second number being greater than a second threshold, information in the MCA register and the AER register is collected, the information including all status information of the CPU core and CPU description information.

[0025] According to an embodiment of the present invention, formatting the original fault alarm data into a log, and classifying the abnormal risk and fault alarm into severity levels for output includes:

[0026] Record serious alarms in the local SEL log and report them to users through SNMP and SMTP functions so that users can learn about server alarms in a timely manner;

[0027] Maintain a fault handling suggestion table and provide users with current status handling suggestions based on different alarm information.

[0028] Another aspect of the embodiments of the present invention further provides a server fault diagnosis alarm device, the device comprising:

[0029] A detection module, the detection module is configured to detect whether the CPU of the server triggers an IERR type fault alarm;

[0030] A collection module, the collection module is configured to collect information in a first type of register in the server in response to detecting an IERR type fault alarm in the server;

[0031] An analysis module, the analysis module is configured to send the collected information of the first type of registers to a diagnosis rule base to analyze the abnormal risk of the current CPU operation;

[0032] The alarm module is configured to format the original fault alarm data into logs, and classify the abnormal risks and fault alarms into severity levels for output.

[0033] Another aspect of the embodiments of the present invention further provides a computer device, the computer device comprising:

[0034] at least one processor; and

[0035] The memory stores computer instructions executable on the processor, and the instructions implement the steps of any one of the above methods when executed by the processor.

[0036] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any one of the above methods are implemented.

[0037] The present invention has the following beneficial technical effects: the server fault diagnosis and alarm method provided by the embodiment of the present invention detects whether the CPU of the server triggers an IERR type fault alarm; in response to detecting that an IERR type fault alarm occurs in the server, collects information in the first type of registers in the server; sends the collected information of the first type of registers to a diagnostic rule library to analyze the abnormal risk of the current CPU operation; formats the original fault alarm data into a log, and divides the abnormal risk and fault alarm into severity levels for output. The technical solution can greatly improve the server fault diagnosis capability, enable users to accurately locate the source of server downtime, reduce the cost of operation and maintenance and developers to locate faults, and improve the reliability and availability of the server. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0039] Figure 1 A schematic flow chart of a method for diagnosing and warning of server faults according to an embodiment of the present invention;

[0040] Figure 2 A schematic diagram of a server fault diagnosis and alarm system according to an embodiment of the present invention;

[0041] Figure 3 A schematic diagram of a server fault diagnosis and alarm device according to an embodiment of the present invention;

[0042] Figure 4 is a schematic diagram of a computer device according to an embodiment of the present invention;

[0043] Figure 5 FIG. 1 is a schematic diagram of a computer-readable storage medium according to an embodiment of the present invention. DETAILED DESCRIPTION

[0044] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0045] After analyzing the types of system faults, we know that system faults can be divided into IERR (memory error) faults, UCE (unmaskable) faults and FAULT (serious error) faults. IERR faults can trigger the caterr pin (a pin of the CPU), which can enable the BMC to obtain CPU-related registers for fault location, but UCE and FAULT faults cannot trigger the caterr pin, and the faults related to them are highly dependent on enhanced error reporting (AER) location analysis. AER and other related status registers cannot support out-of-band acquisition, resulting in out-of-band fault diagnosis that cannot cover all scenarios and has a coarse location granularity.

[0046] Based on the above purpose, a first aspect of an embodiment of the present invention provides an embodiment of a method for server fault diagnosis and alarm. Figure 1 Shown is a schematic flow chart of the method.

[0047] like Figure 1 As shown in , the method may include the following steps:

[0048] S1 detects whether the server's CPU triggers an IERR fault alarm. Figure 2 The system shown implements the method of the present invention, and an IERR detection module can be set to detect IERR type faults. The IERR detection module is a module running inside the BMC. The CPLD will detect the caterr pin led out from the CPU to trigger the IERR alarm. The BMC will periodically interact with the CPLD to obtain the IERR alarm information. After detecting the IERR alarm, the out-of-band register collection module will be triggered to collect register information.

[0049] In response to detecting an IERR fault alarm on the server, S2 collects information from the first type of registers in the server. The out-of-band register collection module obtains CPU register data, including MSR (standard mode register) register, CSR (configuration space register) register, and PCIE ROOT PORT register. These registers store the CPU internal health status information. The PCIE ROOT PORT register contains the system PCIE device status information. Combined with the PCIE device description in the BMC asset information, the status of the device on different PCIE slots can be located. By comprehensively analyzing the values ​​of these registers, the health status of the CPU can be obtained, which is also the most important means for us to locate the IERR fault of the server system.

[0050] S3 sends the collected information of the first type of registers to the diagnostic rule base to analyze the abnormal risk of the current CPU operation. The fault location module obtains the CPU register information, and the obtained register information of each component is sent to the corresponding diagnostic rule base. The diagnostic rule base is composed of downtime diagnostic rules. The CPU diagnostic rule base is a module that comprehensively analyzes CPU-related registers. After being processed by the CPU diagnostic rule base, it can analyze the current CPU's operating health status and abnormal risk, and output the analysis results to the fault alarm buffer area.

[0051] S4 formats the original fault alarm data into a log, and divides the abnormal risks and fault alarms into severity levels for output. The fault alarm module receives the downtime fault information diagnosed by the fault location module, and formats the original alarm data into a log that the user can understand. The fault alarm module can analyze the severity level of the alarm data of different downtime sources such as CPU, MEM, PCIE, etc. Severe alarms should not only be recorded in the local SEL log, but also reported to the user through SNMP (Simple Network Management Protocol) and SMTP (Simple Mail Transfer Protocol) functions, so that the user can understand the server alarm status in time. In addition, the fault alarm module maintains a downtime processing suggestion table, which can provide users with processing suggestions for the current status according to different alarm information indexes, so that users can have a basis for processing downtime.

[0052] By using the technical solution of the present invention, the server fault diagnosis capability can be greatly improved, so that users can accurately locate the source of server downtime, reduce the cost of operation and maintenance and developers to locate the fault, and improve the reliability and availability of the server.

[0053] In a preferred embodiment of the present invention, detecting whether the CPU of the server triggers an IERR type fault alarm includes:

[0054] CPLD detects whether the caterr pin led out from the CPU triggers the IERR fault alarm;

[0055] The BMC periodically interacts with the CPLD to obtain the IERR fault alarm information.

[0056] In a preferred embodiment of the present invention, in response to detecting that an IERR type fault alarm occurs in a server, collecting information in a first type register in the server includes:

[0057] In response to detecting an IERR type fault alarm of the server, information of the MSR register, the CSR register and the PCIEROOT PORT register is obtained, and the information is the CPU internal health status information and the PCIE device status information in the server.

[0058] In a preferred embodiment of the present invention, it also includes:

[0059] Check whether the server system triggers UCE and FAULT faults;

[0060] In response to detecting that a UCE type fault and a FAULT type fault are triggered by the server system, respectively counting a first number of occurrences of the UCE type fault and a second number of occurrences of the FAULT type fault;

[0061] comparing the first count to a first threshold and comparing the second count to a second threshold;

[0062] In response to the first number being less than the first threshold and / or the second number being less than the second threshold, no processing is performed. The fault diagnosis script module is a tool running under the OS, which monitors the UCE and FAULT fault information of the current server system in real time. When UCE and FAULT fault alarms are detected, the in-band register collection module is triggered to collect register information. After the server system is powered on, the BIOS POST detects that the machine operating environment is normal and completes the configuration of the system information, then boots and loads the OS system. After the OS system is started, the fault diagnosis script polling function is triggered. The script runs in real time throughout the server life cycle and is the core component of the in-band fault detection and register collection functions. After the fault diagnosis script module detects UCE and FAULT fault alarms, it passes the information to the fault arbitration module. This module compares the current number of UCE faults and FAULT faults with the preset thresholds to arbitrate whether to collect registers in-band. Generally speaking, FAULT faults will directly trigger the in-band collection registers. UCE faults will be compared with the preset thresholds to determine whether to trigger the in-band collection registers. After the arbitration is completed, the in-band register collection module is called to collect register information.

[0063] In a preferred embodiment of the present invention, it also includes:

[0064] In response to the first number being greater than the first threshold and / or the second number being greater than the second threshold, collecting information in the second type of register in the server, and sending the collected information to the BMC;

[0065] Sending the collected information of the second type of registers to a diagnostic rule base to analyze the abnormal risk of the current CPU operation and the abnormal risk of the MEM operation;

[0066] The data of the original fault alarm is formatted into a log, and the abnormal risk and fault alarm are divided into severity levels for output. The in-band register collection module obtains the data of the CPU register, including the MCA (machine check architecture) register and the AER (enhanced error reporting) register. These registers store all the status information of the CPU core and the CPU description information. Through these registers, the health status of the CPU can be accurately predicted. The MCA register information contains information related to MEM CE and MEM UCE. Through these registers, the health status of MEM (memory) in different slots can be accurately predicted. The AER register information contains information related to the system FAULT. Through these registers, the internal abnormality of the CPU can be obtained. Obtaining MCA register and AER register information is the most important means to locate UCE and FAULT faults of the server system. The information sending module is a module running in the server system. After the in-band register collection module completes the register collection work, it will directly call this module. In order to enable the BMC to correctly identify the in-band register information, the information sending module must strictly send register data in accordance with the interaction document agreed with the BMC, and the sent data is processed by the information receiving module. The information receiving module is a module running inside the BMC, responsible for receiving the register information transmitted by the information sending module. The analysis of this module is also strictly in accordance with the interactive document to extract the corresponding register data, and the register is stored in the internal buffer area for the fault location module to access. The fault location module accesses the internal cache of the fault receiving module to obtain the CPU register information, and the acquired register information of each component is sent to the corresponding diagnosis rule library. The diagnosis rule library is composed of downtime diagnosis rules. The CPU diagnosis rule library is a module for comprehensive analysis of CPU-related registers. After being processed by the CPU diagnosis rule library, it can analyze the current CPU's operating health status and abnormal risks, and output the analysis results to the alarm buffer area. The MEM diagnosis rule library is a module for comprehensive analysis of MEM-related registers. After being processed by the MEM diagnosis rule library, it can analyze the current MEM's operating health status and abnormal risks, and output the analysis results to the alarm buffer area. The diagnosis rule library includes two copies of historical and current register information, which are used to trace back historical information during the diagnosis process and diagnose possible risk points through the change process of certain registers. After diagnosing the downtime fault, this module calls the fault alarm module for alarm processing. The fault alarm module receives the downtime fault information diagnosed by the fault location module and formats the original alarm data into a log that the user can understand. The fault alarm module can analyze the alarm data of different downtime sources such as CPU, MEM, PCIE, etc. to determine the severity level. Severe alarms should not only be recorded in the local SEL maintenance log, but also reported to the user through SNMP and SMTP functions so that the user can understand the server alarm situation in a timely manner.In addition, the fault alarm module maintains a downtime processing suggestion table. According to different alarm information indexes and the alarm processing suggestion table, it can provide users with processing suggestions for the current status, so that users have a basis for handling downtime.

[0067] In a preferred embodiment of the present invention, in response to the first number being greater than the first threshold and / or the second number being greater than the second threshold, collecting information in the second type of register in the server, and sending the collected information to the BMC comprises:

[0068] In response to the first number being greater than a first threshold and / or the second number being greater than a second threshold, information in the MCA register and the AER register is collected, the information including all status information of the CPU core and CPU description information.

[0069] In a preferred embodiment of the present invention, formatting the original fault alarm data into a log, and classifying the abnormal risk and fault alarm into severity levels for output includes:

[0070] Record serious alarms in the local SEL log and report them to users through SNMP and SMTP functions so that users can learn about server alarms in a timely manner;

[0071] Maintain a fault handling suggestion table and provide users with current status handling suggestions based on different alarm information.

[0072] The present invention combines in-band and out-of-band detection of downtime faults, and then collects CPU, MEM, PCIE and other register information in and out of band respectively, and then uniformly processes various register information by the diagnostic rule library of the BMC downtime fault module and analyzes the source of the downtime fault, and finally presents the downtime cause and processing suggestions to the user through the fault alarm module. The fault diagnosis and alarm method for the whole cabinet server provided by the present invention greatly improves the server fault diagnosis capability, enables users to accurately locate the source of server downtime, reduces the cost of locating faults by operation and maintenance and developers, and can guide users to restore server health according to fault handling suggestions, thereby extending the server life cycle.

[0073] It should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiment can achieve the same or similar effect as any of the above-mentioned method embodiments corresponding thereto.

[0074] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a CPU, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the CPU, the above functions defined in the method disclosed in the embodiment of the present invention are performed.

[0075] Based on the above purpose, a second aspect of the embodiment of the present invention provides a server fault diagnosis alarm device, such as Figure 3 As shown, the device 200 includes:

[0076] A detection module, the detection module is configured to detect whether the CPU of the server triggers an IERR type fault alarm;

[0077] A collection module, the collection module is configured to collect information in a first type of register in the server in response to detecting an IERR type fault alarm in the server;

[0078] An analysis module, the analysis module is configured to send the collected information of the first type of registers to a diagnosis rule base to analyze the abnormal risk of the current CPU operation;

[0079] The alarm module is configured to format the original fault alarm data into logs, and classify the abnormal risks and fault alarms into severity levels for output.

[0080] Based on the above purpose, a third aspect of an embodiment of the present invention provides a computer device. Figure 4 FIG. 2 is a schematic diagram of an embodiment of a computer device provided by the present invention. Figure 4 As shown, the embodiment of the present invention includes the following devices: at least one processor 21; and a memory 22, the memory 22 stores computer instructions 23 that can be executed on the processor, and the above method is implemented when the instructions are executed by the processor.

[0081] Based on the above purpose, a fourth aspect of an embodiment of the present invention provides a computer-readable storage medium. Figure 5 FIG. 2 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention. Figure 5 As shown, the computer readable storage medium 31 stores a computer program 32 which performs the above method when executed by a processor.

[0082] In addition, the method disclosed in the embodiment of the present invention can also be implemented as a computer program executed by a processor, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the above functions defined in the method disclosed in the embodiment of the present invention are performed.

[0083] In addition, the above method steps and system units may also be implemented using a controller and a computer-readable storage medium for storing a computer program that enables the controller to implement the above steps or unit functions.

[0084] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.

[0085] In one or more exemplary designs, the function can be implemented in hardware, software, firmware or any combination thereof. If implemented in software, the function can be stored on a computer-readable medium or transmitted by a computer-readable medium as one or more instructions or codes. Computer-readable media include computer storage media and communication media, and the communication media include any media that helps to transfer a computer program from one location to another. The storage medium can be any available medium that can be accessed by a general or special computer. As an example and not limiting, the computer-readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, disk storage devices or other magnetic storage devices, or any other medium that can be used to carry or store the required program code in the form of an instruction or data structure and can be accessed by a general or special computer or a general or special processor. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if a coaxial cable, optical fiber cable, twisted pair, digital subscriber line (DSL) or wireless technologies such as infrared, radio and microwaves are used to send software from a website, server or other remote source, the above-mentioned coaxial cable, optical fiber cable, twisted pair, DSL or wireless technologies such as infrared, radio and microwaves are all included in the definition of the medium. As used herein, disk and disc include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, Blu-ray disc, wherein disks usually reproduce data magnetically, while optical discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0086] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope disclosed in the embodiments of the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.

[0087] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.

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

[0089] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0090] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A method for server fault diagnosis and alarm, characterized in that: The following steps are involved: Check whether the server's CPU triggers an IERR fault alarm; In response to detecting that an IERR type fault alarm occurs in the server, collecting information in a first type of register in the server; Send the collected information of the first type of registers to the diagnosis rule base to analyze the abnormal risk of the current CPU operation; Format the original fault alarm data into logs, and classify the abnormal risks and fault alarms into severity levels for output; The formatting of the original fault alarm data into logs and the classification of abnormal risks and fault alarms into severity levels for output include: Record serious alarms in the local SEL log and report them to users through SNMP and SMTP functions so that users can learn about server alarms in a timely manner; Maintain a fault handling suggestion table and provide users with current status handling suggestions based on different alarm information.

2. The method according to claim 1, characterized in that: Check whether the server CPU triggers an IERR fault alarm: CPLD detects whether the caterr pin led out from the CPU triggers the IERR fault alarm; The BMC periodically interacts with the CPLD to obtain the IERR fault alarm information.

3. The method according to claim 1, characterized in that In response to detecting that an IERR fault alarm occurs in a server, collecting information in a first type of register in the server includes: In response to detecting an IERR type fault alarm of the server, information of the MSR register, the CSR register and the PCIE ROOTPORT register is obtained, and the information is the CPU internal health status information and the PCIE device status information in the server.

4. The method according to claim 1, characterized in that: Also includes: Check whether the server system triggers UCE and FAULT faults; In response to detecting that a UCE type fault and a FAULT type fault are triggered by the server system, respectively counting a first number of occurrences of the UCE type fault and a second number of occurrences of the FAULT type fault; comparing the first count to a first threshold and comparing the second count to a second threshold; In response to the first number being less than the first threshold and / or the second number being less than the second threshold, no processing is performed.

5. The method according to claim 4, characterized in that Also includes: In response to the first number being greater than the first threshold and / or the second number being greater than the second threshold, collecting information in the second type of register in the server, and sending the collected information to the BMC; Sending the collected information of the second type of registers to a diagnostic rule base to analyze the abnormal risk of the current CPU operation and the abnormal risk of the MEM operation; The original fault alarm data is formatted into logs, and abnormal risks and fault alarms are classified into severity levels for output.

6. The method according to claim 5, characterized in that In response to the first number being greater than the first threshold and / or the second number being greater than the second threshold, collecting information in the second type of register in the server and sending the collected information to the BMC includes: In response to the first number being greater than a first threshold and / or the second number being greater than a second threshold, information in the MCA register and the AER register is collected, the information including all status information of the CPU core and CPU description information.

7. A server fault diagnosis and alarm device, characterized in that: The device comprises: A detection module, wherein the detection module is configured to detect whether the CPU of the server triggers an IERR type fault alarm; A collection module, wherein the collection module is configured to collect information in a first type of register in the server in response to detecting that an IERR type fault alarm occurs in the server; An analysis module, wherein the analysis module is configured to send the collected information of the first type of registers to a diagnosis rule library to analyze the abnormal risk of the current CPU operation; An alarm module, wherein the alarm module is configured to format the original fault alarm data into a log, and classify the abnormal risk and fault alarm into severity levels for output; The alarm module is further used for: Record serious alarms in the local SEL log and report them to users through SNMP and SMTP functions so that users can learn about server alarms in a timely manner; Maintain a fault handling suggestion table and provide users with current status handling suggestions based on different alarm information.

8. A computer device, characterized in that: include: at least one processor; as well as A memory storing computer instructions executable on the processor, wherein the instructions, when executed by the processor, implement the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Server early-warning method based on memory errors

    CN102681909A

  • Server failure diagnosis method and system, equipment and storage medium

    CN108388489A

  • IDL log-based alarm method, apparatus and device, and readable medium

    CN111314115A

  • Fault processing method and device, electronic equipment and storage medium

    CN113918375A

  • Server fault video tracking method and device and storage medium

    CN114422850A