System monitoring lamp control method and device, computer device and storage medium

CN115729789BActive Publication Date: 2026-10-30INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211393449.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-08
Publication Date
2026-10-30
Estimated Expiration
2042-11-08

AI Technical Summary

Technical Problem

这种管理方式的不足在于,服务器上通常有数百个传感器,如果每隔几秒就对所有传感器状态进行轮询,无疑增加了系统资源的消耗,而且点灯会有延迟

Benefits of technology

[0032]上述系统监控灯控制方法、装置、计算机设备和存储介质,所述方法包括:基于服务器中传感器的历史数据构建结构体数组;基于所述结构体数组生成不同级别的告警日志,并根据所述告警日志及更新规则更新查询链表;当根据服务器传感器实时监测到的部件参数判断服务器发生异常时,通过系统监控灯线程不间断地遍历所述查询链表,获取当前所有事件对应的最高告警等级;基于所述最高告警等级控制系统监控灯的闪烁,本申请避免了周期性轮询所有传感器状态的过程,有效减小了系统资源的开销,并且提供的查询链表日志功能极大地提高了相关故障的解决效率,工厂出货以及线上运维查看当前系统可以快速定位问题,而不用逐条的去查看告警日志,节省了时间成本,具有客观的经济效益。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115729789B_ABST
    Figure CN115729789B_ABST
Patent Text Reader

Abstract

The application relates to a system monitoring lamp control method and device, computer equipment and a storage medium. The method comprises the following steps: constructing a structure array based on historical data of sensors in a server; generating different levels of alarm logs based on the structure array, and updating a query linked list according to the alarm logs and an updating rule; when it is judged that an exception occurs in the server according to component parameters monitored in real time by the server sensors, continuously traversing the query linked list through a system monitoring lamp thread to obtain the highest alarm level corresponding to all current events; and controlling the flashing of the system monitoring lamp based on the highest alarm level. The application avoids the process of periodically polling all sensor states, effectively reduces the system resource overhead, greatly improves the solution efficiency of related faults, and enables factory shipment and online operation to quickly locate problems in the current system without checking alarm logs one by one, thereby saving time cost and achieving objective economic benefits.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of system control, and in particular to a system monitoring light control method, apparatus, computer equipment, and storage medium. Background Technology

[0002] In servers, the illumination status of system health lights is typically used to characterize the overall health of the server (i.e., whether there are any alarm events and the severity of those events). Corresponding to different alarm levels, the health lights illuminate at different frequencies and in different colors, determined by the CPLD engineer. For example, for Info level events, the LED is solid green; for Warning level events, the LED flashes red; and for Critical level events, the LED is solid red. The status of the system health lights is crucial during factory shipments and online maintenance. This requires the BMC (Browser Control Center) to control the system health lights very accurately, avoiding unnecessary maintenance resources due to missed or incorrectly activated lights. How to reasonably store and manage the various types and levels of alarm events that may occur on the server, and thus achieve effective health light status control, is a problem worthy of research.

[0003] Currently, the commonly used health light management mechanism involves setting up multiple physical or virtual sensors to monitor the parameters and behaviors of various server components. If an anomaly occurs, the current warning level of that sensor is recorded. The BMC (Body Control Controller) periodically polls the status of all sensors and controls the health light status based on the highest warning level. The drawback of this management method is that servers typically have hundreds of sensors. Polling the status of all sensors every few seconds undoubtedly increases system resource consumption, and there is also a delay in lighting the lights.

[0004] Therefore, there is an urgent need to propose a system monitoring light control method, device, computer equipment, and storage medium that can efficiently manage alarm events and thus control the status of health lights. Summary of the Invention

[0005] Therefore, it is necessary to provide a system monitoring light control method, device, computer equipment, and storage medium that can efficiently manage alarm events and control the status of health lights, in order to address the above-mentioned technical problems.

[0006] On the one hand, a system monitoring light control method is provided, the method comprising:

[0007] Step A: Construct a structure array based on the historical data of the sensors in the server;

[0008] Step B: Generate alarm logs of different levels based on the structure array, and update the query list according to the alarm logs and update rules;

[0009] Step C: When it is determined that the server has encountered an anomaly based on the component parameters monitored in real time by the server sensors, the system monitoring thread continuously traverses the query list to obtain the highest alarm level corresponding to all current events;

