Server control method, device and system, server and storage medium
By monitoring the temperature in the server and using the cooling device to cool down, the risk of scalding caused by excessive temperature during server maintenance is solved, and safety and operation and maintenance efficiency are improved.
Patent Information
- Application Number
- CN202411212891.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-27
AI Technical Summary
During the maintenance process, the risk of scalding caused by excessive temperatures is difficult for the prior art to effectively reduce cooling and improve safety.
Through the server control method and device, the temperature of the internal components of the server is monitored, the power supply mode is identified, and the cooling instruction is sent to the heat dissipation device when the temperature reaches the threshold, and the cooling process is performed using the heat dissipation device.
It effectively reduces the internal temperature of the server, reduces the risk of scalds during maintenance, and improves the security and operation and maintenance efficiency of the server.
Smart Images

Figure CN119200777A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server technology, and in particular to a server control method, a server control device, a server control system, a server, and a computer-readable storage medium. Background Art
[0002] As an important computing infrastructure, servers usually need to be regularly maintained and upgraded to ensure their performance and security. For example, when a server is abnormal or needs to be reconfigured, it may be necessary to remove some nodes of the server, such as the baseboard management controller, central processing unit, board, hard disk, etc. However, since servers are usually in a high-performance operating state, it is easy for their temperature to be too high, making it unsuitable for server maintenance. Summary of the invention
[0003] Based on this, it is necessary to provide a server control method, a server control device, a server control system, a server and a computer-readable storage medium to address the above-mentioned technical problems, which can monitor the internal temperature of the server while the server is waiting for configuration modification, and obtain temperature information of the server components to reduce the risk of high internal temperature of the server or even burns when modifying the configuration.
[0004] On the one hand, a server control method is provided, which includes: a server control device obtains a configuration modification instruction; wherein the configuration modification instruction is used to indicate that the server configuration will be modified; in response to obtaining the configuration modification instruction, temperature parameters of target component hardware of the server are obtained; wherein the target component hardware includes at least one of a central processing unit, a baseboard management controller, a hard disk, a memory, and a board; the temperature parameters of each target component hardware are compared with a temperature threshold; in response to the temperature parameter reaching the temperature threshold, a cooling instruction is sent to a heat dissipation device, so that the heat dissipation device starts after receiving the cooling instruction to cool down the inside of the server.
[0005] In one embodiment of the present application, before obtaining the temperature parameters of the target component hardware of the server, the method includes: identifying the power supply mode of the server; generating a first power supply instruction in response to the server being in the system power supply mode; wherein the first power supply instruction is used to instruct the system power supply to output a standby electrical signal to the preset component hardware of the server to maintain the preset component hardware in the standby mode; the target component hardware is at least one of the preset component hardware; the first power supply instruction is also used to instruct the system power supply to output a power supply signal to the temperature sensing device and the server control device; so that after the temperature sensing device obtains the power supply signal, the temperature of the target component hardware is monitored and the monitoring result is formed into a temperature parameter; the first power supply instruction is also used to instruct the system power supply to output a power supply signal to the heat dissipation device to provide power supply electrical energy to the heat dissipation device, so that the heat dissipation device is started after obtaining the cooling instruction from the server control device; and / or, in response to the server being in the battery power supply mode, generating a second power supply instruction and sending it to the battery module; wherein the second power supply instruction is used to instruct the battery module to output a power supply signal to the server control device and the temperature sensing device; so that after the temperature sensing device obtains the power supply signal, the temperature of the target component hardware is monitored and the monitoring result is formed into a temperature parameter; the second power supply instruction is also used to instruct the system power supply to output a power supply signal to the heat dissipation device.
[0006] In one embodiment of the present application, obtaining the modification configuration instruction includes: in response to the server being in a shutdown state, obtaining a first trigger signal from a first pin, and determining to obtain the modification configuration instruction; wherein the first pin is connected to a modification configuration switch; sending a first light-emitting instruction to the first light-emitting component to indicate that the light-emitting mode of the first light-emitting component is in a modification configuration state; identifying the power supply mode of the server, and sending a second light-emitting instruction to the second light-emitting component based on the power supply mode to indicate that the light-emitting mode of the second light-emitting component adapts to the current power supply mode.
[0007] On the other hand, a server control device is provided, which includes: a control module, which is used to connect with a configuration modification switch, a temperature sensing device and a heat dissipation device to implement the following steps: the server control device obtains a configuration modification instruction; wherein the configuration modification instruction is used to indicate that the server will be modified and processed; in response to obtaining the configuration modification instruction, the temperature parameters of the target component hardware of the server are obtained; wherein the target component hardware includes at least one of a central processing unit, a baseboard management controller, a hard disk, a memory and a board; the temperature parameters of each target component hardware are compared with a temperature threshold; in response to the temperature parameter reaching the temperature threshold, a cooling instruction is sent to the heat dissipation device, so that the heat dissipation device is started after receiving the cooling instruction to cool down the inside of the server.
[0008] On the other hand, a server control system is provided, which includes: a server control device and a configuration modification component; the server control device is as described in the above embodiments, and the server control device also includes a first pin group; the configuration modification component is connected to the first pin group, and is used to obtain a configuration modification trigger instruction, form a first trigger signal based on the configuration modification trigger instruction, and send the first trigger signal to the server control device, so that the server control device generates a power supply instruction.
[0009] In one embodiment of the present application, the first pin group includes a first pin and a second pin; the configuration modification component includes a configuration modification switch component and a first light-emitting component, the configuration modification switch component is connected to the first pin, and the first light-emitting component is connected to the second pin; when the configuration modification switch component obtains a configuration modification trigger instruction, it sends a first trigger signal to the server control device; the server control device obtains the first trigger signal input from the first pin, and sends a first light-emitting instruction to the first light-emitting component through the second pin.
[0010] In one embodiment of the present application, the modified configuration component also includes a first pull-up resistor, a second pull-up resistor, a first switch and a first current limiting resistor; one end of the first pull-up resistor is connected to the input voltage, and the other end is connected to the path between the modified configuration switch and the first pin; the first switch includes a first end, a second end and a control end; the second end of the first switch is connected to the first light-emitting component, and the input voltage is input to the second end of the first switch through the first current limiting resistor; the first end of the first switch is grounded; the control end of the first switch is connected to the second pin; one end of the second pull-up resistor is connected to the input voltage, and the other end is connected to the path between the control end of the first switch and the second pin.
[0011] In one embodiment of the present application, the server control system also includes a power switching module; the server control device also includes a third pin; the power switching module is connected to the third pin, and is used to switch the power supply between the system power supply and the battery module, and output a power signal to the server control device via the third pin; wherein the power signal is used to identify the current power supply as the system power supply or the battery module.
[0012] In one embodiment of the present application, the power switching module includes a second switch component, a third switch component, a fourth switch component, a third pull-up resistor, a fourth pull-up resistor, a first voltage-dividing resistor, and a second voltage-dividing resistor; the second switch component includes a first end, a second end, and a control end; the first end of the second switch component is used to connect to the battery module; the control end of the second switch component is connected to the third pull-up resistor to connect to the system power supply through the third pull-up resistor; the third switch component includes a first end, a second end, and a control end; the first end of the third switch component is connected to the second end of the second switch component; the second end of the third switch component is connected to the control end of the third switch component through the fourth pull-up resistor, and the second end of the third switch component is also grounded through the first voltage-dividing resistor and the second voltage-dividing resistor; one end of the first voltage-dividing resistor connected to the second end of the third switch component is also connected to the system power supply; the fourth switch component includes a first end, a second end, and a control end; the first end of the fourth switch component is grounded; the second end of the fourth switch component is connected to the control end of the third switch component; the control end of the fourth switch component is connected to the third pin, and is connected to the path between the first voltage-dividing resistor and the second voltage-dividing resistor.
[0013] In one embodiment of the present application, the server control device also includes a fourth pin; the server control system also includes a second light-emitting component, a fifth switch element, a fifth pull-up resistor and a second current-limiting resistor; the fifth switch element includes a first end, a second end and a control end; the first end of the fifth switch element is connected to the second light-emitting component; the input voltage is input to the first end of the fifth switch element through the second current-limiting resistor; the second end of the fifth switch element is grounded; the control end of the fifth switch element is connected to the fourth pin; the input voltage is input to the control end through the fifth pull-up resistor.
[0014] On the other hand, a server is provided, which includes a server body and a server control system as described in any one of the above embodiments, and the server control system is arranged in the server body.
[0015] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program implements the following steps when executed by a processor: a server control device obtains a configuration modification instruction; wherein the configuration modification instruction is used to indicate that the server will be modified and processed; in response to obtaining the configuration modification instruction, temperature parameters of the target component hardware of the server are obtained; wherein the target component hardware includes at least one of a central processing unit, a baseboard management controller, a hard disk, a memory, and a board; the temperature parameters of each target component hardware are compared with a temperature threshold; in response to the temperature parameter reaching the temperature threshold, a cooling instruction is sent to the heat dissipation device, so that the heat dissipation device starts after receiving the cooling instruction to cool down the inside of the server.
[0016] The above-mentioned server control method, server control device, server control system, server and computer-readable storage medium, in response to obtaining a modification configuration instruction that identifies that the server configuration will be modified, can be considered to have a potential tendency to remove the server node from the shelf, sense the temperature of the target component hardware in the server, obtain the temperature information of the server internal / each target component hardware, and compare the obtained temperature parameters with the preset temperature threshold. If the temperature parameter reaches the temperature threshold, it can be considered that the server is hot and there is a risk of scalding the operation and maintenance personnel. Therefore, a cooling instruction is sent to the heat dissipation device to cool the server through the heat dissipation device, thereby reducing the risk of high internal temperature of the server or even scalding when modifying the configuration, thereby further improving the safety of the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a structural diagram of an embodiment of the server of the present application;
[0018] Figure 2 It is a structural diagram of an embodiment of the server control system of the present application;
[0019] Figure 3 It is a structural diagram of an embodiment of the server control device of the present application;
[0020] Figure 4 It is a structural diagram of an embodiment of a modified configuration component of the present application;
[0021] Figure 5 It is a structural diagram of an embodiment of a power switching module of the present application;
[0022] Figure 6 It is a structural diagram of another embodiment of the server of the present application;
[0023] Figure 7 yes Figure 6 The server shown is a signal marking schematic diagram of a system power supply;
[0024] Figure 8 yes Figure 6 The server shown is a signal marking schematic diagram of a battery module power supply;
[0025] Fig. 9 It is a flow chart of an embodiment of the server control method of the present application;
[0026] Fig.10 It is a flow chart of another embodiment of the server control method of the present application;
[0027] Fig.11 It is a structural diagram of an embodiment of a computer device of the present application. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0029] In order to solve the technical problem of excessive temperature or even scalding of relevant personnel during server operation and maintenance in the related technology, the present application provides a server control method, a server control device, a server control system, a server and a computer-readable storage medium. The server control method includes:
[0030] The specific structure and working principle of this application are described in detail below.
[0031] See also Figure 1 , Figure 1 It is a structural diagram of an embodiment of the server of this application.
[0032] In one embodiment, the server includes a server body 10 and a server control system 20 .
[0033] The server body 10 may include a BMC (baseboard management controller), a CPU (Central Processing Unit), a board, a hard disk, a heat dissipation device 40, a temperature sensing device 30 such as a temperature sensor, a battery module, and the like.
[0034] The server control system 20 is disposed on the server body 10. In this embodiment, the server control system 20 can monitor the temperature of each structure and component hardware of the server while the service area is waiting for configuration modification, and control the server to cool down when the server temperature is high, thereby reducing the risk of accidental scalding and improving the safety of the server. It can also improve the cooling efficiency after the server is shut down, so as to improve the operation and maintenance efficiency of the server.
[0035] See also Figure 2 , Figure 2 It is a structural diagram of an embodiment of a server control system of the present application.
[0036] In one embodiment, the server control system 20 includes a server control device 21 and a configuration modification component 22 .
[0037] See also Figure 3 , Figure 3 It is a structural diagram of an embodiment of the server control device of the present application.
[0038] In one embodiment, the server control device 21 may include a control module 211. The control module 211 is used to connect with the configuration modification switch S1, the temperature sensing device 30 and the heat dissipation device 40 to implement the following steps: the server control device 21 obtains a configuration modification instruction; wherein the configuration modification instruction is used to indicate that the server will be subjected to configuration modification processing; in response to obtaining the configuration modification instruction, the temperature parameters of the target component hardware of the server are obtained; wherein the target component hardware includes at least one of a central processing unit, a baseboard management controller, a hard disk, a memory and a board; the temperature parameters of each target component hardware are compared with a temperature threshold; in response to the temperature parameter reaching the temperature threshold, a cooling instruction is sent to the heat dissipation device 40, so that the heat dissipation device 40 starts after receiving the cooling instruction to cool down the inside of the server.
[0039] Furthermore, the control module 211 may be an independent main control chip / module, etc.; or it may be an existing control chip of the server, such as BMC, CPU, etc.
[0040] Taking the control module 211 as a newly added, independent main control chip as an example, the control module 211 can be an MCU (Microcontroller Unit), a single-chip microcomputer, a PLC (Programmable Logic Controller), an FPGA (Field Programmable Gate Array), etc.
[0041] It can be seen that the server control device 21 can respond to the modification configuration instruction of the acquisition identification to modify the configuration of the server. It can be considered that there is a potential tendency to remove the server node from the shelf, and the temperature of the target component hardware in the server is sensed to obtain the temperature information of the server internal / each target component hardware. And the obtained temperature parameter is compared with the preset temperature threshold. If the temperature parameter reaches the temperature threshold, it can be considered that the server is hot and there is even a risk of scalding the operation and maintenance personnel, so a cooling instruction is sent to the heat sink 40 to cool the server through the heat sink 40. Compared with the natural cooling of the server, cooling assisted by the heat sink 40 in this embodiment is also conducive to improving the cooling efficiency, and then conducive to improving the operation and maintenance efficiency of the server. In addition, it can reduce the risk of high internal temperature of the server or even scalding when modifying the configuration, and further improve the safety of the server. In addition, relatively independent main control chips such as MCU can further reduce the power consumption of the server in the process of waiting for configuration modification and cooling, and is conducive to reducing heat generation.
[0042] For the specific definition of the server control device 21, please refer to the definition of the server control method in the following text, which will not be repeated here. Each module in the above-mentioned server control device 21 can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0043] Please continue reading Figure 3 In one embodiment, the server control device 21 may include a first pin group.
[0044] The configuration modification component 22 is connected to the first pin group, and is used to obtain a configuration modification trigger instruction, form a first trigger signal based on the configuration modification trigger instruction, and send the first trigger signal to the server control device 21, so that the server control device 21 generates a power supply instruction.
[0045] Optionally, the configuration modification component 22 may be a physical button or a virtual button, etc. In this way, when there is a need to operate and maintain the server, the configuration modification requirement can be fed back by triggering the configuration modification component 22, so that the server control device 21 can control the server to actively cool down, so that the server control device 21 can monitor the internal temperature of the server based on this.
[0046] See also Figure 4 , Figure 4 It is a structural diagram of an embodiment of a modified configuration component of the present application.
[0047] In one embodiment, the first pin group of the server control device 21 may include a first pin and a second pin.
[0048] The modified configuration component 22 includes a modified configuration switch component S1 and a first light emitting component L1.
[0049] The configuration switch S1 is connected to the first pin, and the first light emitting component L1 is connected to the second pin. The configuration switch S1 can be connected to the first light emitting component L1 on the server, on the server surface or inside the server housing, which is not limited here.
[0050] When the configuration modification switch S1 obtains the configuration modification trigger instruction, it sends a first trigger signal to the server control device 21; the server control device 21 obtains the first trigger signal input from the first pin, and sends a first light-emitting instruction to the first light-emitting component L1 through the second pin.
[0051] Optionally, the first light-emitting component L1 may include at least one light-emitting component such as a lamp. For example, when the configuration modification switch component S1 is triggered, the first light-emitting component L1 is enabled to emit light; when the configuration modification switch component S1 is not triggered, the first light-emitting component L1 may not emit light. Alternatively, the light-emitting effect of the first light-emitting component L1 is different between the triggering state and the non-triggering state of the configuration modification switch component S1, which is not limited here.
[0052] That is to say, in this embodiment, the user can express the need to modify the configuration by triggering the configuration modification switch S1. In this way, by identifying the state of the configuration modification switch S1, it can be judged whether there is a need to modify the configuration. At the same time, the first light-emitting component L1 can also be used to visually prompt whether the server is in a state of waiting for configuration modification.
[0053] Furthermore, the modified configuration component 22 may also include a first pull-up resistor R11 , a second pull-up resistor R12 , a first switch element NMOS1 , and a first current limiting resistor R21 .
[0054] One end of the first pull-up resistor R11 is connected to the input voltage, and the other end is connected to the path between the modification configuration switch S1 and the first pin.
[0055] The first switch element NMOS1 includes a first terminal, a second terminal and a control terminal.
[0056] The second end of the first switch element NMOS1 is connected to the first light emitting component L1 , and the input voltage is input to the second end of the first switch element NMOS1 through the first current limiting resistor R21 .
[0057] A first terminal of the first switch element NMOS1 is grounded.
[0058] The control end of the first switch element NMOS1 is connected to the second pin; one end of the second pull-up resistor R12 is connected to the input voltage, and the other end is connected to the path between the control end of the first switch element NMOS1 and the second pin.
[0059] If so, after the configuration modification component 22 is triggered, the control module 211 can send a first light-emitting instruction through the second pin to control the first switch NMOS1 to turn off, so that the first switch NMOS1 switches to the cut-off state. If so, the input voltage can supply power to the first light-emitting component L1 through the first current limiting resistor R21.
[0060] See also Figures 5 to 8 , Figure 5 is a schematic diagram of the structure of an embodiment of the power switching module of the present application, Figure 6 is a structural diagram of another embodiment of the server of the present application, Figure 7 yes Figure 6The server shown is in the signal annotation diagram of the system power supply. Figure 8 yes Figure 6 The signal marking diagram of the server shown is powered by a battery module.
[0061] In one embodiment, the server control system 20 further includes a power switching module; and the server control device 21 further includes a third pin.
[0062] The power switching module is connected to the third pin, and is used to switch the power supply between the system power supply and the battery module, and output a power signal to the server control device 21 via the third pin; wherein the power signal is used to identify the current power supply as the system power supply or the battery module.
[0063] Specifically, the power switching module may include a second switch element PMOS1 , a third switch element PMOS2 , a fourth switch element NMOS2 , a third pull-up resistor R13 , a fourth pull-up resistor R14 , a first voltage-dividing resistor R31 , and a second voltage-dividing resistor 32 .
[0064] The second switch element PMOS1 includes a first terminal, a second terminal and a control terminal.
[0065] The first end of the second switch element PMOS1 is used to connect to the battery module. The control end of the second switch element PMOS1 is connected to the third pull-up resistor R13 to connect to the system power supply through the third pull-up resistor R13.
[0066] The third switch element PMOS2 includes a first terminal, a second terminal and a control terminal.
[0067] The first end of the third switch element PMOS2 is connected to the second end of the second switch element PMOS1. The second end of the third switch element PMOS2 is connected to the control end of the third switch element PMOS2 through the fourth pull-up resistor R14, and the second end of the third switch element PMOS2 is also grounded through the first voltage-dividing resistor R31 and the second voltage-dividing resistor 32.
[0068] One end of the first voltage dividing resistor R31 connected to the second end of the third switch element PMOS2 is also connected to the system power supply.
[0069] The fourth switch element NMOS2 includes a first terminal, a second terminal and a control terminal.
[0070] The first end of the fourth switch element NMOS2 is grounded; the second end of the fourth switch element NMOS2 is connected to the control end of the third switch element PMOS2; the control end of the fourth switch element NMOS2 is connected to the third pin and is connected to the path between the first voltage dividing resistor R31 and the second voltage dividing resistor 32.
[0071] Thus, in this embodiment, the output power of the system power is sensed by the power switching module, and when the system power does not output power, the second switch PMOS1 is turned on due to the voltage difference, so that the battery module is used as the power supply, thereby realizing power supply sensing and switching automation. That is, when the system function of the server is abnormal, the battery module can be automatically switched as the power supply.
[0072] Optionally, the first switch element NMOS1 , the fourth switch element NMOS2 , and the fifth switch element NMOS3 may be NMOS (N-Metal-Oxide-Semiconductor).
[0073] The second switch element PMOS1 and the third switch element PMOS2 may be PMOS (positive channel Metal Oxide Semiconductor).
[0074] Of course, in an alternative embodiment, at least one of the first switch element NMOS1, the second switch element PMOS1, the third switch element PMOS2, the fourth switch element NMOS2, and the fifth switch element NMOS3 can realize the function through other electronic devices or modules such as transistors, which will not be repeated here.
[0075] Please continue reading Figure 6 In one embodiment, the server control device 21 further includes a fourth pin.
[0076] The server control system 20 also includes a second light-emitting component L2, a fifth switch NMOS3, a fifth pull-up resistor and a second current-limiting resistor 22; the fifth switch NMOS3 includes a first end, a second end and a control end; the first end of the fifth switch NMOS3 is connected to the second light-emitting component L2; the input voltage is input to the first end of the fifth switch NMOS3 through the second current-limiting resistor 22; the second end of the fifth switch NMOS3 is grounded; the control end of the fifth switch NMOS3 is connected to the fourth pin; the input voltage is input to the control end through the fifth pull-up resistor. In this way, the power supply of the server can be displayed through the second light-emitting component.
[0077] like Figure 7 As shown in the example, when the power supply is the system power supply, the control module 211 can control the fourth pin to output a high level signal in response to receiving a high level signal input from the third pin. In this case, the fifth switch NMOS3 meets its conduction condition, so no current flows through the second light-emitting component L2, so it does not emit light.
[0078] For example, it can be configured that when the server is powered by a battery module, the second light-emitting component L2 emits light, and when the server is powered by a system power supply, the second light-emitting component L2 does not emit light. Alternatively, it can be configured that the lighting effect when the battery module is used as the power supply is different from the lighting effect when the system power supply is used as the power supply.
[0079] Optionally, the system power supply can be considered as an external power supply connected to a mains supply, etc. When the server is in a normal working state, the system power supply can charge the battery module of the server.
[0080] Optionally, the battery module may include one battery or multiple batteries, which is not limited here.
[0081] See also Fig. 9 , Fig. 9 It is a flow chart of an embodiment of the server control method of the present application.
[0082] S101: The server control device obtains a configuration modification instruction; wherein the configuration modification instruction is used to indicate that a configuration modification process will be performed on the server.
[0083] S102: In response to obtaining the configuration modification instruction, obtaining temperature parameters of target component hardware of the server; wherein the target component hardware includes at least one of a central processing unit, a baseboard management controller, a hard disk, a memory, and a board.
[0084] In this embodiment, the temperature parameter can be sensed by a temperature sensing device. The temperature sensing device can be arranged inside the server, or a plurality of temperature sensing units can be arranged on or near the surface of each target component hardware, which is not limited here.
[0085] S103: Compare the temperature parameters of each target component hardware with the temperature threshold.
[0086] In this embodiment, the temperature parameters of each target hardware component may be obtained respectively, and the target hardware component having a temperature parameter higher than a temperature threshold may be cooled down. Alternatively, the entire server may be cooled down, which is not limited here.
[0087] The temperature threshold is preset. For example, the temperature threshold may be 35°C to 45°C, for example, the temperature threshold may be 35°C, 37.5°C, 40°C, 42.5°C, 45°C, etc.
[0088] S104: In response to the temperature parameter reaching the temperature threshold, a cooling instruction is sent to the heat dissipation device, so that the heat dissipation device starts after receiving the cooling instruction to cool down the inside of the server.
[0089] In this embodiment, the heat dissipation device may be a fan assembly, a TEC (Thermoelectric cooler), etc., which is not limited here. The fan assembly is also helpful in reducing the power loss of the server control process, and the TEC is helpful in improving the cooling efficiency.
[0090] Furthermore, when the temperature parameter reaches the temperature threshold, and / or the temperature parameter is lower than the temperature threshold after cooling by the heat dissipation device, a prompt message can be sent to realize the feedback of temperature information. For example, when the temperature parameter is lower than the temperature threshold after cooling by the heat dissipation device, when a prompt message is sent, it is helpful for the user to obtain the information that the server has been cooled in time, and to modify the configuration of the server in time, etc., to remove the node.
[0091] It can be seen that in this embodiment, in response to the modification configuration instruction of the acquisition identification to modify the configuration of the server, it can be considered that there is a potential tendency to remove the server node from the shelf, and the temperature of the target component hardware in the server is sensed to obtain the temperature information of the server internal / each target component hardware. And the obtained temperature parameter is compared with the preset temperature threshold. If the temperature parameter reaches the temperature threshold, it can be considered that the server is hot and there is even a risk of scalding the operation and maintenance personnel, so a cooling instruction is sent to the heat sink to cool the server through the heat sink. Compared with the natural cooling of the server, cooling with the assistance of the heat sink in this embodiment is also conducive to improving the cooling efficiency, and then to improving the operation and maintenance efficiency of the server. In addition, it can reduce the risk of high internal temperature of the server or even scalding when modifying the configuration, and further improve the safety of the server. At the same time, it can also make the maintenance process and system status clear, which is conducive to realizing circuit control and obtaining the sensed temperature information of the temperature sensing device through the bus.
[0092] See also Fig.10 , Fig.10 It is a flow chart of another embodiment of the server control method of the present application.
[0093] S201: In response to the server being in a shutdown state, obtaining a configuration modification instruction.
[0094] S202: Send a first light-emitting instruction to the first light-emitting component.
[0095] S203: Identify the power supply mode of the server.
[0096] In this embodiment, when the power supply mode of the server is system power supply, step S204 is executed; when the power supply mode of the server is battery module power supply, step S205 is executed.
[0097] Furthermore, when the server is powered by a battery module, the power information of the battery module can be obtained to monitor the remaining power of the battery module. When the remaining power of the battery module is lower than the power threshold, power prompt information is generated to encourage operation and maintenance personnel to perform relevant operation and maintenance on the server in real time.
[0098] Optionally, it is also possible to control the control unit such as BMC to send a monitoring instruction to monitor the performance of the control module of the server control device. In response to determining that the control module is abnormal, it takes over the server control function of the control module, monitors the temperature of the target component hardware and / or the inside of the server while the server is waiting for configuration modification, and controls the heat dissipation device to cool down when the temperature parameter exceeds the temperature threshold. BMC can also generate control prompt information to synchronously remind the control module of abnormal conditions.
[0099] S204: Generate a first power supply instruction to instruct the system power supply to output a standby electrical signal to the preset hardware components to maintain the preset hardware components in standby mode; and also to instruct the system power supply to output a power supply signal to the temperature sensing device and the server control device.
[0100] S205: Generate a second power supply instruction to instruct the battery module to output a power supply signal to the server control device and the temperature sensing device.
[0101] S206: Send a second light-emitting instruction to the second light-emitting component.
[0102] S207: Obtaining temperature parameters of target component hardware
[0103] S208: Determine whether the temperature parameter reaches a temperature threshold.
[0104] S209: Send a cooling instruction to the heat dissipation device.
[0105] That is, in this embodiment, before obtaining the temperature parameters of the target component hardware of the server, the power supply mode of the server can also be identified.
[0106] In response to the server being in the system power supply mode, a first power supply instruction is generated; wherein, the first power supply instruction is used to instruct the system power supply to output a standby electrical signal to the preset component hardware of the server to maintain the preset component hardware in the standby mode; the target component hardware is at least one of the preset component hardware; the first power supply instruction is also used to instruct the system power supply to output a power supply signal to the temperature sensing device and the server control device; after the temperature sensing device obtains the power supply signal, the temperature of the target component hardware is monitored, and the monitoring result is formed into a temperature parameter; the first power supply instruction is also used to instruct the system power supply to output a power supply signal to the heat dissipation device to provide power supply electrical energy to the heat dissipation device, so that the heat dissipation device starts after obtaining the cooling instruction from the server control device.
[0107] And / or, in response to the server being in battery power mode, a second power supply instruction is generated and sent to the battery module; wherein the second power supply instruction is used to instruct the battery module to output a power supply signal to the server control device and the temperature sensing device; so that after the temperature sensing device obtains the power supply signal, the temperature of the target component hardware is monitored, and the monitoring result is formed into a temperature parameter; the second power supply instruction is also used to instruct the system power supply to output a power supply signal to the heat dissipation device.
[0108] Moreover, in this embodiment, in response to the server being in a shutdown state, a first trigger signal from a first pin can be obtained to determine whether to obtain a configuration modification instruction; wherein the first pin is connected to a configuration modification switch; a first light-emitting instruction is sent to a first light-emitting component to indicate that a light-emitting mode of the first light-emitting component is in a configuration modification state; the power supply mode of the server is identified, and a second light-emitting instruction is sent to a second light-emitting component based on the power supply mode to indicate that a light-emitting mode of the second light-emitting component is adapted to the current power supply mode.
[0109] It can be seen that in this embodiment, when the power supply of the server is a battery module, the power supply to the preset hardware components to maintain the standby state will be reduced. That is, when the battery module is used as the power supply, the standby electrical signal may not be output to the preset hardware components to reduce the power consumption of the battery module, extend the battery life of the battery module while waiting for the configuration to be modified, and reduce the risk of rapid exhaustion of the battery module.
[0110] It should be understood that although Figure 9-10 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 9-10 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0111] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the steps of the server control method described above are implemented, which will not be described in detail here.
[0112] See also Fig.11 , Fig.11 It is a structural diagram of an embodiment of a computer device of the present application.
[0113] In one embodiment, the computer device may be a server, and its internal structure diagram may be as follows: Fig.11 As shown in the example.
[0114] The computer device includes a processor, a memory, and a network interface connected via a system bus.
[0115] The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a server control method is implemented.
[0116] Those skilled in the art will understand that Fig.11 The structure shown as an example is merely a block diagram of a portion of the structure related to the present application solution, and does not constitute a limitation on the computer device to which the present application solution is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0117] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0118] S101: The server control device obtains a configuration modification instruction; wherein the configuration modification instruction is used to indicate that a configuration modification process will be performed on the server.
[0119] S102: In response to obtaining the configuration modification instruction, obtaining temperature parameters of target component hardware of the server; wherein the target component hardware includes at least one of a central processing unit, a baseboard management controller, a hard disk, a memory, and a board.
[0120] S103: Compare the temperature parameters of each target component hardware with the temperature threshold.
[0121] S104: In response to the temperature parameter reaching the temperature threshold, a cooling instruction is sent to the heat dissipation device, so that the heat dissipation device starts after receiving the cooling instruction to cool down the inside of the server.
[0122] In one embodiment, before obtaining the temperature parameters of the target component hardware of the server, the processor further implements the following steps when executing the computer program:
[0123] Identify the power supply mode of the server; in response to the server being in the system power supply mode, generate a first power supply instruction; wherein the first power supply instruction is used to instruct the system power supply to output a standby electrical signal to the preset component hardware of the server to maintain the preset component hardware in standby mode; the target component hardware is at least one of the preset component hardware; the first power supply instruction is also used to instruct the system power supply to output a power supply signal to a temperature sensing device and a server control device; so that after the temperature sensing device obtains the power supply signal, the temperature of the target component hardware is monitored, and the monitoring result is formed into a temperature parameter; the first power supply instruction is also used to instruct the system power supply to output a power supply signal to a heat dissipation device to provide power supply electrical energy to the heat dissipation device, so that the heat dissipation device is started after obtaining a cooling instruction from the server control device; and / or, in response to the server being in the battery power supply mode, generate a second power supply instruction and send it to the battery module; wherein the second power supply instruction is used to instruct the battery module to output a power supply signal to the server control device and the temperature sensing device; so that after the temperature sensing device obtains the power supply signal, the temperature of the target component hardware is monitored, and the monitoring result is formed into a temperature parameter; the second power supply instruction is also used to instruct the system power supply to output a power supply signal to the heat dissipation device.
[0124] In one embodiment, when obtaining the configuration modification instruction, the processor further implements the following steps when executing the computer program:
[0125] In response to the server being in a shutdown state, a first trigger signal from a first pin is obtained, and a modification configuration instruction is determined to be obtained; wherein the first pin is connected to a modification configuration switch; a first light-emitting instruction is sent to a first light-emitting component to indicate that a light-emitting mode of the first light-emitting component is in a modification configuration state; a power supply mode of the server is identified, and based on the power supply mode, a second light-emitting instruction is sent to a second light-emitting component to indicate that a light-emitting mode of the second light-emitting component is adapted to the current power supply mode.
[0126] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0127] S101: The server control device obtains a configuration modification instruction; wherein the configuration modification instruction is used to indicate that a configuration modification process will be performed on the server.
[0128] S102: In response to obtaining the configuration modification instruction, obtaining temperature parameters of target component hardware of the server; wherein the target component hardware includes at least one of a central processing unit, a baseboard management controller, a hard disk, a memory, and a board.
[0129] S103: Compare the temperature parameters of each target component hardware with the temperature threshold.
[0130] S104: In response to the temperature parameter reaching the temperature threshold, a cooling instruction is sent to the heat dissipation device, so that the heat dissipation device starts after receiving the cooling instruction to cool down the inside of the server.
[0131] In one embodiment, before obtaining the temperature parameters of the target component hardware of the server, the computer program further implements the following steps when executed by the processor:
[0132] Identify the power supply mode of the server; in response to the server being in the system power supply mode, generate a first power supply instruction; wherein the first power supply instruction is used to instruct the system power supply to output a standby electrical signal to the preset component hardware of the server to maintain the preset component hardware in standby mode; the target component hardware is at least one of the preset component hardware; the first power supply instruction is also used to instruct the system power supply to output a power supply signal to a temperature sensing device and a server control device; so that after the temperature sensing device obtains the power supply signal, the temperature of the target component hardware is monitored, and the monitoring result is formed into a temperature parameter; the first power supply instruction is also used to instruct the system power supply to output a power supply signal to a heat dissipation device to provide power supply electrical energy to the heat dissipation device, so that the heat dissipation device is started after obtaining a cooling instruction from the server control device; and / or, in response to the server being in the battery power supply mode, generate a second power supply instruction and send it to the battery module; wherein the second power supply instruction is used to instruct the battery module to output a power supply signal to the server control device and the temperature sensing device; so that after the temperature sensing device obtains the power supply signal, the temperature of the target component hardware is monitored, and the monitoring result is formed into a temperature parameter; the second power supply instruction is also used to instruct the system power supply to output a power supply signal to the heat dissipation device.
[0133] In one embodiment, when obtaining the configuration modification instruction, the computer program further implements the following steps when executed by the processor:
[0134] In response to the server being in a shutdown state, a first trigger signal from a first pin is obtained, and a modification configuration instruction is determined to be obtained; wherein the first pin is connected to a modification configuration switch; a first light-emitting instruction is sent to a first light-emitting component to indicate that a light-emitting mode of the first light-emitting component is in a modification configuration state; a power supply mode of the server is identified, and based on the power supply mode, a second light-emitting instruction is sent to a second light-emitting component to indicate that a light-emitting mode of the second light-emitting component is adapted to the current power supply mode.
[0135] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0136] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0137] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application.
Claims
1. A server control method, characterized in that: The server control method comprises: The server control device obtains a configuration modification instruction; wherein the configuration modification instruction is used to indicate that a configuration modification process will be performed on the server; In response to obtaining the configuration modification instruction, obtaining temperature parameters of target component hardware of the server; wherein the target component hardware includes at least one of a central processing unit, a baseboard management controller, a hard disk, a memory, and a board; Comparing the temperature parameters of each of the target hardware components with a temperature threshold; In response to the temperature parameter reaching the temperature threshold, a cooling instruction is sent to the heat dissipation device, so that the heat dissipation device is started after receiving the cooling instruction to cool down the inside of the server.
2. The server control method according to claim 1, characterized in that: The step of obtaining the temperature parameters of the target hardware components of the server includes: Identifying a power supply mode of the server; In response to the server being in the system power supply mode, a first power supply instruction is generated; wherein, the first power supply instruction is used to instruct the system power supply to output a standby electrical signal to the preset component hardware of the server to maintain the preset component hardware in the standby mode; the target component hardware is at least one of the preset component hardware; the first power supply instruction is also used to instruct the system power supply to output a power supply signal to the temperature sensing device and the server control device; so that after the temperature sensing device obtains the power supply signal, the temperature of the target component hardware is monitored and the monitoring result is formed into the temperature parameter; the first power supply instruction is also used to instruct the system power supply to output a power supply signal to the heat dissipation device to provide power supply electrical energy to the heat dissipation device, so that the heat dissipation device starts after obtaining the cooling instruction from the server control device; and / or, In response to the server being in battery-powered mode, a second power supply instruction is generated and sent to the battery module; wherein the second power supply instruction is used to instruct the battery module to output a power supply signal to the server control device and the temperature sensing device; so that after the temperature sensing device obtains the power supply signal, the temperature of the target component hardware is monitored and the monitoring result is formed into the temperature parameter; the second power supply instruction is also used to instruct the system power supply to output a power supply signal to the heat dissipation device.
3. The server control method according to claim 1, characterized in that: The obtaining and modifying configuration instruction comprises: In response to the server being in a shutdown state, obtaining a first trigger signal from a first pin, and determining to obtain the configuration modification instruction; wherein the first pin is connected to a configuration modification switch; Sending a first lighting instruction to the first lighting component to indicate that the lighting mode of the first lighting component is in a modified configuration state; The power supply mode of the server is identified, and based on the power supply mode, a second light-emitting instruction is sent to the second light-emitting component to instruct the light-emitting mode of the second light-emitting component to adapt to the current power supply mode.
4. A server control device, characterized in that: The server control device comprises: A control module is used to connect with the configuration modification switch, the temperature sensing device and the heat dissipation device to implement the server control method as claimed in any one of claims 1 to 3.
5. A server control system, characterized in that: The server control system comprises: The server control device as claimed in claim 4, comprising a first pin group; A configuration modification component is connected to the first pin group, and is used to obtain a configuration modification trigger instruction, form a first trigger signal based on the configuration modification trigger instruction, and send the first trigger signal to the server control device to enable the server control device to generate a power supply instruction.
6. The server control system according to claim 5, characterized in that: The first pin group includes a first pin and a second pin; The modified configuration component includes a modified configuration switch component and a first light-emitting component, the modified configuration switch component is connected to the first pin, and the first light-emitting component is connected to the second pin; When the configuration modification switch component obtains the configuration modification trigger instruction, it sends the first trigger signal to the server control device; the server control device obtains the first trigger signal input from the first pin, and sends the first light-emitting instruction to the first light-emitting component through the second pin.
7. The server control system according to claim 6, characterized in that: The modified configuration component further includes a first pull-up resistor, a second pull-up resistor, a first switch element, and a first current limiting resistor; One end of the first pull-up resistor is connected to the input voltage, and the other end is connected to the path between the modified configuration switch and the first pin; The first switch element includes a first end, a second end and a control end; The second end of the first switch is connected to the first light-emitting component, and the input voltage is input to the second end of the first switch through the first current-limiting resistor; The first end of the first switch is grounded; The control end of the first switch element is connected to the second pin; One end of the second pull-up resistor is connected to the input voltage, and the other end is connected to the path between the control end of the first switch element and the second pin.
8. The server control system according to claim 5, characterized in that: The server control system further includes a power switching module; the server control device further includes a third pin; The power switching module is connected to the third pin, and is used to switch the power supply between the system power supply and the battery module, and output a power signal to the server control device via the third pin; wherein the power signal is used to identify the current power supply as the system power supply or the battery module.
9. The server control system according to claim 8, characterized in that: The power switching module includes a second switch element, a third switch element, a fourth switch element, a third pull-up resistor, a fourth pull-up resistor, a first voltage-dividing resistor, and a second voltage-dividing resistor; The second switch element includes a first end, a second end and a control end; The first end of the second switch element is used to connect to the battery module; The control end of the second switch element is connected to the third pull-up resistor to connect to the system power supply through the third pull-up resistor; The third switch element includes a first end, a second end and a control end; The first end of the third switch element is connected to the second end of the second switch element; The second end of the third switch element is connected to the control end of the third switch element through the fourth pull-up resistor, and the second end of the third switch element is also grounded through the first voltage-dividing resistor and the second voltage-dividing resistor; One end of the first voltage-dividing resistor connected to the second end of the third switch element is also connected to the system power supply; The fourth switch element includes a first end, a second end and a control end; A first terminal of the fourth switch element is grounded; The second end of the fourth switch element is connected to the control end of the third switch element; The control end of the fourth switch element is connected to the third pin and to a path connected between the first voltage-dividing resistor and the second voltage-dividing resistor.
10. The server control system according to claim 5, characterized in that: The server control device further includes a fourth pin; The server control system further includes a second light emitting component, a fifth switch element, a fifth pull-up resistor and a second current limiting resistor; The fifth switch element includes a first end, a second end and a control end; The first end of the fifth switch is connected to the second light-emitting component; the input voltage is input to the first end of the fifth switch through the second current-limiting resistor; The second end of the fifth switch element is grounded; The control end of the fifth switch element is connected to the fourth pin; the input voltage is input to the control end through the fifth pull-up resistor.
11. A server, characterized in that: The server comprises: Server body; The server control system as described in any one of claims 5 to 10 is arranged on the server body.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the server control method according to any one of claims 1 to 3 are implemented.
