Alarm subscription method and system

By introducing the suspend/resume field in the RedFish management standard, the problem of remote servers missing BMC alarm logs after a power outage or network disconnection is solved, achieving health monitoring of user computer rooms and ensuring server reliability, and reducing maintenance costs. cost.

CN116192604BActive Publication Date: 2024-10-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310330635.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-18
Estimated Expiration
2043-03-30

AI Technical Summary

Technical Problem

According to the RedFish management standard, the remote server may miss the alarm log of the baseboard management controller (BMC) after a power outage or network disconnection, causing the customer to be unable to detect computer room faults in a timely manner and affecting the health monitoring of the server.

Method used

By introducing the suspend/resume field in the baseboard management controller, it enters the sleep state and caches alarm information when the preset return value is not received, and resends the alarm log after the remote server recovers, ensuring that customers can see comprehensive BMC monitoring information. .

Benefits of technology

It achieves effective monitoring of user computer rooms, ensures the reliability of server monitoring functions, reduces unnecessary maintenance costs, manpower and material resources, and has high replicability and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116192604B_ABST
    Figure CN116192604B_ABST
Patent Text Reader

Abstract

The alarm subscription method and system provided by the present invention belong to the field of computer technology. The method includes: sending a target alarm log to a remote server; when it is determined based on a preset field that a preset return value returned by the remote server based on the target alarm log is not received, entering a dormant state and caching the alarm information; when a wake-up command sent by the remote server is received, sending the alarm information to the remote server. The alarm subscription method and system provided by the present invention enable the client to see comprehensive BMC monitoring information on the remote server in scenarios such as power failure and network failure of the remote server, thereby ensuring the reliability of the server monitoring function, realizing effective monitoring of the health of the user's computer room, bringing great convenience to the client, and having strong reproducibility and extensibility, reducing unnecessary maintenance costs and manpower and material resources in the process of the client using the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to an alarm subscription method and system. Background Art

[0002] RedFish is a management standard based on HTTPs services. It has the characteristics of security, highly scalable management (Scalable), human readable data interface (Human readable data), and can be implemented based on existing hardware. It is gradually being sought after by more and more server manufacturers and customers.

[0003] Among them, the subscription alarm service in Redfish will miss the Baseboard Management Controller (BMC) alarm log after the customer's room is powered off or the network is restored. In the scenario where the customer's room is powered off or the network is restored, the remote server will miss the Baseboard Management Controller (BMC) alarm log. The BMC actually sends the alarm log to the remote server monitored by the client in the form of a network packet, but because the remote server is not ready due to power outage, or is in the network disconnection stage at this time, this network packet will not be successfully delivered to the remote server. The customer will not be able to find the fault alarm of the BMC in the power-off and network-off state by checking the remote server later.

[0004] Since remote servers have the risk of missing BMC alarm logs, health monitoring of servers in customer rooms poses a huge challenge. Summary of the invention

[0005] The alarm subscription method and system provided by the present invention are used to solve the defect in the prior art that the remote server has the risk of missing BMC alarm logs, which brings great challenges to the health monitoring of the server in the customer's computer room. The method and system enable the customer to see comprehensive BMC monitoring information on the remote server, ensure the reliability of the server monitoring function, and realize effective monitoring of the health of the user's computer room, which brings great convenience to the customer and has strong replicability and scalability, reducing unnecessary maintenance costs and manpower and material resources in the process of customers using the server.

[0006] The present invention provides an alarm subscription method, which is applied to a baseboard management controller and includes:

[0007] Send target alarm logs to the remote server;

[0008] If it is determined based on the preset field that the preset return value returned by the remote server based on the target alarm log is not received, entering a dormant state and caching alarm information; the alarm information includes the target alarm log and a dormant alarm log generated by the baseboard management controller in the dormant state;

[0009] When receiving the wake-up instruction sent by the remote server, the alarm information is sent to the remote server; the wake-up instruction is sent by the remote server when it is determined that the baseboard management controller is in a dormant state.

[0010] According to an alarm subscription method provided by the present invention, in the case of receiving a wake-up instruction sent by the remote server, sending the alarm information to the remote server includes:

[0011] Receiving a query instruction sent by the remote server;

[0012] Executing the query instruction to return the status information of the dormant state to the remote server;

[0013] Receiving the wake-up instruction sent by the remote server;