[0010] Step D: Control the flashing of the system monitoring lights based on the highest alarm level.

[0011] In one embodiment, the method further includes: after the system light is controlled to blink based on the highest alarm level, the method further includes: obtaining alarm logs corresponding to all abnormal system monitoring lights based on the intelligent platform management interface on the baseboard management controller, and uploading them to the display terminal; while uploading to the display terminal, providing an alarm deletion interface.

[0012] In one embodiment, the method further includes: constructing a structure array based on historical data of sensors in the server, which includes: the historical data including event type, sensor type, alarm event, and alarm level corresponding to the alarm event; acquiring the historical data and partitioning the historical data of different types; determining the offset and space length corresponding to each partition according to the type parameter corresponding to the partition; forming structure elements corresponding to each partition based on the offset and the space length, and constructing the structure array using all the structure elements.

[0013] In one embodiment, the method further includes: generating alarm logs of different levels based on the structure array includes: forming a one-to-one mapping relationship between individual structure elements of different partitions in the structure group to generate a first data group; sorting the first data group based on the alarm level corresponding to the alarm event; assigning weights to the sorted first data group; and generating alarm logs of different levels according to the weights.

[0014] In one embodiment, the method further includes: updating the query list according to the alarm log and update rules includes: when a new alarm log is generated, determining the type of the alarm log: if the alarm log is an event-triggered log, comparing its severity level with the alarm log in the current list when the event-triggered log is added to the query list; if the alarm log is an event-clearing log, deleting its corresponding alarm log from the query list.

[0015] In one embodiment, the method further includes: updating the query list according to the alarm log and update rules, which further includes: if the event trigger log level is higher than or equal to the alarm log level in the query list, then inserting the event trigger log at the current position; if the event trigger log level is lower than the alarm log level in the query list, then comparing the event trigger log with the next alarm log until a position with a higher than or equal alarm log level is found and inserted; updating the nodes in the query list by inserting alarm logs of a more severe level to form a new query list.

[0016] In one embodiment, the method further includes: continuously traversing the query list through the system monitoring light thread to obtain the highest alarm level corresponding to all current events and controlling the blinking of the system monitoring light, including: when the server experiences an anomaly, continuously traversing the nodes in the query list through the system monitoring light thread; obtaining the highest alarm level of all current events based on the nodes; issuing commands to the complex programmable logic device according to the highest alarm level and preset rules to achieve different blinking states of the system monitoring light; the preset rules include: if the query list is empty or the highest alarm level is a first-level event, the first color of the system monitoring light remains on; if the highest alarm level in the query list is a second-level event, the second color of the system monitoring light blinks; if the highest alarm level in the query list is a third-level event, the third color of the system monitoring light remains on.

[0017] On the other hand, a system monitoring light control device is provided, the device comprising:

[0018] The structure array construction module is used to construct structure arrays based on historical data from sensors in the server.

[0019] The linked list update module is used to generate alarm logs of different levels based on the structure array, and update the query linked list according to the alarm logs and triggering rules.

[0020] The alarm level acquisition module is used to continuously traverse the query list through the system monitoring light thread to obtain the highest alarm level corresponding to all current events when the server is determined to be abnormal based on the component parameters monitored in real time by the server sensors.

[0021] The control module is used to control the flashing of the system monitoring lights based on the highest alarm level.

[0022] In another aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:

[0023] Step A: Construct a structure array based on the historical data of the sensors in the server;

[0024] Step B: Generate alarm logs of different levels based on the structure array, and update the query list according to the alarm logs and update rules;

[0025] Step C: When it is determined that the server has encountered an anomaly based on the component parameters monitored in real time by the server sensors, the system monitoring thread continuously traverses the query list to obtain the highest alarm level corresponding to all current events;

[0026] Step D: Control the flashing of the system monitoring lights based on the highest alarm level.

[0027] In another aspect, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0028] Step A: Construct a structure array based on the historical data of the sensors in the server;

[0029] Step B: Generate alarm logs of different levels based on the structure array, and update the query list according to the alarm logs and update rules;

[0030] Step C: When it is determined that the server has encountered an anomaly based on the component parameters monitored in real time by the server sensors, the system monitoring thread continuously traverses the query list to obtain the highest alarm level corresponding to all current events;

