Server system and diagnosis method thereof
By introducing a controller into the server system and actively transmitting log data that meets the message benchmark, it solves the problems of difficulty in real-time diagnosis and large amounts of log data caused by passive transmission by BMC in the existing technology, and achieves real-time analysis and high efficiency for system maintenance personnel. Problem location.
Patent Information
- Application Number
- CN202310295912.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-22
- Publication Date
- 2024-09-24
AI Technical Summary
The baseboard management controller (BMC) of the existing server system passively transmits log data, which makes it impossible for system maintenance personnel to diagnose and repair the server system in real time. The large amount of log data makes it difficult to effectively find the point where the problem occurs.
By introducing a controller into the server system, including the communication module, processing module and memory module, the error information in the log is read to determine whether it meets the message standard, and the log data is actively sent to the management device according to the risk value, and the log is cleared to reduce the data quantity.
It enables system maintenance personnel to diagnose and repair the server system in real time when the server system is abnormal, improves the analysis efficiency of problem occurrence points, avoids log data acquisition problems caused by BMC abnormalities, and reduces the amount of transmitted data.
Smart Images

Figure CN118689677A
Abstract
Description
Technical Field
[0001] The present invention relates to a method for diagnosing error state data, in particular to a server system and a method for diagnosing the same. Background Art
[0002] Existing server systems usually provide server system log data through their baseboard management controller (BMC) to assist system maintenance personnel in managing and controlling the server system. Traditionally, system maintenance personnel often need to use a remote server to send a request to the baseboard management controller to send the stored log data to the baseboard management controller to obtain the server system log data. The baseboard management control system passively transmits log data to the remote server in response to the request of the remote server.
[0003] However, since the baseboard management control system passively responds to the request of the remote server, the system maintenance personnel cannot view the log data in real time, which makes it impossible for the system maintenance personnel to repair the server system in real time. When the BMC is abnormal and cannot monitor the system status normally, if there is a problem with the system, the system maintenance personnel cannot obtain the log data of the server system through the BMC, which makes it impossible for the system maintenance personnel to determine the cause of the system error. In addition, the amount of information in the log data provided by the BMC is usually very large. Even if the system maintenance personnel help analyze its content, it is often still impossible to efficiently find the point where the problem occurred. Summary of the invention
[0004] In one embodiment, a diagnostic method for a server system includes: reading a debugging message in a log; determining whether the debugging message meets a message benchmark; when the debugging message meets the message benchmark, adding 1 to a risk value; determining whether the risk value meets a threshold; when the risk value meets the threshold, transmitting all data in the log to a management device; and resetting the risk value to zero.
[0005] In one embodiment, a diagnostic method for a server system includes: reading a debugging message in a log; determining whether the debugging message meets a message benchmark; when the debugging message meets the message benchmark, adding 1 to a risk value; determining whether the risk value meets a threshold; when the debugging message does not meet the message benchmark, determining whether the debugging message includes a specified string; when the debugging message includes the specified string, adding 1 to the risk value; when the risk value meets the threshold, transmitting all data in the log to a management device; and resetting the risk value to zero.
[0006] In one embodiment, a server system includes a controller. The controller includes a communication module, a processing module, and a memory module. The processing module is used to read the debugging message in the log and determine whether the debugging message meets the message benchmark. When the debugging message meets the message benchmark, the processing module adds 1 to the risk value and determines whether the risk value meets the threshold. When the risk value meets the threshold, the processing module transmits all data in the log to the management device through the communication module and resets the risk value to zero. The memory module is used to store the log.
[0007] In one embodiment, a server system includes a controller. The controller includes a communication module, a processing module, and a memory module. The processing module reads the debugging message in the log and determines whether the debugging message meets the message benchmark. When the debugging message meets the message benchmark, the processing module adds 1 to the risk value and determines whether the risk value meets the threshold. When the risk value meets the threshold, the processing module transmits all data in the log to the management device through the communication module and resets the risk value to zero. The memory module is used to store the log. The controller is further used to determine whether the debugging message contains a specified string when the debugging message does not meet the message benchmark and add 1 to the risk value when the debugging message contains the specified string.
[0008] The detailed features and advantages of the present invention are described in detail in the following implementation modes, and the contents are sufficient to enable anyone skilled in the relevant art to understand the technical contents of the present invention and implement them accordingly. Moreover, according to the contents disclosed in this specification, the claims and the drawings, any person skilled in the relevant art can easily understand the relevant purposes and advantages of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Other features and effects of the present invention will be clearly presented in the embodiments with reference to the accompanying drawings, in which: Figure 1 A block diagram of an embodiment of a server system and a management device; and Figure 2 The present invention is a flow chart of an embodiment of a diagnostic method for a server system. DETAILED DESCRIPTION
[0010] Before the present invention is described in detail, it should be noted that similar elements are denoted by the same reference numerals in the following description.
[0011] Figure 1 FIG. 1 is a block diagram of an embodiment of a server system 1 and a management device 2. Figure 1 The server system 1 includes a controller 11 , a central processing unit 12 , a memory unit 13 and a peripheral component unit 14 . The central processing unit 12 is coupled to the controller 11 , the memory unit 13 and the peripheral component unit 14 . The controller 11 is coupled to the management device 2 .
[0012] In some embodiments, the controller 11 includes a memory module 111, a communication module 112, and a processing module 113. The processing module 113 is coupled to the memory module 111 and the communication module 112. In some embodiments, the controller 11 is coupled to the management device 2 (for example, a management computer, a management server, or a management mobile communication device, but not limited thereto) through the communication module 112 and via a wired or wireless communication network 100. In some embodiments, the controller 11 may be, but is not limited to, a baseboard management controller (BMC), a field programmable gate array (FPGA), or a complex programmable logic device (CPLD).
[0013] In some embodiments, the central processing unit 12 may be, but not limited to, a processor produced by Intel Corporation, or may be produced by AMD Corporation or other emerging companies in the future, but is not limited thereto. In some embodiments, the peripheral component unit 14 may be, but not limited to, a hardware using the peripheral component interconnect standard (PCI) or PCI Express (PCIe). Figure 1 In the embodiment, one peripheral component unit 14 is used for illustration, but the number of the peripheral component units 14 is not limited thereto. The server system 1 may include a plurality of peripheral component units 14 (for example, a circuit module coupled to the controller 11 or the central processing unit 12 and operated under the control of the controller 11 or the central processing unit 12, such as a network card, a vertical card, a graphics card, etc., but not limited thereto).
[0014] Figure 2 FIG. 1 is a flow chart of an embodiment of a diagnostic method of the server system 1. Figure 1 and Figure 2. The processing module 113 reads the debugging message that has not been read in the log (step S01), and determines whether the debugging message in the log meets the message benchmark (step S02). When the debugging message meets the message benchmark, the processing module 113 adds 1 to the risk value (step S03), and determines whether the risk value meets the threshold (step S04). When the risk value meets the threshold, the processing module 113 transmits all data in the log to the management device 2 through the communication module 112 (step S05), and resets the risk value to zero (step S06). In some embodiments, before executing the diagnostic method of the server system 1, the processing module 113 is also used to set / modify at least one of the specified string, message benchmark and threshold. Among them, the processing module 113 sets / modifies at least one of the specified string, message benchmark and threshold according to the user operating the server system 1 or receiving a setting instruction or a modification instruction via the network. In other embodiments, before the designated character string, message reference and threshold value are modified or reset, the processing module 113 is further used to store the default standard of at least one of the designated character string, message reference and threshold value in the memory module 111, the non-volatile memory electrically coupled to the controller 11 (not shown), or in the form of parameters in the firmware program executed by the processing module 113. In some embodiments, the processing module 113 executes the diagnostic method of the server system 1 according to the default standard of the designated character string, message reference and threshold value stored in the memory module 111, the non-volatile memory electrically coupled to the controller 11, or the firmware program executed by the processing module 113.
[0015] In some embodiments, when the processing module 113 determines in step S02 that the debug message in the log does not meet the message standard, the processing module 113 reads the next debug message in the log that has not been read (step S01), and then executes step S02. In some embodiments, when it is determined in step S04 that the risk value does not meet the threshold, the processing module 113 reads the next debug message in the log that has not been read (step S01), and then executes step S02.
[0016] In some embodiments, the processing module 113 is further configured to transmit all data in the log to the management device 2 via the communication module 112 (step S05 ) and then clear the log.
[0017] In some embodiments, the processing module 113 may read the log in a manner that is, but is not limited to, the processing module 113 reading the log stored in the memory module 111, the processing module 113 reading the log stored in the internal register (not shown) of the central processing unit 12, or the processing module 113 reading the log stored in the non-volatile memory (not shown) electrically coupled to the controller 11. In some embodiments, the debugging message included in the log is related to the operating state of the server system 1, such as at least one of the operating state of the controller 11, the operating state of the central processing unit 12, the operating state of the memory unit 13, and the operating state of the peripheral component unit 14. In some embodiments, the log may be, but is not limited to, managed and generated through a resident program (Daemon). In some embodiments, the resident program that manages and generates the log may be, but is not limited to, rsyslog.
[0018] In some embodiments, the debugging messages in the log may be, but are not limited to, seven types of messages ranging from a minor level that slightly affects the operation of the server system 1 (the server system 1 is still in normal operation) to a serious level that may significantly affect the operation of the server system 1 or even damage the server system 1 (the server system 1 cannot be in normal operation). The messages are described in order from minor to serious, i.e., information (Info), notice (Notice), warning (Warning), error (Error), critical (Critical), alert (Alert) and emergency (Emergency). Among them, the description message is a basic message description. The notification message is information when the server system 1 is operating normally but contains information content that needs to be paid attention to more than the description message. The warning message contains abnormal information, but the abnormal information is still information that does not affect the operation of the controller 11, the central processing unit 12, the memory unit 13 and the peripheral component unit 14. Basically, the description message, the notification message and the warning message should not cause trouble to the operation of the server system 1, that is, they should not cause the server system 1 to stop operating or switch the operation mode abnormally (for example, it cannot be shut down according to the normal shutdown procedure). The error message, critical message, warning message and emergency message may all contain abnormal information that causes the abnormal operation of the server system 1. The severity levels range from a minor level where the server system 1 can automatically perform corresponding processing and recover by itself without manual maintenance by maintenance personnel to a serious level where the server system 1 cannot operate normally and may be about to shut down, shut down urgently and / or be about to suffer irreversible damage, in the order of error message, critical message, warning message and emergency message.
[0019] In some embodiments, the debugging messages in the log correspond to different level values according to the severity of their impact on the operation of the server system 1, wherein the level values are arranged in order from the lightest level value to the heaviest level value, and the lightest level value represents the lightest level of severity, and the heaviest level value represents the most serious level of severity. For example, the level value of the explanation message can be 6, the level value of the notification message can be 5, the level value of the warning message can be 4, the level value of the error message can be 3, the level value of the critical message can be 2, the level value of the warning message can be 1, and the level value of the emergency message can be 0. In this embodiment, the lightest level value is 6 and the heaviest level value is 0, but it is not limited to this; it can also be arranged in a discontinuous descending order. The level values correspond to description, notification, warning, error, critical, warning and emergency in order from large to small. In some embodiments, the level values may be arranged in ascending order, either continuously or discontinuously, to correspond to description, notification, warning, error, critical, warning and emergency. In other embodiments, letters may be used as level values. For example, English letters may be arranged in a continuous or discontinuous order of A, B, C, D, E, F, and H to correspond to different level values. In other embodiments, English letters may be arranged in a continuous or discontinuous order of H, F, E, D, C, B, and A to correspond to different level values. In some embodiments, the message standard includes a message level. In this embodiment, the message level is any one of the values arranged in order from the lightest level value to the heaviest level value. The processing module 113 determines whether the debugging message meets the message standard by determining whether the level value of the debugging message meets any one of the message level and the heaviest level value, or determines whether the level value of the debugging message is between the message level and the heaviest level value. If the level value of the debugging message meets any one of the message level and the heaviest level value, or the level value of the debugging message is between the message level and the heaviest level value, then the processing module 113 determines whether the debugging message meets the message standard as a result that the debugging message meets the message standard. In other words, in some embodiments, when the level value of the debugging message is greater than or equal to the message level, the processing module 113 determines whether the debugging message meets the message standard as a result that the debugging message meets the message standard. For example, if the processing module 113 sets the message level to 2, it means that the level value of the debugging message is 0 (meets the most serious level value) or 2 (meets the message level), or the level value of the debugging message is 1 (between the message level and the most serious level value), then the processing module 113 determines whether the debugging message meets the message standard. The result of the judgment is that the debugging message meets the message standard. And because the message level 2 represents a critical message, in other words, if the debugging message is a critical message, a warning message, or an emergency message, it means that the debugging message meets the message standard.
[0020] In some embodiments, the processing module 113 sets the message level to 2. In other words, when the debugging message is a critical message, a warning message, or an emergency message, the debugging message meets the message benchmark. In some embodiments, the processing module 113 sets the message level to 1. In other words, when the debugging message is a warning message or an emergency message, the debugging message meets the message benchmark. In some embodiments, the processing module 113 sets the message level to 3. In other words, when the debugging message is an error message, a critical message, a warning message, or an emergency message, the debugging message meets the message benchmark.
[0021] In some embodiments, the message string is part of any debugging message that may appear in the log. For example, the description message in the debugging information includes info (message string), the notification message includes notice (message string), the warning message includes warning or warn (message string), the error message includes err or error (message string), the critical message includes crit or critical (message string), the warning message includes alert (message string), and the emergency message includes emerge, panic, or emergency (message string). In some embodiments, the message benchmark includes a single message string or a combination of multiple message strings, wherein the processing module 113 determines whether the debugging message meets the message benchmark by determining whether the debug message read includes one of the multiple message strings. For example, in some embodiments, if the processing module 113 sets the multiple message strings to crit, critical, alert, emerge, panic, and emergency, at this time, as long as the debug message includes any string of crit, critical, alert, emerge, panic, or emergency, the processing module 113 determines that the debug message read this time meets the message benchmark. In other words, if the debugging message read by the processing module 113 at this time is a critical message, a warning message or an emergency message, the processing module 113 determines that the debugging message read this time meets the message standard.
[0022] In some embodiments, the processing module 113 sets a combination of multiple message strings such as crit, critical, alert, emerge, panic, and emergency as a message benchmark. In other words, when the debugging message read by the processing module 113 this time is a critical message, a warning message, or an emergency message, the processing module 113 determines that the debugging message read this time meets the message benchmark. On the contrary, when the debugging message read by the processing module 113 this time is an explanation message or a notification message, the processing module 113 determines that the debugging message read this time does not meet the message benchmark. In some embodiments, the processing module 113 sets a combination of multiple message strings alert, emerge, panic, and emergency as a message benchmark. In other words, when the debugging message read by the processing module 113 this time is a warning message or an emergency message, the processing module 113 determines that the debugging message read this time meets the message benchmark. In some embodiments, the processing module 113 sets a combination of multiple message strings err, error, crit, critical, alert, emerge, panic, and emergency as a message benchmark. In other words, when the debugging message read by the processing module 113 this time is an error message, a critical message, a warning message, or an emergency message, the processing module 113 determines that the debugging message read this time meets the message standard.
[0023] In some embodiments, the situation where the risk value meets the threshold value may be, but is not limited to, the risk value is greater than the threshold value. In other words, when the risk value meets the threshold value, the number of debugging messages in the log that meet the message benchmark exceeds the threshold value. In some embodiments, the initial value of the risk value is 0 and the threshold value may be, but is not limited to, 5. When the risk value is greater than 5, there are more than 5 debugging messages in the log that meet the message benchmark. For example, when the processing module 113 sets the threshold value to 5 and the processing module 113 sets the message level to 2, at this time, the processing module 113 determines whether the debugging message in the log is a critical message, a warning message, or an emergency message (step S02). When the debugging message is a critical message, a warning message, or an emergency message, the processing module 113 adds 1 to the risk value (step S03) and determines whether the risk value is greater than 5 (step S04). When the risk value is greater than 5, that is, there are more than 5 debugging messages that are critical messages, warning messages, or emergency messages in the log, the processing module 113 transmits all data in the log to the management device 2 through the communication module 112 (step S05), and resets the risk value to zero (step S06). In some embodiments, the situation where the risk value meets the threshold value may be, but is not limited to, the risk value is equal to the threshold value. In other words, when the risk value meets the threshold value, the number of debugging messages that meet the message benchmark in the log is equal to the threshold value.
[0024] The processing module 113 determines whether to transmit all the data in the log to the management device 2 only based on the number of debugging messages that meet the message criterion. In other words, the data based on which the processing module 113 determines whether to transmit all the data in the log to the management device 2 is only part of the data transmitted to the management device 2. In some embodiments, the processing module 113 transmits only the debugging messages that meet the message criterion to the management device 2. In this case, the data transmitted to the management device 2 by the processing module 113 is the same as the data based on which the processing module 113 determines whether to transmit the data to the management device 2.
[0025] See also Figure 2 In some embodiments, the processing module 113 is further used to determine whether the debugging message contains a specified string (step S11) when the debugging message does not meet the message benchmark, and when the debugging message contains the specified string, the risk value is increased by 1 (step S03), wherein the definition of the specified string is similar to the message string, the specified string is a part of any debugging message that may appear in the log, and the specified string is different from the message benchmark (regardless of whether the processing module 113 sets the message level or the message string as the message benchmark). In some embodiments, because it is more time-consuming for the server system 1 to compare multiple message string combinations, in order to reduce the comparison time, multiple message strings to be monitored can also be divided into two groups of message strings to be monitored, and the message of the debugging message corresponding to each of the multiple message strings can be used. level, to select one of the message strings as the message base, and the other message strings that are not selected from the multiple message strings to be monitored are combined as the designated strings; taking the multiple message strings to be monitored as the message string whose partial content is notice contained in the notification message, the message string whose partial content is warn contained in the warning message, and the message string whose partial content is err contained in the error message as an example, since the severity level corresponding to the error message is heavier than the severity level corresponding to the warning message, and since the error message among the multiple message strings to be monitored is the debugging message with the heaviest severity level among the multiple debugging messages, the error string err is set as the message base, and the combined string of notice and warn is used as the designated string.
[0026] In some embodiments, when the debugging message in the log does not include the specified character string, the processing module 113 reads the next debugging message that has not been read in the log (step S01), and then executes step S02.
[0027] In some embodiments, the purpose of setting a designated string and determining whether the debugging message contains the designated string is to detect / analyze debugging messages that do not meet the message benchmark but contain information that may affect the operation of the server system 1, cause a specific function abnormality, or are related to the functions that the administrator wants to monitor. In some embodiments, the situation that may affect the operation of the server system 1 or the related functions that the administrator wants to monitor may be, but not limited to, an error in the memory (such as the memory unit 13 or the memory module 111) in the server system 1, or too many files are opened in the server system 1, a new device is installed / removed in the server system 1 by hot plugging, or a replacement manufacturer's component such as a peripheral device, a central processing unit, etc. is installed in the server system 1. The following takes the debugging message related to the memory as an example. In some embodiments, the designated string set to detect the error of the memory in the server system 1 may be, but not limited to, Memory error. For example, when the processing module 113 sets the threshold to 5, sets the designated string to Memory error, and sets the message level to 2, at this time, the processing module 113 determines whether the debugging message in the log is a critical message, a warning message, or an emergency message (step S02). When the debugging message is a critical message, a warning message, or an emergency message, the processing module 113 adds 1 to the risk value (step S03) and determines whether the risk value is greater than 5 (step S04). When the debugging message is an explanation message, a notification message, a warning message, or an error message, the processing module 113 determines whether the debugging message includes a memory error (step S11). When the debugging message includes a memory error, the risk value is added by 1 (step S03) and determines whether the risk value is greater than 5 (step S04). When the risk value is greater than 5, that is, the total number of debugging messages that are critical messages, warning messages, or emergency messages and debugging messages that are not critical messages, warning messages, or emergency messages but include memory errors in the log exceeds 5, the processing module 113 transmits all data in the log to the management device 2 through the communication module 112 (step S05) and resets the risk value to zero (step S06).
[0028] The following is an example of a debugging message related to too many files opened by the server system 1. In some embodiments, the designated string set to detect whether the server system 1 has too many files opened can be, but is not limited to, Open too many files. For example, when the processing module 113 sets the threshold to 5, sets the designated string to Open too many files, and sets the message level to 2, at this time, the processing module 113 determines whether the debugging message in the log is a critical message, a warning message, or an emergency message (step S02). When the debugging message is a critical message, a warning message, or an emergency message, the processing module 113 adds 1 to the risk value (step S03) and determines whether the risk value is greater than 5 (step S04). When the debugging message is an explanation message, a notification message, a warning message, and an error message, the processing module 113 determines whether the debugging message includes Open too many files (step S11). When the debugging message includes Open too many files, the risk value is added by 1 (step S03), and it is determined whether the risk value is greater than 5 (step S04). When the risk value is greater than 5, that is, the total number of debugging messages that are critical messages, warning messages or emergency messages and debugging messages that are non-critical messages, warning messages or emergency messages but include Open too many files in the log exceeds 5, the processing module 113 transmits all data in the log to the management device 2 through the communication module 112 (step S05), and resets the risk value to zero (step S06).
[0029] The processing module 113 determines whether to transmit all the data in the log to the management device 2 based only on the total number of debug messages that meet the message criterion and debug messages that do not meet the message criterion but contain the specified character string. In other words, the data based on which the processing module 113 determines whether to transmit all the data in the log to the management device 2 is only part of the data transmitted to the management device 2. In some embodiments, the processing module 113 transmits only the debug messages that meet the message criterion and the debug messages that do not meet the message criterion but contain the specified character string to the management device 2. In this case, the data transmitted to the management device 2 by the processing module 113 is the same as the data based on which the processing module 113 determines whether to transmit the data to the management device 2.
[0030] Since the processing module 113 transmits all the data in the log to the management device 2 through the communication module 112 when the risk value meets the threshold, in other words, the controller 11 actively transmits the log data to the management device 2. When an abnormal situation occurs in the server system 1, the system maintenance personnel can check the log data in real time and repair the server system in real time. In some embodiments, since the processing module 113 determines whether to transmit all the data in the log to the management device 2 based on the sum of the number of debugging messages that meet the message benchmark and the number of debugging messages that do not meet the message benchmark but contain a specified string, when the system maintenance personnel receive the log data, they can preliminarily analyze the abnormal situation of the server system 1 based on the settings of the message benchmark and the specified string, greatly improving the efficiency of finding the point where the problem occurs.
[0031] And because the controller 11 can actively transmit the log data to the management device 2 according to the setting of the specified character string, message base and threshold, the system maintenance personnel can obtain the log data of the server system 1 before the controller 11 is abnormal, and there will be no problem that the management device 2 cannot obtain the log data due to the abnormality of the controller 11, which will cause the system maintenance personnel to be unable to determine the cause of the error in the server system 1. And in some embodiments, the processing module 113 is used to clear the log after all the data in the log is transmitted to the management device 2 through the communication module 112. This can make the log data transmitted by the controller 11 to the management device 2 each time without overlapping parts, which can greatly reduce the amount of messages of the log data transmitted to the management device 2, and thus enable the system maintenance personnel to more efficiently find the problem point when analyzing the log data transmitted to the management device 2. And in some embodiments, the processing module 113 only transmits the debugging message that meets the message base to the management device 2, which can further reduce the amount of messages of the log data transmitted to the management device 2, so that the system maintenance personnel can further improve the efficiency of finding the problem point.
[0032] In some embodiments, the processing module 113 compresses all data in the log into a compressed file and stores the compressed file in the memory module 111, and transmits the compressed file to the management device 2 via the communication network 100 through the communication module 112. In some embodiments, the processing module 113 updates the previously compressed compressed file previously stored in the memory module 111 to the currently compressed compressed file to store the currently compressed compressed file.
[0033] In some embodiments, the management device 2 can be used to receive log data transmitted from the controllers 11 of multiple server systems 1. Therefore, in some embodiments, the data received by the management device 2 includes, in addition to the log data, identification data of the server system 1 corresponding to the received log data, so that the system maintenance personnel can know the corresponding relationship between the received log data and the server system 1 that transmitted the log data.
[0034] In summary, in some embodiments, the server system 1 actively transmits log data to the management device 2 through the controller 11, so that the system maintenance personnel can view the log data in real time and repair the server system in real time when an abnormal situation occurs in the server system 1. And when the system maintenance personnel receive the log data, they can preliminarily analyze the abnormal situation of the server system 1 according to the setting of the message standard and the specified string, greatly improving the efficiency of finding the point where the problem occurs. Because the controller 11 can actively transmit the log data to the management device 2, the system maintenance personnel can obtain the log data of the server system 1 before the controller 11 is abnormal, and there will be no problem that the management device 2 cannot obtain the log data due to the abnormality of the controller 11, which makes the system maintenance personnel unable to determine the cause of the error in the server system 1. And in some embodiments, the processing module 113 is further used to clear the log after all the data in the log is transmitted to the management device 2 through the communication module 112, or only transmit the debugging message that meets the message standard to the management device 2. This can significantly reduce the amount of log data sent to the management device 2, thereby enabling system maintenance personnel to more efficiently find out where problems occur when analyzing the log data sent to the management device 2.
[0035] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A diagnostic method for a server system, It is characterized in that Include: Read a debug message from a log; determining whether the debugging message meets a message standard; When the debugging message meets the message criterion, a risk value is increased by 1; Determine whether the risk value meets a threshold; When the risk value meets the threshold, transmitting all data in the log to a management device; and Set the risk value to zero.
2. The server system diagnostic method according to claim 1, It is characterized in that Also includes: When the debugging message does not meet the message criterion, determining whether the debugging message includes a specified character string; and When the debugging message contains the specified character string, the risk value is increased by 1.
3. The server system diagnostic method according to claim 2, It is characterized in that The message standard includes a message level, wherein the method of determining whether the debugging message meets the message standard is to determine whether a level value of the debugging message is greater than or equal to the message level.
4. The server system diagnostic method according to claim 2, It is characterized in that The message benchmark includes a plurality of message character strings, wherein the method of determining whether the debugging message complies with the message benchmark is to determine whether the debugging message includes one of the message character strings.
5. The server system diagnostic method according to claim 3 or 4, It is characterized in that Also includes: After all data in the log are transmitted to the management device, the log is cleared.
6. A server system comprising a controller, It is characterized in that The controller contains: a communication module; a processing module, configured to read a debugging message in a log and determine whether the debugging message meets a message standard. When the debugging message meets the message standard, the processing module adds 1 to a risk value and determines whether the risk value meets a threshold. When the risk value meets the threshold, the processing module transmits all data in the log to a management device through the communication module and resets the risk value to zero; and A memory module is used to store the log.
7. The server system according to claim 6, It is characterized in that The processing module is further configured to determine whether the debugging message includes a specified character string when the debugging message does not meet the message criterion and to increase the risk value by 1 when the debugging message includes the specified character string.
8. The server system according to claim 7, It is characterized in that The message criterion includes a message level. The processing module determines whether the debugging message meets the message criterion by determining whether a level value of the debugging message is greater than or equal to the message level.
9. The server system according to claim 7, It is characterized in that The message benchmark includes a plurality of message strings, and the processing module determines whether the debugging message meets the message benchmark by determining whether the debugging message includes one of the message strings.
10. The server system according to claim 8 or 9, It is characterized in that The processing module is further used for clearing the log after transmitting all the data in the log to the management device through the communication module.