[0014] Execute the wake-up instruction to enter the startup state;

[0015] The warning information is sent to the remote server.

[0016] According to an alarm subscription method provided by the present invention, when it is determined based on a preset field that a preset return value returned by the remote server based on the target alarm log is not received, entering a dormant state and caching alarm information includes:

[0017] When it is determined based on the preset field that the preset return value is not received within the first preset time period, sending the target alarm log to the remote server at a preset frequency based on a retransmission mechanism;

[0018] When it is determined based on the preset field that the preset return value has not been received within the second preset time period, the system enters a dormant state and caches the alarm information in a cache area.

[0019] According to an alarm subscription method provided by the present invention, the sending of a target alarm log to a remote server includes:

[0020] Generate an alarm network packet from the target alarm log;

[0021] The alarm network packet is sent to the remote server.

[0022] According to an alarm subscription method provided by the present invention, before sending the target alarm log to the remote server, the method further includes:

[0023] adding the preset field when the remote server and baseboard management controller subscribe to warnings;

[0024] When an alarm is triggered, the target alarm log is generated based on the preset field.

[0025] According to an alarm subscription method provided by the present invention, after sending the alarm information to the remote server upon receiving the wake-up instruction sent by the remote server, the method further includes:

[0026] Upon receiving the preset field returned by the remote server based on the alarm information, the alarm information is deleted.

[0027] The present invention also provides an alarm subscription method, which is applied to any of the remote servers described above, comprising:

[0028] When determining that the baseboard management controller is in a dormant state, sending a wake-up instruction to the baseboard management controller;

[0029] Receive alarm information sent by the baseboard management controller; the alarm information includes a sleep alarm log generated by the baseboard management controller in a sleep state.

[0030] According to an alarm subscription method provided by the present invention, before sending a wake-up instruction to the baseboard management controller, the method further includes:

[0031] When the remote server resumes operation, sending a query instruction to the baseboard management controller;

[0032] receiving status information, the status information being generated by the baseboard management controller based on the query instruction;

[0033] According to the state information, it is determined that the baseboard management controller is in a dormant state.

[0034] According to an alarm subscription method provided by the present invention, after receiving the alarm information sent by the baseboard management controller, the method further includes:

[0035] Generate an alarm return value according to the alarm log;

[0036] The alarm return value is sent to the baseboard management controller.

[0037] The present invention also provides an alarm subscription system, comprising: a baseboard management controller and a remote server;

[0038] The baseboard management controller is used to execute any of the above-mentioned alarm subscription methods;

[0039] The remote server is provided with a processor, and also includes a memory and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, any of the above-mentioned alarm subscription methods is executed.

[0040] The present invention also provides a baseboard management controller, comprising:

[0041] The first sending module is used to send the target alarm log to the remote server;

[0042] A determination module, configured to enter a dormant state and cache alarm information when it is determined based on a preset field that a preset return value returned by the remote server based on the target alarm log is not received; the alarm information includes the target alarm log and a dormant alarm log generated by the baseboard management controller in the dormant state;

[0043] The first receiving module is used to send the alarm information to the remote server when receiving a wake-up instruction sent by the remote server; the wake-up instruction is sent by the remote server when it is determined that the baseboard management controller is in a dormant state.

[0044] The present invention also provides a remote server, comprising:

[0045] A second sending module is used to send a wake-up instruction to the baseboard management controller when it is determined that the baseboard management controller is in a dormant state;

[0046] The second receiving module is used to receive the alarm information sent by the baseboard management controller; the alarm information includes a sleep alarm log generated by the baseboard management controller in a sleep state.

[0047] 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, any of the above-mentioned alarm subscription methods is implemented.

[0048] The present invention also 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 alarm subscription method as described above is implemented.

[0049] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the alarm subscription method described above is implemented.

[0050] The alarm subscription method and system provided by the present invention, in the scenario of power failure and network disconnection of the remote server, BCM determines the status of the remote server by sending alarm logs, caches the alarm information and resends it after the remote server is restored to normal, so that the customer can see comprehensive BMC monitoring information on the remote server, thereby ensuring the reliability of the server monitoring function, realizing effective monitoring of the health of the user's computer room, bringing great convenience to the customer, and having strong replicability and scalability, reducing unnecessary maintenance costs and manpower and material resources in the process of customers using the server. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] 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.

