BMC (Baseboard Management Controller) management alarm event processing method and device, equipment and medium
The BMC creates a scheduled task after the SNMP Trap server becomes abnormal to detect its status, and sends alarm information when it returns to normal. This solves the problem of the SNMP Trap server being unable to receive alarm messages and ensures system stability and reliability.
Patent Information
- Application Number
- CN202410855385.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-28
AI Technical Summary
The SNMP Trap server may not be able to receive alarm messages under fault or abnormal conditions, causing system stability and reliability to be affected. It is difficult for existing technology to effectively handle such situations.
BMC creates a scheduled task to detect the running status of the SNMP Trap server. When the server returns to normal, it sends unsent alarm information to the SNMP Trap server to ensure that important alarm information can be processed and delivered in a timely manner.
Through the scheduled task mechanism, it is ensured that even when the SNMP Trap server is unavailable, important alarm information can be effectively processed and transmitted, maintaining the stable operation of the system and reducing system downtime and data loss.
Smart Images

Figure CN118740583A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of server management, and in particular to a method, device, equipment and medium for processing a BMC management alarm event. Background Art
[0002] In a complex computing environment, various devices and applications in the system may face various failures and problems. In order to ensure the stability and reliability of the system, fault management and alarm notification become crucial links. When a device or application in the system fails or an abnormal situation occurs, timely alarms and corresponding measures can effectively reduce system downtime and data loss.
[0003] SNMP (Simple Network Management Protocol) is a widely used protocol in network management. Its Trap messages are used to report device status changes and fault events to the management system. However, even such a critical communication mechanism has certain uncertainties and risks. The SNMP Trap server may not receive Trap fault messages for various reasons, such as network failure, server maintenance, configuration errors, etc. Summary of the invention
[0004] In view of the problems existing in the prior art, the present invention provides a method, device, equipment and medium for processing a BMC management alarm event.
[0005] The present invention provides a method for processing a BMC management alarm event, comprising: When the BMC determines that the SNMP Trap server has an abnormal operation, a scheduled task is constructed; the scheduled task is used to detect the operating status of the SNMP Trap server; When it is determined that the scheduled task is triggered, detecting the running status of the SNMP Trap server; When it is determined that the operation of the SNMP Trap server is normal, an alarm message is sent to the SNMP Trap server.
[0006] According to a method for processing a BMC management alarm event provided by the present invention, before sending the alarm information to the SNMP Trap server, the method further includes: Obtain the important type and cache time of each alarm information in the cache; Divide the alarm information into different important types; Based on the generation time of the alarm information, the alarm information under each important type is sorted, and the first sending queue corresponding to each important type is determined; Based on the priority of the important types, sorting the first sending queues and determining the second sending queue; Correspondingly, when it is determined that the SNMP Trap server operates normally, alarm information is sent to the SNMP Trap server based on the second sending queue.
[0007] According to a method for processing a BMC management alarm event provided by the present invention, the BMC determines that an SNMP Trap server has an abnormal operation, including: Acquire the alarm information at the current moment, and when the number of failures of sending the alarm information at the current moment to the SNMP Trap server reaches the first number, determine that the SNMP Trap server has an abnormal operation; accordingly, construct the first scheduled task after the SNMP Trap server runs abnormally based on the interval time; When it is determined that the scheduled task is triggered, when it is determined that the number of failures in sending the detection signal to the SNMP Trap server reaches the second number, it is determined that the SNMP Trap server has an operation abnormality; accordingly, based on the current time and the interval time, construct the nth scheduled task after the SNMP Trap server runs abnormally, where n is a positive number greater than 2.
[0008] According to a method for processing a BMC management alarm event provided by the present invention, after constructing the first scheduled task, the method further includes: Obtain multiple time ranges, each of which is connected to each other; Acquire multiple time change strategies, wherein each time change strategy has a different adjustment change rate; the adjustment change rate represents the percentage increase between the value before adjustment and the value after adjustment; Based on the adjustment change rate of the time change policy in ascending order, a corresponding time change policy is configured for each duration range, and a corresponding relationship between the duration range and the time change policy is established; Record the confirmed time and current time of the abnormal operation of the SNMP Trap server corresponding to the first scheduled task; Calculate the duration of the abnormal operation of the SNMPTrap server according to the determination time of the abnormal operation of the SNMPTrap server and the current time; Matching the duration of the abnormal operation of the SNMP Trap server with each time range to obtain the time range corresponding to the duration of the abnormal operation of the SNMP Trap server; Determine a corresponding time change policy based on the correspondence between the time range and the time change policy; Modify the interval time based on the determined time modification strategy to obtain a new interval time; When it is determined that the SNMP Trap server has an operational abnormality, a scheduled task is constructed based on the new interval time and the current time.
[0009] According to a method for processing a BMC management alarm event provided by the present invention, during the BMC power-on and power-off operation, the method further includes: Synchronize each alarm information in the cache to the Flash in the BMC; The successfully sent alarm information is deleted from the cache, and the successfully sent alarm information is deleted from the Flash simultaneously.
[0010] According to a method for processing a BMC management alarm event provided by the present invention, before constructing the first scheduled task after the SNMP Trap server runs abnormally, the method further includes: Obtain each alarm information within the first historical time period; Based on each alarm information in the first historical time period, obtain the shortest interval duration of the same alarm information; If the alarm information appears for the first time within the first historical time period, the shortest interval duration is determined based on the generation time of the alarm information that first appears and the current time when the SNMP Trap server is determined to be operating abnormally; The interval time required for constructing the first scheduled task after the SNMP Trap server runs abnormally is determined based on the shortest interval time of each alarm information.
[0011] According to a method for regulating formation grouting provided by the present invention, the method further comprises: When it is determined that the duration of the abnormal operation of the SNMP Trap server reaches the alarm duration, a maintenance warning message of the SNMP Trap server is issued.
[0012] The present invention also provides a device for processing a BMC management alarm event, comprising: A construction module is used to construct a scheduled task when it is determined that the SNMP Trap server has an abnormal operation; the scheduled task is used to detect the operating status of the SNMP Trap server; The detection module is used to detect the running status of the SNMP Trap server when determining that the scheduled task is triggered; the processing module is used to send alarm information to the SNMP Trap server when determining that the SNMP Trap server is running normally.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for processing any of the above-mentioned BMC management alarm events is implemented.
[0014] The present invention further provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method for processing any of the above-mentioned BMC management alarm events is implemented.
[0015] The present invention further provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the above-mentioned methods for processing BMC management alarm events.
[0016] The present invention provides a method, device, equipment and medium for processing BMC management alarm events. After a server exception occurs, the BMC creates a scheduled task to detect the status of an SNMP Trap server. When it is detected that the SNMP Trap server has returned to normal, the unsent alarm events are sent to the SNMP Trap server, so as to ensure that even when the SNMP Trap server is unavailable, important alarm information can be effectively processed and transmitted, thereby maintaining the stable operation of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are 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.
[0018] Figure 1 It is a flow chart of the method for processing BMC management alarm events provided by the present invention.
[0019] Figure 2 It is a specific flow chart of the method for processing BMC management alarm events provided by the present invention.
[0020] Figure 3 It is a structural schematic diagram of a device for processing BMC management alarm events provided by the present invention.
[0021] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0022] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0023] Combine the following Figure 1-Figure 3 The present invention describes a method, device, equipment and medium for processing a BMC management alarm event.
[0024] Figure 1 A flowchart of a method for processing a BMC management alarm event provided by the present invention is shown in FIG. Figure 1 , the method comprises the following steps: Step 11: When the BMC determines that the SNMP Trap server is running abnormally, a scheduled task is constructed; the scheduled task is used to detect the running status of the SNMP Trap server; Step 12: When it is determined that the scheduled task is triggered, the running status of the SNMP Trap server is detected; Step 13: When it is determined that the SNMP Trap server is running normally, an alarm message is sent to the SNMP Trap server.
[0025] Regarding steps 11 to 13, it should be noted that in a complex computing environment, various devices and applications in the system may face various failures and problems. In order to ensure the stability and reliability of the system, fault management and alarm notification become crucial links. When a device or application in the system fails or an abnormal situation occurs, timely alarms and corresponding measures can effectively reduce system downtime and data loss.
[0026] SNMP (Simple Network Management Protocol) is a widely used protocol in network management. Its Trap messages are used to report device status changes and fault events to the management system. However, even such a critical communication mechanism has certain uncertainties and risks. The SNMP Trap server may not receive Trap fault messages for various reasons, such as network failure, server maintenance, configuration errors, etc.
[0027] In order to provide a method for processing BMC management alarm events, the present invention provides a method for processing BMC management alarm events. When an abnormality occurs in the SNMP Trap server, the alarm information cannot be sent to the SNMP Trap server. In this regard, the BMC (Baseboard Manager Controller) creates a scheduled task. The scheduled task is considered to start from the moment when the abnormality occurs in the SNMP Trap server, and it is preset to start executing the preset task after a certain period of time. After the task is executed, it is mainly to detect the running status of the SNMP Trap server after the abnormality to determine whether the SNMP Trap server has returned to normal before the detection is executed. When it is determined that the SNMP Trap server has returned to normal, the alarm information is sent to the SNMP Trap server.
[0028] The method for processing BMC management alarm events provided by the present invention is that after a server exception occurs, the BMC creates a scheduled task to detect the status of the SNMP Trap server, and when it is detected that the SNMP Trap server has returned to normal, the unsent alarm events are sent to the SNMP Trap server, so as to ensure that even when the SNMP Trap server is unavailable, important alarm information can be effectively processed and transmitted, thereby maintaining the stable operation of the system.
[0029] In a further method of the above method, during the time when the SNMP Trap server is abnormal and cannot receive information, more faults may occur in the SNMP Trap server, and the alarm information of these faults is recorded. Each alarm information is divided into different importance and configured as the corresponding fault type. For example, extremely important is type A, important is type B, relatively important is type C, and so on.
[0030] In the present invention, the alarm information is stored in a cache, and after the SNMP Trap server is restored to normal, the alarm information is obtained from the cache and sent to the SNMP Trap server.
[0031] Each alarm information has its own cache time when it is stored in the cache.
[0032] Different alarm information will be classified into the same importance type from the perspective of importance. Therefore, it is necessary to divide the alarm information in the cache into importance types and obtain alarm information of different importance types.
[0033] In the present invention, when the SNMP Trap server returns to normal, for alarm information of different important types, the alarm information is sent according to the importance. For alarm information of the same important type, it is sent according to the occurrence time of the alarm information. When an abnormality occurs in the SNMP Trap server, once the alarm information is generated, it will be stored in the cache. That is, for alarm information of the same important type, it is sent according to the cache time of the alarm information.
[0034] Based on the above description, in the cache, based on the generation time of the alarm information, the alarm information under each important type is sorted, and the first sending queue corresponding to each important type is determined. The first sending queue here is the arrangement of the alarm information in each important type.
[0035] Then, based on the priority of the important type, the first sending queues are sorted to determine the second sending queue. At this time, the second sending queue is the arrangement of all the alarm information in the buffer.
[0036] Correspondingly, when it is determined that the SNMP Trap server operates normally, alarm information is sent to the SNMP Trap server based on the second sending queue.
[0037] See also Figure 2 This is a complete processing flow for the above process. The specific process will not be repeated here.
[0038] A further method of the present invention distinguishes the importance and cache time of the alarm information that needs to be sent after the SNMP Trap server returns to normal, and sets a queue, which is conducive to sequential sending.
[0039] In the further method of the above method, the processing process of the BMC determining that the SNMP Trap server has an abnormal operation is mainly explained as follows: There are two situations in which the SNMP Trap server is abnormal: When there is no alarm information or all the alarm information in the cache has been sent, the SNMP Trap server is operating normally. Later, the SNMP Trap server runs abnormally due to abnormal reasons. Therefore, it is necessary to first determine whether the SNMP Trap server is abnormal in this case.
[0040] Get the alarm information at the current moment and send it to the SNMP Trap server. The SNMP Trap server supports a retry mechanism to ensure that the alarm information can be sent successfully. Therefore, when the number of failures in sending the alarm information at the current moment to the SNMP Trap server reaches the first number, it can be determined that the SNMP Trap server is running abnormally.
[0041] Accordingly, based on the interval time, the first scheduled task after the SNMP Trap server runs abnormally is constructed. The interval time here is the time from the moment the abnormality occurs to the moment when the task is triggered.
[0042] When the scheduled task is triggered to detect whether the SNMP Trap server has recovered, the result of the detection is that the SNMP Trap server has not recovered. This is also the case of an abnormal SNMP Trap server. Therefore, after the scheduled task is triggered, to detect whether the SNMP Trap server has recovered, the pre-configured detection information can be sent to the SNMP Trap server. The alarm information is not sent here to avoid the possibility of alarm information being lost due to a failure in sending when the SNMP Trap server is not known to be recovered.
[0043] When the number of failures in sending the detection signal to the SNMP Trap server reaches the second number, it can be determined that the SNMP Trap server has an abnormal operation. Accordingly, based on the current time and the interval time, the nth scheduled task after the SNMP Trap server runs abnormally is constructed, where n is a positive number greater than 2.
[0044] A further method of the present invention divides the determination of SNMP Trap server abnormality detection into different determination modes under different circumstances, thereby ensuring timely creation of scheduled tasks and improving the safe storage and sending of alarm information.
[0045] In a further method of the above method, the present invention can also dynamically adjust the interval time of the scheduled task according to the detection result of whether the SNMP Trap server has recovered to normal. Specifically, if the SNMP Trap server is detected to be offline for a continuous period of time, the BMC will gradually increase the interval time of the scheduled task to reduce unnecessary occupation of BMC resources, thereby avoiding waste of resources.
[0046] Get multiple duration ranges, each of which is connected to each other, such as [5min, 10min], [11min, 30min], [31min, 60min], [1.1h, 2h], [2.1h, 5h], etc.
[0047] Acquire multiple time change strategies, wherein each time change strategy has a different adjustment change rate; the adjustment change rate represents the percentage increase between the value before adjustment and the value after adjustment. For example, the value before modulation is 10 minutes, the value after adjustment is 30 minutes, and the adjustment change rate is 200%.
[0048] Based on the adjustment change rate of the time change policy from small to large, configure the corresponding time change policy for each time range, and build the corresponding relationship between the time range and the time change policy. In other words, the time change policy with the smallest adjustment change rate is configured for the initial time range, and so on.
[0049] Record the confirmed time and current time of the SNMP Trap server running abnormality corresponding to the first scheduled task. For example, when the server running abnormality is determined, the first scheduled task is constructed. At this time, the time when the server running abnormality is determined is the confirmed time.
[0050] Calculate the duration of the SNMP Trap server operation abnormality based on the confirmed time of the SNMP Trap server operation abnormality and the current time.
[0051] The duration of the abnormal operation of the SNMP Trap server is matched with each time range to obtain the time range corresponding to the duration of the abnormal operation of the SNMP Trap server.
[0052] Based on the correspondence between the time range and the time change policy, a corresponding time change policy is determined.
[0053] The interval time is changed based on the determined time change strategy to obtain a new interval time.
[0054] At this time, when it is determined that the SNMP Trap server has an abnormal operation, the nth scheduled task after the SNMP Trap server has an abnormal operation is constructed based on the new interval time and the current time.
[0055] In a further method of the above method, during the power-on and power-off operation of the BMC, each alarm information in the cache is synchronized to the Flash in the BMC.
[0056] When the BMC is started, it determines whether there is a cache queue in the flash that has failed to be sent, and the BMC has a subscription to the SNMP Trap server, it starts a scheduled task to repeat the alarm information. This ensures that the unsent alarm information can be retained even after the BMC is powered on and off again, reducing the risk of alarm information loss.
[0057] During the sending process, the successfully sent alarm information is deleted from the cache, and the successfully sent alarm information is deleted from the Flash synchronously.
[0058] In a further method of the above method, before the first scheduled task after the SNMP Trap server runs abnormally, each alarm information in the first historical time period is obtained. Based on each alarm information in the first historical time period, the shortest interval duration of the same alarm information is obtained.
[0059] If the alarm information appears for the first time within the first historical time period, the shortest interval duration is determined based on the generation time of the alarm information that appears for the first time and the current time when the SNMP Trap server is determined to be running abnormally.
[0060] The interval time required for constructing the first scheduled task after the SNMP Trap server runs abnormally is determined based on the shortest interval time of each alarm information.
[0061] In this regard, it should be noted that when alarms appear frequently, it means that the failure rate of the server is high, and its recovery time will be uncertain, and the time may be long or short. When alarms do not appear frequently, it means that the failure rate of the server is low and it is easier to recover. Therefore, determining the initial interval time based on historical records can be more in line with the usage of the server, so that the alarm information can be sent more timely or the real usage of the server can be discovered more timely.
[0062] Based on the above description, when it is determined that the duration of the abnormal operation of the SNMP Trap server reaches the alarm duration, a maintenance warning message of the SNMP Trap server is issued.
[0063] In a further method of the above method, the construction of the time change strategy is mainly explained, as follows: the setting of the interval time initially determined can be analyzed and set based on the alarm information under the historical record. As for the adjustment of the subsequent interval time, it can be judged based on the alarm type of the alarm information cached in the memory. If the alarm type indicates that there is a more serious alarm information in the alarm information cached in the memory, this alarm information needs to be known in time after the server returns to normal. Therefore, when constructing the second scheduled task after the server is abnormal, it is necessary to add a shorter adjustment value to the initially determined interval time to obtain an interval time suitable for the second scheduled task. For this reason, the interval time of the subsequent scheduled tasks is determined in accordance with the arithmetic progression with the initially determined adjustment value. At this time, the arithmetic progression method can be used as a time change strategy. When the duration is within another time range after multiple adjustments, another time change strategy can be replaced.
[0064] What can be explained about another time change strategy is that during the period when the server is running abnormally, new alarm information may continue to be cached in the cache. For this reason, a time change strategy within one of the time ranges is designed based on the duration and the number of new cached alarm information in the cache. For example, the duration is divided into n parts, and then m minutes are added for each new alarm information. At this time, the adjustment value is duration / n+m. At this time, the above calculation method can be used as a time change strategy. When the duration is within another time range after multiple adjustments, another time change strategy can be replaced.
[0065] For the time change strategy again, it can be explained that when the duration is longer and exceeds a certain value. For the subsequent time range, it can be a huge range of values. At this time, the adjustment value of the time change strategy can be calculated in hours, days, weeks, etc.
[0066] For more time ranges, you can increase the difference of the arithmetic progression, and use arithmetic progression data to calculate the time interval of the scheduled task for each time range, with only the difference being different. Similarly, you can also adjust the n value of "dividing the duration into n parts" and the m value of "adding m minutes to new alarm information" to change the time change strategy and adapt to multiple time ranges.
[0067] A further method of the present invention, through the detailed construction of the time change strategy in different ways, can well construct a suitable scheduled task, which can not only detect in time after the server is restored in a short time, but also can remind to check and repair in time when the server cannot be restored in a long time.
[0068] The following is a description of a device for processing a BMC management alarm event provided by the present invention. The device for processing a BMC management alarm event described below and the method for processing a BMC management alarm event described above can be referred to each other.
[0069] Figure 3 A schematic diagram showing a process flow of a BMC management alarm event processing device provided by the present invention is shown in FIG. Figure 3 The device comprises a construction module 31, a detection module 32 and a processing module 33, wherein: The construction module 31 is used to construct a scheduled task when it is determined that the SNMP Trap server has an abnormal operation; the scheduled task is used to detect the operation status of the SNMP Trap server; The detection module 32 is used to detect the running status of the SNMP Trap server when determining that the scheduled task is triggered; The processing module 33 is used to send alarm information to the SNMP Trap server when it is determined that the SNMP Trap server is running normally.
[0070] In a further embodiment of the above device, before sending the alarm information to the SNMP Trap server, the processing module is further used to: Obtain the important type and cache time of each alarm information in the cache; Divide the alarm information into different important types; Based on the generation time of the alarm information, the alarm information under each important type is sorted, and the first sending queue corresponding to each important type is determined; Based on the priority of the important types, sorting the first sending queues and determining the second sending queue; Accordingly, when it is determined that the SNMP Trap server operates normally, alarm information is sent to the SNMP Trap server based on the second sending queue.
[0071] In a further device of the above device, the construction module is specifically used for: Acquire the alarm information at the current moment, and when the number of failures of sending the alarm information at the current moment to the SNMP Trap server reaches the first number, determine that the SNMP Trap server has an abnormal operation; accordingly, construct the first scheduled task after the SNMP Trap server runs abnormally based on the interval time; When it is determined that the scheduled task is triggered, when it is determined that the number of failures of sending the detection signal to the SNMP Trap server reaches the second number, it is determined that there is an operation abnormality in the SNMP Trap server; accordingly, based on the current time and the interval time, the nth scheduled task after the SNMP Trap server runs abnormally is constructed, where n is a positive number greater than 2.
[0072] In a further embodiment of the above device, after constructing the first timed task, the construction module is further used to: Obtain multiple time ranges, each of which is connected to each other; Acquire multiple time change strategies, wherein each time change strategy has a different adjustment change rate; the adjustment change rate represents the percentage increase between the value before adjustment and the value after adjustment; Based on the adjustment change rate of the time change policy in ascending order, a corresponding time change policy is configured for each duration range, and a corresponding relationship between the duration range and the time change policy is established; Record the confirmed time and current time of the SNMP Trap server running abnormality corresponding to the first scheduled task; Calculate the duration of the SNMP Trap server operation abnormality according to the determination time of the SNMP Trap server operation abnormality and the current time; Match the duration of the abnormal operation of the SNMP Trap server with each time range to obtain the time range corresponding to the duration of the abnormal operation of the SNMP Trap server; Determine a corresponding time change strategy based on the correspondence between the time range and the time change strategy; Modify the interval time based on the determined time modification strategy to obtain a new interval time; When it is determined that the SNMP Trap server has an operational abnormality, a scheduled task is constructed based on the new interval time and the current time.
[0073] In a further embodiment of the above device, during the power-on and power-off operation of the BMC, the device further comprises a synchronization module for: Synchronize each alarm information in the cache to the Flash in the BMC; The successfully sent alarm information is deleted from the cache, and the successfully sent alarm information is deleted from the Flash simultaneously.
[0074] In a further device of the above device, before constructing the first scheduled task after the SNMP Trap server runs abnormally, the construction module is also used to: Obtain each alarm information within the first historical time period; Based on each alarm information in the first historical time period, the shortest interval duration of the same alarm information is obtained; If the alarm information appears for the first time within the first historical time period, the shortest interval duration is determined based on the generation time of the alarm information that appears for the first time and the current time when the SNMP Trap server is determined to be operating abnormally; The interval time required for constructing the first scheduled task after the SNMP Trap server runs abnormally is determined based on the shortest interval time of each alarm information.
[0075] In a further embodiment of the above device, the processing module is further used for: When the duration of abnormal operation of the SNMP Trap server reaches the alarm duration, a maintenance warning message of the SNMP Trap server is issued.
[0076] The device for processing BMC management alarm events provided by the present invention creates a scheduled task for BMC to detect the status of the SNMP Trap server after a server exception occurs, and sends the unsent alarm events to the SNMP Trap server when it is detected that the SNMP Trap server has returned to normal, so as to ensure that even when the SNMP Trap server is unavailable, important alarm information can be effectively processed and transmitted, thereby maintaining the stable operation of the system.
[0077] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4As shown, the electronic device may include: a processor 41 (processor), a communication interface 42 (Communications Interface), a memory 43 (memory) and a communication bus 44, wherein the processor 41, the communication interface 42, and the memory 43 communicate with each other through the communication bus 44. The processor 41 may call the logic instructions in the memory 43 to execute a method for processing BMC management alarm events, the method comprising: when it is determined that there is an abnormal operation of the SNMP Trap server, constructing a scheduled task; the scheduled task is used to detect the operating status of the SNMP Trap server; when it is determined that the scheduled task is triggered, detecting the operating status of the SNMP Trap server; when it is determined that the SNMP Trap server is operating normally, sending alarm information to the SNMP Trap server.
[0078] In addition, the logic instructions in the above-mentioned memory 43 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the 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, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0079] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the BMC management alarm event processing method provided by the above methods, the method including: when it is determined that there is an operation abnormality in the SNMP Trap server, constructing a scheduled task; the scheduled task is used to detect the operation status of the SNMP Trap server; when it is determined that the scheduled task is triggered, detecting the operation status of the SNMP Trap server; when it is determined that the SNMP Trap server is operating normally, sending an alarm message to the SNMP Trap server.
[0080] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the BMC management alarm event processing method provided by the above methods, the method comprising: when it is determined that there is an operation abnormality in the SNMP Trap server, constructing a scheduled task; the scheduled task is used to detect the operation status of the SNMP Trap server; when it is determined that the scheduled task is triggered, detecting the operation status of the SNMP Trap server; when it is determined that the SNMP Trap server is operating normally, sending an alarm message to the SNMP Trap server.
[0081] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0082] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0083] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for processing a BMC management alarm event, characterized in that: include: When the BMC determines that the SNMP Trap server is running abnormally, it creates a scheduled task. The scheduled task is used to detect the running status of the SNMP Trap server; When it is determined that the scheduled task is triggered, detecting the running status of the SNMP Trap server; When it is determined that the operation of the SNMP Trap server is normal, an alarm message is sent to the SNMP Trap server.
2. The method for processing BMC management alarm events according to claim 1, characterized in that: Before sending the alarm information to the SNMP Trap server, the method further includes: Obtain the important type and cache time of each alarm information in the cache; Divide the alarm information into different important types; Based on the generation time of the alarm information, the alarm information under each important type is sorted, and the first sending queue corresponding to each important type is determined; Based on the priority of the important types, sorting the first sending queues, and determining the second sending queue; Correspondingly, when it is determined that the SNMP Trap server operates normally, alarm information is sent to the SNMP Trap server based on the second sending queue.
3. The method for processing BMC management alarm events according to claim 1, characterized in that: The BMC determines that the SNMPTrap server has an operational abnormality, including: Acquire the alarm information at the current moment, and when it is determined that the number of failures of sending the alarm information at the current moment to the SNMP Trap server reaches the first number, determine that the SNMP Trap server has an operational abnormality; Accordingly, based on the interval time, the first scheduled task after the SNMP Trap server runs abnormally is constructed; When it is determined that the scheduled task is triggered, when it is determined that the number of failures of sending the detection signal to the SNMP Trap server reaches a second number, it is determined that the SNMP Trap server has an operational abnormality; Accordingly, based on the current time and the interval time, an nth scheduled task after the SNMP Trap server runs abnormally is constructed, wherein n is a positive number greater than 2.
4. The method for processing a BMC management alarm event according to claim 3, characterized in that: After constructing the first scheduled task, the method further includes: Obtain multiple duration ranges, each duration range is connected to each other; Acquire multiple time change strategies, wherein each time change strategy has a different adjustment change rate; the adjustment change rate represents the percentage increase between the value before adjustment and the value after adjustment; Based on the adjustment change rate of the time change policy in ascending order, a corresponding time change policy is configured for each duration range, and a corresponding relationship between the duration range and the time change policy is established; Record the confirmed time and current time of the abnormal operation of the SNMP Trap server corresponding to the first scheduled task; Calculate the duration of the abnormal operation of the SNMP Trap server according to the determination time of the abnormal operation of the SNMP Trap server and the current time; Matching the duration of the abnormal operation of the SNMP Trap server with each time range to obtain the time range corresponding to the duration of the abnormal operation of the SNMP Trap server; Determine a corresponding time change policy based on the correspondence between the time range and the time change policy; Modify the interval time based on the determined time modification strategy to obtain a new interval time; When it is determined that the SNMP Trap server has an operational abnormality, a scheduled task is constructed based on the new interval time and the current time.
5. The method for processing BMC management alarm events according to claim 1, characterized in that: During the BMC power-on and power-off operation, the method further includes: Synchronize each alarm information in the cache to the Flash in the BMC; The successfully sent alarm information is deleted from the cache, and the successfully sent alarm information is deleted from the Flash simultaneously.
6. The method for processing BMC management alarm events according to claim 1, characterized in that: Before constructing the first scheduled task after the SNMP Trap server runs abnormally, the method further includes: Obtain each alarm information within the first historical time period; Based on each alarm information in the first historical time period, obtain the shortest interval duration of the same alarm information; If the alarm information appears for the first time within the first historical time period, the shortest interval duration is determined based on the generation time of the alarm information that first appears and the current time when the SNMP Trap server is determined to be operating abnormally; The interval time required for constructing the first scheduled task after the SNMP Trap server runs abnormally is determined based on the shortest interval time of each alarm information.
7. The method for processing BMC management alarm events according to claim 4, characterized in that: The method further includes: when it is determined that the duration of the abnormal operation of the SNMP Trap server reaches the alarm duration, issuing maintenance warning information of the SNMP Trap server.
8. A device for processing BMC management alarm events, characterized in that: include: A construction module is used to construct a scheduled task when it is determined that the SNMP Trap server has an abnormal operation; The scheduled task is used to detect the running status of the SNMP Trap server; A detection module, used to detect the running status of the SNMP Trap server when determining that the scheduled task is triggered; The processing module is used to send alarm information to the SNMP Trap server when determining that the operation of the SNMP Trap server is normal.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for processing the BMC management alarm event according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for processing the BMC management alarm event as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Abnormality warning system and method for server
CN102571465A
Fault prediction method and device of high-performance computing cluster system
CN105159815A
Trap alarm recovery method and device based on SNMP
CN109324947A
Alarm information transmission method, device and system
CN109889373A
Network security alarm information display method and device, equipment and medium
CN114679342A
Cited By
Alarm event processing method, transmission system, processing device, medium and product
CN120342836A
Alarm event processing methods, transmission systems, processing devices, media and products
CN120342836B
