Machine room cabinet temperature monitoring method, device, equipment and medium

By adopting a multi-threaded temperature monitoring method based on BMC Redfish in the computer room, the problem of insufficient timeliness and accuracy of temperature monitoring in the existing technology is solved, and more efficient equipment temperature management and fault prevention are achieved.

CN120176876APending Publication Date: 2025-06-20CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510293769.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-12
Publication Date
2025-06-20

AI Technical Summary

Technical Problem

The temperature monitoring method of the existing computer room cabinet is poorly timely and accurate, the sensor functions are single, the data is limited, and the equipment status cannot be analyzed in depth, resulting in passive response to maintenance work, and large data center operation and maintenance personnel rushed to the scene for a long time, which affected the efficient operation of the computer room.

Method used

The temperature monitoring method of the computer room cabinet based on BMC Redfish is used to periodically call the Redfish API through multi-thread concurrency to collect the air inlet temperature data from the server's BMC, determine whether it matches the preset alarm rules, generate alarm information and provide alarm prompts.

Benefits of technology

It improves the timeliness and accuracy of temperature alarm monitoring, enhances the equipment's temperature safety prevention capabilities, ensures efficient operation of the computer room, and effectively prevents the occurrence of faults.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120176876A_ABST
    Figure CN120176876A_ABST
Patent Text Reader

Abstract

The invention discloses a BMC redfish-based machine room cabinet temperature monitoring method, apparatus and device, and a medium. The method comprises the following steps: acquiring air inlet temperature data of a machine room cabinet; whether the air inlet temperature data is matched with a preset alarm rule or not is judged, if the air inlet temperature data is matched with the preset alarm rule, alarm information corresponding to the air inlet temperature is generated to give an alarm prompt, and therefore machine room cabinet temperature monitoring based on the BMC redfish is achieved; the preset alarm rule is that when the cabinets in the same row do not give an alarm or the alarm is eliminated, if the average temperature exceeds a preset threshold value and the number of devices exceeds a preset number, an initial alarm is triggered; if the existing alarm is not eliminated, upgrading the alarm under the same condition; and when the alarm is not eliminated but the average temperature and the number of the devices are both reduced to be below the threshold value, the alarm elimination condition is met. According to the method, the timeliness and the accuracy of temperature alarm monitoring can be improved, so that faults are effectively prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention specifically relates to a method, device, equipment and medium for monitoring the temperature of computer room cabinets based on BMC redfish. Background Art

[0002] Computer room cabinets are the core components of data centers, carrying a large number of key hardware such as servers and network devices. These devices generate a large amount of heat during operation. High temperatures may not only cause a decline in the performance of servers and network devices and hardware damage, but also many abnormal situations will threaten the service life of the devices and increase the risk of failures. This may lead to the loss, damage or leakage of important data such as a large amount of user privacy, enterprise business secrets and scientific research achievements stored in the devices, thus seriously affecting the continuity of business.

[0003] In the prior art, the alarm of computer room cabinets relies on various sensors on the cabinets and built-in hardware monitoring functions. However, this method has many problems: on the one hand, a large number of sensors and hardware need to be additionally deployed, which increases the initial investment cost. Moreover, even with automated monitoring tools, maintenance personnel still have to conduct regular on-site inspections, which is time-consuming and laborious; on the other hand, the timeliness and accuracy of the existing alarm mechanism are poor. The sensors have a single function and limited data, and cannot deeply analyze the device status. Manual inspections are also prone to overlooking small faults. More critically, the current alarm is not timely, often triggered only after a problem occurs or a parameter exceeds the threshold, lacking predictability and being difficult to detect potential hidden dangers such as a decline in device performance and component aging in advance, resulting in maintenance work can only be dealt with passively. At the same time, large data centers are widely distributed, and it takes a long time for maintenance personnel to reach the site, which will deteriorate the device condition and affect the efficient operation of the computer room. Summary of the Invention

