Server state monitoring method and device, electronic equipment and storage medium
By sending the heartbeat signal of the BMC controller to the CPLD controller in the server to determine and process its operating status, the problem of monitoring and resetting when the BMC controller is abnormal is solved, real-time monitoring and self-recovery are realized, and costs are reduced and improved. achieved stability.
Patent Information
- Application Number
- CN202310184901.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2024-08-30
AI Technical Summary
In the existing technology, when the BMC controller is abnormal, subsequent monitoring and reset operations cannot be performed through remote network methods, or redundant devices need to be added to monitor its operating status, resulting in high cost and complex structure.
After the server is powered on and started, the heartbeat signal output by the BMC controller is sent to the CPLD controller, the operating status of the BMC controller is judged based on the heartbeat signal, and the power switch and reset restart operations are performed in case of failure to realize the control of the BMC controller. Real-time monitoring and self-recovery.
It achieves real-time monitoring of the BMC controller's operating status and fault self-recovery without adding additional detection devices, reducing costs and simplifying the structure, and improving the stability of the server.
Smart Images

Figure CN118567934A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic equipment, and in particular to a server status monitoring method, device, electronic equipment and storage medium. Background Art
[0002] As servers are increasingly used, their performance is constantly upgraded. As the main management chip in the server system, the monitoring and control tasks performed by BMC (Baseboard Management Controller) are becoming more and more complex. If an abnormality occurs in the BMC controller during use, it will not only affect the monitoring of the server system, but also cause the server to fail to work properly. For example, when some processes or the entire program of the BMC controller crash, such as the fan monitoring process in the BMC crashes, the CPU (central processing unit) reaches a high temperature and the cooling strategy cannot be started, causing the server to crash due to overheating. Therefore, the server system needs to monitor the operating status of the BMC in real time. When an abnormality is detected in the BMC, an abnormal log is recorded, and the BMC is reset so that the BMC resumes working, thereby improving the stability of the server.
[0003] In the related art, the server monitors the running status of the BMC by accessing the status register such as IPMI (Intelligent Platform Management Interface) through the remote network. However, this method is feasible based on the process of the BMC remote network. If the remote monitoring process itself or the entire BMC program crashes, the BMC running status cannot be subsequently monitored and reset through the remote network. Alternatively, redundant devices such as BMC are added to the server motherboard to monitor the running status of the BMC of the server motherboard. However, the cost of using redundant devices to monitor the BMC is high. Summary of the invention
[0004] Based on this, it is necessary to provide a server status monitoring method, device, electronic device and storage medium to address the above technical problems.
[0005] The embodiment of the present application provides a server status monitoring method, wherein the server includes a BMC controller and a CPLD controller, and the method includes:
[0006] After the server is powered on, the heartbeat signal output by the BMC controller is sent to the CPLD controller;
[0007] The operating state of the BMC controller is determined according to the heartbeat signal.
[0008] In some embodiments, the BMC controller is configured with a system layer, the heartbeat signal includes a system heartbeat signal, and determining the operating state of the BMC controller according to the heartbeat signal includes:
[0009] Determining a first output frequency of the system heartbeat signal within a first sampling time period;
[0010] If the first output frequency matches the first preset frequency, determining that the operating state of the system layer is operating normally;
[0011] If the first output frequency does not match the first preset frequency, it is determined that the operating state of the system layer is an operating failure.
[0012] In some embodiments, the BMC controller is provided with a first FLASH and a second FLASH, and the method further comprises:
[0013] After the server is powered on, controlling the first FLASH to start according to the chip selection state recorded by the CPLD controller;
[0014] After determining that the operating state of the system layer is an operating failure, the CPLD controller controls each power supply group in the BMC controller to be turned off in sequence according to the recorded power supply timing sequence;
[0015] The chip selection state is controlled to switch from the first FLASH to the second FLASH, and the BMC controller is controlled to power on and restart.
[0016] In some embodiments, the BMC controller is configured with a service layer, the service layer is provided with a plurality of applications, the heartbeat signal includes a service heartbeat signal corresponding to each application, and determining the operating state of the BMC controller according to the heartbeat signal includes:
[0017] Determine a second output frequency of the service heartbeat signal within a second sampling time period;
[0018] Obtaining a second preset frequency corresponding to the current application;
[0019] If the second output frequency matches the second preset frequency, determining that the running state of the current application is running normally;
[0020] If the second output frequency does not match the second preset frequency, it is determined that the running state of the current application is an running failure.
[0021] In some embodiments, the server further comprises an EEPROM memory, and the method further comprises:
[0022] When it is determined that the running state of the current application is a running failure, the CPLD controller records the process number of the current application and writes the process number into a BMC log storage area of the EEPROM memory;
[0023] Control the BMC controller to perform a reset and restart operation.
[0024] In some embodiments, the server further includes an EEPROM memory, the BMC controller includes an operation status register, and the method further includes:
[0025] At every preset query time interval, the CPLD controller sends a status query request to the BMC controller;
[0026] In response to the status query request, the BMC controller feeds back the status information in the operation status register to the CPLD controller;
[0027] Determine whether there is abnormal item information in the status information;
[0028] If so, the CPLD controller writes the abnormal item information into the EEPROM memory and feeds back an abnormal alarm signal to the BMC controller.
[0029] In some embodiments, the method further comprises:
[0030] After the server is powered on, the heartbeat signal output by the CPLD controller is sent to the BMC controller;
[0031] The operating state of the CPLD controller is determined according to the heartbeat signal.
[0032] The present application provides a server status monitoring device, including:
[0033] A sending module, used for sending the heartbeat signal output by the BMC controller to the CPLD controller after the server is powered on;
[0034] The determination module is used to determine the operating state of the BMC controller according to the heartbeat signal.
[0035] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method provided in any embodiment of the present application are implemented.
[0036] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method provided in any embodiment of the present application are implemented.
[0037] The server status monitoring method, device, electronic device and storage medium provided in the embodiments of the present application send the heartbeat signal output by the BMC controller to the CPLD controller, so that the CPLD controller determines whether the heartbeat signal of the BMC controller is normal, thereby determining the operating status of the BMC controller. In this way, real-time monitoring of the operating status of the BMC controller can be achieved. At the same time, the implementation of this method does not require the addition of additional detection devices, thus saving costs, and has a simple structure and is easy to implement.
[0038] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0040] Figure 1 A schematic diagram of a flow chart of a server status monitoring method in one embodiment;
[0041] Figure 2 A schematic diagram of an existing server status monitoring method;
[0042] Figure 3 A schematic diagram of an existing server status monitoring method;
[0043] Figure 4 A schematic diagram of a server status monitoring method control in one embodiment;
[0044] Figure 5 A schematic diagram of a flow chart of a server status monitoring method in another embodiment;
[0045] Figure 6 A structural block diagram of a server status monitoring device in one embodiment;
[0046] Figure 7 FIG. 4 is a structural block diagram of an electronic device in an embodiment.
[0047] Reference numerals:
[0048] Server status monitoring device 10; electronic device 20;
[0049] Sending module 1; determining module 2; memory 3; processor 4. DETAILED DESCRIPTION
[0050] Embodiments of the present invention are described in detail below. The embodiments described with reference to the accompanying drawings are exemplary. Embodiments of the present invention are described in detail below.
[0051] In one embodiment, Figure 1 As shown, a server status monitoring method is provided, the server includes a BMC controller and a CPLD controller, and in this embodiment, the method includes at least the following steps S1-S2.
[0052] Step S1, after the server is powered on, the heartbeat signal output by the BMC controller is sent to the CPLD controller.
[0053] Specifically, after the server is powered on, the CPLD controller, as the server system power management device, resets all power supplies, so that the BMC controller is in a zero state, and initializes the BMC detection state. When the Linux system running on the BMC controller is started, the BMC controller generates a heartbeat signal with high and low levels constantly jumping and sends it to the CPLD controller (Complex Programmable Logic Device) through GPIO (General Purpose Input Output).
[0054] In addition, the BMC controller is a dedicated microcontroller embedded in a computer such as a server motherboard, which is responsible for monitoring the temperature, fan, power supply of the computer motherboard and recording various hardware information and logs to ensure that the system is in a healthy state. BMC is an independent system, which does not rely on other hardware on the system such as CPU or memory, BIOS (Basic Input Output System) and OS (operating system), etc., but BMC can interact with BIOS and OS to better manage the platform, and the system management software of OS can work with BMC to achieve better management effect. Among them, BIOS is a program solidified into a chip of the computer motherboard, which stores the most important basic input and output programs of the computer, the self-test program after power-on and the system self-starting program. Its main function is to provide the computer with the lowest and most direct hardware settings and control.
[0055] In addition, CPLD is a more complex logic element than PLD. CPLD is a digital logic device that users can construct logic functions according to their needs. In the server field, CPLD is the logic master chip of the server motherboard, responsible for server system power timing management, low-speed protocol distribution, reset management and debugging.
[0056] Step S2: determining the operating state of the BMC controller according to the heartbeat signal.
[0057] Specifically, Figure 2 As shown, in the prior art, the server monitors the running status of the BMC controller by accessing the status register (such as IPMI) through a remote network. However, in this method, if the remote monitoring process or the entire program of the BMC controller crashes, the BMC running status cannot be subsequently monitored through the remote network. Figure 3 As shown, the operating status of the BMC controller of the server motherboard can also be monitored by adding a BMC controller to the server motherboard, but it is costly to use redundant devices to monitor the BMC. In order to solve this problem, the CPLD controller in the present application realizes real-time detection of the operating status of the BMC controller through the heartbeat signal output by the BMC controller. That is to say, the BMC controller generates a heartbeat signal and sends it to the CPLD controller. The CPLD controller determines the operating status of the BMC controller by judging the heartbeat signal, such as by judging whether the heartbeat signal meets the preset conditions when the BMC controller works normally. If it meets the preset conditions, it means that the heartbeat signal generated by the BMC controller is normal, and the operating status of the BMC controller is normal. If it does not meet the preset conditions, it means that the heartbeat signal generated by the BMC controller is abnormal, and the operating status of the BMC controller is faulty. Therefore, compared with the prior art in which the server monitors the operating status of the BMC controller through a remote network or by adding a BMC controller, the server in the present application detects the operating status of the BMC controller in real time through a heartbeat signal, so that when the remote monitoring process or the BMC controller is abnormal, the operating status of the BMC controller can also be detected without adding additional devices, reducing costs, and having a simple structure and being easy to implement.
[0058] In addition, the server status monitoring method can be applied to high-reliability computer fields such as servers, firewalls, and workstations.
[0059] The server status monitoring method sends the heartbeat signal output by the BMC controller to the CPLD controller, and the CPLD controller determines whether the heartbeat signal of the BMC controller is normal, thereby determining the operating status of the BMC controller. In this way, real-time monitoring of the operating status of the BMC controller can be achieved. At the same time, the implementation of this method does not require the addition of additional detection devices, saves costs, and has a simple structure and is easy to implement.
[0060] In some embodiments, the BMC controller is configured with a system layer, the heartbeat signal includes a system heartbeat signal, and the operating status of the BMC controller is determined according to the heartbeat signal, including: determining a first output frequency of the system heartbeat signal within a first sampling time period; if the first output frequency matches the first preset frequency, determining that the operating status of the system layer is normal operation; if the first output frequency does not match the first preset frequency, determining that the operating status of the system layer is an operating failure.
[0061] Specifically, the prior art cannot detect the operating status of the system layer of the BMC controller. Therefore, the present application monitors the operating status of the system layer through the output frequency of the system heartbeat signal. That is to say, Figure 4 As shown, when the BMC controller outputs the system heartbeat signal to the CPLD controller, the CPLD controller collects the system heartbeat signal and records the number of rising and falling edge jumps in the first sampling time period through the window counter, i.e., the first sampling time period set in advance, and automatically calculates the first output frequency of the system heartbeat signal in the first sampling time period. Since the CPLD controller is set with the first preset frequency when the system layer is in normal operation, it is determined whether the operating state of the system layer is normal by judging whether the first output frequency matches the first preset frequency. If the first output frequency matches the first preset frequency, i.e., the first output frequency is the output frequency when the system layer is in normal operation, it means that the system heartbeat signal generated by the BMC controller is normal, and the operating state of the system layer is determined to be normal. If the first output frequency does not match the first preset frequency, i.e., the first output frequency is not the output frequency when the system layer is in normal operation, it means that the system heartbeat signal generated by the BMC controller is abnormal, and the operating state of the system layer is determined to be an operating failure. Therefore, in the present application, the CPLD controller compares the first preset frequency with the first output frequency of the system heartbeat signal by presetting the first preset frequency, thereby realizing monitoring of the operating state of the system layer of the BMC controller.
[0062] In some embodiments, the BMC controller is provided with a first FLASH and a second FLASH. After the server is powered on, the first FLASH is controlled to start according to the chip select status recorded by the CPLD controller; after determining that the operating status of the system layer is an operating failure, the CPLD controller controls each power supply group in the BMC controller to shut down in sequence according to the recorded power timing; controls the chip select status to switch from the first FLASH to the second FLASH, and controls the BMC controller to power on and restart.
[0063] Specifically, in the prior art, when a fault is detected in the system layer of the BMC controller, self-recovery cannot be performed, thereby reducing the stability of the server. Therefore, in the present application, after a fault occurs in the system layer of the BMC controller, the second FLASH is controlled to replace the first FLASH to work, so as to improve the stability of the server. That is, after the server is powered on, the CPLD controller enables each group of power supplies in sequence according to the power timing recorded by the BMC controller; when the power of the BMC controller is ready, the first FLASH is controlled to start according to the chip select state recorded by the CPLD controller, that is, the level signal, wherein the first FLASH stores the program firmware required for the normal operation of the BMC controller, that is, the default image. When the CPLD controller determines that the first output frequency does not match the first preset frequency, it determines that the operating state of the system layer is an operating fault, and then the CPLD controller controls each group of power supplies in the BMC controller to be turned off in sequence according to the recorded power timing, and then controls the chip select state to switch from the first FLASH to the second FLASH, wherein the second FLASH stores the program firmware required for the normal operation of the BMC controller, that is, the security image, such as Figure 4 As shown, the CPLD controller controls the second FLASH of the BMC controller to replace the first FLASH to work through the MUX (multiplexer, data selector), and controls the BMC controller to power on and restart. At this time, if the CPLD determines that the first output frequency matches the first preset frequency, it determines that the operating state of the system layer is normal. Therefore, in this application, corresponding recovery operations are performed according to different fault types of the BMC controller. After a fault occurs in the system layer of the BMC controller, the second FLASH is controlled to replace the first FLASH to work, so that the BMC controller system layer can automatically recover to normal operation after a fault occurs, thereby reducing the time and cost of on-site maintenance and improving the stability of the server.
[0064] In addition, FLASH (fast large area scan hardware) is a storage chip, and the data in FLASH can be modified through a specific program. FLASH is often used in the electronics and semiconductor fields to store program firmware or images required for chip operation. MUX is a circuit that can select any one of the multiplexed data transmissions as needed. MUX is also called a multiplexer or a multi-way switch.
[0065] In some embodiments, the BMC controller is configured with a business layer, the business layer has multiple applications, the heartbeat signal includes a business heartbeat signal corresponding to each application, and the operating status of the BMC controller is determined according to the heartbeat signal, including: determining a second output frequency of the business heartbeat signal within a second sampling time period; obtaining a second preset frequency corresponding to the current application; if the second output frequency matches the second preset frequency, determining that the operating status of the current application is normal operation; if the second output frequency does not match the second preset frequency, determining that the operating status of the current application is an operating failure.
[0066] Specifically, the business layer of the BMC controller is various applications running on the embedded Linux system. The running status of the application determines the performance of the server. The business layer of the BMC controller runs on the embedded Linux system. If the Linux (operating system kernel) system it runs fails, it will affect the stability of the business layer of the BMC controller. When the BMC controller crashes, it is difficult to recover by itself, thereby reducing the stability of the server. Therefore, it is necessary to monitor the running status of the BMC business layer. In this application, the output frequency of the business heartbeat signal is used to monitor the running status of the system layer to improve the performance of the server. In other words, Figure 4 As shown, when the BMC controller outputs the service heartbeat signal corresponding to each application to the CPLD controller, the CPLD controller collects the service heartbeat signal and records the number of rising and falling edge transitions thereof in the second sampling time period through the window counter, i.e., the pre-set second sampling time period, and automatically calculates the second output frequency of the service heartbeat signal corresponding to the current application in the second sampling time period. Since the CPLD controller is set with the second preset frequency when different applications are in normal operation, the CPLD controller can automatically call the second output frequency corresponding to the current application, and judge the running status of multiple applications in the business layer by judging whether the second output frequency corresponding to the current application matches the second preset frequency. If the second output frequency matches the second preset frequency, i.e., the second output frequency is the output frequency when the current application is in normal operation, it means that the service heartbeat signal generated by the BMC controller is normal, and it is determined that the running status of the current application is normal. If the second output frequency does not match the second preset frequency, i.e., the second output frequency is not the output frequency when the current application is in normal operation, it means that the service heartbeat signal generated by the BMC controller is abnormal, and it is determined that the running status of the current application is a running failure. Therefore, the CPLD controller in the present application compares the preset second preset frequency with the second output frequency of the business heartbeat signal, thereby monitoring the operating status of multiple application programs at the business layer of the BMC controller, thereby improving the performance of the server.
[0067] In this application, the CPLD controller monitors the operating status of the BMC controller in real time through the business heartbeat signal and the system heartbeat signal, and does not add redundant detection devices, thereby reducing project costs.
[0068] In some embodiments, the server also includes an EEPROM memory. When it is determined that the running status of the current application is an operation failure, the CPLD controller records the process number of the current application and writes the process number into the BMC log storage area of the EEPROM memory; and controls the BMC controller to perform a reset and restart operation.
[0069] Specifically, in the prior art, when a service layer failure is detected in the BMC controller, self-recovery cannot be performed, thereby affecting the stability of the service layer of the BMC controller and reducing the stability of the server. Since the power timing and reset signal of the BMC controller are managed by the CPLD controller, when the server detects that the running state of the current application is a running failure, the CPLD controller records the process number of the current application and writes the process number into the BMC log storage area of the EEPROM memory. At the same time, the CPLD controller controls the BMC controller to perform a reset and restart operation, so that the BMC controller is reset and restarted. When the CPLD controller determines that the second output frequency matches the second preset frequency, it is determined that the running state of the current application is running normally. Therefore, in the present application, corresponding recovery operations are performed according to different types of failures in the BMC. After a failure occurs in the service layer of the BMC controller, the failure of the service layer is automatically stored and a reset and restart operation is performed, so that the service layer of the BMC controller can automatically restore normal operation after a failure occurs, reducing the time and cost of on-site maintenance and improving the stability of the BMC controller and the server.
[0070] For example, if the fan monitoring process of the BMC controller fails, the cooling strategy cannot be started when the CPU reaches a high temperature, causing the server to overheat and crash. The CPLD controller records the process number of the fan monitoring and writes the process number into the BMC log storage area of the EEPROM memory. At the same time, the CPLD controller controls the BMC controller to perform a reset and restart operation, so that the BMC controller is reset and restarted, so that the CPU can execute the cooling strategy, avoid server overheating and crash, and improve the stability of the server.
[0071] In some embodiments, the server also includes an EEPROM memory, and the BMC controller includes an operation status register. At every preset query time interval, the CPLD controller sends a status query request to the BMC controller; in response to the status query request, the BMC controller feeds back the status information in the operation status register to the CPLD controller; it is determined whether there is abnormal item information in the status information; if so, the CPLD controller writes the abnormal item information into the EEPROM memory and feeds back an abnormal alarm signal to the BMC controller.
[0072] Specifically, due to the complex business logic of the BMC controller, the heartbeat signal can only detect the basic operating status of the BMC controller, but cannot fully detect the business operating status of the BMC controller. Therefore, the CPLD controller in this application can perform a timed handshake query on the BMC controller, that is, at each preset query time interval, the CPLD controller sends a status query request to the BMC controller. After the BMC controller responds to the status query request, the BMC controller packages the status information in the operating status register and feeds it back to the CPLD controller through a low-speed protocol. Since the CPLD controller stores preset status information about the normal operation of the BMC controller, the CPLD controller compares the status information with the preset status information. To determine whether there is abnormal item information in the status information, wherein the status information may be BMC controller process presence information, memory occupancy information, CPU occupancy information, etc., and there is no restriction on this. Therefore, the CPLD controller analyzes the BMC controller process presence, memory occupancy information, and CPU occupancy information from the status information. If there is abnormal item information in the status information, the CPLD controller writes the abnormal item information into the EEPROM memory and feeds back an abnormal alarm signal to the BMC controller. After receiving the abnormal alarm signal sent by the CPLD, the BMC controller notifies the operation and maintenance management center to remotely manage the server. If there is no abnormal item information in the status information, there is no need to write into the EEPROM memory.
[0073] For example, the status information includes BMC controller process status information, memory occupancy information, and CPU occupancy information, among which, for memory occupancy information, the preset status information stored in the CPLD controller may include a memory occupancy range when the BMC controller is in normal operation. If the memory occupancy information in the status information fed back by the BMC controller is not within the memory occupancy range, it means that the current memory occupancy information of the BMC controller is abnormal, that is, there is abnormal item information in the status information; if the memory occupancy information in the status information fed back by the BMC controller is within the memory occupancy range, it means that the current memory occupancy information of the BMC controller is normal, and then it is judged in turn whether other information is abnormal. For another example, for the BMC controller process status information, the preset status information stored in the CPLD controller may include the preset process status information when the BMC controller is in normal operation. If the process status information in the status information fed back by the BMC controller is inconsistent with the preset process status information, it means that the current process status information of the BMC controller is abnormal, that is, there is abnormal item information in the status information; if the process status information in the status information fed back by the BMC controller is consistent with the preset process status information, it means that the current process status information of the BMC controller is normal, and then judge whether other information is abnormal. In this way, each item in the status information fed back by the BMC controller is compared to determine whether the running status register of the BMC controller is abnormal, so as to facilitate timely automatic storage and alarm, and improve the stability of server operation.
[0074] In some embodiments, after the server is powered on, since the CPLD controller and the BMC controller can interact, the CPLD controller can send the output heartbeat signal to the BMC controller, and the BMC controller can determine the operating status of the CPLD controller based on the received heartbeat signal, such as by judging whether the output frequency of the heartbeat signal within the adopted time matches the preset frequency of the CPLD controller stored in the BMC controller when it is working normally, so as to judge whether the operating status of the CPLD controller is normal. If the output frequency matches the preset frequency, the operating status of the CPLD controller is normal; if the output frequency does not match the preset frequency, the operating status of the CPLD controller is abnormal; or the BMC controller can also receive status information during the operation of the CPLD controller to judge the operating status of the CPLD controller through the status information, such as comparing the operating status information with the preset status information of the CPLD controller in normal operation stored in the memory of the BMC controller to judge the operating status of the controller. If the operating status information meets the preset status information, the operating status of the CPLD controller is normal; if the operating status information does not meet the preset status information, the operating status of the CPLD controller is abnormal. This achieves the effect of mutual status monitoring between the CPLD controller and the BMC controller, improving the stability and self-recovery capability of the server.
[0075] Please refer to the following Figure 5 The server status monitoring method of the embodiment of the present application specifically includes the following steps.
[0076] Step S3: Power on and start the server.
[0077] Step S4, CPLD controller initialization.
[0078] Step S5, controlling the first FLASH to start, that is, controlling the program firmware stored in the first FLASH, that is, the default image, required for the normal operation of the BMC controller to work.
[0079] Step S6, controlling each power supply group in the BMC controller to power on according to the recorded power supply timing sequence of the CPLD controller.
[0080] Step S7, determining whether the first output frequency of the system heartbeat signal generated by the BMC controller is normal, such as by determining whether the first output frequency matches the first preset frequency, to determine whether the first output frequency is normal, if yes, execute step S10, otherwise execute step S8.
[0081] Step S8, controlling each power supply group in the BMC controller to turn off in sequence according to the recorded power supply timing by the CPLD controller.
[0082] Step S9, controlling the second FLASH to start, that is, controlling the program firmware, ie, the security image, stored in the second FLASH required for the normal operation of the BMC controller to work.
[0083] Step S10, determining whether the second output frequency of the service heartbeat signal generated by the BMC controller is normal, such as by determining whether the second output frequency matches the second preset frequency, to determine whether the second output frequency is normal, if yes, execute step S11, otherwise execute step S13.
[0084] Step S11 : The CPLD controller and the BMC controller periodically handshake to query the running status of the BMC controller.
[0085] Step S12, determining whether the state information of the BMC controller is normal, that is, determining whether there is any abnormal item information in the state information of the BMC controller. If so, execute step S7, otherwise execute step S13.
[0086] Step S13: The CPLD controller records the abnormal item information into the EEPROM memory.
[0087] Step S14: The CPLD controller controls the BMC controller to perform a reset and restart operation, and then continues to execute step S7.
[0088] It should be understood that although Figure 1 and Figure 5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0089] In one embodiment, Figure 6 As shown, a server status monitoring device 10 is provided, and the device includes: a sending module 1 and a determining module 2.
[0090] The sending module 1 is used to send the heartbeat signal output by the BMC controller to the CPLD controller after the server is powered on;
[0091] The determination module 2 is used to determine the operating state of the BMC controller according to the heartbeat signal.
[0092] The server status monitoring device 10 sends the heartbeat signal output by the BMC controller to the CPLD controller, and the CPLD controller determines whether the heartbeat signal of the BMC controller is normal, thereby determining the operating status of the BMC controller. In this way, real-time monitoring of the operating status of the BMC controller can be achieved. At the same time, the implementation of this method does not require the addition of additional detection devices, saves costs, and has a simple structure and is easy to implement.
[0093] In one of the embodiments, the determination module 2 is used to determine the first output frequency of the system heartbeat signal within the first sampling time period; if the first output frequency matches the first preset frequency, the operating status of the system layer is determined to be normal operation; if the first output frequency does not match the first preset frequency, the operating status of the system layer is determined to be an operation failure.
[0094] In some embodiments, the server status monitoring device 10 also includes a control module, which is used to control the startup of the first FLASH according to the chip select status recorded by the CPLD controller after the server is powered on; after determining that the operating status of the system layer is an operating failure, the CPLD controller controls each group of power supplies in the BMC controller to be shut down in sequence according to the recorded power timing; controls the chip select status to switch from the first FLASH to the second FLASH, and controls the BMC controller to power on and restart.
[0095] In some embodiments, determination module 2 is used to determine a second output frequency of the business heartbeat signal within a second sampling time period; obtain a second preset frequency corresponding to the current application; if the second output frequency matches the second preset frequency, then the running status of the current application is determined to be normal; if the second output frequency does not match the second preset frequency, then the running status of the current application is determined to be an operation failure.
[0096] In some embodiments, the determination module 2 is used to, when determining that the running state of the current application is an operation failure, record the process number of the current application by the CPLD controller and write the process number into the BMC log storage area of the EEPROM memory; and control the BMC controller to perform a reset and restart operation.
[0097] In some embodiments, the sending module 1 is used to send a status query request from the CPLD controller to the BMC controller at every preset query time interval; in response to the status query request, the BMC controller feeds back the status information in the operation status register to the CPLD controller; the control module is used to determine whether there is abnormal item information in the status information; if so, the CPLD controller writes the abnormal item information into the EEPROM memory and feeds back an abnormal alarm signal to the BMC controller.
[0098] In some embodiments, the sending module 1 is used to send the heartbeat signal output by the CPLD controller to the BMC controller after the server is powered on; the determining module is used to determine the operating status of the CPLD controller according to the heartbeat signal.
[0099] In one embodiment, Figure 7 As shown, an electronic device 20 is provided, including a memory 3 and a processor 4.
[0100] Specifically, the memory 3 stores a computer program, and when the processor 4 executes the computer program, the steps of the server status monitoring method provided in any embodiment of the present application are implemented.
[0101] It is understandable that the electronic device 20 can be a terminal, such as a personal computer, a laptop, a smart phone, and a tablet computer. The electronic device 20 includes a processor, a memory, a communication interface, a display screen, and an input device connected via a system bus. Among them, the processor of the electronic device 20 is used to provide computing and control capabilities. The memory of the electronic device 20 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the electronic device 20 is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, an operator network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a service push method is implemented. The display screen of the electronic device 20 can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device 20 can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the housing of the electronic device 20, or an external keyboard, touchpad or mouse.
[0102] In one embodiment, the processor 4 implements the following steps when executing the computer program: determining the first output frequency of the system heartbeat signal within the first sampling time period; if the first output frequency matches the first preset frequency, determining that the operating status of the system layer is normal operation; if the first output frequency does not match the first preset frequency, determining that the operating status of the system layer is an operating failure.
[0103] In one embodiment, the processor 4 implements the following steps when executing the computer program: after the server is powered on, the first FLASH is controlled to start according to the chip select state recorded by the CPLD controller; after determining that the operating state of the system layer is an operating failure, the CPLD controller controls each group of power supplies in the BMC controller to be turned off in sequence according to the recorded power timing; the chip select state is controlled to switch from the first FLASH to the second FLASH, and the BMC controller is controlled to power on and restart.
[0104] In one embodiment, the processor 4 implements the following steps when executing the computer program: determining the second output frequency of the business heartbeat signal within the second sampling time period; obtaining the second preset frequency corresponding to the current application; if the second output frequency matches the second preset frequency, determining that the running status of the current application is normal; if the second output frequency does not match the second preset frequency, determining that the running status of the current application is an running failure.
[0105] In one embodiment, the processor 4 implements the following steps when executing the computer program: when it is determined that the running state of the current application is an operation failure, the CPLD controller records the process number of the current application and writes the process number into the BMC log storage area of the EEPROM memory; and controls the BMC controller to perform a reset and restart operation.
[0106] In one embodiment, the processor 4 implements the following steps when executing the computer program: at each preset query time interval, the CPLD controller sends a status query request to the BMC controller; in response to the status query request, the BMC controller feeds back the status information in the operation status register to the CPLD controller; it is determined whether there is abnormal item information in the status information; if so, the CPLD controller writes the abnormal item information into the EEPROM memory and feeds back an abnormal alarm signal to the BMC controller.
[0107] In one embodiment, the processor 4 implements the following steps when executing the computer program: after the server is powered on, the heartbeat signal output by the CPLD controller is sent to the BMC controller; and the operating state of the CPLD controller is determined according to the heartbeat signal.
[0108] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0109] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by the processor 4, the steps of the method provided in any embodiment of the present application are implemented.
[0110] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: determining a first output frequency of a system heartbeat signal within a first sampling time period; if the first output frequency matches a first preset frequency, determining that the operating status of the system layer is normal operation; if the first output frequency does not match the first preset frequency, determining that the operating status of the system layer is an operating failure.
[0111] In one embodiment, when the computer program is executed by the processor, the following steps are implemented: after the server is powered on, the first FLASH is controlled to start according to the chip select state recorded by the CPLD controller; after determining that the operating state of the system layer is an operating failure, the CPLD controller controls each group of power supplies in the BMC controller to be turned off in sequence according to the recorded power timing; the chip select state is controlled to switch from the first FLASH to the second FLASH, and the BMC controller is controlled to power on and restart.
[0112] In one embodiment, when the computer program is executed by a processor, the following steps are implemented: determining a second output frequency of the business heartbeat signal within a second sampling time period; obtaining a second preset frequency corresponding to the current application; if the second output frequency matches the second preset frequency, determining that the running status of the current application is normal; if the second output frequency does not match the second preset frequency, determining that the running status of the current application is an running failure.
[0113] In one embodiment, when the computer program is executed by the processor, the following steps are implemented: when it is determined that the running state of the current application is an operation failure, the CPLD controller records the process number of the current application and writes the process number into the BMC log storage area of the EEPROM memory; and controls the BMC controller to perform a reset and restart operation.
[0114] In one embodiment, when the computer program is executed by the processor, the following steps are implemented: at each preset query time interval, the CPLD controller sends a status query request to the BMC controller; in response to the status query request, the BMC controller feeds back the status information in the operation status register to the CPLD controller; it is determined whether there is abnormal item information in the status information; if so, the CPLD controller writes the abnormal item information into the EEPROM memory and feeds back an abnormal alarm signal to the BMC controller.
[0115] In one embodiment, when the computer program is executed by the processor, the following steps are implemented: after the server is powered on, the heartbeat signal output by the CPLD controller is sent to the BMC controller; and the operating state of the CPLD controller is determined according to the heartbeat signal.
[0116] In summary, the server status monitoring method, device, electronic device and storage medium provided in the embodiments of the present application send the heartbeat signal output by the BMC controller to the CPLD controller, so that the CPLD controller determines whether the heartbeat signal of the BMC controller is normal, thereby determining the operating status of the BMC controller. In this way, real-time monitoring of the operating status of the BMC controller can be achieved. At the same time, the implementation of this method does not require the addition of additional detection devices, saves costs, and has a simple structure and is easy to implement.
[0117] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static random access memory (SRAM) and dynamic random access memory (DRAM).
[0118] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0119] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.
Claims
1. A server status monitoring method, characterized in that: The server includes a BMC controller and a CPLD controller, and the method includes: After the server is powered on, the heartbeat signal output by the BMC controller is sent to the CPLD controller; The operating state of the BMC controller is determined according to the heartbeat signal.
2. The server status monitoring method according to claim 1, characterized in that: The BMC controller is configured with a system layer, the heartbeat signal includes a system heartbeat signal, and determining the operating state of the BMC controller according to the heartbeat signal includes: Determining a first output frequency of the system heartbeat signal within a first sampling time period; If the first output frequency matches the first preset frequency, determining that the operating state of the system layer is operating normally; If the first output frequency does not match the first preset frequency, it is determined that the operating state of the system layer is an operating failure.
3. The server status monitoring method according to claim 2, characterized in that: The BMC controller is provided with a first FLASH and a second FLASH, and the method further comprises: After the server is powered on, controlling the first FLASH to start according to the chip selection state recorded by the CPLD controller; After determining that the operating state of the system layer is an operating failure, the CPLD controller controls each power supply group in the BMC controller to be turned off in sequence according to the recorded power supply timing sequence; The chip selection state is controlled to switch from the first FLASH to the second FLASH, and the BMC controller is controlled to power on and restart.
4. The server status monitoring method according to claim 1, characterized in that: The BMC controller is configured with a service layer, the service layer is provided with a plurality of application programs, the heartbeat signal includes a service heartbeat signal corresponding to each application program, and the operating state of the BMC controller is determined according to the heartbeat signal, including: Determine a second output frequency of the service heartbeat signal within a second sampling time period; Obtaining a second preset frequency corresponding to the current application; If the second output frequency matches the second preset frequency, determining that the running state of the current application is running normally; If the second output frequency does not match the second preset frequency, it is determined that the running state of the current application is an running failure.
5. The server status monitoring method according to claim 4, characterized in that: The server also includes an EEPROM memory, and the method further includes: When it is determined that the running state of the current application is a running failure, the CPLD controller records the process number of the current application and writes the process number into a BMC log storage area of the EEPROM memory; Control the BMC controller to perform a reset and restart operation.
6. The server status monitoring method according to claim 1, characterized in that: The server further includes an EEPROM memory, the BMC controller includes an operation status register, and the method further includes: At every preset query time interval, the CPLD controller sends a status query request to the BMC controller; In response to the status query request, the BMC controller feeds back the status information in the operation status register to the CPLD controller; Determine whether there is abnormal item information in the status information; If so, the CPLD controller writes the abnormal item information into the EEPROM memory and feeds back an abnormal alarm signal to the BMC controller.
7. The server status monitoring method according to any one of claims 1 to 6, characterized in that: The method further comprises: After the server is powered on, the heartbeat signal output by the CPLD controller is sent to the BMC controller; The operating state of the CPLD controller is determined according to the heartbeat signal.
8. A server status monitoring device, characterized in that: include: A sending module, used for sending the heartbeat signal output by the BMC controller to the CPLD controller after the server is powered on; The determination module is used to determine the operating state of the BMC controller according to the heartbeat signal.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Fault processing method, electronic equipment, storage medium and program product
CN121523963A
