Fault detection method, server, medium and product of baseboard management controller

The baseboard management controller receives and processes general platform error record data, extracts and processes RAS mechanism error information, solves the problem that the advanced reduced instruction set computing architecture server BIOS cannot process the RAS mechanism, and improves fault information processing capabilities and server stability.

CN118656307BActive Publication Date: 2024-10-22INSPUR (SHANDONG) COMPUTER TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411132772.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-10-22
Estimated Expiration
2044-08-19

AI Technical Summary

Technical Problem

The server BIOS of the advanced reduced instruction set computing architecture cannot handle the RAS mechanism, resulting in reduced error handling performance.

Method used

Provides a fault detection method for baseboard management controllers. It receives common platform error record data, converts it into literal scripting language object representation, extracts error information of reliability, availability and serviceability mechanism error types, and processes different types of errors through priority. Type error.

Benefits of technology

It improves the processing performance of the RAS mechanism, ensures the server's ability to process fault information in a specific architecture, ensures stability, and facilitates data transmission and analysis through JSON format data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656307B_ABST
    Figure CN118656307B_ABST
Patent Text Reader

Abstract

The present invention discloses a fault detection method, server, medium and product of a baseboard management controller, and relates to the technical field of fault information processing. The general platform error record data is converted and processed to obtain the first target data corresponding to the literal script language object representation; the first target data is feature extracted and processed according to the characteristic fields corresponding to the reliability, availability and service mechanism error types to obtain the error information of the actual reliability, availability and service mechanism error types. The BMC in the server replaces the server of other architectures, parses and processes the general platform error record data to obtain the first target data of the literal script language object representation, and extracts the error information corresponding to the important field record based on the first target data. Ensure that the RAS mechanism is successfully completed in the server of a specific architecture to improve the fault information processing capability and ensure the stability of the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of fault information processing, and in particular to a fault detection method, server, medium and product of a baseboard management controller. Background Art

[0002] Servers play a vital role in the reliability, availability, and serviceability (RAS) mechanism, ensuring the stable operation of data centers and key business systems through multi-level and multi-faceted technical means.

[0003] The RAS mechanism corresponding to most servers based on the computer language instruction set (The X86 architecture, x86) architecture executed by the microprocessor is processed in the Basic Input Output System (BIOS). However, the BIOS of the server corresponding to the advanced reduced instruction set computing architecture is different from the BIOS of the server based on the x86 architecture. The BIOS of the advanced reduced instruction set computing architecture server can only receive information and cannot process the RAS mechanism, which leads to the reduction of the error handling performance of the RAS mechanism in this specific server.

[0004] Therefore, how to improve the error handling performance of the RAS mechanism is an urgent problem to be solved by those skilled in the art. Summary of the invention

[0005] The object of the present invention is to provide a baseboard management controller fault detection method, server, medium and product to solve the problem of reduced error handling performance caused by the inability of the server BIOS to process the RAS mechanism.

[0006] In order to solve the above technical problems, the present invention provides a fault detection method of a baseboard management controller, the method comprising:

[0007] Receiving general platform error record data sent by the reliability, availability and serviceability processing module when a server anomaly is detected;

[0008] Converting the general platform error record data to obtain first target data corresponding to the interpreted script language object representation;

[0009] According to the characteristic fields corresponding to the reliability, availability and service mechanism error types, the first target data is subjected to feature extraction processing to obtain error information of the actual reliability, availability and service mechanism error types.

[0010] On the one hand, converting the general platform error record data to obtain first target data corresponding to the interpreted script language object representation includes:

[0011] Analyzing and processing the general platform error record data to obtain header information and section data;

[0012] When the header information verifies that the general platform error record data is legal data, the structure corresponding to the section data is aligned with the structure corresponding to the interpreted scripting language object representation to obtain first target data corresponding to the interpreted scripting language object representation.

[0013] On the other hand, aligning the structure corresponding to the section data with the structure corresponding to the interpreted scripting language object representation to obtain first target data corresponding to the interpreted scripting language object representation includes:

[0014] Creating object information corresponding to the interpreted scripting language object representation according to the header information of the general platform error record data;

[0015] In response to creating the object information corresponding to the interpreted scripting language object representation, creating a section descriptor corresponding to the interpreted scripting language object representation according to the general platform error record data to obtain a section descriptor number corresponding to the section descriptor;

[0016] When the section descriptor number is greater than 0, the characteristic fields corresponding to the reliability, availability and serviceability mechanism error types and the key information of the object information are matched according to the general platform error record data to complete the conversion processing of the first target data.

[0017] On the other hand, the reliability, availability and serviceability mechanism error type is at least one of the following error types:

[0018] Error type 1: Memory slot error type;

[0019] Error type 2: CPU error type;

[0020] Error type three: Peripheral component interconnection fast channel error type.

[0021] On the other hand, when the reliability, availability, and service mechanism error types include memory slot error types, central processing unit error types, and peripheral component interconnection fast channel error types, the feature extraction processing performed on the first target data according to the feature fields corresponding to the reliability, availability, and service mechanism error types to obtain actual reliability, availability, and service mechanism error information includes:

[0022] The memory slot error type, the central processing unit error type and the peripheral component interconnection fast channel error type are respectively set to a first priority, a second priority and a third priority;

[0023] Outputting an instruction for processing the first target data according to the characteristic field of the memory slot error type corresponding to the first priority;

[0024] The processing method corresponding to the instruction for processing the first target data according to the characteristic field of the memory slot error type corresponding to the first priority level includes at least one of the following methods:

[0025] Method 1: Output error information;

[0026] Mode 2: outputting instructions for processing the first target data according to the characteristic field of the CPU error type corresponding to the second priority level;

[0027] The processing method corresponding to the instruction for processing the first target data in response to the characteristic field of the CPU error type corresponding to the second priority level includes at least one of the following methods:

[0028] Method 3: Output error information;

[0029] Mode 4: outputting an instruction for processing the first target data according to the characteristic field of the peripheral component interconnect fast channel error reporting type corresponding to the third priority;

[0030] Correspondingly, the processing method corresponding to the instruction for processing the first target data in response to the characteristic field of the peripheral component interconnect fast channel error type corresponding to the third priority includes at least one of the following methods:

[0031] Method 5: Output error information;

[0032] Mode six: outputting information that the server to which the baseboard management controller belongs does not have error information.

[0033] On the other hand, when the reliability, availability and serviceability processing module detects that the server is abnormal, it calls the intelligent platform management interface and sends the general platform error record data to the baseboard management controller.

[0034] On the other hand, before sending the universal platform error record data to the baseboard management controller, the method further includes:

[0035] Obtaining a first data length of the initial general platform error record data and a second data length of the transmission by calling the intelligent platform management interface;

[0036] Outputting at least one of the following results according to the comparison between the first data length of the initial universal platform error record data and the second data length of the transmission by calling the intelligent platform management interface:

[0037] Result 1: unpacking the initial universal platform error record data according to the second data length transmitted by calling the intelligent platform management interface to obtain a plurality of unpacked initial universal platform error record data; and using the plurality of unpacked initial universal platform error record data as the universal platform error record data;

[0038] Result 2: the initial universal platform error record data is used as the universal platform error record data.

[0039] On the other hand, unpacking the initial universal platform error record data according to the second data length transmitted by calling the intelligent platform management interface to obtain a plurality of unpacked initial universal platform error record data, including:

[0040] Dividing the initial universal platform error record data into a plurality of initial universal platform error record data corresponding to the second data length according to the relationship between the second data length transmitted by calling the intelligent platform management interface and the first data length of the initial universal platform error record data; and placing the plurality of initial universal platform error record data corresponding to the second data length into corresponding data packets;

[0041] If there is a data length of the divided initial universal platform error record data that is smaller than the second data length, the divided initial universal platform error record data that is smaller than the second data length is taken as a separate data packet;

[0042] The data packets are marked according to the division order to obtain marked data packets, so as to complete the unpacking process.

[0043] On the other hand, the receiving of general platform error record data sent by the reliability, availability and serviceability processing module when detecting a server abnormality includes:

[0044] Receive general platform error record data corresponding to the current data packet and corresponding identification information;