[0052] Figure 1 This is one of the flowcharts of the alarm subscription method provided by the present invention;

[0053] Figure 2 It is a schematic diagram of a scenario of interaction between a baseboard management controller and a remote server provided by the present invention;

[0054] Figure 3 This is the second flow chart of the alarm subscription method provided by the present invention;

[0055] Figure 4 It is a structural diagram of the alarm subscription system provided by the present invention;

[0056] Figure 5 It is a structural schematic diagram of a baseboard management controller provided by the present invention;

[0057] Figure 6 It is a structural schematic diagram of the remote server provided by the present invention;

[0058] Figure 7 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0059] 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.

[0060] In the description of the present invention, it is to be understood that the terms "first", "second", etc. are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", etc. may explicitly or implicitly include one or more of the feature. In the description of the present invention, unless otherwise specified, "plurality" means two or more.

[0061] Combine the following Figure 1-Figure 7 The alarm subscription method and system provided by the embodiments of the present invention are described.

[0062] Figure 1 It is one of the flowcharts of the alarm subscription method provided by the present invention, such as Figure 1 As shown, applied to BMC, including but not limited to the following steps:

[0063] First, in step S11, a target alarm log is sent to a remote server.

[0064] The alarm subscription method provided by the present invention is applicable to multiple platforms, for example, to an AMD platform or an Intel platform.

[0065] Among them, the remote server (remote sever) can be in the computer room where the computer room server is located, or it can be on the customer side, which is convenient for the customer to monitor and maintain the computer room server.

[0066] Figure 2 is a schematic diagram of a scenario of interaction between a baseboard management controller and a remote server provided by the present invention, such as Figure 2 As shown, including:

[0067] A BMC is set on the server in the computer room. Both the remote server and the server in the computer room are connected to the Internet, and network communication can be achieved between the remote server and the BMC.

[0068] The remote server interacts with the BMC by running upper-layer management software.

[0069] The remote server and BMC add the suspend / resume field when subscribing to alarms, so that the remote server and BMC can interact with each other. The remote server can also set the suspend / resume field to send commands to the BMC. The BMC can receive the return value returned by the remote server through this field, and determine the status of the remote server through the return value, and then determine whether the alarm log needs to be cached.

[0070] Optionally, before sending the target alarm log to the remote server, the method further includes:

[0071] adding the preset field when the remote server and baseboard management controller subscribe to warnings;

[0072] When an alarm is triggered, the target alarm log is generated based on the preset field.

[0073] The target alarm log may be the first alarm log generated by the BMC after the remote server is powered off, disconnected from the network, or fails.

[0074] The remote server and BMC add the suspend / resume field when subscribing to alarms. During the alarm subscription process, the user sets the fields in the redfish specification such as the server IP of the remote server to the BMC. Once the BMC triggers an alarm, it will automatically send the alarm log to the remote server in the form of a network packet.

[0075] The purpose of adding the suspend / resume field is:

[0076] (1) BMC interacts with the remote server;

[0077] (2) The remote server can send a command to the BMC through the network packet under the redfish framework. The remote server and the BMC have agreed in advance on the existence of the suspend / resume field. Therefore, both servers process and set it in a format supported by both parties. The BMC can also control itself through the suspend / resume field.

[0078] (3) BMC can limit alarms and control whether each alarm log is cached;

[0079] (4) After the remote server resumes power, the BMC checks whether the remote server responds and is in normal state by sending packets, and then determines whether the BMC state is suspend or resume.

[0080] The redfish protocol followed by both the remote server and the BMC can be simply understood as the attribute fields in the redfish of the remote server and the BMC system must be consistent. Therefore, both parties need to add a resume / suspend field as an attribute field, and both parties can set and obtain the BMC redfish attributes.

[0081] When the BMC triggers an alarm, an alarm log is generated according to the format of the suspend / resume field.

[0082] According to the alarm subscription method provided by the present invention, by forming an alarm log in a fixed format, the remote server can normally receive and read it.

[0083] Optionally, the sending the target alarm log to the remote server includes:

[0084] Generate an alarm network packet from the target alarm log;

[0085] The alarm network packet is sent to the remote server.

[0086] In the remote server system, the upper-level management software is running to manage the server in the entire computer room. First, when the server in the computer room is deployed, the IP address of the remote server will be set as the destination address. Both parties follow the redfish protocol. When the BMC generates an alarm, it will automatically package the alarm log into an alarm network packet and send it to the remote server at the destination address through the network.

