Method, apparatus, and electronic device for determining sensor data in a server
By installing the RPM software package of IPMITool that matches the operating system version in the server, and sending IPMI commands cyclically in the pressurized state to obtain sensor information to determine the control point, the accuracy of sensor parameters control points is solved, and the server's cooling and noise reduction and power consumption reduction effects are optimized.
Patent Information
- Application Number
- CN202310077286.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-03
- Publication Date
- 2025-07-08
- Estimated Expiration
- 2043-02-03
AI Technical Summary
In the absence of BMC's RAW command instruction set, it is impossible to accurately determine the sensor parameter control points in the server, resulting in the inability to effectively achieve the thermal optimization and noise reduction power consumption reduction targets.
Through python language programming, determine the operating system version of the target server, and install the matching IPMITool RPM software package. When the server is in a pressurized state, send IPMI commands cyclically, obtain sensor information, and determine the sensor's control point based on the collected data.
In the absence of BMC's RAW command instruction set, the sensor parameter control points in the server are accurately determined, the cooling parameters are optimized, and the testing efficiency of the server is improved and the guiding role of noise reduction and power consumption reduction is improved.
Smart Images

Figure CN116185769B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of servers. Specifically, the present application relates to a method, device, computer-readable storage medium, and electronic device for determining sensor data in a server. Background Art
[0002] When analyzing competing product servers in the field of heat dissipation, due to the lack of the BMC (Baseboard Management Controller) related RAW command instruction set, during the pressure test, the complete trend change curve of sensor parameters cannot be obtained. Only the in-band command IPMITool sdr can be input under the system to obtain the respective sensor parameters at a certain moment. This results in the inability to accurately capture the regulation points of each sensor parameter, which is not conducive to optimizing the heat dissipation parameters of the relevant server and cannot play a good guiding role in further achieving the goals of noise reduction and power consumption reduction, and is not conducive to the rapid adjustment and optimization of the product machine. Summary of the Invention
[0003] Embodiments of the present application provide a method, device, computer-readable storage medium, and electronic device for determining sensor data in a server, so as to at least solve the problem in the related art that the regulation points of sensor parameters in the server cannot be accurately determined in the case of lacking the BMC RAW command instruction set.
[0004] According to an embodiment of the present application, a method for determining sensor data in a server is provided. The method is programmed in the Python language and includes: determining a predetermined software package according to the operating system version of the target server and sending the predetermined software package to the target server. The predetermined software package includes the RPM (Red-Hat Package Manager) software package of IPMITool (IPMI Platform Management Tool) that matches the operating system version; when the target server is in a pressurized state, running the predetermined software package to at least repeatedly send a first IPMI (Intelligent Platform Management Interface) command to the target server to obtain multiple sensor information of each sensor in the target server. The first IPMI command is a command for requesting to obtain the sensor information of each sensor, and the sensor information is determined according to the first response information generated by the target server in response to the first IPMI command. The sensor information includes the name of the sensor and the collected data; determining the regulation points of multiple sensors according to the multiple sensor information, where the regulation point is the collected data that triggers the regulation function of the target server.
[0005] In an exemplary embodiment, the predetermined software package is run to at least cyclically send a first IPMI command to the target server to obtain multiple pieces of sensor information of each sensor in the target server, including: running the predetermined software package to cyclically send the first IPMI command to the target server and send a second IPMI command to the target server, where the second IPMI command is a command for requesting to obtain the names of multiple sensors and the alarm thresholds corresponding to the sensors; receiving the second response information sent by the target server and multiple pieces of the first response information, where the second response information is generated by the target server in response to the second IPMI command; extracting the second response information and multiple pieces of the first response information to determine the names of the sensors, the corresponding alarm thresholds, multiple pieces of the collected data, and the time information corresponding to each piece of the collected data, so as to obtain multiple pieces of sensor information; and classifying and storing the multiple pieces of sensor information according to the types of the sensors to obtain multiple classification files.
[0006] In an exemplary embodiment, the sensors in the target server include a temperature sensor, a power consumption sensor, and a rotation speed sensor. Determining multiple regulation points of the sensors according to the multiple pieces of sensor information includes: determining the regulation point of the temperature sensor according to the temperature sensor information and the rotation speed sensor information, where the temperature sensor information is multiple pieces of sensor information of the temperature sensor, and the rotation speed sensor information is multiple pieces of sensor information of the rotation speed sensor; and determining the regulation point of the power consumption sensor according to the power consumption sensor information and the rotation speed sensor information, where the power consumption sensor information is multiple pieces of sensor information of the power consumption sensor.
[0007] In an exemplary embodiment, determining the regulation point of the temperature sensor according to the temperature sensor information and the rotation speed sensor information includes: determining a first target time of the rotation speed sensor according to the rotation speed sensor information, where, in the rotation speed sensor information, the difference between the collected data at the first target time and the collected data at the previous time is within a first predetermined range, and the difference between the collected data at the first target time and the collected data at the next time is within the first predetermined range; and determining the collected data corresponding to the first target time in the temperature sensor information as the regulation point of the temperature sensor.
[0008] In an exemplary embodiment, determining the regulation point of the power consumption sensor according to the power consumption sensor information and the rotational speed sensor information includes: determining a second target time of the rotational speed sensor according to the rotational speed sensor information, where in the rotational speed sensor information, the difference between the acquisition data at the second target time and the acquisition data at the previous time is within a second predetermined range, and the difference between the acquisition data at the second target time and the acquisition data at the next time is within the second predetermined range; determining the acquisition data corresponding to the second target time in the power consumption sensor information as the regulation point of the power consumption sensor.
[0009] In an exemplary embodiment, after obtaining the sensor information, the method further includes: generating an initial graphical user interface corresponding one-to-one to the type of the sensor; in the case that the duration of cyclically sending the first IPMI command reaches a preset duration, displaying, in the initial graphical user interface, a curve of the change of the acquisition data of each of the sensors of the corresponding type over time to obtain a graphical user interface; in the case that the acquisition data of the sensor is greater than the corresponding alarm threshold, marking the time information corresponding to the target acquisition data in the graphical user interface, where the target acquisition data is the acquisition data greater than the alarm threshold.
[0010] In an exemplary embodiment, the method further includes: generating a test log including a plurality of the graphical user interfaces, a plurality of the classification files, a plurality of the first response information, and the second response information; sending the test log to a terminal.
[0011] In an exemplary embodiment, the method further includes: determining, according to the type of the CPU in the target server, that the pressure application tool corresponding to the CPU is a first pressure application tool, determining, according to the CPU platform in the target server, that the pressure application tool corresponding to the memory in the target server is a second pressure application tool, and determining, according to the operating system version, that the pressure application tools corresponding to each hard disk in the target server are third pressure application tools; sending the first pressure application tool, the second pressure application tool, and the third pressure application tool to the environment variable directory of the target server, and sending a pressure application instruction to the server to run the first pressure application tool, the second pressure application tool, and the third pressure application tool to apply pressure to the target server so that the target server is in a pressurized state.
[0012] In an exemplary embodiment, the method further includes: in the case that the pressure application duration of applying pressure to the target server reaches a preset duration, sending an interrupt signal to the target server to stop the operation of the first pressure application tool, the second pressure application tool, and the third pressure application tool.
[0013] According to another embodiment of the present application, a device for determining sensor data in a server is provided. The device is programmed in the Python language and includes: a first determination unit for determining a predetermined software package according to the operating system version of the target server and sending the predetermined software package to the target server. The predetermined software package includes an RPM software package of IPMITool that matches the operating system version; a running unit for running the predetermined software package when the target server is in a pressurized state to at least repeatedly send a first IPMI command to the target server to obtain multiple pieces of sensor information of each sensor in the target server. The first IPMI command is a command for requesting to obtain the sensor information of each sensor, and the sensor information is determined according to a first response message generated by the target server in response to the first IPMI command. The sensor information includes the name of the sensor and the collected data; a second determination unit for determining multiple regulation points of the sensors according to the multiple pieces of sensor information. The regulation point is the collected data that triggers the regulation function of the target server.
[0014] According to yet another embodiment of the present application, a computer-readable storage medium is further provided. A computer program is stored in the computer-readable storage medium, wherein the computer program is configured to execute the steps in any one of the above method embodiments when running.
[0015] According to yet another embodiment of the present application, an electronic device is further provided, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0016] Through the present application, first, according to the operating system version of the target server, the RPM software package of IPMITool is determined and installed in the target server; then, when the target server is in a pressurized state, the software package is run to at least repeatedly send a first IPMI command for requesting to obtain the sensor information of each sensor in the target server, wherein the sensor information includes the name of the sensor and the collected data; finally, according to the obtained multiple pieces of sensor information, the regulation points of the sensors are determined. In the case of the lack of the RAW command instruction set of the BMC, the problem of being unable to accurately determine the regulation points of the sensor parameters in the server, the present application uses the Python language to write a method for determining sensor data in the server, adds the RPM software package adapted to the operating system version of the target server to the server, and when the server is in a pressurized state, runs the RPM software package to repeatedly send a command for requesting to obtain the sensor information, so as to obtain the collected data of the sensor at multiple moments, and then the regulation points of the sensor can be more accurately determined according to these collected data. Description of the Drawings
[0017] Figure 1 is a hardware structure block diagram of a mobile terminal for the method of determining sensor data in an execution server according to an embodiment of the present application;
[0018] Figure 2 is a flowchart of the method for determining sensor data in a server according to an embodiment of the present application;
[0019] Figure 3 is a flowchart of determining sensor data in a server according to an embodiment of the present application;
[0020] Figure 4 is a structure block diagram of a device for determining sensor data in a server according to an embodiment of the present application.
[0021] Among them, the above-mentioned drawings include the following reference numerals:
[0022] 102, processor; 104, memory; 106, transmission device; 108, input / output device. Detailed Description of the Embodiments
[0023] The embodiments of the present application will be described in detail below with reference to the drawings and in conjunction with the embodiments.
[0024] It should be noted that the terms "first", "second", etc. in the specification, claims and drawings of the present application are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.
[0025] The method embodiments provided in the embodiments of the present application can be executed on a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 is a hardware structure block diagram of a mobile terminal for a method of determining sensor data in a server according to an embodiment of the present application. As Figure 1 shown, the mobile terminal may include one or more ( Figure 1 only one is shown in the figure) processors 102 (the processor 102 may include, but is not limited to, processing devices such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Among them, the mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 the structure shown is only schematic and does not limit the structure of the mobile terminal. For example, the mobile terminal may further include more or fewer components than Figure 1 shown in the figure, or have a different configuration from Figure 1 shown in the figure.
[0026] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for determining sensor data in the server in the embodiments of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the method described above is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely provided with respect to the processor 102, and these remote memories can be connected to the mobile terminal through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0027] The transmission device 106 is used to receive or send data via a network. Specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one instance, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0028] In this embodiment, a method for determining sensor data in a server is provided. The method is programmed using the Python language. Figure 2 It is a flowchart of the method for determining sensor data in the server according to the embodiments of the present application, as Figure 2 shown. The process includes the following steps:
[0029] Step S202, determine a predetermined software package according to the operating system version of the target server and send the predetermined software package to the target server. The predetermined software package includes an RPM software package of IPMITool that matches the operating system version;
[0030] Specifically, the target server is the server for which sensor data is to be determined, and the target server may be a competitor product. The operating system version may be Windows Server, Netware, Unix, or Linux. IPMITool is a tool used to obtain sensor information. It monitors the physical characteristics of the server, such as temperature, voltage, fan working status, power supply, and chassis intrusion. Whether the server is powered on or off, as long as it is powered on, the server can be monitored. The RPM package is a management program that installs the required software onto the server through a repository management method. In actual use, the operating system version can be determined by viewing the files on the server that store the operating system version, such as the etc file, release file, etc. For different operating system versions, different RPM packages are selected. Sending the predetermined package to the target server is the step of installing the RPM package onto the server through PRM.
[0031] Step S204, when the target server is in a pressurized state, run the predetermined package to at least cyclically send a first IPMI command to the target server to obtain multiple sensor information of each sensor in the target server. The first IPMI command is a command for requesting to obtain the sensor information of each of the sensors. The sensor information is determined based on the first response information generated by the target server in response to the first IPMI command. The sensor information includes the name of the sensor and the collected data.
[0032] Specifically, the pressurized state is a state in which pressure is applied to the target server. The target server includes multiple sensors. By sending a first IPMI command once, the sensor information of multiple sensors can be obtained. Cyclically sending the first IPMI command means periodically sending the first IPMI command, so that the sensor information of each sensor can be periodically obtained, thereby obtaining multiple sensor information of each sensor. The first response information includes the sensor name, the collected data, and other sensor information. The collected data is the data detected by the sensor.
[0033] Step S206, based on the multiple sensor information, determine the regulation points of the multiple sensors. The regulation point is the collected data that triggers the regulation function of the target server.
[0034] Specifically, the regulation function is the function for the target server to adjust the operating parameters of the internal heat dissipation system of the target server. That is to say, when the collected data of the sensor is equal to its corresponding regulation point, the target server starts to adjust the operating parameters of the internal heat dissipation system so that the adjusted operating parameters are different from the operating parameters before adjustment.
[0035] Through the above steps, first, according to the operating system version of the target server, determine the RPM software package of IPMITool and install the software package into the target server; then, when the target server is in a pressurized state, run the software package to at least repeatedly send a first IPMI command for requesting to obtain the sensor information of each sensor in the target server, where the sensor information includes the name and the collected data of the sensor; finally, determine the regulation point of the sensor according to the obtained multiple pieces of sensor information. In the case of lacking the RAW command instruction set of BMC and being unable to accurately determine the regulation point of the sensor parameters in the server, the present application uses the python language to write a method for determining the sensor data in the server, adds the RPM software package adapted to the operating system version of the target server to the server, and runs the RPM software package when the server is in a pressurized state to repeatedly send a command for requesting to obtain the sensor information, so as to obtain the collected data of the sensor at multiple moments, and then can more accurately determine the regulation point of the sensor according to these collected data.
[0036] Among them, the execution subject of the above steps can be a terminal or the like, but is not limited thereto.
[0037] In the actual application process, those skilled in the art can choose an appropriate method to pressurize the CPU, memory, and hard disk of the target server, so that the target server is in a pressurized state. Optionally, the method further includes: determining that the pressurization tool corresponding to the CPU is a first pressurization tool according to the type of the CPU in the target server, determining that the pressurization tool corresponding to the memory in the target server is a second pressurization tool according to the CPU platform in the target server, and determining that the pressurization tools for each hard disk in the target server are third pressurization tools according to the operating system version; sending the first pressurization tool, the second pressurization tool, and the third pressurization tool to the environment variable directory of the target server, and sending a pressurization instruction to the server to run the first pressurization tool, the second pressurization tool, and the third pressurization tool to pressurize the target server, so that the target server is in the pressurized state. The embodiment determines the pressurization tool for the CPU according to different CPU types, determines the pressurization tool for the memory according to different CPU platforms, and determines the pressurization tools for the hard disks according to different operating system versions. Through the pressurization instruction, the corresponding pressurization tools are called to pressurize the server, ensuring the adaptive pressurization of the CPU, memory, and hard disk, and facilitating the acquisition of sensor parameters of the target server in the pressurized state.
[0038] Specifically, the pressurization tool includes a pressure loading function. When the CPU platform is an intel platform, the PTU pressurization tool is defaultly called to pressurize the memory, otherwise other pressurization tools are called to pressurize the memory. For the hardware adaptation, installation, and encapsulation of the hard disk pressurization tool, by checking the version of the operating system, decompressing the source code package for compilation, and placing the generated executable file in the environment variable directory, different hard disk pressurization functions are called according to different hard disks.
[0039] Further, the method further includes: when the pressurization duration for pressurizing the target server reaches a preset duration, sending an interrupt signal to the target server to stop the operation of the first pressurization tool, the second pressurization tool, and the third pressurization tool. When the pressurization duration for pressurizing the target server reaches a preset duration, it indicates that there is no need to pressurize the target server anymore. At this time, by sending an interrupt signal to the target server, the pressurization process is ended.
[0040] Specifically, by checking the process number of the corresponding instruction during pressurization, when the specified pressurization time is reached, an interrupt signal is called to stop the process corresponding to the process number.
[0041] In an exemplary embodiment, the predetermined software package is run to at least cyclically send a first IPMI command to the target server to obtain a plurality of sensor information of each sensor in the target server, including: running the predetermined software package to cyclically send the first IPMI command to the target server and send a second IPMI command to the target server, where the second IPMI command is a command for requesting to obtain the names of a plurality of the sensors and the alarm thresholds corresponding to the sensors; receiving a second response message sent by the target server and a plurality of the first response messages, where the second response message is generated by the target server in response to the second IPMI command; extracting the second response message and the plurality of first response messages to determine the names of the sensors, the corresponding alarm thresholds, the plurality of collected data, and the time information corresponding to each of the collected data to obtain a plurality of the sensor information; and classifying and storing the plurality of sensor information according to the types of the sensors to obtain a plurality of classification files. In this embodiment, the first IPMI command is cyclically sent to obtain a plurality of first response messages fed back by the target server, and the second IPMI command is sent to obtain a second response message fed back by the target server, ensuring that each piece of collected data of different types of sensors in the target server can be captured; then, the names and alarm thresholds of the sensors are extracted from the first response messages, and the names, collected data, and the time of the collected data of the sensors are extracted from the second response messages to obtain a plurality of the sensor information, further achieving the effect of dynamically detecting the parameters of each sensor, and further solving the problem in the prior art that only the parameters of each sensor at a certain moment can be obtained, resulting in the inability to accurately capture the regulation points of each sensor. Moreover, in this application, the sensors are classified and stored according to their types, facilitating the determination of their regulation points based on the classified and stored plurality of sensor information, being beneficial to optimizing the heat dissipation parameters of the server according to the determined regulation points, and playing a very good guiding role in achieving the goals of noise reduction and power consumption reduction.
[0042] Specifically, the first IPMI command may be the IPMITool sdr command, and the second IPMI command may be the IPMITool sensor list command. The alarm threshold, also known as the UC alarm value, is the upper limit value of the parameters of a preset sensor. For example, if the sensor is a temperature sensor, the alarm threshold is the maximum limit value of the temperature data collected by the temperature sensor. Another example is that if the sensor is a power consumption sensor, the alarm threshold is the maximum limit value of the power consumption data. When it is detected that the data collected by the sensor is greater than or equal to this alarm threshold, it generally indicates that there is an abnormality in the operation of the server's cooling system. The classification file can be a file in any format, such as the excel format. In this case, different types of sensor information are stored in a list form. Another example is formats such as word and txt. In this case, different types of sensor information are stored in a document form. The second response information includes the sensor name, the alarm threshold, and other sensor information.
[0043] In the actual application process, the second IPMI command may be a command only used to request and obtain the alarm threshold corresponding to the name of the temperature sensor.
[0044] In addition, after classifying and storing multiple pieces of the sensor information according to the type of the sensor to obtain multiple classification files, in order to facilitate analysis and viewing, a change curve graph of the collected data of each sensor over time can also be generated based on the classification files.
[0045] It should be noted that the classification storage process and the process of generating the change curve graph can be carried out after the number of loop transmissions of the first IPMI command reaches a preset number or the loop transmission duration reaches a preset duration, that is, the classification storage process and the change curve graph generation process are executed after the number of loop transmissions of the first IPMI command reaches a preset number or the loop transmission duration reaches a preset duration; it can also be carried out once for each time the first IPMI command is sent and the sensor information is obtained, that is, the classification storage process and the change curve graph generation process are executed once for each time the first IPMI command is sent and the sensor information is obtained.
[0046] In order to further ensure the relatively rapid positioning of the regulation points of each sensor and provide reference materials for the noise reduction and power consumption reduction of the server cooling system, according to another optional embodiment of the present application, the sensors in the target server include a temperature sensor, a power consumption sensor, and a rotation speed sensor. Determining the regulation points of the multiple sensors according to the multiple sensor information includes: determining the regulation point of the temperature sensor according to the temperature sensor information and the rotation speed sensor information, where the temperature sensor information is the multiple sensor information of the temperature sensor, and the rotation speed sensor information is the multiple sensor information of the rotation speed sensor; determining the regulation point of the power consumption sensor according to the power consumption sensor information and the rotation speed sensor information, where the power consumption sensor information is the multiple sensor information of the power consumption sensor. This embodiment locates the regulation point of the temperature sensor based on the sensor information of the temperature sensor and the rotation speed sensor, and locates the regulation point of the power consumption sensor based on the sensor information of the power consumption sensor and the rotation speed sensor, achieving the rapid positioning of the regulation points of the temperature sensor and the power consumption sensor.
[0047] Further, determining the regulation point of the temperature sensor according to the temperature sensor information and the rotation speed sensor information includes: determining a first target moment of the rotation speed sensor according to the rotation speed sensor information, where, among the rotation speed sensor information, the difference between the acquisition data at the first target moment and the acquisition data at the previous moment is within a first predetermined range, and the difference between the acquisition data at the first target moment and the acquisition data at the next moment is within the first predetermined range; determining the acquisition data corresponding to the first target moment in the temperature sensor information as the regulation point of the temperature sensor.
[0048] Specifically, the first target moment is the moment corresponding to the peak point of the acquisition data among the multiple acquisition data of the rotation speed sensor. The previous moment is the moment before the first target moment, and the next moment is the moment after the first target moment. Determining the acquisition data of the temperature sensor corresponding to the first target moment is the regulation point of the temperature sensor. This embodiment determines the regulation point of the temperature sensor through the change trend of the acquisition data of the rotation speed sensor over time, further achieving the rapid positioning of the regulation point of the temperature sensor.
[0049] Further, determining the regulation point of the power consumption sensor according to the power consumption sensor information and the rotation speed sensor information includes: determining a second target time of the rotation speed sensor according to the rotation speed sensor information, wherein, in the rotation speed sensor information, the difference between the acquisition data at the second target time and the acquisition data at the previous time is within a second predetermined range, and the difference between the acquisition data at the second target time and the acquisition data at the next time is within the second predetermined range; determining the acquisition data corresponding to the second target time in the power consumption sensor information as the regulation point of the power consumption sensor.
[0050] Specifically, the second target time is the time corresponding to the peak point of the acquisition data among the multiple acquisition data of the rotation speed sensor. The previous time is the time before the second target time, and the next time is the time after the second target time. Determining the acquisition data of the power consumption sensor corresponding to the second target time is the regulation point of the power consumption sensor. This embodiment determines the regulation point of the power consumption sensor through the changing trend of the acquisition data of the rotation speed sensor over time, further realizing the rapid positioning of the regulation point of the power consumption sensor.
[0051] In the actual application process, the first target time is the same as the second target time.
[0052] In another optional embodiment of the present application, after obtaining the sensor information, the method further includes: generating an initial graphical user interface corresponding one-to-one to the type of the sensor; when the duration of circularly sending the first IPMI command reaches a preset duration, displaying the change curve of the acquisition data of each of the sensors of the corresponding type over time in the initial graphical user interface to obtain a graphical user interface; when the acquisition data of the sensor is greater than the corresponding alarm threshold, marking the time information corresponding to the target acquisition data in the graphical user interface, where the target acquisition data is the acquisition data greater than the alarm threshold. By generating an initial graphical user interface corresponding to each sensor type and displaying the change curve of the acquisition data of each sensor over time in the graphical user interface of the corresponding type, it is convenient for analysts to organize and analyze. At the same time, the present application also monitors each acquisition data according to the alarm threshold. When the acquisition data is greater than the corresponding alarm threshold, it is marked at the corresponding time in the graphical user interface, which is convenient for analysts to know. It further plays a good guiding role in optimizing the heat dissipation parameters of the server and achieving the goals of noise reduction and power consumption reduction, and further promotes the adjustment and optimization process of the server.
[0053] Specifically, the condition for triggering the display of the change curve of the acquisition data of each of the sensors of the corresponding type over time in the initial graphical interface is not limited to the duration of the cyclic transmission of the first IPMI command reaching a preset duration, and can also be conditions such as the number of times of cyclic transmission of the first IPMI command reaching a predetermined number. The sensor names of multiple sensors of each type and the change curve of the acquisition data of the sensor over time are displayed on the graphical interface of each type. The generation of the initial graphical interface can be achieved by calling the graphical processing module in the Python language.
[0054] To further facilitate the analysts to organize, view, analyze, and trace, according to another exemplary embodiment of the present application, the method further includes: generating a test log including multiple of the graphical interfaces, multiple of the classification files, multiple of the first response information, and the second response information; sending the test log to the terminal. By organizing the initial information (i.e., the first response information and the second response information) and the processed information (i.e., the classification files, the graphical interfaces) of the collected sensors into a test log and sending it to a preset terminal, it is convenient for the analysts to view this information from the terminal, facilitating the analysis and problem tracing during the sensor data determination process.
[0055] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
[0056] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the following will describe in detail the implementation process of the method for determining sensor data in the server of the present application in combination with specific embodiments. As Figure 3 shown, the method specifically includes:
[0057] Step S1: Install a pressurization tool and an RPM software package for sensor data acquisition in the server;
[0058] Step S2: Call the pressurization tool to pressurize the target server, run the RPM software package, and cyclically send the first IPMI command and the second IPMI command;
[0059] Step S3: Collect the first response information and the second response information of each sensor fed back by the target server, extract and analyze the first response information and the second response information, dynamically monitor each parameter of the sensor in real time, generate a corresponding trend curve chart, and obtain the sensor information;
[0060] Step S4: Perform data graphing processing according to the sensor information;
[0061] Step S5: Generate a test log and feedback it to the analyst.
[0062] This application adopts a method for quickly analyzing the sensor data of a competing product server in the heat dissipation field, which can quickly capture the trend change curve of the sensor parameters of the competing product server, automatically record the parameters of each sensor during the pressurization process, generate a corresponding real-time curve, collect the log to a specified directory for the tester to analyze, improve the test efficiency, quickly locate the control points of each sensor parameter, and provide comparison materials for noise reduction and power consumption reduction of the heat dissipation module.
[0063] In this embodiment, a device for determining sensor data in a server is further provided. The device is programmed in the Python language and is used to implement the embodiment and the preferred implementation manners. Those that have been described will not be repeated. As used hereinafter, the term "module" may be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0064] Figure 4 is a structural block diagram of a device for determining sensor data in a server according to an embodiment of the present application. As Figure 4 shown, the device includes:
[0065] The first determination unit 10 is configured to determine a predetermined software package according to the operating system version of the target server and send the predetermined software package to the target server. The predetermined software package includes an RPM software package of IPMITool that matches the operating system version;
[0066] Specifically, the target server is the server for which sensor data is to be determined, and the target server may be a competitor product. The operating system version may be Windows Server, Netware, Unix, or Linux. IPMITool is a tool used to obtain sensor information and monitor the physical characteristics of the server, such as temperature, voltage, fan operating status, power supply, and chassis intrusion, etc. Whether the server is powered on or off, as long as it is powered on, the monitoring of the server can be achieved. The RPM software package is a management program that installs the required software onto the server through the method of repository management. In actual use, the operating system version of the server can be determined by viewing the files used to store the operating system version through IPMITool, such as the etc file, release file, etc. For different operating system versions, different RPM software packages are selected. Sending the predetermined software package to the target server is the step of installing the RPM software package onto the server through PRM.
[0067] The running unit 20 is configured to run the predetermined software package when the target server is in a pressurized state, so as to at least cyclically send a first IPMI command to the target server to obtain multiple sensor information of each sensor in the target server. The first IPMI command is a command for requesting to obtain the sensor information of each of the sensors, and the sensor information is determined according to the first response information generated by the target server in response to the first IPMI command. The sensor information includes the name of the sensor and the collected data.
[0068] Specifically, the pressurized state is a state in which pressure is applied to the target server. The target server includes multiple sensors. By sending a first IPMI command once, the sensor information of multiple sensors can be obtained. Cyclically sending the first IPMI command means periodically sending the first IPMI command, so that the sensor information of each sensor can be periodically obtained, thereby obtaining multiple sensor information of each sensor. The first response information includes the sensor name, the collected data, and other sensor information. The collected data is the data detected by the sensor.
[0069] The second determination unit 30 is configured to determine the regulation points of the multiple sensors according to the multiple sensor information. The regulation point is the collected data that triggers the regulation function of the target server.
[0070] Specifically, the regulation function is the function for the target server to adjust the working parameters of the internal heat dissipation system of the target server. That is to say, when the collected data of the sensor is equal to its corresponding regulation point, the target server starts to adjust the working parameters of the internal heat dissipation system so that the adjusted working parameters are different from the working parameters before adjustment.
[0071] Through the above solution, the first determination unit determines the RPM software package of IPMITool according to the operating system version of the target server and installs the software package into the target server; when the target server is in a pressurized state, the running unit runs the software package to at least circularly send a first IPMI command for requesting to obtain the sensor information of each sensor in the target server, where the sensor information includes the name and the collected data of the sensor; the second determination unit determines the regulation point of the sensor according to the obtained multiple pieces of sensor information. In the case of lacking the RAW command instruction set of BMC, the problem of being unable to accurately determine the regulation point of the sensor parameters in the server cannot be solved. The present application uses the python language to write a method for determining the sensor data in the server, adds the RPM software package adapted to the operating system version of the target server to the server, and runs the RPM software package in the case where the server is in a pressurized state to circularly send a command for requesting to obtain the sensor information, so as to obtain the collected data of the sensor at multiple moments, and then the regulation point of the sensor can be more accurately determined according to these collected data.
[0072] In the actual application process, those skilled in the art can select an appropriate method to apply pressure to the CPU, memory, and hard disk of the target server, so that the target server is in a pressurized state. Optionally, the device further includes: a third determination unit, configured to determine, according to the type of the CPU in the target server, that the pressure application tool corresponding to the CPU is a first pressure application tool, determine, according to the CPU platform in the target server, that the pressure application tool corresponding to the memory in the target server is a second pressure application tool, and determine, according to the operating system version, that the pressure application tools for each hard disk in the target server are third pressure application tools; a first sending unit, configured to send the first pressure application tool, the second pressure application tool, and the third pressure application tool to the environment variable directory of the target server, and send a pressure application instruction to the server to run the first pressure application tool, the second pressure application tool, and the third pressure application tool to apply pressure to the target server, so that the target server is in the pressurized state. In the embodiment, the pressure application tool for the CPU is determined according to different CPU types, the pressure application tool for the memory is determined according to different CPU platforms, and the pressure application tools for the hard disks are determined according to different operating system versions. The corresponding pressure application tools are called to apply pressure to the server through the pressure application instruction, ensuring the adaptive pressure application to the CPU, memory, and hard disk, and facilitating the acquisition of the sensor parameters of the target server in the pressurized state.
[0073] Specifically, the pressure application tool includes a pressure loading function. When the CPU platform is the intel platform, the PTU pressure application tool is defaultly called to apply pressure to the memory, otherwise other pressure application tools are called to apply pressure to the memory. For the hardware adaptation, installation, and encapsulation of the hard disk pressure application tool, by checking the version of the operating system, decompressing the source code package for compilation, and placing the generated executable file in the environment variable directory, different hard disk pressure application functions are called according to different hard disks.
[0074] Further, the device further includes: a second sending unit, configured to send an interrupt signal to the target server to stop the operation of the first pressure application tool, the second pressure application tool, and the third pressure application tool when the pressure application duration for the target server reaches a preset duration. When the pressure application duration for the target server reaches the preset duration, it indicates that there is no need to apply pressure to the target server anymore. At this time, the pressure application process is ended by sending an interrupt signal to the target server.
[0075] Specifically, by checking the process number of the corresponding instruction during pressure application, the process corresponding to the process number can be stopped by calling the interrupt signal when the specified pressure application time is reached.
[0076] In an exemplary embodiment, the operation unit includes: an operation module configured to run the predetermined software package to cyclically send the first IPMI command to the target server and send a second IPMI command to the target server, where the second IPMI command is a command for requesting to obtain the names of a plurality of the sensors and the alarm thresholds corresponding to the sensors; a receiving module configured to receive the second response information sent by the target server and a plurality of the first response information, where the second response information is generated by the target server in response to the second IPMI command; an extraction module configured to extract the second response information and the plurality of the first response information to determine the names of the respective sensors, the corresponding alarm thresholds, the plurality of the collected data, and the time information corresponding to each of the collected data, so as to obtain a plurality of the sensor information; and a classification module configured to classify and store the plurality of the sensor information according to the types of the sensors to obtain a plurality of classification files. In this embodiment, the first IPMI command is cyclically sent to obtain a plurality of the first response information feedback by the target server, and the second IPMI command is sent to obtain the second response information feedback by the target server, which ensures that each piece of the collected data of different types of sensors in the target server can be captured; then, the names and alarm thresholds of the sensors are extracted from the first response information, and the names, the collected data, and the time of the collected data of the sensors are extracted from the second response information to obtain a plurality of the sensor information, further achieving the effect of dynamically detecting the parameters of each sensor, and further solving the problem in the prior art that only the parameters of each sensor at a certain moment can be obtained, resulting in the inability to accurately capture the regulation points of each sensor. Moreover, in this application, the sensors are classified and stored according to their types, which facilitates determining their regulation points based on the classified and stored plurality of the sensor information, is beneficial to optimizing the heat dissipation parameters of the server according to the determined regulation points, and plays a very good guiding role in achieving the goal of noise reduction and power consumption reduction.
[0077] Specifically, the first IPMI command may be the IPMITool sdr command, and the second IPMI command may be the IPMITool sensor list command. The alarm threshold, also known as the UC alarm value, is the upper limit value of the parameters of a preset sensor. For example, if the sensor is a temperature sensor, the alarm threshold is the maximum limit value of the temperature data collected by the temperature sensor. Another example is that if the sensor is a power consumption sensor, the alarm threshold is the maximum limit value of the power consumption data. When it is detected that the data collected by the sensor is greater than or equal to the alarm threshold, it generally indicates that there is an abnormality in the operation of the server's cooling system. The classification file can be a file in any format, such as the excel format. In this case, different types of sensor information are stored in a list form. Another example is formats such as word and txt. In this case, different types of sensor information are stored in a document form. The second response information includes the sensor name, the alarm threshold, and other sensor information.
[0078] In the actual application process, the second IPMI command may be a command only used to request and obtain the alarm threshold corresponding to the name of the temperature sensor.
[0079] In addition, after classifying and storing multiple pieces of the sensor information according to the types of the sensors to obtain multiple classification files, in order to facilitate analysis and viewing, a change curve graph of the collected data of each sensor over time can also be generated according to the classification files.
[0080] It should be noted that the classification storage process and the process of generating the change curve graph can be carried out after the number of loop transmissions of the first IPMI command reaches a preset number or the loop transmission duration reaches a preset duration, that is, the classification storage process and the process of generating the change curve graph are executed after the number of loop transmissions of the first IPMI command reaches a preset number or the loop transmission duration reaches a preset duration; it can also be carried out once every time the first IPMI command is sent and a piece of sensor information is obtained, that is, the classification storage process and the process of generating the change curve graph are executed once every time the first IPMI command is sent and a piece of sensor information is obtained.
[0081] To further ensure the relatively rapid positioning of the regulation points of each sensor and provide reference materials for noise reduction and power consumption reduction of the server cooling system, according to another optional embodiment of the present application, the sensors in the target server include a temperature sensor, a power consumption sensor, and a rotation speed sensor. The second determination unit includes: a first determination module, configured to determine the regulation point of the temperature sensor according to the temperature sensor information and the rotation speed sensor information, where the temperature sensor information is multiple pieces of sensor information of the temperature sensor, and the rotation speed sensor information is multiple pieces of sensor information of the rotation speed sensor; a second determination module, configured to determine the regulation point of the power consumption sensor according to the power consumption sensor information and the rotation speed sensor information, where the power consumption sensor information is multiple pieces of sensor information of the power consumption sensor. This embodiment locates the regulation point of the temperature sensor according to the sensor information of the temperature sensor and the sensor information of the rotation speed sensor, and locates the regulation point of the power consumption sensor according to the sensor information of the power consumption sensor and the sensor information of the rotation speed sensor, achieving the rapid positioning of the regulation points of the temperature sensor and the power consumption sensor.
[0082] Further, the first determination module includes: a first determination sub-module, configured to determine a first target moment of the rotation speed sensor according to the rotation speed sensor information, where, among the rotation speed sensor information, the difference between the acquisition data at the first target moment and the acquisition data at the previous moment is within a first predetermined range, and the difference between the acquisition data at the first target moment and the acquisition data at the subsequent moment is within the first predetermined range; a second determination sub-module, configured to determine that the acquisition data corresponding to the first target moment in the temperature sensor information is the regulation point of the temperature sensor.
[0083] Specifically, the first target moment is the moment corresponding to the peak point of the acquisition data among the multiple acquisition data of the rotation speed sensor. The previous moment is the moment before the first target moment, and the subsequent moment is the moment after the first target moment. Determining the acquisition data of the temperature sensor corresponding to this first target moment is the regulation point of this temperature sensor. This embodiment determines the regulation point of the temperature sensor through the variation trend of the acquisition data of the rotation speed sensor over time, further achieving the rapid positioning of the regulation point of the temperature sensor.
[0084] Further, the second determination module includes: a third determination sub-module, configured to determine a second target time of the rotational speed sensor according to the rotational speed sensor information, wherein, in the rotational speed sensor information, the difference between the acquisition data at the second target time and the acquisition data at the previous time is within a second predetermined range, and the difference between the acquisition data at the second target time and the acquisition data at the next time is within the second predetermined range; a fourth determination sub-module, configured to determine that the acquisition data corresponding to the second target time in the power consumption sensor information is the regulation point of the power consumption sensor.
[0085] Specifically, the second target time is the time corresponding to the peak point of the acquisition data among the multiple acquisition data of the rotational speed sensor. The previous time is the time before the second target time, and the next time is the time after the second target time. Determining the acquisition data of the power consumption sensor corresponding to the second target time is the regulation point of the power consumption sensor. This embodiment determines the regulation point of the power consumption sensor through the variation trend of the acquisition data of the rotational speed sensor over time, further realizing the rapid positioning of the regulation point of the power consumption sensor.
[0086] In the actual application process, the first target time is the same as the second target time.
[0087] In another alternative embodiment of the present application, the device further includes: a first generation unit, configured to generate an initial graphical user interface corresponding to the type of the sensor after obtaining the sensor information; a display unit, configured to display, in the initial graphical user interface, the change curve of the acquisition data of each of the sensors of the corresponding type over time when the duration of cyclically sending the first IPMI command reaches a preset duration, to obtain a graphical user interface; a marking unit, configured to mark the time information corresponding to the target acquisition data in the graphical user interface when the acquisition data of the sensor is greater than the corresponding alarm threshold, where the target acquisition data is the acquisition data greater than the alarm threshold. By generating an initial graphical user interface corresponding to each sensor type and displaying the change curve of the acquisition data of each sensor over time on the graphical user interface of the corresponding type, it is convenient for analysts to organize and analyze. At the same time, the present application also monitors each acquisition data according to the alarm threshold, and marks the corresponding time in the graphical user interface when the acquisition data is greater than the corresponding alarm threshold, which is convenient for analysts to know, and further plays a good guiding role in optimizing the heat dissipation parameters of the server and achieving the goals of noise reduction and power consumption reduction, further promoting the adjustment and optimization process of the server.
[0088] Specifically, the condition for triggering the display of the change curve of the acquisition data of each of the sensors of the corresponding type over time in the initial graphical interface is not limited to the duration of the cyclic transmission of the first IPMI command reaching a preset duration, and can also be conditions such as the number of times of cyclic transmission of the first IPMI command reaching a predetermined number. The sensor names of multiple sensors of each type and the change curve of the acquisition data of the sensor over time are displayed on the graphical interface of each type. The generation of the initial graphical interface can be implemented by calling a graphical processing module in the Python language.
[0089] To further facilitate the analyst to organize, view, analyze, and trace, according to another exemplary embodiment of the present application, the device further includes: a second generation unit, configured to generate a test log including a plurality of the graphical interfaces, a plurality of the classification files, a plurality of the first response information, and the second response information; a third sending unit, configured to send the test log to a terminal. By organizing the initial information (i.e., the first response information and the second response information) of the collected sensors and the processed information (i.e., the classification files, the graphical interfaces) into a test log and sending it to a preset terminal, it is convenient for the analyst to view this information from the terminal, facilitating the analysis and problem tracing in the process of determining sensor data.
[0090] It should be noted that each of the modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: all the modules are located in the same processor; or, each of the modules is located in different processors in any combination form.
[0091] The embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, and the computer program is configured to execute the steps in any one of the method embodiments when running.
[0092] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: USB flash drives, read-only memories (ROMs), random access memories (RAMs), mobile hard disks, magnetic disks, or optical discs and other various media that can store computer programs.
[0093] The embodiment of the present application further provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the method embodiments.
[0094] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0095] Specific examples in this embodiment may refer to the examples described in the above-mentioned embodiment and the exemplary implementation manners, and will not be elaborated herein.
[0096] Obviously, those skilled in the art should understand that the various modules or steps of the present application can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed on a network composed of multiple computing devices. They can be implemented by program codes executable by the computing device. Thus, they can be stored in a storage device and executed by the computing device. And in some cases, the steps shown or described can be executed in a sequence different from that here, or they can be separately fabricated into individual integrated circuit modules, or multiple modules or steps among them can be fabricated into a single integrated circuit module to be implemented. In this way, the present application is not limited to any specific combination of hardware and software.
[0097] The above are only the preferred embodiments of the present application and are not used to limit the present application. For those skilled in the art, the present application can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for determining sensor data in a server, characterized in that The method is programmed in the Python language and includes: Determine a predetermined software package according to the operating system version of the target server and send the predetermined software package to the target server. The predetermined software package includes an RPM software package of IPMITool that matches the operating system version. When the target server is in a pressurized state, run the predetermined software package to at least repeatedly send a first IPMI command to the target server to obtain multiple sensor information of each sensor in the target server. The first IPMI command is a command for requesting to obtain the sensor information of each sensor. The sensor information is determined according to a first response information generated by the target server in response to the first IPMI command. The sensor information includes the name of the sensor and the collected data. Determine multiple regulation points of the multiple sensors according to the multiple sensor information. The regulation point is the collected data that triggers the regulation function of the target server. Among them, the sensors in the target server include a temperature sensor, a power consumption sensor, and a rotation speed sensor. Determining multiple regulation points of the multiple sensors according to the multiple sensor information includes: Determine the regulation point of the temperature sensor according to the temperature sensor information and the rotation speed sensor information, including: Determine a first target time of the rotation speed sensor according to the rotation speed sensor information. In the rotation speed sensor information, the difference between the collected data at the first target time and the collected data at the previous time is within a first predetermined range, and the difference between the collected data at the first target time and the collected data at the next time is within the first predetermined range. Determine the collected data corresponding to the first target time in the temperature sensor information as the regulation point of the temperature sensor. Among them, the temperature sensor information is multiple sensor information of the temperature sensor, and the rotation speed sensor information is multiple sensor information of the rotation speed sensor. Determine the regulation point of the power consumption sensor according to the power consumption sensor information and the rotation speed sensor information, including: Determine a second target time of the rotation speed sensor according to the rotation speed sensor information. In the rotation speed sensor information, the difference between the collected data at the second target time and the collected data at the previous time is within a second predetermined range, and the difference between the collected data at the second target time and the collected data at the next time is within the second predetermined range. Determine the collected data corresponding to the second target time in the power consumption sensor information as the regulation point of the power consumption sensor. Among them, the power consumption sensor information is multiple sensor information of the power consumption sensor.
2. The method according to claim 1, characterized in that, Running the predetermined software package to at least repeatedly send a first IPMI command to the target server to obtain multiple sensor information of each sensor in the target server includes: Run the predetermined software package to cyclically send the first IPMI command to the target server and send a second IPMI command to the target server, where the second IPMI command is a command for requesting to obtain the names of multiple sensors and the alarm thresholds corresponding to the sensors; Receive the second response information sent by the target server and multiple pieces of the first response information, where the second response information is generated by the target server in response to the second IPMI command; Extract the second response information and multiple pieces of the first response information to determine the names of the sensors, the corresponding alarm thresholds, multiple pieces of the collected data, and the time information corresponding to each piece of the collected data, so as to obtain multiple pieces of sensor information; Classify and store the multiple pieces of sensor information according to the types of the sensors to obtain multiple classification files.
3. The method according to claim 1, wherein After obtaining the sensor information, the method further includes: Generate an initial graphical interface that corresponds one-to-one with the types of the sensors; When the duration of cyclically sending the first IPMI command reaches a preset duration, display, in the initial graphical interface, a curve of the change of the collected data of each sensor of the corresponding type over time to obtain a graphical interface; When the collected data of the sensor is greater than the corresponding alarm threshold, mark the time information corresponding to the target collected data in the graphical interface, where the target collected data is the collected data greater than the alarm threshold.
4. The method according to claim 3, wherein The method further includes: Generate a test log including multiple graphical interfaces, multiple classification files, multiple pieces of the first response information, and the second response information; Send the test log to a terminal.
5. The method according to any one of claims 1 to 4, characterized in that The method further includes: According to the type of the CPU in the target server, determine that the pressure application tool corresponding to the CPU is a first pressure application tool, according to the CPU platform in the target server, determine that the pressure application tool corresponding to the memory in the target server is a second pressure application tool, and according to the operating system version, determine that the pressure application tools for the hard disks in the target server are third pressure application tools; Send the first pressure application tool, the second pressure application tool, and the third pressure application tool to the environment variable directory of the target server, and send a pressure application instruction to the server to run the first pressure application tool, the second pressure application tool, and the third pressure application tool to apply pressure to the target server so that the target server is in a pressurized state.
6. The method according to claim 5, characterized in that, The method further includes: When the pressure application duration of applying pressure to the target server reaches a preset duration, send an interrupt signal to the target server to stop the operation of the first pressure application tool, the second pressure application tool, and the third pressure application tool.
7. A determining device for sensor data in a server, characterized in that, The device is programmed using the python language, and the device includes: A first determination unit, configured to determine a predetermined software package according to the operating system version of a target server and send the predetermined software package to the target server, where the predetermined software package includes an RPM software package of IPMITool that matches the operating system version; An operation unit, configured to, when the target server is in a pressurized state, run the predetermined software package to at least cyclically send a first IPMI command to the target server to obtain multiple pieces of sensor information of each sensor in the target server, where the first IPMI command is a command for requesting to obtain the sensor information of each of the sensors, and the sensor information is determined according to a first response message generated by the target server in response to the first IPMI command, and the sensor information includes the name of the sensor and the collected data; A second determination unit, configured to determine regulation points of multiple sensors according to the multiple pieces of sensor information, where the regulation points are the collected data for triggering the regulation function of the target server; Wherein, the sensors in the target server include a temperature sensor, a power consumption sensor, and a rotation speed sensor, and the second determination unit includes: A first determination module, configured to determine the regulation point of the temperature sensor according to the temperature sensor information and the rotation speed sensor information, including: a first determination sub-module, configured to determine a first target time of the rotation speed sensor according to the rotation speed sensor information, where, in the rotation speed sensor information, the difference between the collected data at the first target time and the collected data at the previous time is within a first predetermined range, and the difference between the collected data at the first target time and the collected data at the subsequent time is within the first predetermined range; a second determination sub-module, configured to determine that the collected data corresponding to the first target time in the temperature sensor information is the regulation point of the temperature sensor, where the temperature sensor information is multiple pieces of sensor information of the temperature sensor, and the rotation speed sensor information is multiple pieces of sensor information of the rotation speed sensor; A second determination module, configured to determine the regulation point of the power consumption sensor according to the power consumption sensor information and the rotation speed sensor information, including: a third determination sub-module, configured to determine a second target time of the rotation speed sensor according to the rotation speed sensor information, where, in the rotation speed sensor information, the difference between the collected data at the second target time and the collected data at the previous time is within a second predetermined range, and the difference between the collected data at the second target time and the collected data at the subsequent time is within the second predetermined range; a fourth determination sub-module, configured to determine that the collected data corresponding to the second target time in the power consumption sensor information is the regulation point of the power consumption sensor, where the power consumption sensor information is multiple pieces of sensor information of the power consumption sensor.
8. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, where the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 6.
9. An electronic device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the computer program, the steps of the method described in any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Computer and control method for smart fan thereof
CN103631348A
Sensor state detection method and device and readable storage medium
CN115658408A