Soft fault positioning method, device and equipment based on baseboard management controller
By analyzing BIOS error information and baseboard management controller startup parameters, fault location strategies are automatically determined, solving the problems of low efficiency and poor accuracy of traditional manual troubleshooting, and improving the efficiency and accuracy of soft fault location.
Patent Information
- Application Number
- CN202410939050.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-08-23
AI Technical Summary
Traditional soft fault troubleshooting relies on manual experience, resulting in high personnel costs, low troubleshooting efficiency, and poor fault location accuracy.
By analyzing the error information that appears on the BIOS installation interface, the actual information and startup parameters of the baseboard management controller are determined, matching processing is performed to determine the fault location parameters, and the target soft fault location strategy is determined based on the fault location parameters and policy mapping relationship to achieve automated fault location. .
It improves the efficiency of troubleshooting, reduces the probability of misjudgment, improves the accuracy of fault location, and ensures that the server maintains efficient and stable operation in different environments.
Smart Images

Figure CN118535372A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of servers, and in particular to a soft fault locating method, device and equipment based on a baseboard management controller. Background Art
[0002] Soft failures are usually non-hard problems in the server management controller. They may be caused by software configuration errors, firmware defects, improper system configuration or other non-physical factors. Although they will not cause the system to crash immediately, they will cause management function abnormalities, such as the inability to remotely access the server, inaccurate monitoring of system status, or the inability to remotely power on and off the machine.
[0003] When a soft fault occurs, an error message will be displayed on the Basic Input Output System (BIOS) setup interface, but it is impossible to locate the mechanism that caused the soft fault. As a result, the troubleshooting mechanism needs to be based on the experience and ability of the staff, which further increases personnel costs and even delays the troubleshooting efficiency.
[0004] Therefore, how to save personnel costs and improve troubleshooting efficiency and the accuracy of fault location is an urgent problem that technical personnel in this field need to solve. Summary of the invention
[0005] The purpose of the present invention is to provide a soft fault locating method, device and equipment based on a baseboard management controller to solve the technical problems of increased personnel costs, reduced troubleshooting efficiency and reduced fault locating accuracy caused by manual troubleshooting of traditional soft faults.
[0006] In order to solve the above technical problems, the present invention provides a soft fault location method based on a baseboard management controller, comprising:
[0007] Respond to error messages that appear on the BIOS installation interface;
[0008] Analyze and process the error information to determine actual information corresponding to the current baseboard management controller;
[0009] The fault location parameters are determined by matching the actual information with the various startup parameters of the baseboard management controller; wherein the startup parameters are used to characterize the identification parameters corresponding to the completion of the startup of the baseboard management controller during the startup process; the identification parameters at least include one or more of the in-place state, the communication mark information and the timestamp information corresponding to the startup time; the in-place state is the state information corresponding to the baseboard management controller before and after startup; the communication mark information is the mark information corresponding to the communication between the basic input and output system and the baseboard management controller; the timestamp information corresponding to the startup time is the timestamp information corresponding to the startup of the basic input and output system and the baseboard management controller;
[0010] A target soft fault location strategy is determined according to a mapping relationship between fault location parameters and each soft fault location strategy, so as to facilitate maintenance processing of the baseboard management controller according to the target soft fault location strategy; wherein the soft fault location strategy and the target soft fault location strategy both include at least one or more of a main control chip location strategy, an in-band communication strategy and a baseboard management controller location strategy of the baseboard management controller.
[0011] On the one hand, the error information is analyzed and processed to determine the actual information corresponding to the current baseboard management controller, including:
[0012] Determine the hardware diagnostic tool and log information of the current baseboard management controller according to the error information;
[0013] The actual information of the current baseboard management controller is determined by parsing the hardware diagnostic tool and the log information.
[0014] On the other hand, matching processing is performed according to the actual information and various startup parameters of the baseboard management controller to determine the fault location parameters, including:
[0015] Determine, in each of the startup parameters, a preset startup parameter corresponding to the baseboard management controller according to the actual information; wherein the preset startup parameter represents an identification parameter corresponding to the baseboard management controller during a normal startup process;
[0016] Comparing the actual information with the preset startup parameters;
[0017] If the actual information is different from the preset startup parameter, the actual information that is different from the preset startup parameter is used as the fault location parameter.
[0018] On the other hand, a target soft fault location strategy is determined according to a mapping relationship between the fault location parameter and each soft fault location strategy, including:
[0019] Establishing in advance the mapping relationship between each fault location information and each software location strategy;
[0020] If the fault location parameter is the in-place state, controlling the current baseboard management controller to start the first in-place state information after the system is booted and the kernel is minimized;
[0021] It is pre-established that after the baseboard management controller completes startup, the first in-place state information is modified to the second in-place state information;
[0022] After the current baseboard management controller completes startup, third in-place state information corresponding to the response of the current baseboard management controller to complete startup is obtained;
[0023] determining whether the third presence status information is different from the first presence status information and the same as the second presence status information;
[0024] If so, the main control chip positioning strategy of the baseboard management controller is excluded;
[0025] If not, it is determined that the target soft fault location strategy is the main control chip location strategy of the baseboard management controller.
[0026] On the other hand, a target soft fault location strategy is determined according to a mapping relationship between the fault location parameter and each soft fault location strategy, including:
[0027] Establishing in advance the mapping relationship between each fault location information and each software location strategy;
[0028] If the fault location parameter is communication mark information, receiving first address information corresponding to the current failure of the baseboard management controller to transmit data to the basic input and output system;
[0029] determining first marking information according to the first address information;
[0030] receiving second address information corresponding to the data transmitted between the basic input and output system and the current baseboard management controller according to a preset time;
[0031] determining second marking information according to the second address information;
[0032] Determining whether the first marking information and the second marking information are the same;
[0033] If they are the same, then the in-band communication strategy is excluded;
[0034] If they are different, it is determined that the target soft fault location strategy is the in-band communication strategy.
[0035] On the other hand, a target soft fault location strategy is determined according to a mapping relationship between the fault location parameter and each soft fault location strategy, including:
[0036] Establishing in advance the mapping relationship between each fault location information and each software location strategy;
[0037] If the fault location parameter is the timestamp information corresponding to the startup time, the timestamp information of the current baseboard management controller and the basic input and output system are recorded respectively through the real-time clock and the network time protocol; wherein the timestamp information of the current baseboard management controller is greater than the timestamp information of the basic input and output system; the timestamp information of the current baseboard management controller is the sum of the timestamp information of the basic input and output system and the first preset timestamp information;
[0038] If the timestamp information of the basic input and output system ends, responding to the first preset timestamp information until the first preset timestamp information ends;
[0039] Receiving timestamp information sent by the current baseboard management controller;
[0040] If the timestamp information of the current baseboard management controller is reset, then excluding the baseboard management controller positioning strategy;
[0041] If the timestamp information of the current baseboard management controller is not reset, determining that the target soft fault location strategy is the baseboard management controller location strategy;
[0042] or;
[0043] Setting a watchdog mechanism; wherein the watchdog mechanism is related to the startup process of the current baseboard management controller, and when the startup of the current baseboard management controller is completed, the watchdog mechanism does not feed the dog;
[0044] receiving a dog feeding operation corresponding to the current baseboard management controller according to a second preset time;
[0045] In response to the second preset timestamp information, receiving whether the basic input and output system has finished feeding the dog;
[0046] If it is finished, then the baseboard management controller positioning strategy is excluded;
[0047] If not ended, determining that the target soft fault location strategy is the baseboard management controller location strategy.
[0048] On the other hand, after determining the target soft fault location strategy according to the mapping relationship between the fault location parameter and each soft fault location strategy, the method further includes:
[0049] Performing maintenance processing on the current baseboard management controller according to the target soft fault location strategy;
[0050] Displaying maintenance processing information through the installation interface of the basic input and output system;
[0051] When the maintenance process is finished, the installation interface of the basic input and output system will display that the maintenance process operation is completed.
[0052] In order to solve the above technical problems, the present invention also provides a soft fault locating device based on a baseboard management controller, comprising:
[0053] A response module, used for responding to error messages appearing on the installation interface of the basic input and output system;
[0054] A first determination module, configured to analyze and process the error information to determine actual information corresponding to the current baseboard management controller;
[0055] A matching processing module, used for matching the actual information with various startup parameters of the baseboard management controller to determine the fault location parameters; wherein the startup parameters are used to characterize the identification parameters corresponding to the completion of the startup of the baseboard management controller during the startup process; the identification parameters at least include one or more of the in-place state, the communication mark information and the timestamp information corresponding to the startup time; the in-place state is the state information corresponding to the baseboard management controller before and after startup; the communication mark information is the mark information corresponding to the communication between the basic input and output system and the baseboard management controller; the timestamp information corresponding to the startup time is the timestamp information corresponding to the startup of the basic input and output system and the baseboard management controller;
[0056] The second determination module is used to determine the target soft fault location strategy according to the mapping relationship between the fault location parameters and each soft fault location strategy, so as to facilitate the maintenance processing of the baseboard management controller according to the target soft fault location strategy; wherein the soft fault location strategy and the target soft fault location strategy both include at least one or more of the main control chip location strategy, in-band communication strategy and baseboard management controller location strategy of the baseboard management controller.
[0057] In order to solve the above technical problems, the present invention further provides a soft fault location device based on a baseboard management controller, comprising:
[0058] Memory for storing computer programs;
[0059] The processor is used to implement the steps of the soft fault location method based on the baseboard management controller as described above when executing the computer program.
[0060] 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 soft fault locating method based on the baseboard management controller as described above are implemented.
[0061] The present invention provides a soft fault locating method based on a baseboard management controller, comprising: responding to error information appearing on an installation interface of a basic input / output system; analyzing and processing the error information to determine actual information corresponding to the current baseboard management controller; matching and processing the actual information with various startup parameters of the baseboard management controller to determine fault locating parameters; wherein the startup parameters are used to characterize the various identification parameters corresponding to the completion of startup of the baseboard management controller during the startup process; the identification parameters at least include an in-place state, communication mark information and timestamp information corresponding to the startup time; the in-place state is state information corresponding to before and after the startup of the baseboard management controller; the communication mark information is mark information corresponding to the communication between the basic input / output system and the baseboard management controller; the timestamp information corresponding to the startup time is timestamp information corresponding to the startup of the basic input / output system and the baseboard management controller; determining a target soft fault locating strategy according to a mapping relationship between the fault locating parameters and various soft fault locating strategies, so as to facilitate maintenance processing of the baseboard management controller according to the target soft fault locating strategy; wherein the soft fault locating strategy and the target soft fault locating strategy both include at least one or more of a main control chip locating strategy, an in-band communication strategy and a baseboard management controller locating strategy of the baseboard management controller.
[0062] The beneficial effect of the present invention is to locate and troubleshoot fault information to determine the target soft fault location. The actual information of the current BMC is determined by analyzing the error information to narrow the scope of fault troubleshooting. The fault location parameters are determined based on the actual information (information about the fault, including fault information and parameter information involved in the startup) and the startup parameters of the BMC, and further narrowed down to the specific fault location parameters where the fault occurred. The target soft fault location strategy is then determined based on the fault location parameters and the soft fault location strategy for easy maintenance and processing. Automatic positioning and matching is performed through error information to determine the fault information, avoiding manual judgment and troubleshooting, and improving troubleshooting efficiency. At the same time, the target soft fault location is determined based on the mapping relationship between the fault location parameters and the soft fault location strategy, reducing the probability of misjudgment and improving accuracy. It is further ensured that the server maintains an efficient and stable operating state when operating in different usage environments to improve user experience.
[0063] Secondly, based on the error information analysis and processing, the actual information of the current BMC is obtained, and the fault location scope is narrowed. Only the fault location of the BMC is targeted, so as to improve the efficiency of BMC troubleshooting in the future. In the process of obtaining the fault location parameters, the actual information is matched with each startup parameter to ensure the accuracy of the fault location parameters, so as to improve the accuracy of subsequent fault location. Through the determination process of the BMC main control chip strategy, the abnormal state before and after the BMC is determined, and the two states are determined before and after to avoid the misjudgment caused by the state judgment of only one communication due to signal interference. In the determination process of the in-band communication strategy, the communication between the BIOS and the BMC is determined by the tag information to avoid affecting the interaction mechanism between the BMC and the BIOS. In the determination process of the baseboard management controller positioning strategy, based on the timing strategy of the timestamp information, the BMC is checked in the determined timestamp information to see whether the normal startup process has been completed, so as to ensure that the BMC startup is complete and normal.
[0064] In addition, the present invention also provides a soft fault locating device, equipment and medium based on a baseboard management controller, which have the same beneficial effects as the above-mentioned soft fault locating method based on a baseboard management controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] 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.
[0066] Figure 1 A flowchart of a soft fault location method based on a baseboard management controller provided by an embodiment of the present invention;
[0067] Figure 2 A schematic diagram of communication between BIOS and BMC provided in an embodiment of the present invention;
[0068] Figure 3 A structural diagram of a soft fault locating device based on a baseboard management controller provided by an embodiment of the present invention;
[0069] Figure 4 A structural diagram of a soft fault locating device based on a baseboard management controller provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0070] 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.
[0071] The core of the present invention is to provide a soft fault locating method, device and equipment based on a baseboard management controller to solve the technical problems of increased personnel costs, reduced troubleshooting efficiency and reduced fault locating accuracy caused by manual troubleshooting of traditional soft faults.
[0072] 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.
[0073] Artificial Intelligence (AI) servers require ultra-high performance support from the central processing unit (CPU) and the graphics processing unit (GPU). Especially with the support of computing power and big data models, the overall stability of the server is required to be high, especially the requirements for basic firmware are particularly important. At the same time, as the basic carrier of information servers, servers usually need to be equipped with intelligent components and then with ecological servers to give full play to the performance of servers or intelligent devices. AI servers are high-performance computing servers designed and optimized for running artificial intelligence and machine learning workloads, which need to process complex algorithms and large amounts of data. With the continuous development of AI technology, the specifications and performance of AI servers are also constantly improving to meet the growing computing needs.
[0074] There is a close relationship between server stability and baseboard management controller (BMC) soft faults. Server stability refers to the ability of the server to run continuously and stably and provide services, and BMC is a key component of the server, responsible for managing and monitoring the status of the server, including hardware health status, temperature, power management, etc. An error message appears in the BIOS installation interface, but conventional fault location cannot know what specific fault has occurred. Therefore, it is necessary to troubleshoot through manual experience, which results in certain experience in personnel capabilities, and there are certain efficiency problems in the troubleshooting process. The soft fault location method based on the baseboard management controller provided by the present invention can solve the above technical problems.
[0075] Figure 1A flowchart of a soft fault location method based on a baseboard management controller is provided in an embodiment of the present invention, such as Figure 1 As shown, the method includes:
[0076] S11: responding to an error message that appears on the installation interface of the basic input and output system;
[0077] S12: Analyze and process the error information to determine the actual information corresponding to the current baseboard management controller;
[0078] S13: performing matching processing according to the actual information and various startup parameters of the baseboard management controller to determine the fault location parameters;
[0079] Among them, the startup parameters are used to characterize the identification parameters corresponding to the completion of the startup of the baseboard management controller during the startup process; the identification parameters at least include one or more of the in-position state, the communication mark information and the timestamp information corresponding to the startup time; the in-position state is the state information corresponding to the baseboard management controller before and after startup; the communication mark information is the mark information corresponding to the communication between the basic input and output system and the baseboard management controller; the timestamp information corresponding to the startup time is the timestamp information corresponding to the startup of the basic input and output system and the baseboard management controller respectively;
[0080] S14: determining a target soft fault locating strategy according to a mapping relationship between the fault locating parameter and each soft fault locating strategy, so as to perform maintenance processing on the baseboard management controller according to the target soft fault locating strategy;
[0081] The soft fault location strategy and the target soft fault location strategy both include at least one or more of a main control chip location strategy of a baseboard management controller, an in-band communication strategy, and a baseboard management controller location strategy.
[0082] Specifically, the present invention can be based on an AI server, and can also locate soft faults based on an ordinary server, which is not limited here. During the system startup process, the error message or alarm sound that appears on the BIOS installation interface can usually provide clue information of the fault. However, the clues provided by the error message are limited, so it is necessary to analyze and process the error message. Therefore, it is necessary to respond to the error message in step S11, and analyze and process the error message to determine the actual information of the current BMC. It should be noted that the actual information of the current BMC is based on all the status information of the BMC that is currently in a faulty state and the parameter information corresponding to the BMC during the startup process. The error information in this embodiment can also be all information such as BIOS update version, hardware compatibility, hardware connection, etc. This embodiment only extracts the actual information related to the current BMC from the error information. The extraction process here is not limited, and can be extracted by screening, or it can be directly extracted by some mapping relationship between the error information and the actual information of the BMC, or it can be extracted using keyword information, which can be set according to the actual situation.
[0083] In some embodiments, analyzing and processing the error information to determine actual information corresponding to the current baseboard management controller includes:
[0084] Determine the hardware diagnostic tool and log information of the current baseboard management controller according to the error information;
[0085] The actual information of the current baseboard management controller is determined by parsing the hardware diagnostic tool and log information.
[0086] Specifically, the hardware diagnostic tool and log information of the current BMC are determined according to the error information. The hardware diagnostic tool is a special tool for monitoring and managing servers, which can help system administrators remotely monitor the health of the server and perform diagnosis. It mainly includes Intelligent Platform Management Interface (IPMI) tools, Web interface, special management software, Simple Network Management Protocol (SNMP) tools, etc. BMC has a logging function that can record system events and error information, which is crucial for analyzing the cause of the fault and performing post-fault analysis. This embodiment calls the hardware diagnostic tool and log information according to the error information, so as to determine the actual information of the current baseboard management controller through analysis and processing based on the hardware diagnostic tool and log information.
[0087] The analysis and processing here is to determine the actual information corresponding to the current BMC operation process based on the currently recorded fault situation, including the fault parameters and various startup parameters corresponding to the entire startup operation process.
[0088] The present embodiment provides a method for obtaining actual information of the current BMC based on error information analysis and processing, thereby narrowing the scope of fault location and only locating the fault of the BMC, so as to improve the efficiency of BMC fault detection in the future.
[0089] In step S13, the fault location parameters are determined by matching the actual information with the various startup parameters of the baseboard management controller. It can be understood that the actual information of the current BMC and the various startup parameters are matched, and the startup parameters corresponding to the fault are further limited for matching, so as to determine the fault location parameters. The matching process is not limited, and can be implemented according to the matching algorithm, or can be implemented based on the corresponding relationship between the startup parameters corresponding to the preset table information and the actual information of the current BMC, and can be set according to the actual situation.
[0090] In some embodiments, matching processing is performed based on actual information and various startup parameters of the baseboard management controller to determine the fault location parameters, including:
[0091] Determine the preset startup parameters corresponding to the baseboard management controller in each startup parameter according to the actual information; wherein the preset startup parameters represent the identification parameters corresponding to the baseboard management controller during the normal startup process;
[0092] Compare the actual information with the preset startup parameters;
[0093] If the actual information is different from the preset startup parameters, the actual information that is different from the preset startup parameters is used as the fault location parameter.
[0094] Specifically, the corresponding preset startup parameters are determined in each startup parameter according to the actual information. The startup parameters represent the corresponding identification parameters of the BMC during the startup process. The actual information is the information data corresponding to the BMC soft fault location determined by screening on the basis of the error information. The preset startup parameters represent the identification information corresponding to the normal startup process of the BMC. Here, the preset startup parameters are used as the reference standard, which are the corresponding parameters during the successful completion of the startup process. The actual information is compared with each preset startup parameter, so that the actual information that is different from the preset startup parameters can be determined as the fault location parameter, and the fault location parameter determined in the actual information can be further limited.
[0095] The process of acquiring the fault localization parameters provided in this embodiment is determined by matching actual information with various startup parameters to ensure the accuracy of the fault localization parameters, so as to improve the accuracy of subsequent fault localization.
[0096] It can be understood that the identification information at least includes the in-place status of the BMC, the communication mark information, and the timestamp information corresponding to the startup time during the BMC startup process. The in-place status is used to represent the status information corresponding to the BMC startup process and after the startup is completed, and the communication mark information is used to represent the mark information corresponding to the communication between the BMC and the BIOS to ensure normal communication between the two. The timestamp information corresponding to the startup time is based on the timestamp information corresponding to the startup of the BMC and the BIOS, respectively, so as to ensure whether the startup process of the BMC is successfully completed.
[0097] In step S14, the target fault location strategy is determined according to the mapping relationship between the fault location parameter and each soft fault location strategy. It should be noted that the target fault location strategy can be one or more, which are determined by the fault location parameter, and at least include one or more of the main control chip location strategy of the baseboard management controller, the in-band communication strategy and the baseboard management controller location strategy. The specific mapping relationship is established in advance and determined by the actual fault location parameter judgment process.
[0098] The embodiment of the present invention provides a method for locating a soft fault based on a baseboard management controller, including responding to an error message that appears on an installation interface of a basic input / output system; analyzing and processing the error message to determine actual information corresponding to the current baseboard management controller; matching and processing the actual information with various startup parameters of the baseboard management controller to determine the fault location parameter; wherein the startup parameter is used to characterize the identification parameters corresponding to the completion of the startup of the baseboard management controller during the startup process; the identification parameter at least includes the in-position state, the communication mark information and the timestamp information corresponding to the startup time; the in-position state is the state information corresponding to before and after the startup of the baseboard management controller; the communication mark information is the mark information corresponding to the communication between the basic input / output system and the baseboard management controller; the timestamp information corresponding to the startup time is the timestamp information corresponding to the startup of the basic input / output system and the baseboard management controller respectively; according to the mapping relationship between the fault location parameter and each soft fault location strategy, a target soft fault location strategy is determined, so as to facilitate maintenance processing of the baseboard management controller according to the target soft fault location strategy; wherein the soft fault location strategy and the target soft fault location strategy both include at least one or more of the main control chip location strategy, the in-band communication strategy and the baseboard management controller location strategy of the baseboard management controller. The fault information is located and checked to determine the target soft fault location. Through the analysis of error information, the actual information of the current BMC is determined to narrow the scope of troubleshooting. Based on the actual information (fault information, including fault information and parameter information of each involved in startup) and the startup parameters of the BMC, the fault location parameters are matched and processed to further narrow down to the specific fault location parameters of the fault. Then, the target soft fault location strategy is determined based on the fault location parameters and the soft fault location strategy to facilitate maintenance and processing. Automatic positioning and matching of error information is performed to determine the fault information, avoiding manual judgment and troubleshooting, and improving troubleshooting efficiency. At the same time, according to the mapping relationship between the fault location parameters and the soft fault location strategy, the target soft fault location is determined to reduce the probability of misjudgment and improve accuracy. Further ensure that the server maintains an efficient and stable operating state when operating in different usage environments to improve user experience.
[0099] In some embodiments, determining a target soft fault location strategy according to a mapping relationship between a fault location parameter and each soft fault location strategy includes:
[0100] Establishing in advance the mapping relationship between each fault location information and each software location strategy;
[0101] If the fault location parameter is in the in-place state, controlling the current baseboard management controller to start the first in-place state information after the system is booted and the kernel is minimized;
[0102] It is pre-established that after the baseboard management controller completes startup, the first in-place state information is modified to the second in-place state information;
[0103] After the current baseboard management controller completes the startup, the third in-place state information corresponding to the response of the startup completion is obtained;
[0104] determining whether the third presence status information is different from the first presence status information and the same as the second presence status information;
[0105] If so, the main control chip positioning strategy of the baseboard management controller is excluded;
[0106] If not, it is determined that the target soft fault location strategy is the main control chip location strategy of the baseboard management controller.
[0107] Specifically, conventional judgments are based on the state of a communication, but this state is absolute, and it is possible that voltage fluctuations caused by electromagnetic interference, signal jitter, etc. may affect the change of the actual state, which can easily cause misjudgment. If the fault location parameter is in the in-place state, the first in-place state information is started before the current BMC system is started, that is, after the system boot (uboot) and kernel minimization. The system boot here is an open source boot loader that is widely used in embedded systems. It is mainly used for tasks such as initializing hardware devices, setting memory space, and loading operating systems. It is a very critical component in the system startup process. Kernel minimization means that the operating system kernel only contains the most basic functions and components to provide the most core services required for system operation. This design philosophy aims to reduce the complexity of the system, improve the stability and security of the system, and reduce resource consumption.
[0108] It is pre-established that after the BMC completes startup, in the case of normal startup, the second in-place state information will be modified by the first in-place state information, and whether the BMC startup is normal is marked by the change of the in-place state information.
[0109] Obtain the third in-place state information corresponding to the response to the completion of the startup after the current BMC completes the startup, and determine whether the third in-place state information is different from the first in-place state information and the same as the second in-place state information. If so, it means that the current fault location information is not caused by the main control chip of the BMC. If not, it means that it is caused by the main control chip of the BMC.
[0110] It should be noted that the startup time of the BMC is based on the AI server, which has a longer startup time than the server. The corresponding startup time impact is negligible here.
[0111] The process of determining the master control chip strategy through the BMC provided in this embodiment is based on the abnormal state before and after the BMC is started, and is determined by the two states before and after, so as to avoid misjudgment caused by judging the state through only one communication due to signal interference, etc.
[0112] In some embodiments, determining a target soft fault location strategy according to a mapping relationship between a fault location parameter and each soft fault location strategy includes:
[0113] Establishing in advance the mapping relationship between each fault location information and each software location strategy;
[0114] If the fault location parameter is communication mark information, receiving first address information corresponding to the current data transmission between the baseboard management controller and the basic input and output system;
[0115] Determine first marking information according to the first address information;
[0116] receiving second address information corresponding to the data transmitted between the basic input and output system and the current baseboard management controller according to a preset time;
[0117] determining second marking information according to the second address information;
[0118] Determine whether the first tag information and the second tag information are the same;
[0119] If they are the same, the in-band communication policy is excluded;
[0120] If they are different, the target soft fault location strategy is determined to be the in-band communication strategy.
[0121] Specifically, when the fault location parameter is the communication tag information, the first address information is the address information corresponding to the current BMC when it is not transmitting data with the BIOS, and the first tag information is determined based on the first address information. The second address information is received according to the preset time, and the second address information here is the address information corresponding to the BIOS receiving the BMC transmission data, and the second tag information is determined based on the second address information. Here, it is necessary to determine whether the first tag information and the second tag information are the same. If they are the same, it means that there is no problem with the in-band communication and the communication is normal. If they are different, it means that the current fault is the in-band communication strategy.
[0122] That is, by comparing the first tag information and the second tag information corresponding to the first address information and the second address information, a comparison of the two tag information before and after transmission is formed to determine whether the communication is normal.
[0123] The tag information of the address information here may be the model information stored in an electrically erasable programmable read only memory (EEPROM), may be the model information of the mainboard, or may be other information, etc., which is not limited here.
[0124] The in-band communication strategy determination process provided in this embodiment determines whether the communication between the BIOS and the BMC is abnormal through the marking information, thereby avoiding affecting the interaction mechanism between the BMC and the BIOS.
[0125] In some embodiments, in addition to the tag information of the corresponding address information during the BMC and BIOS transmission process, it also includes:
[0126] Acquire a first data packet sent by the BMC to the BIOS; wherein the first data packet includes a first check value and / or a first hash value;
[0127] Controlling the BIOS to receive the first data packet, and calculating a second check value and / or a second hash value according to the first data packet;
[0128] Determine whether the first check value and / or the first Hash value corresponds to the same as the second check value and / or the second Hash value;
[0129] If they are the same, then determine to exclude the in-band communication strategy;
[0130] If they are different, the target soft fault location strategy is determined to be the in-band communication strategy.
[0131] In this embodiment, the verification is performed by determining the check value and / or hash value of the specific transmission data of the first data packet, and the data provided by the sender and the receiver are compared to verify the integrity of the data. In addition, the security and integrity of the data transmission process can also be improved by an encryption protocol between communication protocols, which is not limited here.
[0132] The present embodiment provides a comparison of the checksum and / or hash value of a data packet during the in-band communication process, thereby determining the integrity of data transmission between the BMC and the BIOS, and further ensuring the normality of the in-band communication.
[0133] In some embodiments, determining a target soft fault location strategy according to a mapping relationship between a fault location parameter and each soft fault location strategy includes:
[0134] Establishing in advance the mapping relationship between each fault location information and each software location strategy;
[0135] If the fault location parameter is the timestamp information corresponding to the startup time, the timestamp information of the current baseboard management controller and the basic input and output system are recorded respectively through the real-time clock and the network time protocol; wherein the timestamp information of the current baseboard management controller is greater than the timestamp information of the basic input and output system; the timestamp information of the current baseboard management controller is the sum of the timestamp information of the basic input and output system and the first preset timestamp information;
[0136] If the timestamp information of the basic input and output system ends, respond to the first preset timestamp information until the first preset timestamp information ends;
[0137] Receive timestamp information sent by the current baseboard management controller;
[0138] If the timestamp information of the current baseboard management controller is reset, the baseboard management controller positioning strategy is excluded;
[0139] If the timestamp information of the current baseboard management controller is not reset, determining the target soft fault location strategy to be the baseboard management controller location strategy;
[0140] or;
[0141] Set the watchdog mechanism; the watchdog mechanism is related to the startup process of the current baseboard management controller. When the current baseboard management controller is started, the watchdog mechanism does not feed the dog;
[0142] receiving a dog feeding operation corresponding to the current baseboard management controller according to a second preset time;
[0143] In response to the second preset timestamp information, receiving a basic input and output system signal whether dog feeding is completed;
[0144] If it ends, then exclude the baseboard management controller positioning strategy;
[0145] If not ended, it is determined that the target soft fault location strategy is the baseboard management controller location strategy.
[0146] Specifically, if the fault location parameter is the timestamp information corresponding to the startup time, the timestamp information of the current BMC and BIOS can be recorded respectively by setting the clock information of the Real-Time Clock (RTC) and the Network Time Protocol (NTP). Since the startup time of the BIOS and BMC are inconsistent, various problems may occur. Therefore, based on the fact that the timestamp information of the BMC is greater than the timestamp information of the BIOS, after the timestamp information of the BIOS is recorded, the first preset timestamp information is added to obtain the timestamp information of the BMC.
[0147] If after the timestamp information of the BIOS ends, respond to the first preset timestamp information until the first preset timestamp information recording ends, at this time, check the timestamp information of the current BMC, that is, receive the timestamp information sent by the current baseboard management controller; if the timestamp information of the current baseboard management controller is reset, the baseboard management controller positioning strategy is excluded; if the timestamp information of the current baseboard management controller is not reset, determine that the target soft fault positioning strategy is the baseboard management controller positioning strategy.
[0148] Alternatively, a watchdog mechanism is used to feed the dog during the BMC startup process. If the BMC startup is completed, the dog feeding operation is stopped. The dog feeding operation corresponding to the current BMC is received according to the second preset time, mainly based on the BIOS to check whether the current BMC is in a completed startup state. At this time, it is necessary to respond to the second preset timestamp information. The second preset timestamp information here is used to characterize the timestamp information corresponding to the BMC startup process. This embodiment directly checks whether the dog feeding action is completed. If it is completed, it means that the current BMC startup is completed. If it is not completed, it means that the startup time of the current BMC is long, so it is determined as a baseboard management controller positioning strategy.
[0149] The process of determining the BMC positioning strategy provided in this embodiment is based on the timing strategy of the timestamp information, and checks whether the BMC has completed the normal startup process in the determined timestamp information, so as to ensure that the BMC startup is complete and normal.
[0150] In some embodiments, after determining the target soft fault locating strategy according to the mapping relationship between the fault locating parameter and each soft fault locating strategy, the method further includes:
[0151] Perform maintenance on the current baseboard management controller according to the target soft fault location strategy;
[0152] Display maintenance processing information through the basic input and output system installation interface;
[0153] When the maintenance process is finished, the installation interface of the basic input and output system will display that the maintenance process operation is completed.
[0154] Specifically, after determining the target soft fault location strategy, maintenance processing is performed on it, and at the same time, the maintenance processing information is displayed in real time on the BIOS installation interface so that users can view the situation in real time. After the maintenance processing is completed, the information about the completion of the maintenance processing operation is displayed through the interface to ensure that users can view reminders in time and improve the user experience.
[0155] Figure 2 A schematic diagram of communication between BIOS and BMC provided in an embodiment of the present invention is shown in FIG. Figure 2As shown, the connection relationship between the complex programmable logic device 1 (Complex Programmable Logic Device, CPLD) and the basic input and output system 2, the CPLD directly interacts with the BIOS, especially when it is necessary to customize the hardware logic or control the hardware interface, the CPLD can communicate with the BIOS through the interface it supports to achieve hardware control and status monitoring. The connection relationship between the complex programmable logic device 1 and the baseboard management controller 3, the CPLD can serve as a bridge between the BMC and the system hardware, process the commands from the BMC and convert them into specific control signals for the hardware. The CPLD can also provide hardware status information to the BMC for system monitoring. In addition, the baseboard management controller 3 and the complex programmable logic device 1 are respectively connected to the central processor 6; the baseboard management controller 3 is connected to the read-only memory A 6 and the dual-channel synchronous dynamic random access memory 5; the basic input and output system 2 is connected to the read-only memory B 7.
[0156] The above describes in detail various embodiments corresponding to the soft fault location method based on the baseboard management controller. On this basis, the present invention also discloses a soft fault location device based on the baseboard management controller corresponding to the above method. Figure 3 The structure diagram of a soft fault location device based on a baseboard management controller provided by an embodiment of the present invention. Figure 3 As shown, the soft fault location device based on the baseboard management controller includes:
[0157] A response module 11, used for responding to an error message appearing on the installation interface of the basic input and output system;
[0158] A first determination module 12 is used to analyze and process the error information to determine actual information corresponding to the current baseboard management controller;
[0159] The matching processing module 13 is used to match the actual information with the various startup parameters of the baseboard management controller to determine the fault location parameters; wherein the startup parameters are used to characterize the various identification parameters corresponding to the completion of the startup of the baseboard management controller during the startup process; the identification parameters at least include one or more of the in-position state, the communication mark information and the timestamp information corresponding to the startup time; the in-position state is the state information corresponding to the baseboard management controller before and after startup; the communication mark information is the mark information corresponding to the communication between the basic input and output system and the baseboard management controller; the timestamp information corresponding to the startup time is the timestamp information corresponding to the startup of the basic input and output system and the baseboard management controller;
[0160] The second determination module 14 is used to determine the target soft fault location strategy based on the mapping relationship between the fault location parameters and each soft fault location strategy, so as to facilitate maintenance processing of the baseboard management controller according to the target soft fault location strategy; wherein the soft fault location strategy and the target soft fault location strategy both include at least one or more of the main control chip location strategy, in-band communication strategy and baseboard management controller location strategy of the baseboard management controller.
[0161] 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.
[0162] For an introduction to a soft fault locating device based on a baseboard management controller provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here. It has the same beneficial effects as the above soft fault locating method based on a baseboard management controller.
[0163] Figure 4 A structural diagram of a soft fault location device based on a baseboard management controller provided by an embodiment of the present invention, such as Figure 4 As shown, the device includes:
[0164] A memory 21, used for storing computer programs;
[0165] The processor 22 is used to implement the steps of the soft fault location method based on the baseboard management controller when executing the computer program.
[0166] 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 central processing unit (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.
[0167] 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 soft fault location method based on 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. Data 213 may include, but is not limited to, data involved in the soft fault location method based on the baseboard management controller, etc.
[0168] In some embodiments, the soft fault locating device based on the baseboard management controller may further include a display screen 23 , an input and output interface 24 , a communication interface 25 , a power supply 26 , and a communication bus 27 .
[0169] Those skilled in the art can understand that Figure 4 The structure shown in the figure does not constitute a limitation on the soft fault location device based on the baseboard management controller, and may include more or less components than those shown in the figure.
[0170] The processor 22 implements the soft fault location method based on the baseboard management controller provided by any of the above embodiments by calling the instructions stored in the memory 21 .
[0171] For an introduction to a soft fault locating device based on a baseboard management controller provided by the present invention, please refer to the above method embodiment, and the present invention will not be repeated here. It has the same beneficial effects as the above soft fault locating method based on a baseboard management controller.
[0172] Furthermore, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by the processor 22, the steps of the soft fault location method based on the baseboard management controller are implemented.
[0173] 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.
[0174] 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 soft fault locating method based on the baseboard management controller.
[0175] Furthermore, the present invention also provides a computer program product, including a computer program / instruction, which implements the steps of a soft fault locating method based on a baseboard management controller when executed by a processor.
[0176] 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 soft fault locating method based on the baseboard management controller.
[0177] The above is a detailed introduction to a soft fault location method, device and equipment based on 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 various 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.
[0178] 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 soft fault location method based on baseboard management controller, It is characterized in that include: Respond to error messages that appear on the BIOS installation interface; Analyze and process the error information to determine actual information corresponding to the current baseboard management controller; The fault location parameters are determined by matching the actual information with the various startup parameters of the baseboard management controller; wherein the startup parameters are used to characterize the identification parameters corresponding to the completion of the startup of the baseboard management controller during the startup process; the identification parameters at least include one or more of the in-place state, the communication mark information and the timestamp information corresponding to the startup time; the in-place state is the state information corresponding to the baseboard management controller before and after startup; the communication mark information is the mark information corresponding to the communication between the basic input and output system and the baseboard management controller; the timestamp information corresponding to the startup time is the timestamp information corresponding to the startup of the basic input and output system and the baseboard management controller; A target soft fault location strategy is determined according to a mapping relationship between fault location parameters and each soft fault location strategy, so as to facilitate maintenance processing of the baseboard management controller according to the target soft fault location strategy; wherein the soft fault location strategy and the target soft fault location strategy both include at least one or more of a main control chip location strategy, an in-band communication strategy and a baseboard management controller location strategy of the baseboard management controller.
2. The soft fault location method based on the baseboard management controller according to claim 1, It is characterized in that Analyzing and processing the error information to determine actual information corresponding to the current baseboard management controller includes: Determine the hardware diagnostic tool and log information of the current baseboard management controller according to the error information; The actual information of the current baseboard management controller is determined by parsing the hardware diagnostic tool and the log information.
3. The soft fault location method based on the baseboard management controller according to claim 2, It is characterized in that The fault location parameters are determined by matching the actual information with various startup parameters of the baseboard management controller, including: Determine, in each of the startup parameters, a preset startup parameter corresponding to the baseboard management controller according to the actual information; wherein the preset startup parameter represents an identification parameter corresponding to the baseboard management controller during a normal startup process; Comparing the actual information with the preset startup parameters; If the actual information is different from the preset startup parameter, the actual information that is different from the preset startup parameter is used as the fault location parameter.
4. The soft fault location method based on the baseboard management controller according to any one of claims 1 to 3, It is characterized in that The target soft fault location strategy is determined according to the mapping relationship between the fault location parameters and each soft fault location strategy, including: Establishing in advance the mapping relationship between each fault location information and each software location strategy; If the fault location parameter is the in-place state, controlling the current baseboard management controller to start the first in-place state information after the system is booted and the kernel is minimized; It is pre-established that after the baseboard management controller completes startup, the first in-place state information is modified to the second in-place state information; After the current baseboard management controller completes startup, third in-place state information corresponding to the response of the current baseboard management controller to complete startup is obtained; determining whether the third presence status information is different from the first presence status information and the same as the second presence status information; If so, the main control chip positioning strategy of the baseboard management controller is excluded; If not, it is determined that the target soft fault location strategy is the main control chip location strategy of the baseboard management controller.
5. The soft fault location method based on the baseboard management controller according to any one of claims 1 to 3, It is characterized in that The target soft fault location strategy is determined according to the mapping relationship between the fault location parameters and each soft fault location strategy, including: Establishing in advance the mapping relationship between each fault location information and each software location strategy; If the fault location parameter is communication mark information, receiving first address information corresponding to the current failure of the baseboard management controller to transmit data to the basic input and output system; determining first marking information according to the first address information; receiving second address information corresponding to the data transmitted between the basic input and output system and the current baseboard management controller according to a preset time; determining second marking information according to the second address information; Determining whether the first marking information and the second marking information are the same; If they are the same, then the in-band communication strategy is excluded; If they are different, it is determined that the target soft fault location strategy is the in-band communication strategy.
6. The soft fault location method based on the baseboard management controller according to any one of claims 1 to 3, It is characterized in that The target soft fault location strategy is determined according to the mapping relationship between the fault location parameters and each soft fault location strategy, including: Establishing in advance the mapping relationship between each fault location information and each software location strategy; If the fault location parameter is the timestamp information corresponding to the startup time, the timestamp information of the current baseboard management controller and the basic input and output system are recorded respectively through the real-time clock and the network time protocol; wherein the timestamp information of the current baseboard management controller is greater than the timestamp information of the basic input and output system; the timestamp information of the current baseboard management controller is the sum of the timestamp information of the basic input and output system and the first preset timestamp information; If the timestamp information of the basic input and output system ends, responding to the first preset timestamp information until the first preset timestamp information ends; Receiving timestamp information sent by the current baseboard management controller; If the timestamp information of the current baseboard management controller is reset, then excluding the baseboard management controller positioning strategy; If the timestamp information of the current baseboard management controller is not reset, determining that the target soft fault location strategy is the baseboard management controller location strategy; or; Setting a watchdog mechanism; wherein the watchdog mechanism is related to the startup process of the current baseboard management controller, and when the startup of the current baseboard management controller is completed, the watchdog mechanism does not feed the dog; receiving a dog feeding operation corresponding to the current baseboard management controller according to a second preset time; In response to the second preset timestamp information, receiving whether the basic input and output system has finished feeding the dog; If it is finished, then the baseboard management controller positioning strategy is excluded; If not ended, determining that the target soft fault location strategy is the baseboard management controller location strategy.
7. The soft fault location method based on baseboard management controller according to claim 1, It is characterized in that After determining the target soft fault location strategy according to the mapping relationship between the fault location parameter and each soft fault location strategy, the method further includes: Performing maintenance processing on the current baseboard management controller according to the target soft fault location strategy; Displaying maintenance processing information through the installation interface of the basic input and output system; When the maintenance process is finished, the installation interface of the basic input and output system will display that the maintenance process operation is completed.
8. A soft fault location device based on a baseboard management controller, It is characterized in that include: A response module, used for responding to error messages appearing on the installation interface of the basic input and output system; A first determination module, configured to analyze and process the error information to determine actual information corresponding to the current baseboard management controller; A matching processing module, used for matching the actual information with various startup parameters of the baseboard management controller to determine the fault location parameters; wherein the startup parameters are used to characterize the identification parameters corresponding to the completion of the startup of the baseboard management controller during the startup process; the identification parameters at least include one or more of the in-place state, the communication mark information and the timestamp information corresponding to the startup time; the in-place state is the state information corresponding to the baseboard management controller before and after startup; the communication mark information is the mark information corresponding to the communication between the basic input and output system and the baseboard management controller; the timestamp information corresponding to the startup time is the timestamp information corresponding to the startup of the basic input and output system and the baseboard management controller; The second determination module is used to determine the target soft fault location strategy according to the mapping relationship between the fault location parameters and each soft fault location strategy, so as to facilitate the maintenance processing of the baseboard management controller according to the target soft fault location strategy; wherein the soft fault location strategy and the target soft fault location strategy both include at least one or more of the main control chip location strategy, in-band communication strategy and baseboard management controller location strategy of the baseboard management controller.
9. A soft fault location device based on a baseboard management controller, It is characterized in that include: Memory for storing computer programs; A processor is used to implement the steps of the soft fault location method based on the baseboard management controller as described in any one of claims 1 to 7 when executing the computer program.
10. 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 soft fault locating method based on the baseboard management controller according to any one of claims 1 to 7 are implemented.