[0087] According to the alarm subscription method provided by the present invention, the alarm log generated by the BMC is packaged into a network packet and sent to the remote server, thereby providing a basis for the BMC to identify the status of the remote server.

[0088] Further, in step S12, when it is determined based on a preset field that a preset return value returned by the remote server based on the target alarm log has not been received, the system enters a sleep state and caches alarm information; the alarm information includes the target alarm log and a sleep alarm log generated by the baseboard management controller in the sleep state.

[0089] The preset return value is used to indicate that the BMC alarm log is sent successfully. The preset return value can be customized, for example, the preset return value can be set to 200OK; the preset return value not received can be that no return value is received, or an error return value is received, for example, 404 or 401.

[0090] When the customer's remote server is disconnected from the Internet or powered off, the BMC sends the target alarm log to the remote server multiple times but does not receive the preset return value, so it keeps prompting failure. The BMC then sets the property to suspend and enters the sleep state, and stores the alarm logs generated during the sleep period in the cache area. The BMC's suspend / resume state determines whether to cache the alarm logs generated by the failure in the local BMC.

[0091] Optionally, the step of entering a dormant state and caching alarm information when it is determined based on a preset field that a preset return value returned by the remote server based on the target alarm log is not received includes:

[0092] When it is determined based on the preset field that the preset return value is not received within the first preset time period, sending the target alarm log to the remote server at a preset frequency based on a retransmission mechanism;

[0093] When it is determined based on the preset field that the preset return value has not been received within the second preset time period, the system enters a dormant state and caches the alarm information in a cache area.

[0094] The first preset duration, the second preset duration and the preset frequency can be flexibly selected according to actual needs. For example, the first preset duration can be 1 second, the second preset duration can be 10 seconds, and the preset frequency is to send once every 2 seconds.

[0095] When the BMC sends the alarm log after triggering the alarm to the server, if no return value is received within 1 second, based on the Transmission Control Protocol (TCP) protocol retransmission mechanism, the BMC sends the target alarm log to the remote server every 2 seconds for a total of 3 attempts. If the expected return value is not received within 10 seconds, the BMC automatically enters the suspended state. At this stage, all the alarm logs triggered by the BMC will be cached in a specific buffer created by the BMC.

[0096] Since the BMC system cannot record a large number of logs endlessly, this will cause the BMC system to crash. To ensure the stability of the BMC system, the buffer is expected to store 1,000 alarm logs and start a timer. Once it exceeds 24 hours, the BMC will start to clear the alarm logs from the first log in the cache.

[0097] Furthermore, in step S13, upon receiving a wake-up instruction sent by the remote server, the alarm information is sent to the remote server; the wake-up instruction is sent by the remote server when it is determined that the baseboard management controller is in a dormant state.

[0098] When the customer's remote server is restored, the BMC will receive the resume message sent by the remote server as a wake-up command to convert the BMC's suspend state to the resume state. After executing the wake-up command and being awakened, the BMC will send the alarm logs in the cache area to the remote server one by one, and after receiving the preset return value, it will delete the corresponding alarm logs in the BMC's cache area.

[0099] Optionally, in the case of receiving a wake-up instruction sent by the remote server, sending the alarm information to the remote server includes:

[0100] Receiving a query instruction sent by the remote server;

[0101] Executing the query instruction to return the status information of the dormant state to the remote server;

[0102] Receiving the wake-up instruction sent by the remote server;

[0103] Execute the wake-up instruction to enter the startup state;

[0104] The warning information is sent to the remote server.

[0105] When the customer's remote server is restored, the remote server will first send a cmd network packet as a query instruction (curl command) to the BMC to check the current field attributes of the BMC to determine the suspend / resume status of the BMC. If it is suspend, it will send another network packet setting the resume message as a wake-up instruction to modify the BMC's suspend attribute to resume, thereby waking up the BMC and putting the BMC into the startup state.

[0106] During the BMC wake-up process, there will be a thread inside the BMC that keeps polling the resume attribute in redfish. This attribute is saved in the BMC configuration file. That is, when the remote server is disconnected from the network, the BMC detects the abnormality and automatically sets this attribute to suspend. When the remote server is restored, it will read this attribute of the BMC and set it to resume. The field attribute in the BMC configuration file will become resume. The BMC is always in the process of polling this attribute. When it finds that it has changed to resume, it will package each alarm log in the cache into a network packet and send it to the remote server one by one to ensure that no BMC alarm log is missed.