[0004] The technical problem to be solved by the present invention is to propose a method, device, equipment and medium for monitoring the temperature of computer room cabinets based on BMC redfish in view of the above deficiencies of the prior art. This method can improve the timeliness and accuracy of temperature alarm monitoring, thereby effectively preventing the occurrence of failures.

[0005] In a first aspect, the present invention provides a method for monitoring the temperature of computer room cabinets based on BMC redfish, the method comprising the following steps:

[0006] Obtain the inlet air temperature data of the computer room cabinet;

[0007] Judge whether the inlet air temperature data matches a preset alarm rule:

[0008] If the inlet air temperature data matches the preset alarm rule, generate alarm information corresponding to the inlet air temperature for alarm prompt, so as to realize the temperature monitoring of the computer room cabinet based on BMC redfish;

[0009] Among them, the preset alarm rules include: initial alarm conditions, escalation alarm conditions, or alarm elimination conditions; the initial alarm condition is that when there is no alarm or the alarm is eliminated for the cabinets in the same row where the computer room cabinets are located, the average temperature of the computer room cabinets exceeds a preset threshold and the number of computer room cabinets exceeds a preset number; the escalation alarm condition is that when an alarm occurs for the cabinets in the same row where the computer room cabinets are located and the alarm has not been eliminated, the average temperature of the computer room cabinets exceeds a preset threshold and the number of computer room cabinets exceeds a preset number; the alarm elimination condition is that when an alarm occurs for the cabinets in the same row where the computer room cabinets are located and the alarm has not been eliminated, the average temperature of the computer room cabinets does not exceed a preset threshold and the number of computer room cabinets does not exceed a preset number.

[0010] Further, the intake air temperature data of the computer room cabinets is collected from the BMC of the server by periodically calling the redfish API in a multi-threaded concurrent manner.

[0011] Further, the alarm prompt is sent to the monitoring group by calling the DingTalk API.

[0012] Further, the monitoring method further includes a display step;

[0013] The display step includes: displaying the intake air temperature data on the front-end page of the server and / or displaying the alarm prompt on the front-end page of the server.

[0014] Further, the implementation of displaying the intake air temperature data on the front-end page of the server specifically includes the following steps:

[0015] Both the collected intake air temperature data and the corresponding computer room cabinet information are stored in the database;

[0016] Among them, the computer room cabinet information is named according to a preset naming rule; the preset naming rule uniquely names all the devices in the computer room cabinet according to the device name, BMC IP address, data center name, room number, column number, rack number, unit number, server number, and device model;

[0017] Extract the intake air temperature data and the corresponding computer room cabinet IP from the database and display them on the front-end page of the server.

[0018] In a second aspect, the present invention provides a computer room cabinet temperature monitoring device based on BMC redfish. The device includes:

[0019] An acquisition unit for acquiring the intake air temperature data of the computer room cabinets;

[0020] A determination unit, connected to the acquisition unit, for determining whether the intake port temperature data matches a preset alarm rule;

[0021] A generation unit, connected to the determination unit, for generating alarm information corresponding to the intake port temperature when the determination unit determines that the intake port temperature data matches the preset alarm rule, so as to perform an alarm prompt, thereby realizing the temperature monitoring of the computer room cabinet based on BMC redfish;

[0022] Wherein, the preset alarm rule includes: an initial alarm condition, an escalation alarm condition or an alarm elimination condition; the initial alarm condition is that when there is no alarm or the alarm is eliminated for the cabinets in the same row where the computer room cabinet is located, the average temperature of the computer room cabinet exceeds a preset threshold and the number of computer room cabinets exceeds a preset number; the escalation alarm condition is that when an alarm occurs for the cabinets in the same row where the computer room cabinet is located and the alarm has not been eliminated, the average temperature of the computer room cabinet exceeds a preset threshold and the number of computer room cabinets exceeds a preset number; the alarm elimination condition is that when an alarm occurs for the cabinets in the same row where the computer room cabinet is located and the alarm has not been eliminated, the average temperature of the computer room cabinet does not exceed a preset threshold and the number of computer room cabinets does not exceed a preset number.