[0045] The identification information is processed to obtain at least one of the following processing results:

[0046] Processing result 1: outputting result information of determining to store the current data packet according to the number of data received before the current data packet being 0;

[0047] Processing result 2: outputting result information of storing the current data packet determined according to the difference between the identification information corresponding to the current data packet and the previous data packet;

[0048] Processing result three: outputting result information of determining to store the current data packet according to the number of data received before the current data packet being greater than 0;

[0049] Processing result four: outputting result information of the packaged general platform error record data obtained by performing a package processing on the multiple unpacked initial general platform error record data in the order of the identification information.

[0050] On the other hand, after converting the general platform error record data to obtain the first target data corresponding to the interpreted script language object representation, the method further includes:

[0051] A two-file circular storage mechanism is established in advance;

[0052] storing the first target data into a corresponding target file according to the two-file circular storage mechanism;

[0053] Correspondingly, the storage process of the two-file circular storage mechanism includes:

[0054] Determine the storage space size of the first file corresponding to the two-file circular storage mechanism;

[0055] When the storage data size of the first target data is larger than the storage space size of the first file, the first target data is stored in the second file corresponding to the two-file circular storage mechanism; if the storage space size of the first file reaches a preset capacity, the first file is cleared to facilitate the storage of subsequent target data;

[0056] When the storage data size of the first target data is less than or equal to the storage space size of the first file, the first target data is stored in the first file corresponding to the two-file circular storage mechanism; if the storage space size of the first file after storing the first target data reaches a preset capacity, switch to the second file corresponding to the two-file circular storage mechanism to facilitate the storage of subsequent target data.

[0057] In another aspect, the method further comprises:

[0058] Acquire a first register value corresponding to the power supply unit according to a communication protocol for power management;

[0059] Analyzing and processing the first register value to obtain second target data;

[0060] When the second target data is the same as the preset data, fault information of the predicted fault is output.

[0061] In another aspect, the method further comprises:

[0062] Acquire a second register value corresponding to the non-volatile memory fast channel hard disk according to the system management bus;

[0063] Analyzing and processing the second register value to obtain third target data;

[0064] When the third target data is the same as the preset threshold, an alarm message of service life is output.

[0065] In order to solve the above technical problems, the present invention further provides a server, comprising:

[0066] Memory for storing computer programs;

[0067] The processor is used to implement the steps of the fault detection method of the baseboard management controller when executing the computer program.

[0068] In order to solve the above technical problems, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the fault detection method of the baseboard management controller as described above are implemented.

[0069] In order to solve the above technical problem, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the fault detection method of the baseboard management controller when executed by a processor.

[0070] The present invention provides a fault detection method for a baseboard management controller, the method comprising: receiving general platform error record data sent by a reliability, availability and serviceability processing module when a server abnormality is detected; converting the general platform error record data to obtain first target data corresponding to a literal script language object representation; and extracting features from the first target data according to feature fields corresponding to reliability, availability and serviceability mechanism error types to obtain error information of actual reliability, availability and serviceability mechanism error types.

[0071] The beneficial effect of the present invention is that compared with the situation that the BIOS of the server of the advanced reduced instruction set computing architecture performs the RAS mechanism and only receives information without any processing, the processing performance of the RAS mechanism is reduced. The BMC in the server of the present invention replaces the server of other architectures to complete the normal RAS mechanism. During the BMC processing, the common platform error record data (CPER data) is parsed to obtain the first target data of the literal scripting language object representation (JSON), and the error information corresponding to the important field record is extracted based on the first target data. It is ensured that the RAS mechanism is successfully completed in the server of a specific architecture, so as to improve the fault information processing capability and ensure the stability of the server.

[0072] Secondly, converting CPER data into JSON format is convenient for users to read and write, with a clear structure and hierarchy, and is easy to understand and communicate. In addition, in order to display it on the web page interface, JSON is closely related to JavaScript, which is very popular in Web development. Converting it to JSON format can easily transfer CPER data between the Web front-end and back-end, which helps to unify CPER data from different sources and facilitates data comparison, analysis and reporting. The specific conversion process of converting CPER data into JSON format, combined with the characteristics of JSON format, CPER data is converted into a JSON object containing header information and section data, ensuring the efficiency of subsequent data processing. By establishing a two-file circular storage mechanism, reliable data is guaranteed for subsequent maintenance work, and at the same time, it also ensures that the storage file corresponding to the current target data always has enough space for storage. The RAS mechanism can ensure the stable operation of the server by setting the corresponding error type. Once a problem is detected, RAS will try to self-repair, isolate the faulty component, or notify the system administrator to intervene. Using priority information to correspond to different error types, the feature field corresponding to the error type is used for subsequent feature extraction, ensuring the accuracy and efficiency of data feature extraction. Before being transmitted to the BMC, the CPER data is unpacked to ensure efficient transmission in IPMI and improve the reliability of data transmission.

[0073] In addition, the present invention also provides a server, a computer-readable storage medium, and a computer program product, which have the same beneficial effects as the above-mentioned fault detection method of the baseboard management controller. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0075] Figure 1 A flow chart of a fault detection method of a baseboard management controller provided by an embodiment of the present invention;

[0076] Figure 2 A schematic diagram of an error message display of a web page interface provided by an embodiment of the present invention;

[0077] Figure 3 A feature extraction flow chart of a RAS mechanism error type provided by an embodiment of the present invention;

[0078] Figure 4 A flow chart of a verification process when a BMC receives data provided in an embodiment of the present invention;

[0079] Figure 5 A structural diagram of a fault detection device for a baseboard management controller provided by an embodiment of the present invention;

[0080] Figure 6 A structural diagram of a server provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0081] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions 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 are within the scope of protection of the present invention.

[0082] The core of the present invention is to provide a fault detection method, server, medium and product of a baseboard management controller to solve the problem of reduced error handling performance caused by the inability of the BIOS of a server with an advanced reduced instruction set computing architecture to process the RAS mechanism.

[0083] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0084] Servers are one of the key components of any modern data center infrastructure, and include various components such as processors, storage devices, Peripheral Component Interconnect Express (PCIe) devices, power supplies, and fans. One of the key requirements for any modern data center is to ensure that the server remains operational and that data is not corrupted when it is stored in any server component (such as memory, cache, or processor registers) or transmitted in any platform link. When a component of the server fails, RAS technology meets the above requirements as much as possible by maximizing availability and ensuring data integrity in all components.

[0085] The RAS mechanism processing corresponding to servers with different architectures is different, mainly because there are differences in design goals, usage scenarios, technical implementations, and hardware support. Servers based on the Advanced RISCMachine (RAM) architecture have specific RAS features, which are different from the X86 architecture. The X86 architecture features need to be tightly integrated with the firmware BIOS and the operating system to achieve error detection, reporting, and recovery. However, the BIOS of servers based on the Advanced RISCMachine architecture cannot handle this in the processing of the RAS mechanism. The fault detection method of the baseboard management controller provided by the present invention can solve the above technical problems.

[0086] Figure 1 A flowchart of a fault detection method for a baseboard management controller provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:

[0087] S11: receiving general platform error record data sent by the reliability, availability and serviceability processing module when detecting a server abnormality;

[0088] S12: converting the general platform error record data to obtain first target data corresponding to the interpreted script language object representation;

[0089] S13: performing feature extraction processing on the first target data according to the feature fields corresponding to the reliability, availability and service mechanism error types to obtain error information of actual reliability, availability and service mechanism error types.

[0090] Specifically, this embodiment can be applied to servers of advanced reduced instruction set computing architecture, and can also be applied to servers of other architectures, which is not limited here. It is mainly considered that servers of advanced reduced instruction set computing architecture are different from x86 architecture servers, which makes it impossible to complete the RAS mechanism normally in BIOS. The server chip platform of advanced reduced instruction set computing architecture has a reliability, availability and service processing module, which performs the collection work of RAS mechanism. It should be noted here that the collection of RAS mechanism can be carried out using BIOS or through other hardware, which is not limited here and can be set according to actual conditions.