[0107] According to the alarm subscription method provided by the present invention, the remote server reads the status of the BMC and then wakes up the BMC to receive the alarm log generated by the BMC between the time period after the remote server fails and before the BMC wakes up, thereby avoiding missed calls.

[0108] Optionally, after sending the alarm information to the remote server, the method further includes:

[0109] Upon receiving the preset field returned by the remote server based on the alarm information, the alarm information is deleted.

[0110] When the BMC is awakened, it will send the alarm logs in the cache to the remote server one by one. After receiving the expected return value, the alarm logs in the local cache will be deleted, and the newly added alarms will no longer be cached and sent directly to the remote server. After all the cached logs are sent, the BMC will close the cache.

[0111] The alarm subscription method provided by the present invention, in the scenario of power outage and network disconnection of the remote server, BCM determines the status of the remote server by sending alarm logs, caches the alarm information and resends it after the remote server is restored to normal, so that the customer can see comprehensive BMC monitoring information on the remote server, thereby ensuring the reliability of the server monitoring function, realizing effective monitoring of the health of the user's computer room, bringing great convenience to the customer, and having strong replicability and scalability, reducing unnecessary maintenance costs and manpower and material resources in the process of customers using the server.

[0112] Figure 3 This is a second flow chart of the alarm subscription method provided by the present invention, which is applied to a remote server, such as Figure 3 As shown, including:

[0113] First, in step S21, when it is determined that the baseboard management controller is in a dormant state, a wake-up instruction is sent to the baseboard management controller.

[0114] After the remote server recovers power and network, it can run normally and send a resume message to the BMC in the suspended state as a wake-up command.

[0115] Optionally, before sending the wake-up instruction to the baseboard management controller, the method further includes:

[0116] When the remote server resumes operation, sending a query instruction to the baseboard management controller;

[0117] receiving status information, the status information being generated by the baseboard management controller based on the query instruction;

[0118] According to the state information, it is determined that the baseboard management controller is in a dormant state.

[0119] When the customer's remote server is restored, the remote server will first send a cmd network packet as a query instruction (curl command) to the BMC to view the current field attributes of the BMC to determine the suspend / resume state of the BMC, for example, the BMC is in the suspend dormant state.

[0120] Furthermore, in step S22, alarm information sent by the baseboard management controller is received; the alarm information includes a sleep alarm log generated by the baseboard management controller in a sleep state.

[0121] After the BMC is awakened, it will send alarm logs to the remote server one by one. The alarm information includes not only the sleep alarm logs generated by the BMC in the sleep state, but also the alarm logs generated by the BMC before the BMC enters the sleep state after the remote server loses power, disconnects from the network, or fails.

[0122] Optionally, after receiving the alarm information sent by the baseboard management controller, the method further includes:

[0123] Generate an alarm return value according to the alarm information;

[0124] The alarm return value is sent to the baseboard management controller.

[0125] After receiving the alarm information sent by the BMC, an alarm return value is generated according to the receiving status of the alarm information, and the alarm return value is sent to the BMC.

[0126] The alarm return value can be a preset return value, which is used to indicate that the BMC alarm log is sent successfully. The preset return value can be customized, for example, the preset return value can be set to 200OK; BMC does not receive the preset return value, which means that no return value is received, or an incorrect alarm return value is received, for example, 404 or 401, which indicates that the receiving status is abnormal.

[0127] The alarm subscription system provided by the present invention is described below. The alarm subscription system described below and the alarm subscription method described above can be referred to each other.

[0128] Figure 4 It is a structural diagram of the alarm subscription system provided by the present invention. Figure 4 As shown, the alarm subscription system 400 includes:

[0129] Baseboard management controller 410 and remote server 420;

[0130] The baseboard management controller 410 is used to execute any of the above embodiments of the alarm subscription method;

[0131] The remote server 420 is provided with a processor, and also includes a memory and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, an embodiment of any of the above-mentioned alarm subscription methods is executed.