[0031] Step D: Control the flashing of the system monitoring lights based on the highest alarm level.

[0032] The aforementioned system monitoring light control method, device, computer equipment, and storage medium include the following steps: constructing a structure array based on historical data from sensors in a server; generating alarm logs of different levels based on the structure array, and updating a query list according to the alarm logs and update rules; when an anomaly is detected in the server based on the component parameters monitored in real time by the server sensors, continuously traversing the query list through the system monitoring light thread to obtain the highest alarm level corresponding to all current events; and controlling the flashing of the system monitoring light based on the highest alarm level. This application avoids the process of periodically polling the status of all sensors, effectively reducing system resource overhead. Furthermore, the provided query list log function greatly improves the efficiency of resolving related faults. Factory shipments and online maintenance can quickly locate problems by viewing the current system without having to check each alarm log individually, saving time and resulting in significant economic benefits. Attached Figure Description

[0033] Figure 1This is an application environment diagram of the system monitoring light control method in one embodiment;

[0034] Figure 2 This is a flowchart illustrating a system monitoring light control method in one embodiment;

[0035] Figure 3 This is a structural block diagram of the system monitoring light control device in one embodiment;

[0036] Figure 4 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0037] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0038] The system monitoring light control method provided in this application can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with a data processing platform set on server 104 via a network. Terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. Server 104 can be implemented as a standalone server or a server cluster consisting of multiple servers.

[0039] Example 1

[0040] In one embodiment, such as Figure 2 As shown, a system monitoring light control method is provided, which is applied to... Figure 1 Taking the terminal in the example, the explanation includes the following steps:

[0041] S1: Construct a structure array based on historical data from sensors in the server.

[0042] It should be noted that the structure array contains the Event Type, Sensor Type, Event Offset, and alarm level of the sensor as specified in the IPMI Spec.

[0043] Furthermore, the construction of the structure array based on historical sensor data in the server specifically includes:

[0044] The historical data is acquired and partitioned into different types of historical data. For example, as mentioned above, time type can be divided into area A, sensor type can be divided into area B, and other partitions are also divided in the same way.

[0045] The offset and space length of each partition are determined according to the type parameter corresponding to the partition. The offset represents the starting position of the partition, and the space length represents the field length of the partition.

[0046] Based on the offset and the space length, the structure elements corresponding to each partition are formed, and the structure array is constructed using all the structure elements. The structure elements may include data types, data fields or other related content.

[0047] S2: Generate alarm logs of different levels based on the structure array, and update the query list according to the alarm logs and update rules.

[0048] It should be noted that generating alarm logs at different levels based on the structure array includes:

[0049] The individual structure elements of different partitions in the structure group are mapped one-to-one to generate the first data group. For example, if the event type corresponding to alarm event a is b, the sensor type is c, and the alarm level is 1, then the mapping relationship is abc-1, which is the first data group.

[0050] The first data group is sorted based on the alarm level corresponding to the alarm event;

[0051] The first data group after sorting is weighted and scored, and alarm logs of different levels are generated according to the weighted scores. The weighted scores are assigned based on expert opinions, and the first data group is sorted according to the relevant scores.

[0052] Furthermore, updating the query list according to the alarm log and update rules includes:

[0053] A linked list is maintained based on the alarm levels of the SEL (System Event Log). Each time a new alarm log entry is generated, the type of the alarm log is determined using the built-in attributes of the SEL. The types include event-triggered logs and event-cleared logs.

[0054] If the alarm log is an event-triggered log, then when the event-triggered log is added to the query list, its severity level is compared with that of the alarm logs in the current list.

[0055] If the alarm log is an event cancellation log, then delete the corresponding alarm log from the query list.

[0056] Furthermore, the step of updating the query list based on the alarm log and update rules also includes:

[0057] If the event trigger log level is higher than or equal to the alarm log level in the query chain, the event trigger log is inserted at the current position, and other alarm logs in the query chain are inserted sequentially thereafter.

[0058] If the event trigger log level is lower than the alarm log level in the query list, then the event trigger log is compared with the next alarm log until a position with a level higher than or equal to the alarm log level is found, and then inserted.