[0023] Further, the acquisition unit includes:

[0024] A call module, for periodically calling the redfish API in a multi-threaded concurrent manner;

[0025] An acquisition module, connected to the call module, for collecting the intake port temperature data of the computer room cabinet from the BMC of the server.

[0026] Further, the device further includes a display unit;

[0027] The display unit is connected to the acquisition unit, and / or, connected to the generation unit, for displaying the intake port temperature data on the front-end page of the server, and / or, for displaying the alarm prompt on the front-end page of the server.

[0028] In a third aspect, the present invention provides an electronic device, which includes a memory and a processor. A computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes the method for monitoring the temperature of the computer room cabinet based on BMC redfish according to the first aspect.

[0029] In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for monitoring the temperature of the computer room cabinet based on BMC redfish as described in the first aspect is realized.

[0030] By integrating an advanced Redfish interface, efficient multi-threaded data processing capabilities, an intuitive front-end display interface, and an intelligent alarm mechanism, the present invention not only improves the timeliness and accuracy of temperature alarm monitoring but also enhances the preventive ability of equipment temperature safety, ensuring the efficient operation of the computer room and effectively preventing the occurrence of failures. The specific beneficial effects are as follows:

[0031] (1) Integration of BMC Redfish interface and power environment monitoring: The present invention combines the BMC Redfish interface with power environment (dynamic environment) monitoring, using the temperature data at the intake of the same cabinet to reflect the ambient temperature of the entire cabinet and further analyze problems with facilities such as air conditioners in the cold storage cabinet. This method not only improves the accuracy of temperature monitoring but also enables the timely detection and resolution of problems in the cooling system.

[0032] (2) Efficient data acquisition capabilities: The present invention uses multi-threaded technology to complete the data acquisition of nearly five-digit server devices within a specified time (e.g., within five minutes). This method significantly improves the data acquisition efficiency, ensuring the acquisition of a large amount of equipment temperature information in a short time and quickly entering it into the database, laying a solid foundation for subsequent analysis.

[0033] (3) User-friendly front-end display interface: The present invention designs a brand-new small-screen front-end display interface, enabling inspection personnel to remotely monitor the temperature of equipment in the computer room, cabinet, and rack without having to be on-site. This design supports multi-dimensional temperature display and shows the temperature change trend of individual devices, achieving the goal of remote inspection, greatly improving the inspection efficiency, and reducing labor costs.

[0034] (4) Automatic alarm push mechanism: The present invention automatically calculates the average temperature through the front-end interface and realizes automatic alarm push. When abnormal temperature is detected, the system will automatically notify the on-duty personnel to conduct on-site inspections and provide remote solutions. This method not only improves the response speed but also enables timely resolution at the initial stage of the problem, avoiding greater losses.

[0035] (5) Cross-professional synergistic effect: The present invention realizes the organic combination of emerging software technology and traditional dynamic environment professionals. Without adding additional hardware devices, it uses the existing server interface protocol to complete the management of servers and real-time monitoring of the power environment. This method not only saves costs but also enhances the flexibility and scalability of the system, promoting collaboration and communication between different professionals. Description of the Drawings

[0036] Figure 1 Schematic diagram of the method for monitoring the temperature of computer room cabinets based on BMC redfish in the embodiments of the present invention;

[0037] Figure 2 Schematic diagram of the computer room cabinet temperature monitoring framework based on BMC redfish in the embodiment of the present invention;

[0038] Figure 3 Schematic diagram of the naming of computer room cabinets in the embodiment of the present invention;

[0039] Figure 4 Schematic diagram of the front - end display database format in the embodiment of the present invention;

[0040] Figure 5 Schematic diagram of the front - end display of the small screen in the computer room in the embodiment of the present invention;