[0132] The alarm subscription system provided by the present invention determines the status of the remote server by sending alarm logs in scenarios such as power outage and network disconnection of the remote server, caches the alarm information and resends it after the remote server is restored to normal, so that the customer can see comprehensive BMC monitoring information on the remote server, thereby ensuring the reliability of the server monitoring function, realizing effective monitoring of the health of the user's computer room, bringing great convenience to the customer, and having strong replicability and scalability, reducing unnecessary maintenance costs and manpower and material resources in the process of customers using the server.

[0133] Figure 5 is a schematic diagram of the structure of the baseboard management controller provided by the present invention, such as Figure 5 As shown, including:

[0134] The first sending module 411 is used to send the target alarm log to the remote server;

[0135] The determination module 412 is used to enter a dormant state and cache alarm information when it is determined based on a preset field that a preset return value returned by the remote server based on the target alarm log is not received; the alarm information includes the target alarm log and a dormant alarm log generated by the baseboard management controller in the dormant state;

[0136] The first receiving module 413 is used to send the alarm information to the remote server when receiving a wake-up instruction sent by the remote server; the wake-up instruction is sent by the remote server when it is determined that the baseboard management controller is in a dormant state.

[0137] During the operation of the baseboard management controller, the first sending module 411 sends a target alarm log to a remote server; the determination module 412 enters a sleep state and caches alarm information when it determines, based on a preset field, that a preset return value returned by the remote server based on the target alarm log has not been received; the alarm information includes the target alarm log and a sleep alarm log generated by the baseboard management controller in the sleep state; the first receiving module 413 sends the alarm information to the remote server when it receives a wake-up instruction sent by the remote server; the wake-up instruction is issued by the remote server when it determines that the baseboard management controller is in a sleep state.

[0138] The baseboard management controller provided by the present invention determines the status of the remote server by sending an alarm log in the scenario of power outage and network disconnection of the remote server, caches the alarm information and resends it after the remote server is restored to normal, so that the customer can see comprehensive BMC monitoring information on the remote server, thereby ensuring the reliability of the server monitoring function, realizing effective monitoring of the health of the user's computer room, bringing great convenience to the customer, and having strong replicability and scalability, reducing unnecessary maintenance costs and manpower and material resources in the process of customers using the server.

[0139] Figure 6 It is a schematic diagram of the structure of the remote server provided by the present invention. Figure 6 As shown, including:

[0140] The second sending module 421 is used to send a wake-up instruction to the baseboard management controller when it is determined that the baseboard management controller is in a dormant state;

[0141] The second receiving module 422 is used to receive the alarm information sent by the baseboard management controller; the alarm information includes a sleep alarm log generated by the baseboard management controller in a sleep state.

[0142] During the operation of the remote server, the second sending module 421 sends a wake-up command to the baseboard management controller when it is determined that the baseboard management controller is in a sleep state; the second receiving module 422 receives the alarm information sent by the baseboard management controller; the alarm information includes a sleep alarm log generated by the baseboard management controller in a sleep state.

[0143] The remote server provided by the present invention, in the scenario of power outage and network disconnection of the remote server, the BCM determines the status of the remote server by sending an alarm log, caches the alarm information and resends it after the remote server is restored to normal, so that the customer can see comprehensive BMC monitoring information on the remote server, thereby ensuring the reliability of the server monitoring function, realizing effective monitoring of the health of the user's computer room, bringing great convenience to the customer, and having strong replicability and scalability, reducing unnecessary maintenance costs and manpower and material resources in the process of customers using the server.

[0144] Figure 7 is a schematic diagram of the structure of the electronic device provided by the present invention, such as Figure 7As shown, the electronic device may include: a processor (processor) 710, a communication interface (Communications Interface) 720, a memory (memory) 730 and a communication bus 740, wherein the processor 710, the communication interface 720, and the memory 730 communicate with each other through the communication bus 740, and the processor 710 is used to execute an executable module stored in the memory 730, such as a computer program.

[0145] The memory 730 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 720 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0146] The communication bus 740 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0147] Among them, the memory 730 is used to store programs, and the processor 40 executes the program after receiving the execution instruction. The method executed by the device for flow process definition disclosed in any embodiment of the above-mentioned embodiment of the present invention can be applied to the processor 710, or implemented by the processor 710.