[0091] The reliability, availability, and serviceability processing module will detect whether there is an abnormality in the server. If there is an abnormality, it will generate Common Platform Error Record (CPER) data in the abnormal situation. CPER data is a format used to represent platform hardware errors. It consists of one or more parts. Its error types include but are not limited to processor correctable errors, processor uncorrectable non-fatal errors, processor uncorrectable fatal errors, memory correctable errors, memory uncorrectable non-fatal errors, memory uncorrectable fatal errors, etc. When processing CPER data, the operating system or other software can use this information to execute corresponding error handling strategies, such as recording logs, notifying administrators, or attempting automatic recovery. CPER is part of the Unified Extensible Firmware Interface (UEFI) specification, which aims to provide a standardized way to report and handle hardware errors.

[0092] During the receiving process, it will be based on the protocol that the baseboard management controller (BMC) can receive CPER data. The protocols here include Intelligent Platform Management Interface (IPMI), Simple Network Management Protocol (SNMP) and Keyboard Controller Style (KCS), etc., which are not limited here.

[0093] After calling a certain protocol, CPER data is received. The transmission efficiency of the transmission process corresponding to different protocols and the data length of the transmission packet are different, which are not limited here. Regarding the data length of the transmission packet, it can be considered that the data in the process of being sent from the RAS processing module to the BMC is long, and the transmission length of the protocol data is limited. It can be unpacked before the RAS processing module sends it to the BMC. During the transmission process, data packets are transmitted one by one, and the received data packets are assembled at the BMC to obtain CPER data. The specific unpacking and assembly process is not limited here, and can be limited according to the actual protocol.

[0094] In step S12, the received CPER data is converted to obtain the first target data corresponding to the interpreted scripting language object notation (JavaScript Object Notation, JSON). It should be noted that JSON data is a lightweight data exchange format that is easy for people to read and write, and easy for machines to parse and generate. Its data features include key-value pairs, arrays, objects and simplicity. Data is organized in the form of key-value pairs, where the key is a string type and the value can be a string, number, array, Boolean value or other JSON object. Arrays are represented by square brackets [] and can contain a series of ordered data. Objects are represented by curly brackets {} and can contain a series of key-value pairs.

[0095] After the first target data is obtained, the technical solution of step S13 can be carried out, or it can be temporarily saved in a file, database or storage device and called when it is used. Of course, it can also be retrieved in real time, which is not limited here. If it is temporarily saved, it is necessary to perform a call operation before performing step S13, and feature extraction can be performed after the response request operation is successful.

[0096] In step S13, feature extraction is performed on the first target data based on the feature field corresponding to the RAS mechanism error type to obtain the error information of the actual RAS mechanism error type. It can be understood that, in the feature extraction of the feature field corresponding to the preset RAS mechanism error type, not all feature fields can be extracted. If the preset RAS mechanism error type is 5, each of which corresponds to a feature field, there may be 3 actual RAS mechanism error types obtained by feature extraction, and the error information obtained is 3. In addition, the preset RAS mechanism error type and the number of corresponding feature fields can also be a one-to-many relationship. An error type includes multiple feature fields. Correspondingly, the error information can also be less than the number corresponding to the preset feature field during the feature extraction process according to the different feature fields. In addition, with respect to multiple RAS mechanism error types, in the feature extraction process, they can be sorted based on the priority of the error type. If the feature field of the error type corresponding to the first priority is feature extracted to determine the error information, no other feature extraction processing is required in the future, and the error processing is directly performed to improve the processing efficiency of the RAS mechanism.

[0097] The specific feature extraction process here can be performed according to conventional feature processing methods, or a new feature extraction algorithm can be set based on the RAS mechanism scenario in this embodiment. There is no limitation here and it can be set according to actual conditions as long as the error information can be accurately obtained.

[0098] Based on the error information in step S13, the obtained error information can be uploaded to the web page interface (Web end) for the user to view. The Web end is the client part of an application or service related to the Internet, covering all parts that users interact with when using Internet-based services, such as web page interface, front-end technology, user interface, user experience, network services, etc., which are not limited here. The web page interface in this embodiment is only used to display error information and let the user know it in time. The obtained error information can also be uploaded to the cloud. In the scenario of batch management of error information, the error information obtained by the BMC of different node servers is uploaded to the cloud remotely to save the occupied space in the local server of the node.

[0099] Figure 2 A schematic diagram of an error message display of a web page interface provided by an embodiment of the present invention, such as Figure 2 As shown, in the web page interface, by filtering by date, level, and device type, you can determine the display status of the current different error types. The corresponding error information is mainly displayed through level, device type, event description, generation time, event code, host name, and processing suggestions.

[0100] The embodiment of the present invention provides a fault detection method for a baseboard management controller, the method comprising: receiving general platform error record data sent by a reliability, availability and serviceability processing module when detecting a server abnormality; converting and processing the general platform error record data to obtain first target data corresponding to a literal scripting language object representation; and extracting features of the first target data according to feature fields corresponding to the reliability, availability and serviceability mechanism error types to obtain error information of actual reliability, availability and serviceability mechanism error types. Compared with the case where the BIOS of a server of an advanced reduced instruction set computing architecture performs a RAS mechanism and only receives information without any processing, the processing performance of the RAS mechanism is reduced. The BMC in the server of the advanced reduced instruction set computing architecture of the present invention replaces the server of other architectures to complete the normal RAS mechanism. During the BMC processing process, the general platform error record data (CPER data) is parsed to obtain the first target data of a literal scripting language object representation (JSON), and the error information corresponding to the important field record is extracted based on the first target data. Ensure that the RAS mechanism is successfully completed in a server of a specific architecture, so as to improve the fault information processing capability and ensure the stability of the server.

[0101] In some embodiments, converting the general platform error record data to obtain first target data corresponding to the interpreted scripting language object representation includes:

[0102] Analyze and process the general platform error record data to obtain header information and section data;

[0103] When the header information verifies that the general platform error record data is legal data, the structure corresponding to the section data is aligned with the structure corresponding to the interpreted scripting language object representation to obtain the first target data corresponding to the interpreted scripting language object representation.

[0104] Specifically, CPER data usually includes header information and section data. The header information includes basic information of the error record, such as type and size. It is followed by section data, and each section data defines the data type and size contained in the subsequent section. Section data is the actual error data, including multiple types of information, such as central processing unit (CPU) error information, memory error information, and PCIe error information.

[0105] It is necessary to verify whether the CPER data is legal data based on the header information. If so, the CPER structure will be aligned with the JSON format structure, that is, the CPER data will be converted into JSON data corresponding to the defined structure. The specific technical solution can be a mapping method or a matching method, which is not limited here. Structural alignment requires understanding the fields and structure of the CPER data. According to the structure of the CPER data, a JSON object is created, whose key corresponds to the CPER data field and the value corresponds to the specific content of the CPER data.

[0106] The data converted into JSON format provided in this embodiment is convenient for users to read and write, has a clear structure and hierarchy, and is easy to understand and communicate. In addition, in order to display on the web page interface, its close relationship with JavaScript is very popular in Web development. Conversion to JSON format can easily transmit CPER data between the Web front end and back end, which helps to unify CPER data from different sources and facilitates data comparison, analysis and reporting.

[0107] In some embodiments, aligning a structure corresponding to the section data with a structure corresponding to the interpreted scripting language object representation to obtain first target data corresponding to the interpreted scripting language object representation includes:

[0108] Create object information corresponding to the interpreted script language object representation according to the header information of the general platform error record data;

[0109] In response to the creation of object information corresponding to the interpreted scripting language object representation, a section descriptor corresponding to the interpreted scripting language object representation is created according to the general platform error record data to obtain a section descriptor number corresponding to the section descriptor;

[0110] When the section descriptor number is greater than 0, the characteristic fields and key information of the object information corresponding to the reliability, availability and serviceability mechanism error reporting types are matched according to the general platform error record data to complete the conversion processing of the first target data.

[0111] Specifically, the specific conversion alignment process in this embodiment needs to create object information in JSON format based on the header information of the CPER data. If the object information in JSON format is created in response, section descriptors (section Descriptors) corresponding to the JSON format are created according to the CPER data. The section descriptor can represent a JSON array or object, which contains a description of each section (section), which is usually used to define different parts of the data, such as the type, size, number or other metadata of the data.