[0059] By updating the nodes in the query list by inserting alarm logs of a higher severity level, a new query list is formed. This step ensures that the head (node) of the query list always stores the latest SEL of the highest severity level.

[0060] S3: When it is determined that the server has encountered an anomaly based on the component parameters monitored in real time by the server sensors, the system monitoring thread continuously traverses the query list to obtain the highest alarm level corresponding to all current events.

[0061] S4: Control the flashing of the system monitoring lights based on the highest alarm level.

[0062] It should be noted that steps S3 to S4 are as follows:

[0063] When the server malfunctions, i.e. when the server component parameters or behavior are abnormal, the system monitoring thread continuously traverses the nodes in the query list.

[0064] Based on the node, obtain the highest alarm level for all current events;

[0065] Commands are issued to the CPLD (Complex Programmable Logic Device) according to the highest alarm level and preset rules to implement different flashing states of the system monitoring lights; the preset rules include:

[0066] If the query list is empty or the highest alarm level is a first-level event, the first color of the system monitoring light will remain on.

[0067] If the highest alarm level in the query list is a level 2 event, then the system monitoring light flashes in the second color.

[0068] If the highest alarm level in the query list is a level 3 event, then the third color of the system monitoring light will remain on.

[0069] For example, if the query list is empty or consists entirely of Info level events (i.e., Level 1 events), the LED (light-emitting diode) will be solid green; if the highest alarm level in the query list is Warning level (i.e., Level 2 events), the LED will flash red; if the highest alarm level in the query list is Critical level (i.e., Level 3 events), the LED will be solid red.

[0070] Furthermore, after controlling the flashing of the system light based on the highest alarm level, the method further includes:

[0071] Add a Redfish / IPMI (Intelligent Platform Management Interface) interface to obtain alarm logs corresponding to all abnormal system monitoring lights based on the intelligent platform management interface on the baseboard management controller, and upload them to the display terminal. This allows engineers and online maintenance personnel to view them in a timely manner. In addition, while uploading to the display terminal, an alarm deletion interface is provided to ensure that the system monitoring lights are normal when shipped from the factory.

[0072] In the above-mentioned system monitoring light control method, a structure array is constructed based on historical data from sensors in the server; different levels of alarm logs are generated based on the structure array, and a query list is updated according to the alarm logs and update rules; when an anomaly is determined to have occurred in the server based on the component parameters monitored in real time by the server sensors, the system monitoring light thread continuously traverses the query list to obtain the highest alarm level corresponding to all current events; the system monitoring light is controlled to blink based on the highest alarm level. This application determines the alarm level of SEL by maintaining a structure array of sensor data, and then maintains a linked list representing the severity of SEL events based on SEL, thereby controlling the blinking behavior of the LED lights. This avoids the process of periodically polling the status of all sensors, effectively reducing the overhead of system resources. Furthermore, the provided query list log function greatly improves the efficiency of resolving related faults. Factory shipments and online maintenance can quickly locate problems by viewing the current system without having to check alarm logs one by one, saving time and costs and having objective economic benefits.

[0073] It should be understood that, although Figure 2 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 2At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.

[0074] Example 2

[0075] In one embodiment, such as Figure 3 As shown, a system monitoring light control device is provided, including: a structure array construction module, a linked list update module, an alarm level acquisition module, and a control module, wherein:

[0076] The structure array construction module is used to construct structure arrays based on historical data from sensors in the server.

[0077] The linked list update module is used to generate alarm logs of different levels based on the structure array, and update the query linked list according to the alarm logs and triggering rules.

[0078] The alarm level acquisition module is used to continuously traverse the query list through the system monitoring light thread to obtain the highest alarm level corresponding to all current events when the server is determined to be abnormal based on the component parameters monitored in real time by the server sensors.

[0079] The control module is used to control the flashing of the system monitoring lights based on the highest alarm level.

[0080] This device also includes a display module, which is specifically used for:

[0081] The alarm logs corresponding to all abnormal system monitoring lights are obtained through the intelligent platform management interface on the baseboard management controller and uploaded to the display terminal.

[0082] While uploading to the display terminal, an alarm deletion interface is also provided.

[0083] In a preferred embodiment of the present invention, the structure array construction module is specifically used for:

[0084] The historical data includes event type, sensor type, alarm event, and alarm level corresponding to the alarm event;