[0148] The processor 710 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 710. The above processor 710 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 730, and the processor 710 reads the information in the memory 730, and combines with its hardware to execute the alarm subscription method, which includes: sending a target alarm log to a remote server; when it is determined based on a preset field that a preset return value returned by the remote server based on the target alarm log is not received, entering a sleep state and caching alarm information; the alarm information includes the target alarm log and the sleep alarm log generated by the baseboard management controller in the sleep state; when a wake-up instruction sent by the remote server is received, sending the alarm information to the remote server; the wake-up instruction is issued by the remote server when it is determined that the baseboard management controller is in a sleep state; or, when it is determined that the baseboard management controller is in a sleep state, sending a wake-up instruction to the baseboard management controller; receiving alarm information sent by the baseboard management controller; the alarm information includes the sleep alarm log generated by the baseboard management controller in the sleep state.

[0149] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described device and electronic device can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0150] The alarm subscription device and electronic device provided in the embodiments of the present invention have the same technical features as the alarm subscription method provided in the above embodiments, and therefore can also solve the same technical problems and achieve the same technical effects.

[0151] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the method and computer program product according to multiple embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and a part of the above-mentioned module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0152] The computer program product for the alarm subscription method provided in the embodiment of the present invention includes a computer-readable storage medium storing a non-volatile program code executable by a processor. The instructions included in the above program code can be used to execute the above method in the previous method embodiment. The specific implementation can be referred to the method embodiment, which will not be repeated here.

[0153] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0154] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0155] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0156] In addition, the logic instructions in the above-mentioned memory 730 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 is essentially 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 to enable 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 (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0157] On the other hand, the present invention also provides a computer program product, which includes a computer program, which 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 alarm subscription method provided by the above methods, which method includes: sending a target alarm log to a remote server; when it is determined based on a preset field that a preset return value returned by the remote server based on the target alarm log is not received, entering a sleep state and caching alarm information; the alarm information includes the target alarm log and a sleep alarm log generated by the baseboard management controller in the sleep state; when a wake-up instruction sent by the remote server is received, sending the alarm information to the remote server; the wake-up instruction is issued by the remote server when it is determined that the baseboard management controller is in a sleep state; or, when it is determined that the baseboard management controller is in a sleep state, sending a wake-up instruction to the baseboard management controller; receiving alarm information sent by the baseboard management controller; the alarm information includes the sleep alarm log generated by the baseboard management controller in the sleep state.

[0158] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the alarm subscription method provided by the above methods, the method comprising:

[0159] Sending a target alarm log to a remote server; entering a sleep state and caching alarm information when it is determined based on a preset field that a preset return value returned by the remote server based on the target alarm log is not received; the alarm information includes the target alarm log and the sleep alarm log generated by the baseboard management controller in the sleep state; sending the alarm information to the remote server when a wake-up instruction is received from the remote server; the wake-up instruction is issued by the remote server when it is determined that the baseboard management controller is in a sleep state; or, when it is determined that the baseboard management controller is in a sleep state, sending a wake-up instruction to the baseboard management controller; receiving the alarm information sent by the baseboard management controller; the alarm information includes the sleep alarm log generated by the baseboard management controller in the sleep state.

[0160] 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.

[0161] 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.

[0162] 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 the technical solutions of the present invention, and the protection scope of the present invention is not limited thereto; although the present invention has been described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the aforementioned embodiments within the technical scope disclosed by the present invention, or make equivalent replacements for some of the technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An alarm subscription method, It is characterized in that Applicable to baseboard management controllers, including: Send target alarm logs to the remote server; If it is determined based on the preset field that the preset return value returned by the remote server based on the target alarm log is not received, entering a dormant state and caching alarm information; the alarm information includes the target alarm log and a dormant alarm log generated by the baseboard management controller in the dormant state; Upon receiving a wake-up instruction sent by the remote server, sending the alarm information to the remote server; the wake-up instruction is sent by the remote server when determining that the baseboard management controller is in a dormant state, wherein upon receiving the wake-up instruction sent by the remote server, sending the alarm information to the remote server includes: Receiving a query instruction sent by the remote server; Executing the query instruction to return the status information of the dormant state to the remote server; Receiving the wake-up instruction sent by the remote server; Execute the wake-up instruction to enter the startup state; Sending the warning information to the remote server; The step of entering a dormant state and caching alarm information when it is determined based on the preset field that a preset return value returned by the remote server based on the target alarm log is not received includes: When it is determined based on the preset field that the preset return value is not received within the first preset time period, sending the target alarm log to the remote server at a preset frequency based on a retransmission mechanism; When it is determined based on the preset field that the preset return value has not been received within the second preset time period, the system enters a dormant state and caches the alarm information in a cache area.