[0112] The section descriptor number (sdNUm) is the abbreviation of section descriptor number. When the section descriptor number is greater than 0, the key information of the feature field and object information corresponding to the error type of the RAS mechanism is matched according to the CPER data. Code is usually used as a key, and its value can be various data types. The code key is used to represent the status code, error code, operation code, etc. in the JSON object. At this time, the conversion process of the first target data has been completed.

[0113] In the specific conversion process of converting CPER data into data in JSON format in this embodiment, combined with the characteristics of JSON format, CPER data is converted into a JSON object containing header information and section data, thereby ensuring that the efficiency of subsequent data processing is improved.

[0114] In some embodiments, after converting the general platform error record data to obtain the first target data corresponding to the interpreted scripting language object representation, the method further includes:

[0115] A two-file circular storage mechanism is established in advance;

[0116] The first target data is stored in the corresponding target file according to the two-file circular storage mechanism;

[0117] Correspondingly, the storage process of the two-file circular storage mechanism includes:

[0118] Determine the storage space size of the first file corresponding to the two-file circular storage mechanism;

[0119] When the storage data size of the first target data is larger than the storage space size of the first file, the first target data is stored in the second file corresponding to the two-file circular storage mechanism; if the storage space size of the first file reaches the preset capacity, the first file is cleared to facilitate the storage of subsequent target data;

[0120] When the storage data size of the first target data is less than or equal to the storage space size of the first file, the first target data is stored in the first file corresponding to the two-file circular storage mechanism; if the storage space size of the first file after storing the first target data reaches the preset capacity, it is switched to the second file corresponding to the two-file circular storage mechanism to facilitate the storage of subsequent target data.

[0121] Specifically, two-file circular storage usually refers to a data storage strategy in which two files are used as a medium for data caching or logging. When one file reaches its capacity limit, the system switches to another file, and the current file may be cleared or retained for subsequent processing. This mechanism is common in logging systems or data caching scenarios to ensure that system performance is not affected by the unlimited growth of a single file.

[0122] The two-file storage cycle mechanism first determines the storage space size of the first file. If the storage data size of the first target data is larger than the storage space size of the first file, the first target data will be transferred and stored in the second file. At this time, the storage space of the first file continues to determine whether it has reached the preset capacity. If it has, the first file needs to be cleared to facilitate the subsequent storage of other target data. If the storage data size of the first target data is less than or equal to the storage space size of the first file, it will be stored in the first file. At this time, the storage space size of the first file after storage reaches the preset capacity, and it needs to be switched to the second file to facilitate the subsequent storage of other target data. For example: Create a new two-file cycle to store 200 fault JSON data, and you can collect and pull logs with one click on the Web end.

[0123] The present embodiment provides a two-file circular storage mechanism to ensure that subsequent maintenance work provides reliable data, and at the same time, ensure that there is always enough space for storage of the storage file corresponding to the current target data.

[0124] In some other embodiments, after converting the general platform error record data to obtain the first target data corresponding to the interpreted scripting language object representation, the method further includes:

[0125] Obtain the memory corresponding to the baseboard management controller and the remaining storage space of the memory;

[0126] When the remaining storage space of the memory is greater than or equal to the data size of the first target data, the first target data is stored in the memory;

[0127] When the remaining storage space of the memory is smaller than the data size of the first target data, the data in the memory is sorted according to the time storage order, and the data stored at the earliest time is deleted to facilitate the storage of the first target data.

[0128] Specifically, a memory is used for storage. After each conversion to obtain the first target data, it is necessary to determine the relationship between the remaining storage space of the memory and the data size of the first target data. If the remaining storage space of the memory is greater than or equal to the data size of the first target data, the first target data can be stored in the memory. If the remaining storage space of the memory is less than the data size of the first target data, it is necessary to sort the data stored in the memory according to the time storage order, delete the data stored at the earliest time, or transfer it to other files to facilitate the storage of the first target data.

[0129] This embodiment provides two parameters of the memory, data storage time and storage space, to determine whether the first target data can be stored in the memory, so as to ensure that the current first target data has enough storage space to be stored, and to ensure that subsequent maintenance work provides reliable data.

[0130] In some embodiments, the reliability, availability, and serviceability mechanism error type is at least one of the following error types:

[0131] Error type 1: Memory slot error type;

[0132] Error type 2: CPU error type;

[0133] Error type three: Peripheral component interconnection fast channel error type.

[0134] It is understandable that the RAS mechanism mainly detects errors in the processor, memory, bus, storage system, etc., which may be memory slot error types, CPU error types, and PCIe error types, etc. This embodiment is not limited and can be set according to actual conditions.

[0135] The RAS mechanism provided in this embodiment can ensure the stable operation of the server by setting the corresponding error type. Once a problem is detected, the RAS will try to perform self-repair, isolate the faulty component, or notify the system administrator to intervene.

[0136] In some embodiments, when the reliability, availability, and service mechanism error types include memory slot error types, central processing unit error types, and peripheral component interconnection fast channel error types, feature extraction processing is performed on the first target data according to feature fields corresponding to the reliability, availability, and service mechanism error types to obtain actual reliability, availability, and service mechanism error information, including:

[0137] The memory slot error type, the central processing unit error type and the peripheral component interconnection fast channel error type are respectively set to the first priority, the second priority and the third priority;

[0138] Outputting an instruction for processing the first target data according to the characteristic field of the memory slot error type corresponding to the first priority;

[0139] The processing method corresponding to the instruction for processing the first target data according to the characteristic field of the memory slot error type corresponding to the first priority level includes at least one of the following methods:

[0140] Method 1: Output error information;

[0141] Mode 2: outputting instructions for processing the first target data according to the characteristic field of the CPU error type corresponding to the second priority level;

[0142] The processing method corresponding to the instruction for processing the first target data in response to the characteristic field of the CPU error type corresponding to the second priority level includes at least one of the following methods:

[0143] Method 3: Output error information;

[0144] Mode 4: outputting an instruction for processing the first target data according to the characteristic field of the peripheral component interconnect fast channel error reporting type corresponding to the third priority level;

[0145] Correspondingly, the processing method corresponding to the instruction for processing the first target data in response to the characteristic field of the peripheral component interconnect fast channel error type corresponding to the third priority level includes at least one of the following methods:

[0146] Method 5: Output error information;

[0147] Method 6: Outputting information that the server to which the baseboard management controller belongs does not have error information.

[0148] Specifically, the memory slot error type, the central processing unit error type, and the peripheral component interconnection fast channel error type are set to the first priority, the second priority, and the third priority respectively;

[0149] Output an instruction for processing the first target data according to the characteristic field of the memory slot error type corresponding to the first priority, and respond to the instruction, specifically when the first target data is feature extracted by the characteristic field of the memory slot error type corresponding to the first priority to obtain error information of the memory slot error type, that is, mode 1 outputs the error information;

[0150] When the feature field of the memory slot error type corresponding to the first priority is used to extract the feature of the first target data and no error information of the memory slot error type is obtained, that is, in the second mode, the feature field of the CPU error type corresponding to the second priority is used to extract the feature of the first target data, and the instruction is output and then the response instruction is also output;

[0151] If error information of the central processing unit error type is obtained, that is, mode three, the error information is output; if error information of the central processing unit error type is not obtained, that is, mode four, feature extraction is performed on the first target data according to the feature field of the peripheral component interconnect fast channel error type corresponding to the third priority, and the instruction and response instruction are also output;

[0152] If error information of the peripheral component interconnection fast channel error type is obtained, that is, mode five, the error information is output; if error information of the peripheral component interconnection fast channel error type is not obtained, that is, mode six, it is determined that there is no error information on the server.

[0153] Specifically, different priority information is set for different error types. After an error occurs at the first priority level, subsequent data will not be detected to ensure the efficiency of the detection process. If the feature field of the error type corresponding to the first priority level is not extracted, the feature field of the error type corresponding to the second priority level is directly extracted, and so on, until the feature field of the error type of the third priority level is extracted. If it is not extracted, a log is recorded.

