A method, apparatus and server for preserving fault scene
By identifying the fault type and collecting and storing fault scene information when a server fails, the problem of low fault diagnosis efficiency in existing technologies is solved, and the cause of the fault is located efficiently and accurately.
Patent Information
- Application Number
- CN202211676891.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-26
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2042-12-26
AI Technical Summary
Existing technologies have low efficiency in troubleshooting server faults, especially in complex scenarios where it is difficult to efficiently locate the cause of multiple factors or low-probability faults.
When a fault is detected, the fault type is determined and fault scene information, including static and dynamic impact factor information, is collected and stored according to the fault mode. This information is stored using a book structure model, which supports on-site retention of fault modes in both immediate and contextual context.
It improves the accuracy and efficiency of fault location and troubleshooting, reduces the need for reproduction, and enables direct analysis of fault causes without the need for reproduction.
Smart Images

Figure CN115934402B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus and server for preserving fault conditions. Background Technology
[0002] With the rapid development of the computer field, customer needs have become increasingly diversified, leading to more complex servers and a greater amount of information requiring server monitoring. When servers fail, the scenarios are becoming increasingly complex, and the factors causing these failures are becoming more intertwined across different scenarios.
[0003] Currently, when a server malfunctions, the usual practice is for the server to issue an alarm message, which includes the name of the malfunction. Relevant personnel then check the alarm logs based on the content of the alarm message and determine the general cause of the malfunction based on their experience. After determining the general cause of the malfunction, the malfunction is reproduced according to the scenario in which it occurred in order to investigate the specific factors that caused the malfunction one by one.
[0004] However, current troubleshooting methods are not only inefficient, but also inadequate for complex scenarios. These include scenarios where failures are caused by multiple factors acting together, low-probability failures that only occur under specific conditions, and failures that result from the gradual accumulation or abnormal changes of various factors under specific circumstances. Reproducing these complex scenarios requires satisfying all the necessary conditions. Therefore, troubleshooting these types of failures through reproduction is extremely difficult, and current methods struggle to efficiently identify and accurately pinpoint the factors causing failures in these scenarios. Summary of the Invention
[0005] This invention provides a method, apparatus, and server for preserving fault scene, in order to solve the problems of low efficiency in server fault diagnosis and difficulty in locating fault factors in related technologies.
[0006] To address the aforementioned technical problems, embodiments of the present invention provide a method for preserving a fault scene, comprising:
[0007] Upon detecting a fault, determine the fault type corresponding to the fault;
[0008] Based on the fault type, the corresponding fault mode is determined, and the fault mode includes an immediate fault mode and a context fault mode.
[0009] Based on different fault modes, perform fault scene preservation operations corresponding to the fault mode to collect fault scene information;
[0010] The collected fault scene information is stored.
[0011] Optionally, the fault site information includes static impact factor information and dynamic impact factor information;
[0012] Before a fault is detected, the following is also included:
[0013] The static impact factor information is obtained and stored in the book cover of the book structure. The static impact factor information is static configuration information and does not change during device operation.
[0014] The dynamic impact factor information is acquired and stored in a page of a book structure. The dynamic impact factor information is real-time collected operating parameter information, which changes during the operation of the device.
[0015] If a change in the dynamic impact factor information is detected, the changed dynamic impact factor information is recorded in the current page of the book structure, and the other unchanged dynamic impact factor information is copied from the previous page adjacent to the current page to the current page. The current page is then turned over, and the next page adjacent to the current page is taken as the new current page.
[0016] Optionally, the step of collecting fault scene information by performing a fault scene preservation operation corresponding to the fault mode according to different fault modes includes:
[0017] Based on the book structure reading method corresponding to different fault modes, the static impact factor information and dynamic impact factor information are obtained from the book structure as fault scene information.
[0018] Optionally, the step of obtaining the static impact factor information and dynamic impact factor information from the book structure as fault scene information according to the book structure reading method corresponding to different fault modes includes:
[0019] If the failure mode is determined to be an immediate failure mode, the static impact factor information is obtained from the book cover of the book structure according to the book structure reading method corresponding to the immediate failure mode.
[0020] Obtain dynamic influence factor information from the current page of the book structure;
[0021] The static impact factor information and the dynamic impact factor information are used as fault site information.
[0022] Optionally, the step of obtaining the static impact factor information and dynamic impact factor information from the book structure as fault scene information according to the book structure reading method corresponding to different fault modes includes:
[0023] If the failure mode is determined to be a context failure mode, the static impact factor information is obtained from the book cover of the book structure according to the book structure reading method corresponding to the context failure mode.
[0024] Dynamic influence factor information is obtained from the current page of the book structure and the N pages adjacent to the current page;
[0025] The static impact factor information and the dynamic impact factor information are used as fault site information;
[0026] Wherein, N is any integer greater than or equal to 1.
[0027] Optionally, the baseboard management controller is provided with a preset fault model list, which includes fault type and fault mode;
[0028] The step of determining the fault mode corresponding to the fault type based on the fault type includes:
[0029] Based on the fault type, a table lookup operation is performed in the fault model list using the fault type as the key value;
[0030] If the fault type is found in the fault model list, the fault mode corresponding to the fault type is obtained;
[0031] The fault mode corresponding to the obtained fault type is determined as the fault mode corresponding to the fault type.
[0032] Optionally, after determining the fault type corresponding to the fault upon detecting a fault, the method further includes:
[0033] Generate a fault code, which is used to record the number of times a fault occurs;
[0034] A fault bookmark is generated on the current page of the book structure. The fault bookmark includes the fault type, fault code, and page number of the current page.
[0035] The faulty bookmarks will be synchronized and updated to the bookmark list.
[0036] Based on the fault bookmarks in the bookmark list, the operation of determining the fault mode corresponding to the fault type is performed according to a preset processing order.
[0037] Optionally, the step of collecting fault scene information by performing a fault scene preservation operation corresponding to the fault mode according to different fault modes includes:
[0038] Based on different fault modes, perform the fault scene preservation operation corresponding to the fault mode;
[0039] The function corresponding to the fault scene preservation operation is invoked to collect fault scene information.
[0040] Optionally, determining the fault type corresponding to the fault upon detecting a fault includes:
[0041] If a fault is detected, a fault code corresponding to the fault is generated;
[0042] Based on the fault code, determine the fault type corresponding to the fault.
[0043] To address the aforementioned technical problems, embodiments of the present invention also provide a fault scene preservation device, comprising:
[0044] A generation module is used to determine the fault type corresponding to the fault when a fault is detected.
[0045] The determination module is used to determine the fault mode corresponding to the fault type based on the fault type, wherein the fault mode includes an immediate fault mode and a context fault mode.
[0046] The execution module is used to perform fault scene preservation operations corresponding to different fault modes to collect fault scene information.
[0047] The storage module is used to store the collected fault scene information.
[0048] To address the aforementioned technical problems, embodiments of the present invention also provide a baseboard management controller, which is used to implement the fault scene preservation method as described in any of the preceding claims.
[0049] To address the aforementioned technical problems, embodiments of the present invention also provide a server, which includes the baseboard management controller described above.
[0050] In this embodiment of the invention, upon detecting a fault, a fault type corresponding to the fault is determined, and a fault mode corresponding to the fault type is determined. Then, based on different fault modes, a fault scene preservation operation corresponding to the fault mode is performed to collect fault scene information. Finally, the collected fault scene information is stored for relevant personnel to view and analyze. Upon detecting a fault, not only can the fault type be determined, but after determining the fault mode based on the fault type, fault scene information can be collected and stored according to different fault modes. After a fault occurs, relevant personnel can obtain general information about the fault not only through alarm logs but also detailed fault scene information from the stored fault scene information. Based on this fault scene information, the cause of the fault can be directly analyzed without performing fault reproduction operations, accurately identifying and locating the specific cause of the fault, improving the accuracy of fault cause location and the efficiency of fault investigation.
[0051] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0052] Figure 1 This is a flowchart illustrating the steps of a fault scene preservation method provided in an embodiment of the present invention;
[0053] Figure 2 This is a flowchart of another method for preserving the fault scene provided in an embodiment of the present invention;
[0054] Figure 3 This is a flowchart of another method for preserving the fault scene provided in an embodiment of the present invention;
[0055] Figure 4 This is a logic block diagram of a fault scene preservation device provided in an embodiment of the present invention. Detailed Implementation
[0056] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
[0057] To enable those skilled in the art to better understand the present invention, the concepts involved in the present invention are described below:
[0058] Baseboard Management Controller (BMC): The Baseboard Management Controller is a dedicated service processor that uses sensors to monitor the status of a computer, server, or other hardware device. It communicates with the system administrator via a separate connection. The BMC is part of the Intelligent Platform Management Interface (IPMI) and is typically contained within the main board of the monitored device. The BMC's sensors measure internal physical variables such as temperature, humidity, power supply voltage, fan speed, communication parameters, and operating system functions. If any of these variables exceeds specified limits, it notifies the administrator, who can then take appropriate action remotely.
[0059] Immediate failure mode: Immediate failure mode is mainly caused by the combined effect of multiple influencing factors. When multiple influencing factors reach a certain specified state, a failure will occur.
[0060] Contextual failure mode: Contextual failure mode refers to failure caused by the gradual accumulation or abnormal changes of multiple influencing factors. The failure is affected by the changes in the influencing factors and the context environment.
[0061] The book structure is a storage model used to store fault impact factor information. The book structure mainly includes a cover, pages, and a bookmark list, where each page includes page numbers. Specifically, the cover stores static impact factor information, while the pages store dynamic impact factor information; each page comprises several pages.
[0062] In an embodiment of the present invention, Figure 1 This diagram illustrates a flowchart of a fault scene preservation method provided by an embodiment of the present invention, applied to a baseboard management controller, such as... Figure 1 As shown, the method may include:
[0063] Step S110: If a fault is detected, determine the fault type corresponding to the fault.
[0064] In this embodiment of the invention, the fault type refers to the specific type of fault that occurred in the server. When the baseboard management controller detects a server fault, it first generates a fault code for that fault. Then, the fault identification function module in the baseboard management controller identifies the fault code and determines the fault type corresponding to the fault.
[0065] It should be noted that each fault code is unique, and there is a one-to-one correspondence between the fault code and the fault type. The fault type can be determined based on the fault code of a given fault. Specifically, the fault type can be defined based on the fault code.
[0066] In this embodiment of the invention, after determining the fault type corresponding to the detected fault, the method may further include: issuing an alarm and generating an alarm log based on the determined fault type, and promptly notifying relevant personnel of the general situation of the fault through the alarm. The alarm method may be a buzzer alarm, sending a push message to relevant personnel, or a telephone alarm. The alarm log may include a fault code, the time of fault occurrence, and fault type information, so that relevant personnel are promptly informed of the time of fault occurrence and the fault type.
[0067] Optionally, determining the fault type corresponding to the fault upon detecting a fault may further include the following sub-steps:
[0068] Sub-step S111: If a fault is detected, generate a fault code corresponding to the fault.
[0069] Sub-step S112: Determine the fault type corresponding to the fault based on the fault code.
[0070] It should be noted that the fault code is a code generated by the baseboard management controller in response to the fault occurrence.
[0071] In this embodiment of the invention, when the baseboard management controller detects a server failure, it first generates a fault code corresponding to the failure, and then the fault identification function module in the baseboard management controller identifies the fault code and determines the fault type corresponding to the failure.
[0072] Step S120: Determine the fault mode corresponding to the fault type based on the fault type.
[0073] It should be noted that the failure modes can include immediate failure modes and context-based failure modes. Specifically, the immediate failure mode is mainly caused by the combined effect of multiple influencing factors, and the failure occurs when multiple influencing factors reach a certain specified state; the context-based failure mode refers to the failure caused by the gradual accumulation or abnormal changes of multiple influencing factors, and the failure is affected by the changes in the influencing factors and the context environment.
[0074] Optionally, the baseboard management controller is provided with a preset fault model list, which includes fault type and fault mode.
[0075] It should be noted that the fault model list is a summary table of all fault types detected by the current baseboard management controller. The fault model list may include fault codes, fault types, fault modes, corresponding fault influencing factors, and fault scene preservation operations for all faults detected by the baseboard management controller. The fault modes may include immediate fault modes and context-based fault modes. Different fault modes may include several fault types, but one fault type can only correspond to one fault mode. In other words, the fault mode is a classification of all fault types based on the different ways in which influencing factors cause the faults to occur.
[0076] In this embodiment of the invention, after the baseboard management controller completes startup, a list of fault models can be loaded into the baseboard management controller.
[0077] It should be noted that the fault model list includes all fault types detected by the baseboard management controller currently and within any time period since then, along with the corresponding fault codes, fault modes, fault impact factors, and fault scene preservation operations. Of course, for any new fault type occurring after the current time period, the corresponding fault codes, fault modes, fault impact factors, and fault scene preservation operations can be updated in real time in the fault model list to ensure that the fault model list loaded in the baseboard management controller after startup is the latest version.
[0078] In this embodiment of the invention, the fault influencing factor is a factor that may cause the fault corresponding to the fault type to occur. It is the data information that needs to be collected on site. Each fault influencing factor may include: data type (rounding function, floating point, string) and storage mode (static data, dynamic data). Specifically, the fault influencing factor can be divided into static fault influencing factor and dynamic fault influencing factor according to the storage mode.
[0079] Optionally, determining the fault mode corresponding to the fault type based on the fault type may include the following sub-steps:
[0080] Sub-step S121: Based on the fault type, perform a table lookup operation in the fault model list using the fault type as the key value.
[0081] In this embodiment of the invention, based on the fault type, a lookup table is performed in the fault model list using the fault type as the key value to obtain a unique fault mode corresponding to the fault type, such as an immediate fault mode and / or a contextual fault mode.
[0082] Sub-step S122: If the fault type is found in the fault model list, obtain the fault mode corresponding to the fault type.
[0083] In this embodiment of the invention, if the fault type is found in the fault model list, the fault mode corresponding to the fault type is obtained; if the fault type is not found in the fault model list, it indicates that the fault type is a fault type that has never been detected and / or has never occurred before, and relevant personnel need to be notified in a timely manner through alarms or other means to confirm and analyze the fault type. When relevant personnel confirm that the fault type is a newly determined fault type, the fault type and the corresponding fault code, fault mode, fault impact factor, fault scene preservation operation, and other information are promptly added to the fault model list; when relevant personnel confirm that the fault type is a fault type included in the existing fault model list, it is promptly confirmed whether there are any abnormalities in the process of loading the fault model list by the baseboard management controller and whether there are any missing or abnormal information in the fault model list.
[0084] Sub-step S123: Determine the fault mode corresponding to the obtained fault type as the fault mode corresponding to the fault type.
[0085] In this embodiment of the invention, if the fault type is found in the fault model list and the fault mode corresponding to the fault type is successfully obtained, the fault mode corresponding to the obtained fault type is determined as the fault mode corresponding to the fault type.
[0086] In this embodiment of the invention, since there is a one-to-one correspondence between the fault code and the fault type, a lookup operation can be performed in the fault model list based on the fault code corresponding to the fault, using the fault code as the key value; if the fault code is found in the fault model list, the fault mode corresponding to the fault code is obtained; and the obtained fault mode corresponding to the fault code is determined as the fault mode corresponding to the fault type.
[0087] Step S130: Based on different fault modes, perform a fault scene preservation operation corresponding to the fault mode to collect fault scene information.
[0088] In this embodiment of the invention, different fault modes correspond to different fault scene preservation operations. Specifically, the fault scene preservation operation is a fault scene information collection operation defined according to different fault modes to collect fault scene information.
[0089] Optionally, the fault site information includes static impact factor information and dynamic impact factor information.
[0090] In this embodiment of the invention, the static influence factor and dynamic influence factor are obtained by dividing the fault influence factor according to the storage mode. The static influence factor information and dynamic influence factor information are the specific parameter information corresponding to the static influence factor and dynamic influence factor. Specifically, the static influence factor information can be the static configuration information of the device monitored by the baseboard management controller. This static configuration information does not change during device operation. For example, the static influence factor information may include path information when the device reads information, IIC (Inter-Integrated Circuit) address, IIC read command, etc. The dynamic influence factor information can be the operating parameter information collected in real time by the baseboard management controller. This operating parameter information changes or fluctuates during device operation. For example, the dynamic influence factor information may include fan speed and temperature information of a certain area of the device.
[0091] Optionally, the following sub-steps may also be included before a fault is detected:
[0092] Sub-step S101: Obtain the static impact factor information and store the static impact factor information in the book cover of the book structure.
[0093] Sub-step S102: Obtain the dynamic impact factor information and store the dynamic impact factor information in a page of a book structure.
[0094] Sub-step S103: When a change in the dynamic influence factor information is detected, the changed dynamic influence factor information is recorded in the current page of the book structure, and the other unchanged dynamic influence factor information is copied from the previous page adjacent to the current page to the current page. The current page is then turned over, and the next page adjacent to the current page is taken as the new current page.
[0095] In this embodiment of the invention, the storage model for storing the static and dynamic impact factor information is a book structure. The book structure may include a cover and pages, where each page may be a plurality of pages. Specifically, the cover stores the static impact factor information, and the pages store the dynamic impact factor information. Since the static impact factor information is static configuration information, such as read path information, it does not change over time. Therefore, the static impact factor information only needs to be acquired once and stored in the cover. Since the dynamic impact factor information is real-time collected operating parameter information, such as fan speed or temperature, it changes or fluctuates over time. Therefore, the dynamic impact factor information needs to be recorded once in the page whenever the information of any dynamic impact factor changes.
[0096] In this embodiment of the invention, when the baseboard management controller completes startup, it is also necessary to initialize the book structure, clear the data in the book structure, reacquire the static influence factor information, and store the static influence factor information in the cover of the book structure; then, from the fault model list, the dynamic influence factors in the fault influence factors are downloaded to the first page of the book structure; then, the underlying thread of the baseboard management controller obtains the information corresponding to the dynamic influence factors according to the dynamic influence factors in the book page to obtain the dynamic influence factor information, and records the obtained dynamic influence factor information in a page of the book structure. At this time, the first page of the book structure is the first page of the book structure; finally, after the dynamic influence factor information is stored in the first page of the book structure, the book structure is controlled to perform a page-turning operation.
[0097] It should be noted that before the book structure performs a page-turning operation, the first page of the book structure is the current page of the book structure. After the book structure performs a page-turning operation, the second page of the book structure is the current page of the book structure, and so on. In other words, the current page of the book structure is the page that is to be stored for dynamic impact factor information or the page that has been stored for dynamic impact factor information after the book structure has completed a page-turning operation and before the next page-turning operation.
[0098] In this embodiment of the invention, the dynamic influence factor information can be periodically obtained through the underlying thread of the baseboard controller. When the baseboard controller detects a change in any dynamic influence factor information, the changed dynamic influence factor information is recorded in the current page of the book structure, and the other unchanged dynamic influence factor information is copied from the previous page adjacent to the current page to the current page.
[0099] It should be noted that after recording the changed dynamic influence factor information in the current page of the book structure and copying the other unchanged dynamic influence factor information from the previous page adjacent to the current page to the current page, the storage operation of the changed dynamic influence factors at this moment is completed. After the storage operation is completed, the book structure needs to be controlled again to perform a page-turning operation to turn the page on which the storage of the changed dynamic influence factors has just been completed. After the page-turning operation, the next page adjacent to the current page is taken as the new current page. When the baseboard management controller detects that the dynamic influence factor information has changed again, the changed dynamic influence factor information is stored in the new current page. This process is repeated.
[0100] In this embodiment of the invention, the following operations are performed only when the substrate management controller detects a change in the dynamic influence factor: recording the changed dynamic influence factor information in the current page of the book structure, copying the unchanged dynamic influence factor information from the previous page adjacent to the current page to the current page, performing a page-turning operation on the current page, and setting the next page adjacent to the current page as the new current page; if the substrate management controller does not detect a change in the dynamic influence factor information, the above storage and page-turning operations are not performed until the substrate management controller detects a change in the dynamic influence factor information.
[0101] Specifically, for example, in the fault model list, there are 20 dynamic influencing factors, which are referred to as the 1st dynamic influencing factor, the 2nd dynamic influencing factor, ..., the 20th dynamic influencing factor for ease of description. The 20 fault influencing factor information is recorded in the previous page adjacent to the current page of the book structure. When the baseboard management controller detects a change in the 3rd dynamic influencing factor information, the changed 3rd dynamic influencing factor information is stored in the current page, and the information of the other 19 dynamic influencing factors (excluding the 3rd dynamic influencing factor) is copied from the previous page adjacent to the current page of the book to the current page. This completes the recording and storage of the changed 3rd dynamic influencing factor. Then, the book structure is controlled to perform a page-turning operation, using the next page adjacent to the current page as the new current page, and this process is repeated.
[0102] In this embodiment of the invention, after each change in a dynamic influencing factor is recorded, the book structure is controlled to perform a page-turning operation to ensure that the change process of all dynamic influencing factors is recorded.
[0103] It should be noted that the number of pages in the book structure can be set according to the memory of the baseboard management controller. If the baseboard management controller has a large memory, the book structure can have a larger number of pages; if the baseboard management controller has a small memory, the book structure can have a smaller number of pages. Furthermore, when the dynamic influence factor information is recorded on the last page of the book structure, after the book structure is turned to the first page, it is set as the current page. When the baseboard management controller detects a change in the dynamic influence factor information, the changed dynamic influence factor information is overwritten on the current page of the book structure. Other unchanged dynamic influence factor information is copied from the previous page adjacent to the current page to the current page, overwriting the original dynamic factor information stored on the first page of the book structure. This recording and storage process is repeated cyclically to ensure that all changes in dynamic influence factors are recorded.
[0104] Optionally, the step of collecting fault scene information by performing a fault scene preservation operation corresponding to the fault mode according to different fault modes may include: obtaining the static impact factor information and dynamic impact factor information from the book structure as fault scene information according to the book structure reading method corresponding to different fault modes.
[0105] In this embodiment of the invention, since both static and dynamic impact factor information are stored in the book cover and pages of the book structure, and the fault scene information includes both static and dynamic impact factor information, the static and dynamic impact factor information can be obtained from the book structure as fault scene information according to the book structure reading method corresponding to different fault modes.
[0106] It should be noted that the specific method of reading the book structure corresponding to different failure modes can be that the location of the dynamic influencing factor read in the book structure varies depending on the failure mode.
[0107] Optionally, the step of obtaining the static and dynamic impact factor information as fault scene information from the book structure according to the book structure reading method corresponding to different fault modes may include the following sub-steps:
[0108] Sub-step S1311: If the fault mode is determined to be an immediate fault mode, the static influence factor information is obtained from the cover of the book structure according to the book structure reading method corresponding to the immediate fault mode.
[0109] Sub-step S1312: Obtain dynamic influence factor information from the current page of the book structure.
[0110] Sub-step S1313: Use the static influence factor information and the dynamic influence factor information as fault site information.
[0111] It should be noted that the static impact factor information stored in the book cover of the book structure is the static configuration information of the device, while the dynamic impact factor information stored in the book pages of the book structure is the real-time collected operating parameter information. The current book page stores the dynamically changing impact factor information. Instantaneous failure mode is a failure caused by the combined effect of multiple impact factors; a failure occurs when multiple impact factors reach a certain specified state. Therefore, for all failure types belonging to instantaneous failure mode, the fault scene information that needs to be collected when a failure occurs can be the static impact factor information stored in the book cover and the dynamic impact factor information stored in the current book page.
[0112] In this embodiment of the invention, when a fault is detected, the current page of the book structure records the dynamic impact factor information at the time of the fault. A fault belonging to the immediate fault mode occurs because one or more dynamic impact factor information recorded in the current page changes. Therefore, when the fault mode is determined to be an immediate fault mode, according to the book structure reading method corresponding to the immediate fault mode, it is necessary to obtain the static impact factor information from the book cover of the book structure, and simultaneously obtain the dynamic impact factor information from the current page of the book structure. The obtained static and dynamic impact factor information are used as the fault scene information.
[0113] Optionally, the step of obtaining the static and dynamic impact factor information as fault scene information from the book structure according to the book structure reading method corresponding to different fault modes may include the following sub-steps:
[0114] Sub-step S1321: If the fault mode is determined to be a context fault mode, the static influence factor information is obtained from the cover of the book structure according to the book structure reading method corresponding to the context fault mode.
[0115] Sub-step S1322: Obtain dynamic influence factor information from the current page of the book structure and the N pages adjacent to the current page.
[0116] Sub-step S1323: Use the static influence factor information and the dynamic influence factor information as fault site information.
[0117] It should be noted that N is any integer greater than or equal to 1. The specific value of N can be set according to the fault type and the needs of relevant personnel for fault analysis, and this embodiment of the invention does not limit this.
[0118] In this embodiment of the invention, the static influence factor information stored in the book cover of the book structure is the static configuration information of the device, while the dynamic influence factor information stored in the book pages of the book structure is the real-time collected operating parameter information. The current book page stores the dynamically changing influence factor information. Contextual fault mode is a fault caused by the gradual accumulation or abnormal changes of multiple influence factors, influenced by both the changes in influence factors and the context environment. Therefore, for all fault types belonging to contextual fault mode, the fault scene information that needs to be collected when a fault occurs can be the static influence factor information stored in the book cover, as well as the dynamic influence factor information stored in the current book page and the N pages adjacent to the current book page.
[0119] In this embodiment of the invention, when a fault is detected, the current page of the book structure records the dynamic influencing factor information at the time of the fault. Faults belonging to the context fault mode occur because the dynamic influencing factor information recorded on the current page and the N pages adjacent to it gradually changes or mutates. Therefore, when the fault mode is determined to be a context fault mode, according to the book structure reading method corresponding to the context fault mode, it is necessary to obtain the static influencing factor information from the book cover of the book structure, and simultaneously obtain the dynamic influencing factor information from the current page of the book structure and the N pages adjacent to it. The obtained static and dynamic influencing factor information are used as fault scene information, providing more comprehensive fault scene information for relevant personnel when analyzing the causes of faults in the context fault mode, facilitating a faster determination of the cause of the fault.
[0120] Optionally, after determining the fault type corresponding to the fault upon detecting a fault, the following sub-steps may be included:
[0121] Sub-step S121: Generate a fault code, which is used to record the number of times a fault occurs.
[0122] In this embodiment of the invention, the fault code is a sequential number for currently occurring faults, used to distinguish between consecutive faults of the same fault type. For example, the baseboard management controller detects a fault at 10:30 and determines that the fault type corresponding to the fault is fault type B, and then generates fault code 203 for this fault; subsequently, the baseboard management controller detects a fault at 10:33 and determines that the fault type corresponding to the fault is also fault type B, and then generates fault code 204 for this fault. At this time, since two faults of the same fault type occur within a short time interval, without distinguishing them using fault codes, it is impossible to determine whether the two faults of the same fault type are two separate faults or two alarms for the same fault. By promptly generating a fault code corresponding to the fault after determining the fault type when a fault is detected, the above problem can be avoided.
[0123] Sub-step S122: Generate a fault bookmark on the current page of the book structure. The fault bookmark includes the fault type, fault code, and page number of the current page.
[0124] In this embodiment of the invention, the book structure may also include a page number that uniquely corresponds to any page. The page number can be used to accurately locate the page in the book structure that corresponds to the page number.
[0125] It should be noted that the bookmark is a tag inserted into the current page of the book structure when a fault occurs, after determining the fault type corresponding to the fault and generating a fault code. It is used to record the fault type, fault code and page number of the current page when the fault occurs.
[0126] Sub-step S123: Synchronously update the fault bookmark to the bookmark list.
[0127] In this embodiment of the invention, the book structure may further include a bookmark list, which may be in tabular form and used to update and summarize faulty bookmarks in real time for easy retrieval and confirmation.
[0128] Sub-step S133: Based on the fault bookmarks in the bookmark list, perform the operation of determining the fault mode corresponding to the fault type according to the fault type in a preset processing order.
[0129] In this embodiment of the invention, when multiple faults are detected simultaneously, the baseboard management controller cannot simultaneously perform the fault scene preservation operation corresponding to the fault mode to collect fault scene information for all simultaneously occurring faults. In this case, it is necessary to first generate a fault bookmark on the current page when the fault occurs, and then synchronously update the fault bookmark to the bookmark list after generation. Then, the baseboard management controller performs the operation of determining the fault mode corresponding to the fault type according to the fault bookmark in the bookmark list, following a preset processing order.
[0130] In this embodiment of the invention, after performing a fault scene preservation operation corresponding to the fault mode to collect fault scene information according to different fault modes, and storing the collected fault scene information, the fault bookmark corresponding to the fault is deleted, and the bookmark list is updated.
[0131] It should be noted that the preset processing order can be a "first-in, first-out" processing order. Different fault bookmarks in the bookmark list can be arranged according to the time order in which the fault bookmarks were generated. Based on the order in which the fault bookmarks were generated, the faults corresponding to the fault bookmarks with earlier generation times are processed first, and the operation of determining the fault mode corresponding to the fault type is performed.
[0132] In this embodiment of the invention, considering the potential memory limitations of the baseboard management controller, a book structure corresponding to each fault type can be set up to store the fault impact factors corresponding to the respective fault type. This reduces the number of dynamic impact factor information items that need to be stored in the pages of the book structure, thereby saving unnecessary memory consumption in the book structure.
[0133] In this embodiment of the invention, considering the potential memory limitations of the baseboard management controller, a book structure can be established only for the fault types corresponding to the context fault modes to store the fault influencing factors corresponding to the fault types of the context fault modes. Since the immediate fault mode is a fault caused by the combined effect of multiple influencing factors, a fault will occur when multiple influencing factors reach a certain specified state. Therefore, it is only necessary to collect the static and dynamic influencing factor information corresponding to the fault in real time when the fault is detected, and store the collected static and dynamic influencing factor information as fault scene information. This can significantly free up the memory space of the baseboard management controller.
[0134] Specifically, such as Figure 2 As shown, Figure 2A flowchart illustrating another method for preserving a fault scene according to an embodiment of the present invention is shown. The method may include the following steps:
[0135] Step S210: The substrate management controller is started.
[0136] Step S220: Load the book structure.
[0137] In this embodiment of the invention, before loading the book structure, a preset fault model list may be loaded in the baseboard management controller, and the book structure is loaded after the fault model list is loaded.
[0138] It should be noted that the storage model used to store the static and dynamic impact factor information is a book structure, which may include a cover, pages, and bookmarks, wherein the pages may be several pages.
[0139] Step S230: Fill in the book cover.
[0140] In this embodiment of the invention, filling in the book cover can specifically involve, after the baseboard management controller completes startup, performing an initialization operation on the book structure, clearing the data in the book structure, re-acquiring the static impact factor information, and storing the static impact factor information in the book cover of the book structure.
[0141] Step S240: Fill in the book pages in a loop.
[0142] In this invention, before cyclically filling in the book pages, the process may further include downloading dynamic impact factors from the fault impact factors list to the first page of the book structure; then, the underlying thread of the baseboard management controller obtains the information corresponding to the dynamic impact factors based on the dynamic impact factors in the book pages to obtain dynamic impact factor information, and records the obtained dynamic impact factor information in a page of the book structure.
[0143] In this embodiment of the invention, when a change in the dynamic influence factor information is detected, the changed dynamic influence factor information is recorded in the current page of the book structure, and other unchanged dynamic influence factor information is copied from the previous page adjacent to the current page to the current page. The current page is then turned over, and the next page adjacent to the current page is taken as the new current page. This process is repeated to continuously fill the book pages.
[0144] Step S250: Generate fault bookmarks.
[0145] In this embodiment of the invention, when a fault is detected, a fault bookmark corresponding to the fault is generated in the current page of the book structure, and the fault bookmark is synchronously updated to the bookmark list; then, according to the fault bookmark in the bookmark list, the operation of determining the fault mode corresponding to the fault type is performed according to the fault type in a preset processing order.
[0146] It should be noted that the fault bookmark includes the fault type, fault code, and the page number of the current page.
[0147] Step S260: Collect fault scene information according to the fault scene preservation operation corresponding to the fault bookmark.
[0148] In this embodiment of the invention, the fault mode corresponding to the fault type can be determined according to the fault type in the fault bookmark; then, according to different fault modes, the fault scene preservation operation corresponding to the fault mode is executed to collect fault scene information.
[0149] It should be noted that after collecting fault site information, the collected fault site information needs to be stored for relevant personnel to view and analyze.
[0150] Step S270: Delete the fault bookmark.
[0151] After collecting and storing the fault scene information by performing a fault scene preservation operation corresponding to the fault mode according to different fault modes, the fault bookmarks corresponding to the faults are deleted, and the bookmark list is updated.
[0152] Specifically, such as Figure 3 As shown, Figure 3 This diagram illustrates a flowchart of another fault scene preservation method provided by an embodiment of the present invention. The method is applied when the fault mode is determined to be an immediate fault, and fault scene information is not obtained through the book structure. The method specifically includes the following steps:
[0153] Step S310: Immediate fault occurs.
[0154] In this embodiment of the invention, when a fault is detected, a fault type corresponding to the fault is determined; and if the fault mode corresponding to the fault type is determined to be an immediate fault mode based on the fault type, an immediate fault is confirmed to have occurred.
[0155] Step S320: Generate fault codes.
[0156] In this embodiment of the invention, if the fault mode corresponding to the fault type is determined to be an immediate fault mode, the fault code generation operation can be performed after confirming the occurrence of an immediate fault. Alternatively, after detecting a fault, the fault type corresponding to the fault can be determined, and before determining that the fault mode corresponding to the fault type is an immediate fault mode, the fault code can be generated.
[0157] Step S330: Check the fault model list and perform the corresponding fault scene preservation operation to collect fault scene information.
[0158] In this embodiment of the invention, upon confirmation of an immediate fault occurrence, a fault model list is searched based on the specific fault type corresponding to the immediate fault mode to determine the fault influencing factors corresponding to the fault type. The fault influencing factors include static fault influencing factors and dynamic fault influencing factors. Based on the static fault influencing factors and dynamic fault influencing factors, static fault influencing factor information and dynamic fault influencing factor information corresponding to the static fault influencing factors and dynamic fault influencing factors are obtained through the underlying thread of the baseboard management controller, and the static fault influencing factor information and dynamic fault influencing factor information are used as collected fault scene information.
[0159] Step S340: After collecting fault scene information, return to the normal process.
[0160] In this embodiment of the invention, after the operation of collecting fault site information is completed, the process returns to normal, and the baseboard management controller continues to detect the fault occurrence of the device.
[0161] In this embodiment of the invention, considering the potential memory limitations of the baseboard management controller, a book structure is established only for the fault types corresponding to the context fault modes to store the fault influencing factors corresponding to the fault types of the context fault modes. Since the immediate fault mode is a fault caused by the combined effect of multiple influencing factors, a fault will occur when multiple influencing factors reach a certain specified state. Therefore, it is only necessary to collect the static and dynamic influencing factor information corresponding to the fault in real time when the fault is detected, and store the real-time collected static and dynamic influencing factor information as fault scene information. This can significantly free up the memory space of the baseboard management controller.
[0162] Optionally, the step of collecting fault scene information by performing a fault scene preservation operation corresponding to the fault mode according to different fault modes may include:
[0163] Based on different fault modes, perform the fault scene preservation operation corresponding to the fault mode;
[0164] The function corresponding to the fault scene preservation operation is invoked to collect fault scene information.
[0165] In this embodiment of the invention, the function corresponding to the fault scene preservation operation is a processing function corresponding to the fault scene preservation operation. It is used to obtain static impact factor information from the cover of the book structure and dynamic impact factor information from the pages of the book structure according to the book structure reading method corresponding to different fault modes, and use the obtained static impact factor information and dynamic impact factor information as the collected fault scene information.
[0166] Step S140: Store the collected fault scene information.
[0167] In this embodiment of the invention, the baseboard management controller is further provided with a first storage area for storing the collected fault scene information, so that relevant personnel can download the fault scene information from the first storage area for viewing.
[0168] In this embodiment of the invention, storing the collected fault scene information can specifically involve compressing and saving the collected fault scene information to obtain a compressed file, and labeling the compressed file with information such as the fault type, fault code, fault code, and alarm log number corresponding to the fault, so as to match the fault scene information corresponding to different faults.
[0169] In this embodiment of the invention, upon detecting a fault, the fault type corresponding to the fault is determined, and based on the fault type, a corresponding fault mode is determined. Then, according to different fault modes, a fault scene preservation operation corresponding to the fault mode is performed to collect fault scene information. Finally, the collected fault scene information is stored for relevant personnel to view and analyze. Upon detecting a fault, not only can the fault type be determined, but after determining the fault mode based on the fault type, fault scene information can be collected and stored according to different fault modes. After a fault occurs, relevant personnel can obtain general information about the fault not only through alarm logs but also detailed fault scene information from the stored fault scene information. Based on this fault scene information, the cause of the fault can be directly analyzed without performing fault reproduction operations, accurately identifying and locating the specific cause of the fault, improving both the accuracy of fault cause location and the efficiency of fault investigation.
[0170] Figure 4 This diagram illustrates a logic block diagram of a fault scene retention device provided in an embodiment of the present invention, applied to a baseboard management controller, such as... Figure 4 As shown, the fault scene preservation device includes:
[0171] The first determining module 410 is used to determine the fault type corresponding to the fault when a fault is detected.
[0172] The second determining module 420 is used to determine the fault mode corresponding to the fault type according to the fault type, wherein the fault mode includes an immediate fault mode and a context fault mode.
[0173] The first execution module 430 is used to perform a fault scene preservation operation corresponding to the fault mode to collect fault scene information according to different fault modes.
[0174] Storage module 440 is used to store the collected fault scene information.
[0175] Optionally, the fault scene preservation device may further include:
[0176] The first acquisition module is used to acquire the static impact factor information and store the static impact factor information in the book cover of the book structure. The static impact factor information is static configuration information, and the static configuration information does not change during the operation of the device.
[0177] The second acquisition module is used to acquire the dynamic impact factor information and store the dynamic impact factor information in a page of a book structure. The dynamic impact factor information is real-time collected operating parameter information, which changes during the operation of the device.
[0178] The recording module is used to record the changed dynamic impact factor information in the current page of the book structure when a change is detected in the dynamic impact factor information, and to copy the other unchanged dynamic impact factor information from the previous page adjacent to the current page to the current page, perform a page-turning operation on the current page, and take the next page adjacent to the current page as the new current page.
[0179] Optionally, the first execution module 430 may include:
[0180] The first acquisition submodule is used to acquire the static impact factor information and dynamic impact factor information from the book structure as fault scene information according to the book structure reading method corresponding to different fault modes.
[0181] Optionally, the first acquisition submodule may include:
[0182] The first acquisition unit is used to, when the fault mode is determined to be an immediate fault mode, acquire the static influence factor information from the book cover of the book structure according to the book structure reading method corresponding to the immediate fault mode.
[0183] The second acquisition unit is used to acquire dynamic influence factor information from the current page of the book structure;
[0184] The first collection unit is used to collect the static impact factor information and the dynamic impact factor information as fault site information.
[0185] Optionally, the first acquisition submodule may further include:
[0186] The third acquisition unit is used to acquire the static impact factor information from the cover of the book structure according to the book structure reading method corresponding to the context failure mode when the failure mode is determined to be a context failure mode.
[0187] The fourth acquisition unit is used to acquire dynamic influence factor information from the current page of the book structure and the previous N pages adjacent to the current page, wherein N is any integer greater than or equal to 1;
[0188] The second collection unit is used to collect the static impact factor information and the dynamic impact factor information as fault site information.
[0189] Optionally, the second determining module 420 may include:
[0190] The query submodule is used to perform a table lookup operation in the fault model list based on the fault type, using the fault type as the key value;
[0191] The second acquisition submodule is used to acquire the fault mode corresponding to the fault type when the fault type is found in the fault model list.
[0192] The first determining submodule is used to determine the fault mode corresponding to the acquired fault type as the fault mode corresponding to the fault type.
[0193] Optionally, the fault scene preservation device may further include:
[0194] A fault code generation module is used to generate fault codes, which are used to record the number of times a fault occurs;
[0195] A fault bookmark generation module is used to generate a fault bookmark on the current page of the book structure. The fault bookmark includes the fault type, fault code, and page number of the current page.
[0196] The update module is used to synchronize and update the faulty bookmarks to the bookmark list.
[0197] The second execution module is used to perform the operation of determining the fault mode corresponding to the fault type according to the fault bookmark in the bookmark list in a preset processing order.
[0198] Optionally, the first execution module 430 may further include:
[0199] The execution submodule is used to perform fault scene preservation operations corresponding to different fault modes.
[0200] The submodule is invoked to call the function corresponding to the fault scene preservation operation to collect fault scene information.
[0201] Optionally, the second determining module 420 may further include:
[0202] The fault code generation submodule is used to generate a fault code corresponding to the fault when a fault is detected.
[0203] The second determining submodule is used to determine the fault type corresponding to the fault based on the fault code.
[0204] This invention provides a baseboard management controller for implementing the fault scene preservation method as described in any of the preceding claims.
[0205] This invention also provides a server, which includes the baseboard management controller described above.
[0206] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this application are indicated by the following claims.
[0207] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.
Claims
1. A method for preserving a fault scene, characterized in that, include: Upon detecting a fault, determine the fault type corresponding to the fault; Based on the fault type, the corresponding fault mode is determined, and the fault mode includes an immediate fault mode and a context fault mode. Based on different fault modes, perform fault scene preservation operations corresponding to the fault mode to collect fault scene information; The collected fault scene information is stored; wherein, the fault scene information includes static impact factor information and dynamic impact factor information; before the fault is detected, it also includes: The static impact factor information is obtained and stored in the book cover of the book structure. The static impact factor information is static configuration information and does not change during device operation. The dynamic impact factor information is acquired and stored in a page of a book structure. The dynamic impact factor information is real-time collected operating parameter information, which changes during the operation of the device. If a change in the dynamic impact factor information is detected, the changed dynamic impact factor information is recorded in the current page of the book structure, and the other unchanged dynamic impact factor information is copied from the previous page adjacent to the current page to the current page. The current page is then turned over, and the next page adjacent to the current page is taken as the new current page.
2. The method according to claim 1, characterized in that, The step of collecting fault scene information by performing fault scene preservation operations corresponding to different fault modes includes: Based on the book structure reading method corresponding to different fault modes, the static impact factor information and dynamic impact factor information are obtained from the book structure as fault scene information.
3. The method according to claim 2, characterized in that, The step of obtaining the static and dynamic impact factor information as fault scene information from the book structure according to the book structure reading method corresponding to different fault modes includes: If the failure mode is determined to be an immediate failure mode, the static impact factor information is obtained from the book cover of the book structure according to the book structure reading method corresponding to the immediate failure mode. Obtain dynamic influence factor information from the current page of the book structure; The static impact factor information and the dynamic impact factor information are used as fault site information.
4. The method according to claim 2, characterized in that, The step of obtaining the static and dynamic impact factor information as fault scene information from the book structure according to the book structure reading method corresponding to different fault modes includes: If the failure mode is determined to be a context failure mode, the static impact factor information is obtained from the book cover of the book structure according to the book structure reading method corresponding to the context failure mode. Dynamic influence factor information is obtained from the current page of the book structure and the N pages adjacent to the current page; The static impact factor information and the dynamic impact factor information are used as fault site information; Wherein, N is any integer greater than or equal to 1.
5. The method according to claim 1, characterized in that, The baseboard management controller has a preset fault model list, which includes fault type and fault mode; The step of determining the fault mode corresponding to the fault type based on the fault type includes: Based on the fault type, a table lookup operation is performed in the fault model list using the fault type as the key value; If the fault type is found in the fault model list, the fault mode corresponding to the fault type is obtained; The fault mode corresponding to the obtained fault type is determined as the fault mode corresponding to the fault type.
6. The method according to claim 1, characterized in that, After determining the fault type corresponding to the detected fault, the method further includes: Generate a fault code, which is used to record the number of times a fault occurs; A fault bookmark is generated on the current page of the book structure. The fault bookmark includes the fault type, fault code, and page number of the current page. The faulty bookmarks will be synchronized and updated to the bookmark list; Based on the fault bookmarks in the bookmark list, the operation of determining the fault mode corresponding to the fault type is performed according to a preset processing order.
7. The method according to any one of claims 1 to 6, characterized in that, The step of collecting fault scene information by performing fault scene preservation operations corresponding to different fault modes includes: Based on different fault modes, perform the fault scene preservation operation corresponding to the fault mode; The function corresponding to the fault scene preservation operation is invoked to collect fault scene information.
8. The method according to any one of claims 1 to 6, characterized in that, The step of determining the fault type corresponding to the detected fault includes: If a fault is detected, a fault code corresponding to the fault is generated; Based on the fault code, determine the fault type corresponding to the fault.
9. A fault scene preservation device, characterized in that, include: The first determining module is used to determine the fault type corresponding to the fault when a fault is detected. The second determining module is used to determine the fault mode corresponding to the fault type based on the fault type, wherein the fault mode includes an immediate fault mode and a context fault mode. The first execution module is used to perform fault scene preservation operations corresponding to different fault modes to collect fault scene information. A storage module is used to store the collected fault scene information; wherein, the fault scene information includes static impact factor information and dynamic impact factor information; before a fault is detected, it also includes: The first acquisition module is used to acquire the static impact factor information and store the static impact factor information in the book cover of the book structure. The static impact factor information is static configuration information, and the static configuration information does not change during the operation of the device. The second acquisition module is used to acquire the dynamic impact factor information and store the dynamic impact factor information in a page of a book structure. The dynamic impact factor information is real-time collected operating parameter information, which changes during the operation of the device. The recording module is used to record the changed dynamic impact factor information in the current page of the book structure when a change is detected in the dynamic impact factor information, and to copy the other unchanged dynamic impact factor information from the previous page adjacent to the current page to the current page, perform a page-turning operation on the current page, and take the next page adjacent to the current page as the new current page.
10. A baseboard management controller, characterized in that, The baseboard management controller is used to implement the fault scene preservation method as described in any one of claims 1 to 8.
11. A server, characterized in that, The server includes the baseboard management controller as described in claim 10.
Citation Information
Patent Citations
Method and device for reserving fault site based on BMC
CN111884830A
Fault reporting method and device, electronic equipment and storage medium
CN113127250A