[0085] Obtain the historical data and partition the historical data into different types;

[0086] The offset and space length of each partition are determined according to the type parameters corresponding to the partition;

[0087] Based on the offset and the space length, the structure elements corresponding to each partition are formed, and the structure array is constructed using all the structure elements.

[0088] In a preferred embodiment of the present invention, the linked list update module is specifically used for:

[0089] The individual structure elements of different partitions in the structure group are mapped one-to-one to generate the first data group;

[0090] The first data group is sorted based on the alarm level corresponding to the alarm event;

[0091] The sorted first data group is weighted and scored, and alarm logs of different levels are generated based on the weighted scores.

[0092] In a preferred embodiment of the present invention, the linked list update module is further configured to:

[0093] When a new alarm log is generated, determine the type of the alarm log:

[0094] If the alarm log is an event-triggered log, then when the event-triggered log is added to the query list, its severity level is compared with that of the alarm logs in the current list.

[0095] If the alarm log is an event cancellation log, then delete the corresponding alarm log from the query list.

[0096] In a preferred embodiment of the present invention, the linked list update module is further configured to:

[0097] If the event trigger log level is higher than or equal to the alarm log level in the query list, then the event trigger log is inserted at the current position;

[0098] If the event trigger log level is lower than the alarm log level in the query list, then the event trigger log is compared with the next alarm log until a position with a level higher than or equal to the alarm log level is found, and then inserted.

[0099] A new query list is formed by updating the nodes in the query list by inserting alarm logs of a higher severity level.

[0100] In a preferred embodiment of the present invention, the alarm level acquisition module and the control module are specifically used for:

[0101] When the server malfunctions, the system monitoring thread continuously traverses the nodes in the query list.

[0102] Based on the node, obtain the highest alarm level for all current events;

[0103] Commands are issued to the complex programmable logic device according to the highest alarm level and preset rules to achieve different flashing states of the system monitoring lights; the preset rules include:

[0104] If the query list is empty or the highest alarm level is a first-level event, the first color of the system monitoring light will remain on.

[0105] If the highest alarm level in the query list is a level 2 event, then the system monitoring light flashes in the second color.

[0106] If the highest alarm level in the query list is a level 3 event, then the third color of the system monitoring light will remain on.

[0107] Specific limitations regarding the system monitoring light control device can be found in the limitations of the system monitoring light control method described above, and will not be repeated here. Each module in the aforementioned system monitoring light control device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0108] Example 3

[0109] In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4 As shown, the computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external terminals via a network connection. When the computer program is executed by the processor, it implements a system monitoring and control method. The display screen can be an LCD screen or an e-ink display screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.

[0110] Those skilled in the art will understand that Figure 4The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0111] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:

[0112] Step A: Construct a structure array based on the historical data of the sensors in the server;

[0113] Step B: Generate alarm logs of different levels based on the structure array, and update the query list according to the alarm logs and triggering rules;

[0114] Step C: When it is determined that the server has encountered an anomaly based on the component parameters monitored in real time by the server sensors, the system monitoring thread continuously traverses the query list to obtain the highest alarm level corresponding to all current events;

[0115] Step D: Control the flashing of the system monitoring lights based on the highest alarm level.

[0116] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0117] The alarm logs corresponding to all abnormal system monitoring lights are obtained through the intelligent platform management interface on the baseboard management controller and uploaded to the display terminal.

[0118] While uploading to the display terminal, an alarm deletion interface is also provided.

[0119] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0120] The historical data includes event type, sensor type, alarm event, and alarm level corresponding to the alarm event;

[0121] Obtain the historical data and partition the historical data into different types;

[0122] The offset and space length of each partition are determined according to the type parameters corresponding to the partition;

[0123] Based on the offset and the space length, the structure elements corresponding to each partition are formed, and the structure array is constructed using all the structure elements.

[0124] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0125] The individual structure elements of different partitions in the structure group are mapped one-to-one to generate the first data group;

[0126] The first data group is sorted based on the alarm level corresponding to the alarm event;

[0127] The sorted first data group is weighted and scored, and alarm logs of different levels are generated based on the weighted scores.

[0128] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0129] When a new alarm log is generated, determine the type of the alarm log:

[0130] If the alarm log is an event-triggered log, then when the event-triggered log is added to the query list, its severity level is compared with that of the alarm logs in the current list.

[0131] If the alarm log is an event cancellation log, then delete the corresponding alarm log from the query list.

[0132] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0133] If the event trigger log level is higher than or equal to the alarm log level in the query list, then the event trigger log is inserted at the current position;

[0134] If the event trigger log level is lower than the alarm log level in the query list, then the event trigger log is compared with the next alarm log until a position with a level higher than or equal to the alarm log level is found, and then inserted.

[0135] A new query list is formed by updating the nodes in the query list by inserting alarm logs of a higher severity level.

[0136] In one embodiment, the processor, when executing a computer program, also performs the following steps:

[0137] When the server malfunctions, the system monitoring thread continuously traverses the nodes in the query list.

[0138] Based on the node, obtain the highest alarm level for all current events;

[0139] Commands are issued to the complex programmable logic device according to the highest alarm level and preset rules to achieve different flashing states of the system monitoring lights; the preset rules include:

[0140] If the query list is empty or the highest alarm level is a first-level event, the first color of the system monitoring light will remain on.

[0141] If the highest alarm level in the query list is a level 2 event, then the system monitoring light flashes in the second color.

[0142] If the highest alarm level in the query list is a level 3 event, then the third color of the system monitoring light will remain on.

[0143] Example 4

[0144] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0145] Step A: Construct a structure array based on the historical data of the sensors in the server;

[0146] Step B: Generate alarm logs of different levels based on the structure array, and update the query list according to the alarm logs and triggering rules;

[0147] Step C: When it is determined that the server has encountered an anomaly based on the component parameters monitored in real time by the server sensors, the system monitoring thread continuously traverses the query list to obtain the highest alarm level corresponding to all current events;

[0148] Step D: Control the flashing of the system monitoring lights based on the highest alarm level.

[0149] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0150] The alarm logs corresponding to all abnormal system monitoring lights are obtained through the intelligent platform management interface on the baseboard management controller and uploaded to the display terminal.

[0151] While uploading to the display terminal, an alarm deletion interface is also provided.

[0152] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0153] The historical data includes event type, sensor type, alarm event, and alarm level corresponding to the alarm event;

[0154] Obtain the historical data and partition the historical data into different types;

[0155] The offset and space length of each partition are determined according to the type parameters corresponding to the partition;

[0156] Based on the offset and the space length, the structure elements corresponding to each partition are formed, and the structure array is constructed using all the structure elements.

[0157] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0158] The individual structure elements of different partitions in the structure group are mapped one-to-one to generate the first data group;

[0159] The first data group is sorted based on the alarm level corresponding to the alarm event;

[0160] The sorted first data group is weighted and scored, and alarm logs of different levels are generated based on the weighted scores.

[0161] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0162] When a new alarm log is generated, determine the type of the alarm log:

[0163] If the alarm log is an event-triggered log, then when the event-triggered log is added to the query list, its severity level is compared with that of the alarm logs in the current list.

[0164] If the alarm log is an event cancellation log, then delete the corresponding alarm log from the query list.

[0165] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0166] If the event trigger log level is higher than or equal to the alarm log level in the query list, then the event trigger log is inserted at the current position;

[0167] If the event trigger log level is lower than the alarm log level in the query list, then the event trigger log is compared with the next alarm log until a position with a level higher than or equal to the alarm log level is found, and then inserted.

[0168] A new query list is formed by updating the nodes in the query list by inserting alarm logs of a higher severity level.

[0169] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:

[0170] When the server malfunctions, the system monitoring thread continuously traverses the nodes in the query list.

[0171] Based on the node, obtain the highest alarm level for all current events;

[0172] Commands are issued to the complex programmable logic device according to the highest alarm level and preset rules to achieve different flashing states of the system monitoring lights; the preset rules include:

[0173] If the query list is empty or the highest alarm level is a first-level event, the first color of the system monitoring light will remain on.

[0174] If the highest alarm level in the query list is a level 2 event, then the system monitoring light flashes in the second color.

[0175] If the highest alarm level in the query list is a level 3 event, then the third color of the system monitoring light will remain on.