[0154] Figure 3 A feature extraction flow chart of a RAS mechanism error type provided by an embodiment of the present invention, such as Figure 3 As shown, including:

[0155] S21: Open the storage file of the general platform error record data;

[0156] S22: Determine whether there is header information of the general platform error record data; if so, proceed to step S23; if not, end;

[0157] S23: Determine whether the header information corresponding to the interpreted script language object representation matches; if so, proceed to step S24, if not, end;

[0158] S24: Match the section descriptor and obtain the section descriptor number corresponding to the section descriptor;

[0159] S25: Determine whether the section descriptor number is greater than 0. If so, proceed to step S26; if not, end;

[0160] S26: Match the characteristic fields corresponding to the reliability, availability and serviceability mechanism error types;

[0161] S27: key information of matching object information;

[0162] S28: converting to obtain first target data;

[0163] S29: Determine whether there is a memory field; if so, proceed to step S30; if not, proceed to step S31;

[0164] S30: extracting characteristic fields corresponding to the memory slot error types of the actual reliability, availability and serviceability mechanisms;

[0165] S32: Output memory error field;

[0166] S33: output physical address information of memory error;

[0167] S34: Get slot information, dual inline memory module, channel, and memory error type;

[0168] S35: Record the system event log and the intelligent diagnosis log, and end;

[0169] S31: Determine whether there is an RISC field; if so, proceed to step S36; if not, proceed to step S37;

[0170] S36: extracting characteristic fields corresponding to the error types of the CPU of the actual reliability, availability and serviceability mechanism;

[0171] S38: Output processor architecture error field;

[0172] S39: Output register information field;

[0173] S40: Obtain the CPU slot information and error type, and proceed to step S35;

[0174] S37: Determine whether there is a peripheral component interconnection fast channel field; if yes, proceed to step S41; if no, end;

[0175] S41: extracting characteristic fields corresponding to the error types of the peripheral component interconnection fast channel of the actual reliability, availability and serviceability mechanism;

[0176] S42: Acquire specific attribute information identifying the hardware component;

[0177] S43: output advanced error report;

[0178] S44: Output specific attribute information and error type field, and enter step S35.

[0179] It should be noted that the header information of the general platform error record data in step S22 is the fixed header data of the general platform error record data; the header information corresponding to the literal script language object representation in step S23 is the packet header field; the word descriptor (section Descriptors) in step S24 is the content description area. The section descriptor number (sdNUm) corresponding to its section descriptor is the description quantity field. The slot information, dual in-line memory module, channel and memory error type (socketid&dimm&channel&memory Error Type) in step S34, wherein the slot information mainly refers to the identifier of the CPU slot, which is used to identify the specific location where the CPU is installed on the motherboard; the dual in-line memory module (Dual In-Line Memory Module, DIMM) is a memory module used in servers and computers. Each DIMM has one or more memory chips for storing data. In a server, the location and status of each DIMM can be identified by the BIOS or hardware monitoring system. A channel is a path for communication between a memory controller and a memory module. In some system architectures, memory can be configured as multiple channels to improve bandwidth and performance. Memory error types refer to the types of errors that may occur in memory modules, such as single-bit errors, multi-bit errors, parity errors, etc. These errors can be detected and corrected by hardware (such as Error-Correcting Code (ECC) memory).

[0180] In step S35, the system event log (SEL) and intelligent diagnostics log (IDL) are used to record various hardware events in the server, such as power state changes, hardware failures, BIOS updates, etc. It is a log system implemented based on the IPMI (Intelligent Platform Management Interface) standard, which can be viewed and managed through command line tools such as ipmitool. For example, all SEL log entries in the system can be listed using ipmitool sel list, while the status of the SEL log can be checked using ipmitool selelist. The IDL log provides more comprehensive and detailed information than the SEL log, and each log usually includes processing suggestions to help users perform log analysis and diagnosis more effectively. The IDL log can be filtered by date, severity, device or keyword, and supports log download and clear operations. The IDL log can be accessed through the "Logs and Alarms > IDL Logs" of the web interface. In addition, the log file can be uploaded to the cloud according to the preset time interval, and the log file can be backed up by uploading to the cloud, so that the cloud backup data can be called when the local end is lost. After adding SEL and IDL logs, warnings or severe alarms can be triggered, system lights can be turned on, and screenshots can be taken in the event of a downtime. Through effective processing of fault data, fault information can be clearly and intuitively displayed to users and maintenance personnel, providing strong support for product operation and maintenance.

[0181] The register information field (mpidr_el1) in step S39 is the name of a register used in the Advanced RISC Machine (ARM) architecture, and its full name is "MultiprocessorAffinity Register in EL1". In a multi-processor system, this register is used to identify the core attributes of the processor on which the current execution environment (such as an operating system or application) is running.

[0182] The specific attribute information (Slot, Bus, Device, Function, SBDF) identifying the hardware component in step S42 represents the slot, bus, device, and function, respectively. The slot is the slot on the motherboard for inserting the expansion card; the bus is the communication path connecting the computer components, which is used to connect to the hardware devices on the bus, such as hard disks, network cards, etc. The function is the part of the device that can be operated independently, which refers to the PCIe device in this embodiment. Advanced Error Reporting (AERInfo) in step S43 is a technology for error detection and reporting in the field of computer hardware and servers, especially in PCI Express (PCIe) buses and devices.

[0183] Taking the peripheral component interconnect fast channel error type as an example, after the BMC receives the complete data of CPER, it converts it into data in JSON format. Based on the first target data in JSON format, the first target data is firstly feature extracted according to the feature field of the memory slot error type of the first priority. If the corresponding error information is not extracted, the first target data is feature extracted according to the feature field of the central processing unit error type of the second priority. If the corresponding error information is not extracted, the first target data is feature extracted according to the feature field of the peripheral component interconnect fast channel error type of the third priority. In the specific extraction process, first determine whether the type field "PEI" exists in the first target data. If it exists, it means that it is a PCIe type, and then find the sbdf (coding system for indicating devices) number in the first target data. The search process here can be a traversal search or other retrieval methods, which are not limited here. Among them, sbdf is used to uniquely identify the function on the PCIe bus. It consists of four parts: Segment Number (S), Bus Number (B), Device Number (D) and Function Number (F). Among them, Segment Number is used to identify a specific area or segment in the PCIe system; Bus Number indicates the bus number to which the device is connected; Device Number is the unique number of the device on the bus; Function Number indicates the unique number of a specific function within the device. The current encoding method helps to quickly locate a specific device with a specific function, which is convenient for maintenance, upgrades or troubleshooting, and also helps automated tools and software to manage and monitor system status.

[0184] Through the combination of sbdf fields, aerinfo is determined to record and report the error information of the PCIe device associated with a specific sbdf address. When errors occur in PCIe devices, the aer mechanism can capture these errors and record detailed information of the errors through error status registers, etc. Then, the system can handle errors based on this information, such as locating specific devices and functions through sbdf addresses, and then taking corresponding recovery measures. The error information corresponding to aerinfo is displayed through the web interface.

[0185] The present embodiment provides that priority information is used to correspond to different error types, so that the feature fields corresponding to the error types are used for subsequent feature extraction, thereby ensuring the accuracy and efficiency of data feature extraction.

[0186] In some embodiments, when the reliability, availability, and serviceability processing module detects a server anomaly, the intelligent platform management interface is called to send the general platform error record data to the baseboard management controller.

[0187] It can be understood that in this embodiment, the CPER data is transmitted from the reliability, availability and service processing module to the BMC by calling the Intelligent Platform Management Interface (IPMI). The BMC works independently of the server's processor, BIOS or operating system and has a high degree of independence. All IPMI functions are implemented by sending commands to the BMC, which receives and records event messages in the system event log, and maintains sensor data records describing the sensor conditions in the system. The main functions of IPMI include remote console, remote acquisition of server hardware information, remote power on and off, viewing system fault log records, accessing system event logs, obtaining system SNMP alerts, etc. In addition, IPMI also allows users to use it without paying additional fees in compliance with open source protocol requirements, and is an open and free standard.