2. The alarm subscription method according to claim 1, It is characterized in that The sending of the target alarm log to the remote server includes: Generate an alarm network packet from the target alarm log; The alarm network packet is sent to the remote server.

3. The alarm subscription method according to claim 2, It is characterized in that Before sending the target alarm log to the remote server, the method further includes: adding the preset field when the remote server and baseboard management controller subscribe to warnings; When an alarm is triggered, the target alarm log is generated based on the preset field.

4. The alarm subscription method according to claim 2, It is characterized in that In the case where the wake-up instruction sent by the remote server is received, after sending the alarm information to the remote server, the method further includes: Upon receiving the preset field returned by the remote server based on the alarm information, the alarm information is deleted.

5. An alarm subscription method, It is characterized in that The remote server according to any one of claims 1 to 4 comprises: When determining that the baseboard management controller is in a dormant state, sending a wake-up instruction to the baseboard management controller; Receive alarm information sent by the baseboard management controller; the alarm information includes a sleep alarm log generated by the baseboard management controller in a sleep state.

6. The alarm subscription method according to claim 5, It is characterized in that Before sending the wake-up instruction to the baseboard management controller, the method further includes: When the remote server resumes operation, sending a query instruction to the baseboard management controller; receiving status information, the status information being generated by the baseboard management controller based on the query instruction; According to the state information, it is determined that the baseboard management controller is in a dormant state.

7. The alarm subscription method according to claim 5, It is characterized in that After receiving the alarm information sent by the baseboard management controller, the method further includes: Generate an alarm return value according to the alarm log; The alarm return value is sent to the baseboard management controller.

8. An alarm subscription system, It is characterized in that include: Baseboard management controller and remote server; The baseboard management controller is used to execute the alarm subscription method according to any one of claims 1 to 4; The remote server is provided with a processor, and also includes a memory and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the alarm subscription method as described in any one of claims 5-7 is executed.

9. A baseboard management controller, It is characterized in that include: The first sending module is used to send the target alarm log to the remote server; A determination module, configured to enter a dormant state and cache alarm information when it is determined based on a preset field that a preset return value returned by the remote server based on the target alarm log is not received; the alarm information includes the target alarm log and a dormant alarm log generated by the baseboard management controller in the dormant state; A first receiving module is used to send the alarm information to the remote server when receiving the wake-up instruction sent by the remote server; The wake-up instruction is sent by the remote server when it is determined that the baseboard management controller is in a dormant state, wherein, when receiving the wake-up instruction sent by the remote server, sending the alarm information to the remote server includes: Receiving a query instruction sent by the remote server; Executing the query instruction to return the status information of the dormant state to the remote server; Receiving the wake-up instruction sent by the remote server; Execute the wake-up instruction to enter the startup state; Sending the warning information to the remote server; The step of entering a dormant state and caching alarm information when it is determined based on the preset field that a preset return value returned by the remote server based on the target alarm log is not received includes: When it is determined based on the preset field that the preset return value is not received within the first preset time period, sending the target alarm log to the remote server at a preset frequency based on a retransmission mechanism; When it is determined based on the preset field that the preset return value has not been received within the second preset time period, the system enters a dormant state and caches the alarm information in a cache area.

10. A remote server, It is characterized in that Used to cooperate with the baseboard management controller of claim 9, comprising: A second sending module is used to send a wake-up instruction to the baseboard management controller when it is determined that the baseboard management controller is in a dormant state; The second receiving module is used to receive the alarm information sent by the baseboard management controller; the alarm information includes a sleep alarm log generated by the baseboard management controller in a sleep state.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the alarm subscription method as described in any one of claims 1 to 7 is implemented.

12. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the alarm subscription method according to any one of claims 1 to 7 is implemented.

13. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the alarm subscription method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Managing network wake-up commands

    CN106598802A

  • BMC monitoring log processing method and device, equipment and medium

    CN111427743A

  • Network equipment alarm processing method and device, equipment and storage medium

    CN114513398A

  • Network wakeup management method and device, electronic equipment and storage medium

    CN114978883A

  • Systems, methods, and media for remote wake-up and management of systems in a network

    US20050160162A1