[0176] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0177] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0178] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for controlling system monitoring lights, characterized in that, The method is executed by the substrate management controller and includes: Construct a structure array based on historical data from sensors in the server; Based on the structure array, different levels of alarm logs are generated, and the query list is updated according to the alarm logs and update rules, including: When a new alarm log is generated, the type of the alarm log is determined by the built-in attributes of the system time log: If the alarm log is an event-triggered log, then when the event-triggered log is added to the query list, its severity level is compared with that of the alarm logs in the current list. If the alarm log is an event cancellation log, then delete the corresponding alarm log from the query list; If the event trigger log level is higher than or equal to the alarm log level in the query list, then the event trigger log is inserted at the current position; If the event trigger log level is lower than the alarm log level in the query list, then the event trigger log is compared with the next alarm log until a position with a level higher than or equal to the alarm log level is found, and then inserted. A new query list is formed by updating the nodes in the query list by inserting alarm logs of a higher severity level. If the event trigger log level is higher than or equal to the alarm log level in the query chain, the event trigger log is inserted at the current position, and other alarm logs in the query chain are inserted sequentially thereafter. If the event trigger log level is lower than the alarm log level in the query list, then the event trigger log is compared with the next alarm log until a position with a level higher than or equal to the alarm log level is found, and then inserted. A new query list is formed by updating the nodes in the query list by inserting alarm logs of a higher severity level. The head node of the query list stores the latest system time log of the highest severity level. When a server anomaly is detected based on the component parameters monitored in real time by the server sensors, the system monitoring thread continuously traverses the query list to obtain the highest alarm level corresponding to all current events. The system monitors the flashing of the lights based on the highest alarm level.

2. The system monitoring light control method according to claim 1, characterized in that, After the flashing of the monitoring light controlled by the system based on the highest alarm level, the method further includes: The alarm logs corresponding to all abnormal system monitoring lights are obtained through the intelligent platform management interface on the baseboard management controller and uploaded to the display terminal. While uploading to the display terminal, an alarm deletion interface is also provided.

3. The system monitoring light control method according to claim 1, characterized in that, The structure array constructed based on historical sensor data in the server includes: The historical data includes event type, sensor type, alarm event, and alarm level corresponding to the alarm event; Obtain the historical data and partition the historical data into different types; The offset and space length of each partition are determined according to the type parameters corresponding to the partition; Based on the offset and the space length, the structure elements corresponding to each partition are formed, and the structure array is constructed using all the structure elements.

4. The system monitoring light control method according to claim 3, characterized in that, The generation of alarm logs at different levels based on the structure array includes: The individual structure elements in different partitions of the structure array are mapped one-to-one to generate the first data group; The first data group is sorted based on the alarm level corresponding to the alarm event; The sorted first data group is weighted and scored, and alarm logs of different levels are generated based on the weighted scores.

5. The system monitoring light control method according to claim 1, characterized in that, When the server malfunctions, the system monitoring light thread continuously traverses the query list to obtain the highest alarm level corresponding to all current events and controls the flashing of the system monitoring lights, including: When the server malfunctions, the system monitoring thread continuously traverses the nodes in the query list. Based on the node, obtain the highest alarm level for all current events; Commands are issued to the complex programmable logic device according to the highest alarm level and preset rules to achieve different flashing states of the system monitoring lights; the preset rules include: If the query list is empty or the highest alarm level is a first-level event, the first color of the system monitoring light will remain on. If the highest alarm level in the query list is a level 2 event, then the system monitoring light flashes in the second color. If the highest alarm level in the query list is a level 3 event, then the third color of the system monitoring light will remain on.

6. A system monitoring light control device for use in the system monitoring light control method according to any one of claims 1-5, characterized in that, The device includes: The structure array construction module is used to construct structure arrays based on historical data from sensors in the server. The linked list update module is used to generate alarm logs of different levels based on the structure array, and update the query linked list according to the alarm logs and triggering rules. The alarm level acquisition module is used to determine the server alarm level based on the component parameters monitored in real time by the server's sensors. In case of an anomaly, the system monitoring light thread continuously traverses the query list to obtain the highest alarm level corresponding to all current events; The control module is used to control the flashing of the system monitoring lights based on the highest alarm level.

7. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Equipment fault indication method and device and related equipment

    CN114328135A

  • Server fault pre-warning method, device, computer apparatus, and storage medium

    WO2021169270A1