[0188] The implementation of IPMI relies on a separate hardware platform, namely the baseboard management controller (BMC). The BMC hardware provides a communication interface for the system and management software, obtains sensor information and log information of the mainboard and modules and reports it to the management software. At the same time, it can receive setting information of the system or management software to set up and manage the server and ensure the healthy operation of the server system.

[0189] In some embodiments, before sending the general platform error log data to the baseboard management controller, the method further includes:

[0190] Obtaining a first data length of initial universal platform error record data and a second data length of calling an intelligent platform management interface for transmission;

[0191] Outputting at least one of the following results based on the comparison between the first data length of the initial universal platform error record data and the second data length transmitted by calling the intelligent platform management interface:

[0192] Result 1: unpacking the initial universal platform error record data according to the second data length transmitted by calling the intelligent platform management interface to obtain a plurality of unpacked initial universal platform error record data; and using the plurality of unpacked initial universal platform error record data as universal platform error record data;

[0193] Result 2: The initial common platform error record data is used as the common platform error record data.

[0194] Specifically, obtaining a first data length of the initial general platform error record data and a second data length transmitted by calling the intelligent platform management interface;

[0195] If the first data length of the initial universal platform error record data is greater than the second data length transmitted by calling the intelligent platform management interface, output result 1, unpack the initial universal platform error record data according to the second data length transmitted by calling the intelligent platform management interface to obtain a plurality of unpacked initial universal platform error record data; and use the plurality of unpacked initial universal platform error record data as universal platform error record data;

[0196] If the first data length of the initial universal platform error record data is less than or equal to the second data length transmitted by calling the intelligent platform management interface, the second result is output, and the initial universal platform error record data is used as the universal platform error record data.

[0197] Before transmission, it is necessary to check the first data length of the initial general platform error record data to be transmitted and the second data length transmitted by calling the intelligent platform management interface. If the first data length of the initial general platform error record data is greater than the second data length transmitted by calling the intelligent platform management interface, unpacking is required. The unpacking process here can be to divide the first data length by the second data length to split it into multiple initial CPER data with the second data length. It should be noted that the initial CPER data that is less than the second data length and has a remainder that is not divisible by an integer is also covered here, and it will also be recorded as the initial CPER data after unpacking. Therefore, multiple unpacked initial general platform error record data are obtained as CPER data.

[0198] If the first data length of the initial common platform error record data is less than or equal to the second data length transmitted by calling the intelligent platform management interface, the current CPER data is used as the CPER data.

[0199] This embodiment provides that the CPER data is unpacked before being transmitted to the BMC to ensure efficient transmission in the IPMI and improve the reliability of data transmission.

[0200] In some embodiments, the initial universal platform error record data is unpacked according to the second data length transmitted by calling the intelligent platform management interface to obtain a plurality of unpacked initial universal platform error record data, including:

[0201] Dividing the initial universal platform error record data into a plurality of initial universal platform error record data corresponding to the second data length according to the relationship between the second data length transmitted by calling the intelligent platform management interface and the first data length of the initial universal platform error record data; and placing the plurality of initial universal platform error record data corresponding to the second data length into corresponding data packets;

[0202] If there is a data length of the divided initial universal platform error record data that is smaller than the second data length, the divided initial universal platform error record data that is smaller than the second data length is taken as a separate data packet;

[0203] The data packets are marked according to the division order to obtain marked data packets, so as to complete the unpacking process.

[0204] It can be understood that the specific unpacking process is to divide the initial CPER data based on the relationship between the first data length and the second data length to obtain multiple initial CPER data corresponding to the second data length, and place them in respective data packets respectively.

[0205] If there is a data length of the initial CPER data after division that is smaller than the second data length, what is considered here is the relationship between the first data length and the second data length. The first data length is divided by the second data length in the form of division to see whether it is divisible evenly. If it is divisible evenly, it means that there is no data length of the initial CPER data after division that is smaller than the second data length; if it is not divisible evenly, it means that there is a remainder, and the initial CPER data corresponding to the remainder is treated as a separate data packet.

[0206] After unpacking, in order to facilitate the subsequent packet verification process, each data packet is marked based on the division order to obtain a marked data packet. The identification information here can be recorded based on the packet header of the data packet, or it can be recorded through the message information. There is no limitation here and it can be set according to the actual situation.

[0207] The data provided in this embodiment before unpacking and transmission is long and the data transmission length of IPMI is limited, so it is necessary to unpack according to the IPMI protocol data length to ensure orderly transmission during the data transmission process without congestion, and also facilitate the subsequent data parsing process.

[0208] In some embodiments, receiving general platform error record data sent by the reliability, availability, and serviceability processing module when a server exception is detected includes:

[0209] Receive general platform error record data corresponding to the current data packet and corresponding identification information;

[0210] The identification information is processed to obtain at least one of the following processing results:

[0211] Processing result 1: Outputting the number of data received before the current data packet as 0, determining to store the result information of the current data packet;

[0212] Processing result 2: outputting result information of storing the current data packet determined according to the difference between the identification information corresponding to the current data packet and the previous data packet;

[0213] Processing result three: outputting the result information of storing the current data packet according to the number of data received before the current data packet being greater than 0;

[0214] Processing result four: outputting result information of the packaged general platform error record data obtained by performing a package processing on the multiple unpacked initial general platform error record data in the order of the identification information.

[0215] Specifically, receiving general platform error record data corresponding to the current data packet and corresponding identification information;

[0216] If the identification information is the first identification information, a processing result 1 is obtained, and the number of data received before the current data packet is obtained; if the number of data received before the current data packet is 0, the current data packet is stored;

[0217] If the identification information is not the first identification information and is not the last identification information, the second processing result is obtained, and the difference between the identification information corresponding to the current data packet and the previous data packet is obtained; if the difference between the identification information corresponding to the current data packet and the previous data packet is 1, the current data packet is stored, and the next data packet needs to be obtained at this time;

[0218] If the identification information is not the first identification information, but the last identification information, then the processing result three is obtained, and the number of data received before the current data packet is obtained; if the number of data received before the current data packet is greater than 0, the current data packet is stored;

[0219] When the data packet of the last identification information is received, processing result 4 is obtained, and a plurality of unpacked initial universal platform error record data are grouped in the order of the identification information to obtain grouped universal platform error record data.

[0220] Specifically, when the BMC receives data, it needs to verify each data packet, mainly according to the identification information (PartID) in the IPMI data. The PartID must start from 0. When sending the last part of CPER data, the PartID is 0xff. Only when the last part is received, the BMC will consider that a complete CPER event has been received, and the previously saved data will be spliced ​​into a file according to the PartID and saved in the file system.

[0221] Figure 4 FIG. 1 is a flow chart of a verification process when a BMC receives data provided in an embodiment of the present invention, such as Figure 4 As shown, including:

[0222] S51: receiving general platform error record data of the current data packet;

[0223] S52: Determine whether the identification information of the current data packet is 0; if so, proceed to step S53; if not, proceed to step S54;

[0224] S53: Determine whether the number of data received before the current data packet is 0; if so, proceed to step S55; if not, proceed to step S56;

[0225] S55: Clear temporary files, store general platform error record data, and update the total length of current data;

[0226] S56: output error code information;

[0227] S54: Determine whether the identification information of the current data packet is the last identification information; if so, proceed to step S57; if not, proceed to step S58;

[0228] S57: Determine whether the number of data received before the current data packet is greater than 0; if so, proceed to step S59; if not, proceed to step S56;

[0229] S59: storing general platform error record data;

[0230] S60: Determine whether the identification information of the data packet corresponding to the stored general platform error record data is the last identification information, if so, proceed to step S61; if not, proceed to step S62;

[0231] S61: parsing general platform error record data;

[0232] S62: Outputting parsing success code information;

[0233] S63: Calculate the checksum and return the response data; and end;

[0234] S58: Determine whether the difference between the identification information corresponding to the current data packet and the previous data packet is 1; if so, proceed to step S64; if not, proceed to step S56;

[0235] S64: The total length of the current data is incremented and updated; and the process goes to step S59.

[0236] It should be noted that the total length of the current data (RecvTotalLen) in step S55 is a variable name that records the number of bytes received cumulatively from the start of receiving data to now. The check code mentioned in step S62 can use a 16-bit cyclic redundancy check (Cyclic Redundancy Check with 16-bit polynomial, CRC16), which is a commonly used error detection method that uses a 16-bit polynomial to detect single-bit or double-bit errors in data.