[0041] Figure 6 Schematic diagram of the front - end temperature display of the small screen in the computer room in the embodiment of the present invention;

[0042] Figure 7 Schematic diagram of the front - end temperature display of the small screen in the computer room for other devices in the embodiment of the present invention;

[0043] Figure 8 Schematic diagram of the front - end display of the temperature fluctuation of the small screen of the device in the embodiment of the present invention;

[0044] Figure 9 Schematic example of the initial alarm information in the embodiment of the present invention;

[0045] Figure 10 Schematic example of the alarm escalation information in the embodiment of the present invention;

[0046] Figure 11 Schematic example of the alarm recovery information in the embodiment of the present invention;

[0047] Figure 12 Schematic diagram of the computer room cabinet temperature monitoring device based on BMC redfish in the embodiment of the present invention;

[0048] Figure 13 Architecture diagram of the electronic device in the embodiment of the present invention.

[0049] Reference numerals: 10, acquisition unit; 20, determination unit; 30, generation unit; 100, memory; 200, processor. Detailed implementation manners

[0050] To enable those skilled in the art to better understand the technical solutions of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0051] It can be understood that the specific embodiments and the accompanying drawings described herein are only for explaining the present invention, rather than limiting the present invention.

[0052] It is understood that, without conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0053] It is understood that, for ease of description, only the parts related to the present invention are shown in the drawings of the present invention, while the parts unrelated to the present invention are not shown in the drawings.

[0054] It is understood that each unit and module involved in the embodiments of the present invention may correspond to only one entity structure, or may be composed of multiple entity structures, or multiple units and modules may also be integrated into one entity structure.

[0055] It is understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of the present invention may occur in an order different from that marked in the drawings.

[0056] It is understood that in the flowcharts and block diagrams of the present invention, the possible system architectures, functions, and operations of the systems, devices, equipment, and methods according to the embodiments of the present invention are shown. Among them, each block in the flowchart or block diagram may represent a unit, module, program segment, or code, which contains executable instructions for implementing the specified function. Moreover, each block or combination of blocks in the block diagram and flowchart may be implemented by a hardware-based system for implementing the specified function, or may be implemented by a combination of hardware and computer instructions.

[0057] It is understood that the units and modules involved in the embodiments of the present invention may be implemented in software or in hardware. For example, the units and modules may be located in a processor.

[0058] Embodiment 1:

[0059] As Figure 1 and Figure 2 shown, this embodiment provides a method for monitoring the temperature of computer room cabinets based on BMC redfish. The method for monitoring the temperature of computer room cabinets based on BMC Redfish is mainly used for real-time display and alarming, and is widely applied to key places such as data centers, cloud computing environments, high-performance computer rooms, and telecommunications operator computer rooms. In these scenarios, this method can effectively monitor the temperature changes in the cabinets to ensure that the equipment operates within a safe range. Once the temperature reaches the set alarm threshold, the system will automatically trigger an alarm to notify the operation and maintenance personnel to check and handle it in a timely manner, thereby preventing failures and service interruptions caused by overheating of the equipment. This monitoring method not only improves the reliability and stability of the equipment, but also provides a strong guarantee for data security and service continuity.

[0060] The method for monitoring the temperature of computer room cabinets based on BMC redfish includes the following steps:

[0061] 1. Obtain the intake air temperature data of the computer room cabinets.

[0062] Specifically, the intake air temperature data of the computer room cabinets is collected from the BMC of the server by periodically calling the redfish API in a multi-threaded concurrent manner.

[0063] 2. Determine whether the intake air temperature data matches the preset alarm rules:

[0064] If the intake air temperature data matches the preset alarm rules, generate the alarm information corresponding to the intake air temperature for alarm prompting, so as to realize the temperature monitoring of the computer room cabinets based on BMC redfish. Among them, the preset alarm rules include: initial alarm conditions, escalation alarm conditions or alarm elimination conditions; the initial alarm condition is that when there is no alarm or the alarm is eliminated for the cabinets in the same row where the computer room cabinet is located, the average temperature of the computer room cabinet exceeds the preset threshold and the number of computer room cabinets exceeds the preset number; the escalation alarm condition is that when there is an alarm and the alarm is not eliminated for the cabinets in the same row where the computer room cabinet is located, the average temperature of the computer room cabinet exceeds the preset threshold and the number of computer room cabinets exceeds the preset number; the alarm elimination condition is that when there is an alarm and the alarm is not eliminated for the cabinets in the same row where the computer room cabinet is located, the average temperature of the computer room cabinet does not exceed the preset threshold and the number of computer room cabinets does not exceed the preset number.

[0065] 3. Display the intake air temperature data on the front-end page of the server and / or display the alarm prompt on the front-end page of the server.

[0066] The implementation of displaying the intake air temperature data on the front-end page of the server specifically includes the following steps:

[0067] Store the collected intake air temperature data and the corresponding computer room cabinet information in the database;

[0068] Among them, the computer room cabinet information is named according to the preset naming rules; the preset naming rules are to uniquely name all the devices in the computer room cabinet according to the device name, BMC IP address, data center name, room number, column number, rack number, unit number, server number and device model;

[0069] Extract the intake air temperature data and the corresponding computer room cabinet IP from the database and display them on the front-end page of the server.

[0070] The alarm prompt is sent to the monitoring group by calling the DingTalk API.

[0071] Such as Figure 2As shown in the figure, the early warning of the temperature of the computer room cabinet based on the BMC redfish interface involved in this embodiment mainly includes three modules, namely, the data acquisition module, the front-end display module, and the early warning module. The technical solution will introduce the three modules respectively.

[0072] (1) Data acquisition module: used for data acquisition.

[0073] This module uses the redfish library of python to collect the BMC redfish interface of all servers in the computer room cabinet every five minutes. Through interaction, the intake air temperature of all required servers is obtained, and the IP and temperature of the server are entered into the database, and then pushed to the front-end display module and the early warning module.

[0074] The main program runs in a while loop, obtains the datetime and separates the minutes. To achieve a time period of collecting once every five minutes, the separated minutes are taken modulo 5. When the remainder is 0, the collection starts.

[0075] Sort out the IP and server name of all servers included in the cabinets of the entire computer room and read them using pandas.

[0076] To ensure that thousands of servers in the computer room can be collected and stored in the database within five minutes, use the process pool in the multiprocessing library to put the out-of-band management IP of the servers into the pool in turn according to the size of the pool. Use the apply_async function to achieve asynchronous multi-process execution. When an IP is collected, automatically take an IP from the pool for the next data collection, and then use the callback parameter to directly store the obtained temperature data into the database. The specific implementation code is as follows:

[0077]

[0078]

[0079]

[0080] Establish an object REDFISH_OBJ through the Redfish library to log in to the out-of-band address https: / / xxx.xxx.xxx.xxx, establish a Redfish client session with the BMC, and authenticate with the client through the header REDFISH_OBJ._RestClientBase__session_key to obtain a connection. Taking the ZTE BMC as an example, the server temperature generally exists at https: / / device_ip / redfish / v1 / Chassis / 1 / Thermal. Obtain the "ReadingCelsius" reading of "INPUT_TEMP" in the Temperatures object under this path, and thus obtain the intake air temperature of the server in the cabinet every five minutes. The locations for obtaining the inlet air temperature of the physical server BMC of different server manufacturers are slightly different. In addition, different BMC versions of the same server manufacturer will also be slightly different. The specific implementation code is as follows:

[0081]

[0082]

[0083] Import the obtained temperature and the IP of the BMC into the database together to form the correspondence between the IP and the temperature.

[0084] (2) Front-end display module: used to display data.

[0085] The process of the front-end display module displaying data specifically includes the following steps:

[0086] (2.1) Name all the servers in the computer room, and the naming format is as Figure 3 shown.

[0087] (2.2) Format and store the named servers into the database, and the storage format is as Figure 4 shown. The column names of the database table are device_name, bmc_ip, dc_name, room, col, rack, u, serv, role, and device_model.

[0088] (2.3) Fetch the dc_name and room columns in the front-end display database of the server, and after removing duplicates from the data, form the front-end page of the computer room, as Figure 5 shown.

[0089] (2.4) After clicking on a computer room of a certain DC, enter the temperature display schematic diagram of each cabinet in a certain computer room. If there is no device in a certain row and column of the rack, display NaN. If there is a device, calculate the average temperature of all devices in this rack and display it on the front-end of the small screen. The schematic diagram is as Figure 6As shown. Calculation formula: where n is the number of devices in the entire rack.

[0090] (2.5) After clicking on a certain cabinet, a schematic diagram of the device temperatures at different U positions in each rack of this cabinet and the server manufacturers can be seen. If there is no device at this U position, it is displayed as NaN. The specific schematic diagram is as Figure 7 shown.

[0091] (2.6) After clicking on a certain device, a line graph showing the change in the temperature of this device over time can be seen. The specific schematic diagram is as Figure 8 shown.

[0092] (3) Early warning module:

[0093] This module makes a capture on the front-end display interface in units of rows (R in the name, translated as Row, hereinafter all referred to as rows) in the computer room cabinets, specifies rules and thresholds, and reflects the environmental temperature of the same cold storage cabinet by capturing the average temperature of the air intake of the devices in the same cabinet. When the threshold is exceeded, information is automatically obtained and pushed to the DingTalk interface group to give an alarm for the temperature of the computer room cabinets, so as to remind the dynamic environment patrol duty personnel to respond quickly.

[0094] The rules and thresholds are set as follows:

[0095] When no alarm has occurred or the alarm has been eliminated for the cabinets in the same row, the cabinets in this row are determined to be in the idle state. When the average temperature of this cabinet exceeds 29°C (reporting the maximum temperature at the same time) and the number of devices exceeds 10, an initial alarm is issued. The sample of the initial alarm information is as Figure 9 shown.

[0096] When an alarm has occurred and not been eliminated for the cabinets in the same row, the cabinets in this row are determined to be in the occupied state. When the average temperature of this cabinet exceeds 29°C (reporting the maximum temperature at the same time) and the number of devices is greater than the sample of the initial alarm information, an upgraded alarm is issued. The sample of the upgraded alarm information is as Figure 10 shown.

[0097] When an alarm has occurred and not been eliminated for the cabinets in the same row, the cabinets in this row are determined to be in the occupied state. When the average temperature of this cabinet is lower than 29°C and the number of devices is less than 10, the alarm is eliminated and the cabinet returns to the idle state. The sample of the alarm recovery information is as Figure 11 shown.

[0098] The method for monitoring the temperature of computer room cabinets based on BMC Redfish provided by this embodiment realizes the real-time monitoring and management of the temperature at the air inlet of servers in the data center by innovatively combining multi-threaded concurrent data collection, efficient Redfish interface calls, an intuitive front-end display module, and an intelligent early warning mechanism. This method not only greatly improves the data collection efficiency, ensuring that data of nearly five-digit server devices is collected and entered into the database within a fixed period (such as five minutes), but also guarantees the uniqueness and identifiability of device information through a preset naming rule, enabling operation and maintenance personnel to remotely observe multi-dimensional temperature displays and the temperature change trends of individual devices, thus achieving the purpose of remote inspection. In addition, the automated alarm push mechanism can notify relevant personnel in a timely manner when abnormal temperatures are detected and send the alarm information to the monitoring group using the DingTalk API, improving the problem response speed and reducing the risk of equipment failure caused by overheating. The overall solution effectively integrates software technology and traditional power environment specialties, enhancing the flexibility and scalability of the system while improving the reliability and security of the data center without incurring additional hardware costs, providing strong support for business continuity and data security.