[0237] Therefore, a judgment is made based on the identification information of each data packet, and finally, step S60 is used to judge again whether the stored data is complete data.

[0238] This embodiment provides verification of identification information for each data packet, which facilitates subsequent packet grouping processing, so as to ensure the integrity of the received CPER data and facilitate analysis and extraction of field data.

[0239] In some embodiments, the method further comprises:

[0240] Acquire a first register value corresponding to the power supply unit according to a communication protocol for power management;

[0241] Analyzing and processing the first register value to obtain second target data;

[0242] When the second target data is the same as the preset data, fault information of the predicted fault is output.

[0243] Specifically, the power supply unit (PSU) refers to the component in a computer or other electronic device that converts the alternating current (AC) from the power socket into the direct current (DC) required by the device. The power supply unit usually contains circuits such as voltage transformation, rectification, filtering, voltage stabilization and regulation to ensure that the electronic equipment can operate safely and stably. In servers, data centers and other critical applications, the reliability and efficiency of the PSU are particularly important because they need to continuously provide power to the system. In addition, some high-performance PSUs may also include advanced features such as redundant power supplies, hot-swap, and high-efficiency design to meet higher availability and reliability requirements.

[0244] The first register value of the PSU is read through the communication protocol for power management (Power Management Bus, PMBus). The data actually read is the STATUS_WORD of the power supply. The STATUS_WORD is converted and parsed to obtain the second target data. When the second target data is the same as the preset data, the fault information of the predicted fault is output. For example, when the data obtained is 0x07, it means that the power supply has a Predict_failure situation. At this time, the alarm mechanism is triggered and reported. It should be noted that the specific value of the preset data here is not limited and can be set according to the actual situation. The preset data in this embodiment is only a flag information that triggers an error report.

[0245] The present embodiment mentions the function of collecting fault information of the PSU device, and performs fault diagnosis based on the collected information, so as to process the fault information in a timely manner.

[0246] In some embodiments, the method further comprises:

[0247] Acquire a second register value corresponding to the non-volatile memory fast channel hard disk according to the system management bus;

[0248] Analyzing and processing the second register value to obtain third target data;

[0249] When the third target data is the same as the preset threshold, an alarm message of service life is output.

[0250] Specifically, Non-Volatile Memory Express (NVME) is a protocol specification used to improve the performance of storage devices, especially non-volatile storage devices such as Solid State Drives (SSDs). NVMe is designed to fully utilize the high-speed characteristics of modern storage media while reducing latency and improving the efficiency of input / output (I / O) operations. The second register value corresponding to the non-volatile memory express hard disk is obtained according to the System Management Bus (SMBus), and the second register value is analyzed and processed to obtain the third target data. The data actually read is the service life parameter of the NVME hard disk. The third target data is compared with the preset threshold value. If they are the same, the service life alarm information is output. For example, when the service life is set to be less than 10%, the system will trigger the alarm mechanism and generate an SEL log.

[0251] The present embodiment provides a function for collecting NVME component fault information, and performs fault diagnosis based on the collected information so as to trigger an alarm in a timely manner, thereby more comprehensively monitoring the current component status and maintaining server stability.

[0252] The above describes in detail various embodiments corresponding to the fault detection method of the baseboard management controller. On this basis, the present invention also discloses a fault detection device of the baseboard management controller corresponding to the above method. Figure 5 The structure diagram of a fault detection device of a baseboard management controller provided by an embodiment of the present invention. Figure 5 As shown, the fault detection device of the baseboard management controller includes:

[0253] A receiving module 11 is used to receive general platform error record data sent by the reliability, availability and serviceability processing module when detecting a server abnormality;

[0254] A conversion processing module 12, configured to convert the general platform error record data to obtain first target data corresponding to an interpreted scripting language object representation;

[0255] The feature extraction module 13 is used to perform feature extraction processing on the first target data according to the feature fields corresponding to the reliability, availability and service mechanism error types to obtain error information of actual reliability, availability and service mechanism error types.

[0256] Since the embodiments of the device part correspond to the above embodiments, please refer to the description of the embodiments of the method part for the embodiments of the device part, and will not be repeated here.

[0257] For an introduction to a fault detection device for a baseboard management controller provided by the present invention, please refer to the above method embodiment, which will not be described in detail herein. It has the same beneficial effects as the above baseboard management controller fault detection method.

[0258] Figure 6 A structural diagram of a server provided in an embodiment of the present invention, such as Figure 6 As shown, including:

[0259] A memory 21, used for storing computer programs;

[0260] The processor 22 is used to implement the steps of the fault detection method of the baseboard management controller when executing the computer program.

[0261] Among them, the processor 22 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 22 may be implemented in at least one hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 22 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU; the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 22 may be integrated with a graphics processing unit (GPU), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 22 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0262] The memory 21 may include one or more computer-readable storage media, which may be non-transitory. The memory 21 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory 21 is at least used to store the following computer program 211, wherein, after the computer program is loaded and executed by the processor 22, it can implement the relevant steps of the fault detection method of the baseboard management controller disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory 21 may also include an operating system 212 and data 213, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system 212 may include Windows, Unix, Linux, etc. The data 213 may include, but is not limited to, data involved in the fault detection method of the baseboard management controller, etc.

[0263] In some embodiments, the server may further include a display screen 23 , an input / output interface 24 , a communication interface 25 , a power supply 26 , and a communication bus 27 .

[0264] Those skilled in the art can understand that Figure 6 The structure shown in the figure does not constitute a limitation on the server, and may include more or fewer components than shown in the figure.

[0265] The processor 22 implements the fault detection method of the baseboard management controller provided by any of the above embodiments by calling the instructions stored in the memory 21 .

[0266] For an introduction to a server provided by the present invention, please refer to the above method embodiment, which will not be described in detail herein. The server has the same beneficial effects as the above-mentioned fault detection method of the baseboard management controller.

[0267] Furthermore, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by the processor 22, the steps of the fault detection method of the baseboard management controller as described above are implemented.

[0268] It is understandable that if the method in the above embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially 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, and the computer software product is stored in a storage medium to execute all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0269] For an introduction to a computer-readable storage medium provided by the present invention, please refer to the above method embodiment, which will not be described in detail herein. It has the same beneficial effects as the above-mentioned fault detection method of the baseboard management controller.

[0270] Furthermore, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the fault detection method of the baseboard management controller when the computer program / instruction is executed by a processor.

[0271] For an introduction to a computer program product provided by the present invention, please refer to the above method embodiment, which will not be described in detail herein. It has the same beneficial effects as the above-mentioned fault detection method of the baseboard management controller.

[0272] The above is a detailed introduction to the fault detection method, server, medium and product of a baseboard management controller provided by the present invention. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referenced to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.

[0273] It should also be noted that, in this specification, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. A fault detection method for a baseboard management controller, It is characterized in that The method comprises performing the following steps in a baseboard management controller process: Receiving general platform error record data sent by the reliability, availability and serviceability processing module when a server anomaly is detected; Convert the general platform error record data to obtain first target data in JSON format; Perform feature extraction processing on the first target data according to feature fields corresponding to reliability, availability, and serviceability mechanism error types to obtain error information of actual reliability, availability, and serviceability mechanism error types; Correspondingly, when the reliability, availability and serviceability mechanism error types include memory slot error types, central processing unit error types and peripheral component interconnection fast channel error types, the feature extraction processing process is: The memory slot error type, the central processing unit error type and the peripheral component interconnection fast channel error type are respectively set to a first priority, a second priority and a third priority; Feature extraction is performed on the first target data according to the feature field of the first priority memory slot error type. If no corresponding error information is extracted, feature extraction is performed on the first target data according to the feature field of the second priority central processing unit error type. If no corresponding error information is extracted, feature extraction is performed on the first target data according to the feature field of the third priority peripheral component interconnect fast channel error type to obtain corresponding error information.