[0099] Embodiment 2:

[0100] As Figure 12 shown, this embodiment provides a device for monitoring the temperature of computer room cabinets based on BMC redfish. The device includes:

[0101] An acquisition unit 10 for acquiring the air inlet temperature data of the computer room cabinet;

[0102] A determination unit 20 connected to the acquisition unit 10 for determining whether the air inlet temperature data matches a preset alarm rule;

[0103] A generation unit 30 connected to the determination unit 20 for generating alarm information corresponding to the air inlet temperature to perform an alarm prompt when the determination unit determines that the air inlet temperature data matches the preset alarm rule, thereby realizing the temperature monitoring of the computer room cabinet based on BMC redfish;

[0104] Among them, the preset alarm rules include: initial alarm conditions, escalation alarm conditions, or alarm elimination conditions; the initial alarm condition is that when there is no alarm or the alarm is eliminated for the cabinets in the same row where the computer room cabinets are located, the average temperature of the computer room cabinets exceeds a preset threshold and the number of computer room cabinets exceeds a preset number; the escalation alarm condition is that when an alarm occurs and the alarm is not eliminated for the cabinets in the same row where the computer room cabinets are located, the average temperature of the computer room cabinets exceeds a preset threshold and the number of computer room cabinets exceeds a preset number; the alarm elimination condition is that when an alarm occurs and the alarm is not eliminated for the cabinets in the same row where the computer room cabinets are located, the average temperature of the computer room cabinets does not exceed a preset threshold and the number of computer room cabinets does not exceed a preset number.

[0105] As a specific implementation manner, the obtaining unit 10 includes:

[0106] A calling module, configured to periodically call the redfish API in a multi-threaded concurrent manner;

[0107] An acquisition module, connected to the calling module, configured to collect the intake air temperature data of the computer room cabinets from the BMC of the server.

[0108] As a specific implementation manner, the device further includes a display unit;

[0109] The display unit is connected to the obtaining unit and / or to the generating unit, and is configured to display the intake air temperature data on the front-end page of the server and / or to display the alarm prompt on the front-end page of the server.

[0110] The device in this embodiment can execute the method in Embodiment 1.

[0111] Embodiment 3:

[0112] As Figure 13 shown, this embodiment provides an electronic device, which includes a memory 100 and a processor 200. A computer program is stored in the memory 100. When the processor 200 runs the computer program stored in the memory 100, the processor 200 executes the method for monitoring the temperature of computer room cabinets based on BMC redfish described in Embodiment 1.

[0113] Embodiment 4:

[0114] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the method for monitoring the temperature of computer room cabinets based on BMC redfish as described in the first aspect.

[0115] It is understandable that the above embodiments are merely exemplary embodiments adopted to illustrate the principles of the present invention. However, the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also regarded as the protection scope of the present invention.

Claims

1. A method for monitoring the temperature of a computer room cabinet based on BMC redfish, characterized in that: The method comprises the following steps: Get the air inlet temperature data of the cabinet in the equipment room; Determine whether the air inlet temperature data matches the preset alarm rule: If the air inlet temperature data matches the preset alarm rule, an alarm message corresponding to the air inlet temperature is generated to issue an alarm prompt, thereby realizing temperature monitoring of the computer room cabinet based on BMC redfish; Among them, the preset alarm rules include: initial alarm conditions, upgraded alarm conditions or alarm elimination conditions; the initial alarm condition is that when the cabinets in the same row of the computer room cabinets do not generate an alarm or the alarm is eliminated, the average temperature of the computer room cabinets exceeds a preset threshold, and the number of computer room cabinets exceeds a preset number; the upgraded alarm condition is that when the cabinets in the same row of the computer room cabinets generate an alarm and the alarm is not eliminated, the average temperature of the computer room cabinets exceeds the preset threshold, and the number of computer room cabinets exceeds the preset number; the alarm elimination condition is that when the cabinets in the same row of the computer room cabinets generate an alarm and the alarm is not eliminated, the average temperature of the computer room cabinets does not exceed the preset threshold, and the number of computer room cabinets does not exceed the preset number.

2. The method for monitoring the temperature of a computer room cabinet based on BMC redfish according to claim 1, characterized in that: The air inlet temperature data of the cabinet in the computer room is collected from the BMC of the server by periodically calling the redfish API in a multi-threaded concurrent manner.

3. The method for monitoring the temperature of a computer room cabinet based on BMC redfish according to claim 1, characterized in that: The alarm prompt is sent to the monitoring group by calling the DingTalk API.

4. The method for monitoring the temperature of a computer room cabinet based on BMC redfish according to any one of claims 1 to 3, characterized in that: The monitoring method further comprises a display step; The display step includes: displaying the air inlet temperature data on a server front-end page, and / or displaying the alarm prompt on a server front-end page.

5. The method for monitoring the temperature of a computer room cabinet based on BMC redfish according to claim 4 is characterized in that: The display of the air inlet temperature data on the server front-end page specifically includes the following steps: The collected air inlet temperature data and the corresponding equipment room cabinet information are stored in the database; The computer room cabinet information is named according to a preset naming rule; the preset naming rule is to uniquely name all devices in the computer room cabinet according to the device name, BMC IP address, data center name, room number, column number, rack number, unit number, server number and device model; The air inlet temperature data and the corresponding computer room cabinet IP are extracted from the database and displayed on the server front-end page.

6. A computer room cabinet temperature monitoring device based on BMC redfish, characterized in that: include: An acquisition unit, used to acquire air inlet temperature data of a cabinet in a computer room; a determination unit, connected to the acquisition unit, for determining whether the air inlet temperature data matches a preset alarm rule; A generating unit connected to the determining unit, for generating alarm information corresponding to the air inlet temperature when the determining unit determines that the air inlet temperature data matches a preset alarm rule, so as to issue an alarm prompt, thereby realizing temperature monitoring of a computer room cabinet based on BMC redfish; Among them, the preset alarm rules include: initial alarm conditions, upgraded alarm conditions or alarm elimination conditions; the initial alarm condition is that when the cabinets in the same row of the computer room cabinets do not generate an alarm or the alarm is eliminated, the average temperature of the computer room cabinets exceeds a preset threshold, and the number of computer room cabinets exceeds a preset number; the upgraded alarm condition is that when the cabinets in the same row of the computer room cabinets generate an alarm and the alarm is not eliminated, the average temperature of the computer room cabinets exceeds the preset threshold, and the number of computer room cabinets exceeds the preset number; the alarm elimination condition is that when the cabinets in the same row of the computer room cabinets generate an alarm and the alarm is not eliminated, the average temperature of the computer room cabinets does not exceed the preset threshold, and the number of computer room cabinets does not exceed the preset number.

7. The device for monitoring temperature of a computer room cabinet based on BMC redfish according to claim 6, characterized in that: The acquisition unit comprises: The calling module is used to periodically call the redfish API in a multi-threaded concurrent manner; The collection module is connected to the calling module and is used to collect the air inlet temperature data of the cabinet in the computer room from the BMC of the server.

8. The device for monitoring temperature of a computer room cabinet based on BMC redfish according to claim 6 or 7, characterized in that: Also includes a display unit; The display unit is connected to the acquisition unit and / or the generation unit, and is used to display the air inlet temperature data on a server front-end page, and / or is used to display the alarm prompt on a server front-end page.

9. An electronic device, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor runs the computer program stored in the memory, the processor executes the computer room cabinet temperature monitoring method based on BMC redfish according to any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, the method for monitoring the temperature of a computer room cabinet based on BMCredfish according to any one of claims 1 to 5 is implemented.