2. The fault detection method of the baseboard management controller according to claim 1, It is characterized in that The general platform error record data is converted and processed to obtain first target data corresponding to the JSON format, including: Analyzing and processing the general platform error record data to obtain header information and section data; When the header information verifies that the general platform error record data is legal data, the structure corresponding to the section data is aligned with the structure corresponding to the JSON format to obtain the first target data corresponding to the JSON format.

3. The fault detection method of the baseboard management controller according to claim 2, It is characterized in that Aligning the structure corresponding to the section data with the structure corresponding to the JSON format to obtain first target data corresponding to the JSON format, including: Create object information corresponding to the JSON format according to the header information of the general platform error record data; After the object information corresponding to the JSON format is created in response, a section descriptor corresponding to the JSON format is created according to the general platform error record data to obtain a section descriptor number corresponding to the section descriptor; When the section descriptor number is greater than 0, the characteristic fields corresponding to the reliability, availability and serviceability mechanism error types and the key information of the object information are matched according to the general platform error record data to complete the conversion processing of the first target data.

4. The fault detection method of the baseboard management controller according to claim 1, It is characterized in that The reliability, availability and serviceability mechanism error type is at least one of the following error types: Error type 1: Memory slot error type; Error type 2: CPU error type; Error type three: Peripheral component interconnection fast channel error type.

5. The fault detection method of the baseboard management controller according to claim 4, It is characterized in that The feature extraction process of the first target data according to the feature field corresponding to the reliability, availability and service mechanism error type is performed to obtain the actual reliability, availability and service mechanism type error information, including: Outputting an instruction for processing the first target data according to the characteristic field of the memory slot error type corresponding to the first priority; The processing method corresponding to the instruction for processing the first target data according to the characteristic field of the memory slot error type corresponding to the first priority level includes at least one of the following methods: When extracting features of the first target data in the feature field of the memory slot error type corresponding to the first priority to obtain error information of the memory slot error type, executing mode 1: outputting the error information; When the feature field of the memory slot error type corresponding to the first priority is used to extract the feature of the first target data and no error information of the memory slot error type is obtained, execution mode 2: outputting instructions for processing the first target data according to the feature field of the central processing unit error type corresponding to the second priority; The processing method corresponding to the instruction for processing the first target data in response to the characteristic field of the CPU error type corresponding to the second priority level includes at least one of the following methods: If an error message of the CPU error type is obtained, execute method three: output the error message; If no error information of the central processing unit error type is obtained, executing mode 4: outputting an instruction for processing the first target data according to the characteristic field of the peripheral component interconnect fast channel error type corresponding to the third priority; Correspondingly, the processing method corresponding to the instruction for processing the first target data in response to the characteristic field of the peripheral component interconnect fast channel error type corresponding to the third priority includes at least one of the following methods: If an error message of the peripheral component interconnection fast channel error message type is obtained, execution mode 5: outputting the error message; If no error information of the peripheral component interconnection fast channel error type is obtained, execution mode six: outputting information that the server to which the baseboard management controller belongs does not have any error information.

6. The fault detection method of the baseboard management controller according to claim 1, It is characterized in that When the reliability, availability and serviceability processing module detects a server abnormality, it calls the intelligent platform management interface and sends the general platform error record data to the baseboard management controller.

7. The fault detection method of the baseboard management controller according to claim 6, It is characterized in that Before sending the universal platform error record data to the baseboard management controller, the method further includes: Obtaining a first data length of the initial general platform error record data and a second data length of the transmission by calling the intelligent platform management interface; Outputting at least one of the following results according to the comparison between the first data length of the initial universal platform error record data and the second data length of the transmission by calling the intelligent platform management interface: If the first data length of the initial universal platform error record data is greater than the second data length transmitted by calling the intelligent platform management interface, output result 1; if the first data length of the initial universal platform error record data is less than or equal to the second data length transmitted by calling the intelligent platform management interface, output result 2; Result 1: unpacking the initial universal platform error record data according to the second data length transmitted by calling the intelligent platform management interface to obtain a plurality of unpacked initial universal platform error record data; and using the plurality of unpacked initial universal platform error record data as the universal platform error record data; Result 2: the initial universal platform error record data is used as the universal platform error record data.

8. The fault detection method of the baseboard management controller according to claim 7, It is characterized in that Unpacking the initial universal platform error record data according to the second data length transmitted by calling the intelligent platform management interface to obtain a plurality of unpacked initial universal platform error record data, including: Dividing the initial universal platform error record data into a plurality of initial universal platform error record data corresponding to the second data length according to the relationship between the second data length transmitted by calling the intelligent platform management interface and the first data length of the initial universal platform error record data; and placing the plurality of initial universal platform error record data corresponding to the second data length into corresponding data packets; If there is a data length of the divided initial universal platform error record data that is smaller than the second data length, the divided initial universal platform error record data that is smaller than the second data length is taken as a separate data packet; The data packets are marked according to the division order to obtain marked data packets, so as to complete the unpacking process.

9. The fault detection method of the baseboard management controller according to claim 7 or 8, It is characterized in that The receiving of general platform error record data sent by the reliability, availability and serviceability processing module when a server abnormality is detected includes: Receive general platform error record data corresponding to the current data packet and corresponding identification information; The identification information is processed to obtain at least one of the following processing results: If the identification information is the first identification information, the processing result 1 is obtained; if the identification information is not the first identification information and is not the last identification information, the processing result 2 is obtained; if the identification information is not the first identification information and is the last identification information, the processing result 3 is obtained; when the data packet of the last identification information is received, the processing result 4 is obtained; Processing result 1: outputting result information of determining to store the current data packet according to the number of data received before the current data packet being 0; Processing result 2: outputting result information of storing the current data packet determined according to the difference between the identification information corresponding to the current data packet and the previous data packet; Processing result three: outputting result information of determining to store the current data packet according to the number of data received before the current data packet being greater than 0; Processing result four: outputting result information of the packaged general platform error record data obtained by performing a package processing on the multiple unpacked initial general platform error record data in the order of the identification information.

10. The fault detection method of the baseboard management controller according to claim 1, It is characterized in that After converting the general platform error record data to obtain first target data corresponding to the JSON format, the method further includes: Establish a two-file circular storage mechanism in advance; storing the first target data into a corresponding target file according to the two-file circular storage mechanism; Correspondingly, the storage process of the two-file circular storage mechanism includes: Determine the storage space size of the first file corresponding to the two-file circular storage mechanism; When the storage data size of the first target data is larger than the storage space size of the first file, the first target data is stored in the second file corresponding to the two-file circular storage mechanism; if the storage space size of the first file reaches a preset capacity, the first file is cleared to facilitate the storage of subsequent target data; When the storage data size of the first target data is less than or equal to the storage space size of the first file, the first target data is stored in the first file corresponding to the two-file circular storage mechanism; if the storage space size of the first file after storing the first target data reaches a preset capacity, switch to the second file corresponding to the two-file circular storage mechanism to facilitate the storage of subsequent target data.

11. The fault detection method of the baseboard management controller according to claim 1, It is characterized in that The method further comprises: Acquire a first register value corresponding to the power supply unit according to a communication protocol for power management; Analyzing and processing the first register value to obtain second target data; When the second target data is the same as the preset data, fault information of the predicted fault is output.

12. The fault detection method of the baseboard management controller according to claim 1, It is characterized in that The method further comprises: Acquire a second register value corresponding to the non-volatile memory fast channel hard disk according to the system management bus; Analyzing and processing the second register value to obtain third target data; When the third target data is the same as the preset threshold, an alarm message of service life is output.

13. A server, It is characterized in that include: Memory for storing computer programs; A processor is used to implement the steps of the fault detection method of the baseboard management controller as described in any one of claims 1 to 12 when executing the computer program.

14. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the fault detection method of the baseboard management controller according to any one of claims 1 to 12 are implemented.

15. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instruction is executed by a processor, the steps of the fault detection method of the baseboard management controller described in any one of claims 1 to 12 are implemented.

Citation Information

Patent Citations

  • Fault positioning method and system and related assembly

    CN109885505A

  • Fault processing method and device and server

    CN111414268A

  • Monitoring method and device of baseboard management controller and server system

    CN116028304A

  • Processing method and device and related equipment

    CN118467220A