Query Method and Device for Server Power Supply Information, Storage Medium and Electronic Device

By deploying synchronous power supply components in the server, and using the target controller to query and store power supply information, the problem of low management efficiency between powershelf is solved, and efficient power supply information query is achieved.

CN119200800BActive Publication Date: 2025-07-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411728832.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-07-18
Estimated Expiration
2044-11-28

AI Technical Summary

Technical Problem

In the server, due to the low management efficiency between powershelf in the prior art, it is necessary to log in to two BMC WEB interfaces at the same time during operation and maintenance management to query all PSU information, and the number of managed PSUs doubled, which takes too long, affecting efficiency.

Method used

By deploying the first power supply component and the second power supply component in the server, they are allowed to synchronize the operation information of the power supply power supply, and use the target controller to receive query requests, extract the operation information of the target and reference power supply power supply, and collect and store information under normal or abnormal conditions, centralized query of the power supply power supply is realized.

Benefits of technology

It can query the power information of all power supply components on the server through any controller, which improves query efficiency and avoids the waste of time and inefficiency caused by managing a powershelf separately.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119200800B_ABST
    Figure CN119200800B_ABST
Patent Text Reader

Abstract

An embodiment of the present application provides a method and device for querying server power supply information, a storage medium, and an electronic device. The method includes: receiving a target query request, where the target query request is used to request querying the operating information of a power supply deployed on a server; in response to the target query request, extracting the target operating information of the target power supply in the target power supply component collected by the target controller, and extracting the reference operating information of the reference power supply synchronized by the target controller, where the reference controller is the controller other than the target controller among the first controller and the second controller, and the reference power supply is the power supply corresponding to the reference controller; outputting the target operating information and the reference operating information. Through the present application, the problem of low query efficiency of server power supply information is solved, and thus the effect of improving the query efficiency of server power supply information is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of servers. Specifically, the embodiments of the present application relate to a method and device for querying server power supply information, a storage medium, and an electronic device. Background Art

[0002] Since there are flexible power supply load combinations in the whole cabinet, there may be more than 1 powershelf installed in the cabinet. When performing operation and maintenance management on two powershelves simultaneously, the management network ports of both powershelves need to be inserted into the switch. From the perspective of the management software, it is inconvenient to log in to two BMC WEB (World Wide Web) interfaces. Moreover, each WEB page can only read half of the PSU information of the entire cabinet and cannot fully display it. All PSU information can only be queried through two BMC WEB pages. If a PSU under a certain powershelf has an alarm, and at this time the operation and maintenance personnel are paying attention to the information of another powershelf under the WEB, the PSU alarm may be missed.

[0003] If powershelf1 and powershelf2 are simply interconnected and only the PMC in a certain powershelf is used to manage all the PSUs in the two powershelves, then this PMC has to manage too many PSUs, and the number of PSUs to be managed doubles directly. Since the BMC needs to read all the registers inside each PSU once during operation, it takes a certain amount of time, and the polling time for one round is relatively long. Therefore, using the PMC in a certain powershelf to manage the PSUs of all powershelves takes too long and greatly affects the efficiency. Summary of the Invention

[0004] The embodiments of the present application provide a method and device for querying server power supply information, a storage medium, and an electronic device, so as to at least solve the problem of low query efficiency of server power supply information in the related art.

[0005] According to an embodiment of the present application, a method for querying server power supply information is provided. In the server, a first power supply component and a second power supply component are deployed. The first power supply component includes a first controller and a first power supply, and the second power supply component includes a second controller and a second power supply. The first power supply component and the second power supply component are set to allow mutual synchronization of the operation information of the generated power supplies. The operation information is used to detect the operation status of the corresponding power supplies. The method is applied to a target controller among the first controller and the second controller. The method includes: receiving a target query request, where the target query request is used to request querying the operation information of the power supplies deployed on the server; responding to the target query request, extracting the target operation information of the target power supply in the target power supply component collected by the target controller, and extracting the reference operation information of the reference power supply synchronized to the target controller, where the reference controller is the controller other than the target controller among the first controller and the second controller, and the reference power supply is the power supply corresponding to the reference controller; and outputting the target operation information and the reference operation information.

[0006] In a exemplary embodiment, before extracting the target operation information of the target power supply in the target power supply component collected by the target controller and extracting the reference operation information of the reference power supply synchronized to the target controller, the method further includes: collecting and storing the target operation information, and detecting the reference operation status of the reference controller, where the reference operation status is used to indicate the operation condition of the reference controller; in the case where the reference operation status is used to indicate that the reference controller is operating normally, obtaining and storing the reference operation information synchronized from the reference controller to the target controller; in the case where the reference operation status is used to indicate that the reference controller is operating abnormally, collecting and storing the reference operation information from the reference power supply.

[0007] In a exemplary embodiment, a detection pin is deployed on the target controller, and the detection pin is connected to the reference controller. Detecting the reference operation status of the reference controller includes: detecting a heartbeat signal sent by the reference controller from the data received by the detection pin to obtain a detection result, where the reference controller is set to send a heartbeat signal to the detection pin according to a target period; in the case where the detection result is used to indicate that a heartbeat signal is detected from the data received by the detection pin, determining that the reference operation status is used to indicate that the reference controller is operating normally; in the case where the detection result is used to indicate that no heartbeat signal is detected from the data received by the detection pin within a target duration, determining that the reference operation status is used to indicate that the reference controller is operating abnormally.

[0008] In an exemplary embodiment, a first bus port is deployed on a target controller, a second bus port is deployed on a reference controller, a first switch is deployed in a reference power supply component corresponding to a reference power supply, the first bus port is connected to the first switch, the first switch is further configured to allow connection to the second bus port, the second bus port is connected to the reference power supply, and in the case where the reference operating state indicates that the reference controller is operating abnormally, reference operating information is collected and stored from the reference power supply, including: switching the bus link to be connected to the management link of the reference controller through the first switch, where the bus link includes the link between the first switch and the first bus port, and the management link includes the link between the first switch and the second bus port; collecting the reference operating information through the connected bus link and management link.

[0009] In an exemplary embodiment, switching the bus link to be connected to the management link of the reference controller through the first switch includes: generating a target switching instruction, where the target switching instruction is used to indicate switching the bus link to be connected to the management link; sending the target switching instruction to the first switch, where the first switch is used to execute the target switching instruction.

[0010] In an exemplary embodiment, a first register is deployed in the reference power supply, the first register is connected to the second bus port, the operating information of the reference power supply is stored in the first register, and collecting the reference operating information through the connected bus link and management link includes: extracting the reference operating information from the first register in a polling manner through a target transmission link, where the target transmission link includes the connected bus link and management link, and the reference operating information includes the voltage information of the reference power supply, the current information of the reference power supply, the power consumption information of the reference power supply, and the temperature information of the reference power supply.

[0011] In an exemplary embodiment, a target data interface is deployed on the target controller, the target data interface is connected to the reference controller, and in the case where the reference operating state indicates that the reference controller is operating normally, the reference operating information synchronized from the reference controller to the target controller is obtained and stored, including: detecting the reference transmission state of the reference controller; in the case where the reference transmission state indicates that the reference controller allows receiving data transmitted by the target controller, transmitting the collected target operating information to the reference controller through the target data interface; in the case where the transmission of the target operating information to the reference controller is completed through the target data interface, receiving the reference operating information transmitted by the reference controller through the target data interface and storing the reference operating information.

[0012] In an exemplary embodiment, a first bus port is deployed on a target controller, a second bus port is deployed on a reference controller, a second switch and a second register are deployed in a reference power supply component corresponding to a reference power supply, the second switch is configured to allow connection to the second register, the second switch is configured to allow connection to the second bus port, the second switch is connected to the first bus port, the second register is used to record status parameters, and the value of the status parameters is used to indicate whether the reference controller allows receiving data transmitted by the target controller. Detecting the reference transmission status of the reference controller includes: switching the bus link to be connected to the second register through the second switch, where the bus link includes the link between the second switch and the first bus port; reading the candidate value of the status parameters recorded in the second register through the second switch; determining that the reference transmission status is used to indicate that the reference controller allows receiving data transmitted by the target controller when the candidate value is equal to the reference value; and determining that the reference transmission status is used to indicate that the reference controller does not allow receiving data transmitted by the target controller when the candidate value is not equal to the reference value.

[0013] In an exemplary embodiment, after detecting the reference transmission status of the reference controller, the method further includes: continuously detecting the reference transmission status when the reference transmission status is used to indicate that the reference controller does not allow receiving data transmitted by the target controller; and transmitting the acquired target operation information to the reference controller through a target data interface when the reference transmission status is converted from being used to indicate that the reference controller does not allow receiving data transmitted by the target controller to being used to indicate that the reference controller allows receiving data transmitted by the target controller.

[0014] In an exemplary embodiment, detecting the reference transmission status of the reference controller includes: starting to detect the reference transmission status of the reference controller after collecting and storing the target operation information; or detecting the reference transmission status of the reference controller when starting to collect the updated operation information of the target power supply, where the updated operation information is the operation information of the next target power supply collected by the target controller after the target operation information.

[0015] In an exemplary embodiment, a first bus port is deployed on a target controller, a second bus port is deployed on a reference controller, a third switch and a third register are deployed in a reference power supply component corresponding to a reference power supply. When the reference operating state is used to indicate that the reference controller is operating normally, the bus link is also switched to be connected to the third register through the third switch. The bus link includes a link between the third switch and the first bus port. The third register is used to record transmission parameters, and the value of the transmission parameters is used to indicate whether the target controller has completed transmitting target operating information through a target data interface. After the target operating information collected is transmitted to the reference controller through the target data interface, the method further includes: detecting a target transmission state of the target operating information; when the target transmission state is used to indicate that the target controller has completed transmitting the target operating information through the target data interface, adjusting the value of the transmission parameters recorded in the third register to a target value through the bus link.

[0016] According to another embodiment of the present application, there is provided an apparatus for querying server power supply information. In the server, a first power supply component and a second power supply component are deployed. The first power supply component includes a first controller and a first power supply, and the second power supply component includes a second controller and a second power supply. The first power supply component and the second power supply component are configured to allow mutual synchronization of the operating information of the generated power supplies. The operating information is used to detect the operating state of the corresponding power supply. The apparatus is applied to a target controller among the first controller and the second controller. The apparatus includes: a receiving module, configured to receive a target query request, where the target query request is used to request querying the operating information of the power supplies deployed on the server; an extracting module, configured to respond to the target query request, extract the target operating information of the target power supply in the target power supply component collected by the target controller, and extract the reference operating information of the reference power supply synchronized by the target controller, where the reference controller is the controller other than the target controller among the first controller and the second controller, and the reference power supply is the power supply corresponding to the reference controller; and an output module, configured to output the target operating information and the reference operating information.

[0017] According to still another embodiment of the present application, there is also provided a computer-readable storage medium storing a computer program, where the computer program is configured to execute the steps in any one of the above method embodiments when running.

[0018] According to still another embodiment of the present application, there is also provided an electronic device including a memory and a processor. The memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0019] According to another embodiment of the present application, there is also provided a computer program product, including a computer program, which when executed by a processor, implements the steps in any one of the above method embodiments.

[0020] Through the present application, the operation information of the generated power supply is allowed to be synchronized with each other among the power supply components in the server. In this way, the operation information of the power supply in all the power supply components on the server can be queried by the operation and maintenance personnel through any one controller. Therefore, the problem of low query efficiency of the server power supply information is solved, and the technical effect of improving the query efficiency of the server power supply information is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a hardware structure block diagram of a server device for a method for querying server power supply information according to an embodiment of the present application;

[0022] Figure 2 is a flowchart of a method for querying server power supply information according to an embodiment of the present application;

[0023] Figure 3 is a schematic diagram of an optional power supply component in a server according to an embodiment of the present application;

[0024] Figure 4 is a schematic diagram of main - standby switching and takeover when a BMC fails according to an embodiment of the present application;

[0025] Figure 5 is a schematic diagram of optional dual - powershelf synchronization information according to an embodiment of the present application;

[0026] Figure 6 is a structure block diagram of a device for querying server power supply information according to an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0027] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0028] It should be noted that the terms "first", "second", etc. in the specification, claims and the above - mentioned drawings of the present application are used to distinguish similar objects, and do not necessarily describe a specific order or sequence.

[0029] First, the terms involved in the embodiments of the present application are explained as follows:

[0030] powershelf: power supply module;

[0031] BMC: Baseboard Management Controller, baseboard management controller;

[0032] I2C: Inter-Integrated Circuit, a two-wire serial bus;

[0033] GPIO: General Purpose Input / Output, general-purpose input / output;

[0034] PSU: Power Supply Unit, power supply unit.

[0035] Rack-mounted server: Usually, a series of components such as server nodes, switches, and power supply modules are packaged as a whole for unified transportation and shipment. At the beginning of the design, the entire cabinet is regarded as a whole, and the power supply, heat dissipation, and other architectures are designed uniformly. In a rack-mounted server, a centralized power supply method is generally adopted, that is, a power supply module (hereinafter referred to as powershelf) is placed in the entire machine. The PSU power supply is installed inside the powershelf, and there is an AC (Alternating Current) input interface at the rear, as well as an interface for providing DC (Direct Current) power supply for the entire cabinet. The powershelf transmits the DC power through a vertical copper bar at the rear of the chassis to all the general servers, switches, etc. connected to the entire cabinet to achieve centralized power supply.

[0036] In order to reduce the types of materials and achieve modularization, the same rack-mounted server body can be paired with a general computing server with relatively low power consumption, or a GPU server with relatively high power consumption. To achieve this flexible matching purpose, the corresponding power supply design is also different. The POWERSHELF can select a low power supply capacity (only install one powershelf1) or a high power supply capacity (install powershelf1 and 2 at the same time) according to the selected server type, that is, different power consumptions. When the cabinet needs to support high-power power supply, 2 powershelves are used, and each powershelf provides half of the power for the entire cabinet. The two powershelves together provide the power required for the entire cabinet.

[0037] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 is a hardware structure block diagram of a server device for a method of querying server power supply information according to an embodiment of the present application. As Figure 1 shown, the server device may include one or more ( Figure 1Only one processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a field programmable gate array FPGA) and a memory 104 for storing data are shown. Among them, the above server device 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 above server device. For example, the server device may further include more or fewer components than Figure 1 shown therein, or have a different configuration from Figure 1 shown.

[0038] 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 a method for querying server power supply information in an embodiment 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, implements the above method. 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 memory, 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 server device through a network. Examples of the above network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0039] The transmission device 106 is used to receive or send data via a network. Specific examples of the above network may include a wireless network provided by a communication provider of the server device. In one instance, the transmission device 106 includes a network adapter (abbreviated as NIC), which can be connected to other network devices through a base station and thus can 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.

[0040] In this embodiment, a method for querying server power supply information is provided. A first power supply component and a second power supply component are deployed in the server. The first power supply component includes a first controller and a first power supply, and the second power supply component includes a second controller and a second power supply. The first power supply component and the second power supply component are set to allow mutual synchronization of the operation information of the generated power supply, and the operation information is used to detect the operation state of the corresponding power supply. The method is applied to a target controller in the first controller and the second controller. Figure 2It is a flowchart of a method for querying server power supply information according to an embodiment of the present application. As Figure 2 shown, the process includes the following steps:

[0041] Step S202, receiving a target query request, where the target query request is used to request to query the operation information of the power supply deployed on the server;

[0042] Step S204, in response to the target query request, extracting the target operation information of the target power supply in the target power supply component collected by the target controller, and extracting the reference operation information of the reference power supply synchronized by the target controller, where the reference controller is the controller other than the target controller among the first controller and the second controller, and the reference power supply is the power supply corresponding to the reference controller;

[0043] Step S206, outputting the target operation information and the reference operation information.

[0044] Through the above steps, the operation information of the power supply generated by each power supply component in the server is allowed to be synchronized with each other. In this way, the operation information of the power supply in all power supply components on the server can be queried by any one controller by the operation and maintenance personnel. Therefore, the problem of low query efficiency of server power supply information is solved, and the technical effect of improving the query efficiency of server power supply information is achieved.

[0045] In the technical solution provided in the above step S202, the server may but is not limited to deploying the first power supply component and the second power supply component, and the first power supply component and the second power supply component may but is not limited to evenly provide the power resources required by the server.

[0046] Optionally, in this embodiment, the power supply component may but is not limited to including a controller and a power supply. Figure 3 It is a schematic diagram of an optional power supply component in a server according to an embodiment of the present application. As Figure 3 shown, it may but is not limited to taking the first power supply component including powershelf A, the second power supply component including powershelf B, the first controller including BMCA, the second controller including BMC B, and taking the example of deploying multiple GPU (Graphics Processing Unit) servers in a whole cabinet server. Powershelf A and powershelf B may but is not limited to jointly provide the power required by the entire cabinet. For example, each powershelf may but is not limited to providing half of the power resources of the entire cabinet.

[0047] Each PMC within a powershelf may, but is not limited to, deploy a BMC chip. For example, BMC A is deployed in powershelf A, and BMC B is deployed in powershelf B. The BMC deployed on the PMC within each powershelf may, but is not limited to, be used to manage the operation of the power supply (such as PSU) within this powershelf. For example, BMC A deployed in powershelf A may, but is not limited to, be used to monitor and manage the operation of PSU 0 to PSU N in powershelf A, and BMC B deployed in powershelf B may, but is not limited to, be used to monitor and manage the operation of PSU 0 to PSU N in powershelf B.

[0048] In actual use, it may, but is not limited to, be through the network port led out by the BMC, lead out an RJ45 (Registered Jack 45) port on the BMC panel deployed on the PMC, connect the network cable to the switch, so that the operation and maintenance personnel can remotely manage and monitor the power supply within the powershelf.

[0049] It should be noted that general servers may also, but are not limited to, be deployed in the whole cabinet server.

[0050] Optionally, in this embodiment, the controller deployed in the power supply component may, but is not limited to, include a BMC or other controllers, etc. Taking the controller including a BMC as an example, each BMC may, but is not limited to, deploy a query interface (such as WEB). The power supply deployed in the power supply component may, but is not limited to, include a group of power supplies. For example, the first power supply includes one or more power supplies, and it may, but is not limited to, receive a target query request through the query interface, or may, but is not limited to, directly initiate a target query request to the target controller.

[0051] In the technical solution provided in the above step S204, the reference power supply component may, but is not limited to, synchronize the reference operation information of the collected reference power supply to the target power supply component. In the case of hoping to query the operation information of all the power supplies deployed on the server, it may, but is not limited to, obtain the operation information of all the power supplies deployed on the server from any one of the first controller and the second controller.

[0052] Optionally, in this embodiment, the target controller may be any one of the first controller and the second controller. For example, the target controller may be the first controller or the second controller. When the target controller is the first controller, the reference controller is the second controller, and when the target controller is the second controller, the reference controller is the first controller.

[0053] In the technical solution provided in step S206 above, whether the reference controller is operating normally or abnormally, the target controller stores the operation information of the reference power supply synchronized by the reference power supply component corresponding to the reference controller. In this way, it is possible to query and display the operation information of all power supplies on the server at one time, improving the query efficiency of the operation information of the power supplies on the server.

[0054] In an exemplary embodiment, before extracting the target operation information of the target power supply in the target power supply component collected by the target controller and extracting the reference operation information of the reference power supply synchronized by the target controller, the method further includes: collecting and storing the target operation information, and detecting the reference operation state of the reference controller, where the reference operation state is used to indicate the operation condition of the reference controller; when the reference operation state is used to indicate that the reference controller is operating normally, obtaining and storing the reference operation information synchronized by the reference controller to the target controller; when the reference operation state is used to indicate that the reference controller is operating abnormally, collecting and storing the reference operation information from the reference power supply.

[0055] Optionally, in this embodiment, the reference operation state may be used to indicate the operation condition of the reference controller, for example, the reference controller is operating normally or the reference controller is operating abnormally. The reference controller operating abnormally may include, but is not limited to, the reference controller hanging up, etc.

[0056] Optionally, in this embodiment, when the reference controller is operating abnormally, the reference controller may have a malfunction, for example, the reference controller may hang up and the reference controller cannot collect the operation information of the reference power supply. In such a case, the reference operation information of the reference power supply managed by the reference controller may be directly collected by the target controller, including but not limited to this method.

[0057] In an exemplary embodiment, a detection pin is deployed on the target controller. The detection pin is connected to the reference controller to detect the reference operation state of the reference controller, including: detecting a heartbeat signal sent by the reference controller from the data received by the detection pin to obtain a detection result, where the reference controller is set to send a heartbeat signal to the detection pin according to a target period; when the detection result is used to indicate that a heartbeat signal is detected in the data received from the detection pin, determining that the reference operation state is used to indicate that the reference controller is operating normally; when the detection result is used to indicate that no heartbeat signal is detected in the data received from the detection pin within a target duration, determining that the reference operation state is used to indicate that the reference controller is operating abnormally.

[0058] Optionally, in this embodiment, the detection pin may but is not limited to include a pin for receiving a heartbeat signal sent by a reference controller, such as a GPIO pin. The reference controller may but is not limited to also be deployed with a detection pin. The reference controller and the target controller can realize real-time detection of each other's operating status by sending heartbeat signals to the detection pins of each other.

[0059] Optionally, in this embodiment, the heartbeat signal may but is not limited to include a level pulse signal, and may but is not limited to send a level pulse to the detection pin every target period. The target period may but is not limited to include 1 s (second), 2 minutes, etc. This application does not make any restrictions in this regard. For example, BMC 1 is set to send a heartbeat signal to BMC 2 every 1 s.

[0060] Through the embodiment of this application, by real-time detecting whether a heartbeat signal sent by the peer BMC is received, it is determined whether the peer BMC is operating normally, and the time interval for the peer BMC to send a heartbeat signal is short, which improves the timeliness of detecting whether the peer BMC is operating normally.

[0061] In an exemplary embodiment, a first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a first switch is deployed in the reference power supply component corresponding to the reference power supply, the first bus port is connected to the first switch, and the first switch is further set to allow connection to the second bus port. The second bus port is connected to the reference power supply. In the case where the reference operating state is used to indicate that the reference controller is operating abnormally, the reference operating information is collected and stored from the reference power supply, including: switching the bus link to be connected to the management link of the reference controller through the first switch, where the bus link includes the link between the first switch and the first bus port, and the management link includes the link between the first switch and the second bus port; collecting the reference operating information through the connected bus link and management link.

[0062] Optionally, in this embodiment, when the reference controller is operating normally, the reference controller may but is not limited to collect the operating information of the reference power supply through the second bus port. When the reference controller is operating abnormally, the reference controller cannot collect the operating information of the reference power supply. In such a case, the target controller may but is not limited to collect the operating information of the reference power supply through the connected bus link and management link.

[0063] In this way, it is possible to monitor in real time whether the peer BMC is operating normally. In the case where the peer BMC fails, the power supply supervised by the faulty BMC can be supervised in time by the local BMC that is operating normally, realizing the supervision of all power supplies on the server.

[0064] In an exemplary embodiment, the bus link can be switched to a management link connection with a reference controller through a first switch in the following manner, but is not limited to: generating a target switching instruction, wherein the target switching instruction is used to instruct to switch the bus link to a management link connection; sending the target switching instruction to the first switch, wherein the first switch is used to execute the target switching instruction.

[0065] Optionally, in this embodiment, the target controller may, but is not limited to, switch the bus link to connect to the management link by sending a target switching instruction to the switch. For example, when the controller includes a BMC and the target switching instruction includes an I2C7 sending instruction, the BMC on the other end may, but is not limited to, send an instruction via I2C7 to enable PCA9548 (equivalent to the first switch) to switch the link to the I2C6 link (equivalent to the management link) of the local powershelf.

[0066] In an exemplary embodiment, a first register is deployed in a reference power supply, the first register is connected to a second bus port, and operation information of the reference power supply is stored in the first register. The reference operation information is collected through a connected bus link and a management link, including: extracting the reference operation information from the first register through a target transmission link in a polling manner, wherein the target transmission link includes a connected bus link and a management link, and the reference operation information includes voltage information of the reference power supply, current information of the reference power supply, power consumption information of the reference power supply, and temperature information of the reference power supply.

[0067] Optionally, in this embodiment, the register may be, but is not limited to, deployed in a reference controller, or the register may be, but is not limited to, deployed in other components of the reference power supply other than the reference controller, and this application does not impose any restrictions on this.

[0068] Optionally, in this embodiment, the registers of each power supply in the reference power supply may be polled in a polling manner in the following manner, but not limited to. For example, when the reference power supply includes N power supplies, the operating information of the power supply stored in the registers of each power supply in the N power supplies is polled to obtain the reference operating information.

[0069] Optionally, in this embodiment, the candidate operation information may be extracted from the data stored in the candidate register through the target transmission link in, but not limited to, the following manner: when the reference power supply includes N power supplies, the i-th set of operation information is extracted from the i-th register deployed in the i-th power supply through the target transmission link by performing the following steps, where the N power supplies include the i-th power supply, the candidate operation information includes N sets of operation information, N is a positive integer, and i is a positive integer less than or equal to N: searching for the i-th set of operation information from the data stored in the i-th register through the target transmission link, where the i-th set of operation information includes the voltage information of the i-th power supply, the current information of the i-th power supply, the power consumption information of the i-th power supply, and the temperature information of the i-th power supply.

[0070] Optionally, in this embodiment, the reference operation information may include, but is not limited to, the voltage information of the reference power supply, the power consumption information of the reference power supply, the temperature information of the reference power supply, and the current information of the reference power supply, etc. The voltage information of the reference power supply may include, but is not limited to, the distribution of the operating voltage of the reference power supply, the power consumption information of the reference power supply may include, but is not limited to, the distribution of the actual power consumed by the reference power supply, the temperature information of the reference power supply may include, but is not limited to, the distribution of the operating temperature of the reference power supply, and the current information of the reference power supply may include, but is not limited to, the distribution of the current during the actual operation of the reference power supply.

[0071] As an optional example, a first power supply component, a second power supply component, and a third power supply component are deployed in the server. The first power supply component includes a first controller and a first power supply, the second power supply component includes a second controller and a second power supply, and the third power supply component includes a third controller and a third power supply. The first power supply component, the second power supply component, and the third power supply component are set to allow the operation information of the generated power supplies to be synchronized with each other. The operation information is used to detect the operation status of the corresponding power supply. The method is applied to the target controller among the first controller, the second controller, and the third controller. The method includes: receiving a target query request, where the target query request is used to request to query the operation information of the power supply deployed on the server; in response to the target query request, extracting the target operation information of the target power supply in the target power supply component collected by the target controller, and extracting the reference operation information of the reference power supply synchronized by the target controller, where the reference controller is the controller other than the target controller among the first controller, the second controller, and the third controller, and the reference power supply is the power supply corresponding to the reference controller; outputting the target operation information and the reference operation information.

[0072] Through the embodiments of the present application, by establishing an information sharing mechanism among the first power supply component, the second power supply component, and the third power supply component deployed in the server, allowing them to synchronize the operation information of the generated power supply with each other, when the controller in any one of the power supply components (for example, any one of the first controller, the second controller, or the third controller) receives a target query request, it can not only provide the operation information of the power supply in the power supply component collected by itself, but also extract the operation information of the power supply synchronized from other power supply components, realizing centralized and efficient query of the operation information of the power supply in the multi-power supply component power supply scenario.

[0073] To better understand the process of taking over a faulty controller in the embodiments of the present application, the following describes and explains the process of taking over a faulty controller by a normally operating controller in the embodiments of the present application with reference to optional embodiments, which can be but is not limited to applicable to the embodiments of the present application.

[0074] The master-slave powershelves can also monitor each other's working status in real time. If it is detected that the working status of the BMC deployed on the other party's PMC is abnormal, the master-slave switchover can be performed for real-time takeover, and the status monitoring work of the PSU hung under the BMC deployed on the faulty PMC can be taken over. This avoids the problem that the status of the PSU in a certain powershelf cannot be obtained due to the BMC in that powershelf hanging.

[0075] Between the BMCs of Powershelf A and powershelf B, their respective heartbeat signals are connected to each other. The heartbeat signal is implemented through GPIO, and a level pulse is sent every 1s. After the peer powershelf senses the pulse waveform, it considers the peer powershelf to be working normally. If no pulse is received within a certain period of time (for example, it can be set to 5s), it can be considered that the other party is working abnormally.

[0076] In order to enable the local powershelf to take over the monitoring of the remote PSU in a timely manner when the remote BMC hangs and malfunctions, a takeover mechanism is designed. Two I2C paths are led out from the BMC in each powershelf, namely the I2C6 and I2C7 ports. I2C6 serves as the management path for the PSU within the local powershelf, and the bus form is PMBUS; I2C7 serves as the takeover management path for the PSU in the remote powershelf by the local powershelf. Among them, the I2C7 path is connected to the PCA9548 on the remote end through the physical link between the powershelves. If the heartbeat signal detection disappears and a certain BMC hangs, the remote BMC sends an instruction through I2C7 to make the PCA9548 switch the link to the I2C6 link of the local powershelf. During operation, each BMC opens the I2C6 port to access the PSU information of the local powershelf and continuously monitors the heartbeat signal of the remote powershelf. If the BMC in a certain powershelf (such as the remote one) hangs, the local end will sense that the heartbeat state of the remote end stops. At this time, the I2C7 port is connected to the PSU in the remote powershelf to monitor the status of the remote PSU. The master-slave switchover is realized to achieve backup redundancy.

[0077] Figure 4 It is a schematic diagram of master-slave switchover and takeover in case of BMC failure according to an optional embodiment of the present application, as Figure 4 shown, when a powershelf (such as powershelf A) fails, such as when the BMC malfunctions, another normal powershelf (such as powershelf B) takes over the power monitoring work of the faulty powershelf to ensure that the power management of the entire cabinet is not interrupted.

[0078] During normal operation, powershelf A where BMC A is located can be used as the host, and BMC B as the slave. At this time, BMC A receives the PSU information of the PSUs attached to powershelf B transmitted by BMC B. The operation and maintenance personnel can query the status of all PSUs by viewing the WEB page of BMC A. When BMC A hangs, the heartbeat signal transmitted by BMC A to powershelf B stops, and the Ethernet channel between BMC A and BMC B cannot be used. At this time, BMC B detects that the heartbeat status of the peer end is abnormal and considers that the primary and standby need to be switched. At this time, BMC B enables the I2C7 channel and accesses the status of the PSUs corresponding to powershelf A through the physical cable interconnecting the two powershelves. At the same time, it superimposes the PSU information of the PSUs attached to its own powershelf read by BMC B locally through the I2C6 channel (for example, Figure 4 in which B takes over the A PMBUS management channel), and the information of the PSUs in the entire cabinet can be obtained through the alternate path. At this time, the operation and maintenance personnel can access the status of all PSUs through the WEB page of BMC B. The failure of BMC A will not affect the operation and maintenance personnel's acquisition of the PSU status.

[0079] Through the technical solution provided by the embodiment of the present application, a new mechanism for redundant AC information between powershelves in the case of multiple powershelves is designed. This mechanism can continuously monitor the operating status of the peer powershelf, ensure that when a certain powershelf hangs, the other powershelf can take over the monitoring right of the PSUs under the faulty powershelf and report in a timely manner.

[0080] In an exemplary embodiment, a target data interface is deployed on a target controller. The target data interface is connected to a reference controller. When the reference operating state is used to indicate that the reference controller is operating normally, the reference operating information synchronized from the reference controller to the target controller is acquired and stored, including: detecting the reference transmission status of the reference controller; when the reference transmission status is used to indicate that the reference controller allows receiving the data transmitted by the target controller, transmitting the acquired target operating information to the reference controller through the target data interface; when the transmission of the target operating information to the reference controller is completed through the target data interface, receiving the reference operating information transmitted by the reference controller through the target data interface and storing the reference operating information.

[0081] Optionally, in this embodiment, when the reference transmission state is used to indicate that the reference controller allows the reception of data transmitted by the target controller, it can be shown that the reference controller is currently idle. For example, the reference controller does not transmit the operation information of the collected reference power supply to the target data interface on the target controller, indicating that the reference controller is ready for reception. The target operation information collected can be transmitted to the reference controller through the target data interface, but not limited to this.

[0082] In this way, the link conflict caused by the target controller and the reference controller simultaneously synchronizing the operation information of the power supply collected to each other is avoided, and the accuracy of synchronizing the operation information of the power supply collected to the peer controller is improved.

[0083] In an exemplary embodiment, a first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a second switch and a second register are deployed in the reference power supply component corresponding to the reference power supply. The second switch is set to allow connection with the second register, the second switch is set to allow connection with the second bus port, the second switch is connected to the first bus port, and the second register is used to record the state parameter. The value of the state parameter is used to indicate whether the reference controller allows the reception of data transmitted by the target controller. Detecting the reference transmission state of the reference controller includes: switching the bus link to be connected to the second register through the second switch, where the bus link includes the link between the second switch and the first bus port; reading the candidate value of the state parameter recorded in the second register through the second switch; when the candidate value is equal to the reference value, determining that the reference transmission state is used to indicate that the reference controller allows the reception of data transmitted by the target controller; when the candidate value is not equal to the reference value, determining that the reference transmission state is used to indicate that the reference controller does not allow the reception of data transmitted by the target controller.

[0084] Optionally, in this embodiment, when the reference transmission state is used to indicate that the reference controller does not allow the reception of data transmitted by the target controller, it can be shown that the reference controller is not yet ready for reception. For example, the reference controller is currently synchronizing data to the target data interface on the target controller.

[0085] Optionally, in this embodiment, the second register can be deployed in the reference controller, but not limited to this, or the second register can also be deployed in other components of the reference power supply component other than the reference controller, and the present application does not limit this.

[0086] In an exemplary embodiment, after detecting the reference transmission state of the reference controller, the method further includes: when the reference transmission state is used to indicate that the reference controller is not allowed to receive the data transmitted by the target controller, continuously detecting the reference transmission state; when the reference transmission state changes from being used to indicate that the reference controller is not allowed to receive the data transmitted by the target controller to being used to indicate that the reference controller is allowed to receive the data transmitted by the target controller, transmitting the acquired target operation information to the reference controller through the target data interface.

[0087] Optionally, in this embodiment, when the reference transmission state is used to indicate that the reference controller is not allowed to receive the data transmitted by the target controller, it can be indicated that the reference controller is not currently ready to receive and cannot receive the data transmitted by the target controller. In such a case, the target controller can, but is not limited to, wait and continuously detect the reference transmission state of the reference controller until the reference controller is ready to receive, and then synchronize the operation information of the acquired target power supply to the reference controller.

[0088] In an exemplary embodiment, the reference transmission state of the reference controller can be detected by, but is not limited to, the following methods, including: starting to detect the reference transmission state of the reference controller after acquiring and storing the target operation information; or, when starting to acquire the updated operation information of the target power supply, detecting the reference transmission state of the reference controller, where the updated operation information is the operation information of the next target power supply acquired by the target controller after the target operation information.

[0089] Optionally, in this embodiment, the time between acquiring the target operation information and the time of acquiring the updated operation information can be, but is not limited to, separated by a preset acquisition period. For example, after acquiring the target operation information, the acquisition of the updated operation information can be started, but is not limited to, after a preset acquisition period. For example, the acquisition period can be, but is not limited to, 30 minutes or 1 hour, etc. The present application does not limit this.

[0090] Optionally, in this embodiment, the reference transmission state of the reference controller can also be detected by, but is not limited to, the following method: detecting the reference transmission state of the reference controller when the acquisition and storage of the updated operation information are completed.

[0091] In an exemplary embodiment, a first bus port is deployed on a target controller, a second bus port is deployed on a reference controller, a third switch and a third register are deployed in a reference power supply component corresponding to a reference power supply. When the reference operating state is used to indicate that the reference controller is operating normally, the bus link is also switched to be connected to the third register through the third switch. The bus link includes a link between the third switch and the first bus port. The third register is used to record transmission parameters, and the value of the transmission parameters is used to indicate whether the target controller has completed transmitting target operating information through a target data interface. After transmitting the acquired target operating information to the reference controller through the target data interface, the method further includes: detecting a target transmission state of the target operating information; when the target transmission state is used to indicate that the target controller has completed transmitting target operating information through the target data interface, adjusting the value of the transmission parameters recorded in the third register to a target value through the bus link.

[0092] Optionally, in this embodiment, when this synchronization is completed, the value in the third register can be cleared, and the value in the second register can be cleared, but is not limited to this, to prepare for the next synchronization.

[0093] Optionally, in this embodiment, the first bus port deployed on the target controller and the second bus port deployed on the reference controller can include, but are not limited to, ports that support the same bus protocol. For example, the first bus port and the second bus port can include, but are not limited to, I2C bus ports.

[0094] Optionally, in this embodiment, the functions of the first switch, the second switch, and the third switch can be integrated in the same switch, but are not limited to this. For example, the first switch, the second switch, and the third switch can be integrated in the I2C switch PCA9548; or, the functions of the first switch, the second switch, and the third switch can be deployed in separate switches. It can be understood that the first switch, the second switch, and the third switch can be, but are not limited to, the same switch, or the first switch, the second switch, and the third switch can include, but are not limited to, different switches.

[0095] To better understand the query process of the server power supply information query method in the embodiments of the present application, the query process of the server power supply information query method in the embodiments of the present application will be explained and described below in combination with optional embodiments, which can be, but are not limited to, applicable to the embodiments of the present application.

[0096] It can be, but is not limited to, an example for explanation that the first power supply component includes powershelf A, the second power supply component includes powershelf B, the first controller includes BMC A, the second controller includes BMC B, the power supply includes PSU, the target data interface includes the Ethernet interface deployed on the BMC, the Ethernet interface is deployed on BMC A, and the heartbeat signal includes a level pulse.

[0097] Figure 5 It is a schematic diagram of an optional two-powershelf synchronous information according to an embodiment of the present application. As Figure 5 shown, when the whole cabinet server is running normally, two powershelves (for example, powershelf A and powershelf B) are connected to the switch inside the cabinet through the Ethernet interface of the BMC, so that the operation and maintenance personnel can remotely access and manage the PSU deployed inside each powershelf.

[0098] Powershelf A and powershelf B can be, but are not limited to, backup to each other. Under normal circumstances, one powershelf is used as the host and the other powershelf is used as the slave. The management information can be transmitted between them through the 1000M-BASE-T Ethernet channel to synchronize the information of all PSUs in the two powershelves with each other. Taking powershelf A as an example, whenever the BMC deployed on the PMC in powershelf A polls the information of the subordinate PSUs once, it will record the log in BMC A and transmit the recorded PSU information to powershelf B through the Ethernet channel. The same is true for powershelf B. Thus, whenever a powershelf polls the information of the attached PSUs once, the local and the peer powershelves will record the log information of all PSUs at the same time. In this way, the BMC deployed on each PMC will record the status logs of all PSUs in the cabinet for querying the past power supply information.

[0099] Since the information synchronization between each powershelf and the powershelf polling of the PSU use two different channels, they will not interfere with each other. Therefore, while the powershelf polls the PSU, the local PSU information read by the previous powershelf can be transmitted. The specific transmission method is that whenever the powershelf finishes reading the current data, the current data is first stored in the cache. First, it is detected whether the peer BMC is ready to receive (equivalent to detecting the reference transmission status of the reference controller). Since the direct interaction between BMC A and BMC B is through the same Ethernet channel and both sides can send and receive. Therefore, if BMC A and BMC B send the local PSU information to the peer at the same time, it will cause a link congestion conflict and cannot be sent normally. Therefore, a mechanism for judging the transmission timing and transmission status is set up.

[0100] In each BMC, there is a "busy" register (equivalent to the second register) representing the busy state of the current BMC, and a "completed" register (equivalent to the third register) representing that the current BMC has successfully received the PSU information synchronized by the peer BMC.

[0101] In the PMC module of each powershelf, an I2C switch PCA9548 (or called a switch) is also set up. Before the I2C7 link of the peer BMC is passed to the local end, it must first pass through the judgment and switching of the I2C switch PCA9548. According to the judgment result, the I2C7 link of the peer BMC is switched to the "busy" and "completed" registers of the local BMC, or switched to the PSU management link of the local powershelf.

[0102] Among them, the judgment method can but is not limited to including: by directly receiving the heartbeat signals of each other between BMC A and BMC B to judge the running status of the current respective BMCs. If the heartbeat signal exists, it is considered that each BMC is in a normal running state. At this time, PCA9548 switches the I2C link to the link for reading the "busy" register and the "completed" register. If the heartbeat signal disappears, it is considered that there is a BMC hang-up phenomenon, and the I2C link is switched to the management link for taking over the PSU. Perform the master-slave switchover.

[0103] When both BMC A and BMC B are in normal operating states, after BMC A reads the local PSU information once, the I2C7 port of BMC A accesses the PCA9548 located in the PMCB, switches the link to the link for reading the "busy" register and "completed" register in BMC B, so as to read the busy information of BMC B and determine whether BMC B is ready to receive. If it reads that BMC B is busy at this moment, it waits until BMC B is idle, and then BMC A sends the previously read local PSU information to BMC B through the Ethernet link.

[0104] After BMC A completely finishes sending the PSU information, it writes the "completed" register of BMC B through this I2C link. After BMC B senses the change in the value of the "completed" register, it senses that BMC A has synchronized the PSU information to BMC B.

[0105] At this time, BMC B uses the same method, takes over the I2C channel of BMC B by BMC A, and reads the busy status of BMC A in reverse. After sensing that BMC A is idle, it synchronizes the PSU information of BMC B to BMC A through the Ethernet link. And sets the "completed" register in BMCA.

[0106] It should be noted that the synchronization order must be that BMC A writes first and BMC B writes later. Therefore, BMC B needs to wait until BMC A finishes synchronizing the information to BMC B before it can access BMC A and synchronize the operation information of the power supply collected by BMC B to BMC A.

[0107] After both sides have completed synchronization, they each clear their "busy" register and "completed" register to prepare for the next synchronization.

[0108] Since the time for polling the PSU once is much longer than the time for mutual information synchronization, this mechanism avoids the problem of excessive time consumption caused by a single PMC directly managing the polling of all PSUs.

[0109] In actual application, the PMCs in two powershelves can be interconnected, but not limited to, through the dedicated Ethernet port (equivalent to a data interface) of the BMC to transmit the operation information of the PSU collected by each other. In fact, both of the two powershelves are hosts and can know the PSU information of the other party. Connecting to any one of the powershelves can read the information of all PSUs in the entire cabinet. However, during operation and maintenance, a certain powershelf can be artificially identified as the host, and only by accessing the WEB of this powershelf can the status of all PSUs be viewed.

[0110] It should be noted that the target controller and the reference controller can, but are not limited to, interact with each other the operation information of the power supply they collect at regular intervals. For example, BMC 1 and BMC 2 interact with each other's PSU information at regular intervals. The interaction information can be to transfer the information of the local PSU obtained last time while BMC polls the PSU information of the powershelf hung below this time; or it can be to transfer the information of the local PSU obtained this time after BMC finishes polling the PSU information of the powershelf hung below this time. No matter at which moment the interaction information is transferred, it will not affect the polling action being executed.

[0111] Through the embodiments of the present application, a brand-new power management strategy for multi-powershelf redundant monitoring and primary / backup switching under flexible loads with centralized power supply for the entire cabinet is provided, which solves the problem of power management that may occur when multiple powershelves supply power simultaneously when the entire cabinet is configured with different loads.

[0112] Due to the situation of flexible configuration of power supply loads in the entire cabinet, there may be more than 1 powershelf installed in the cabinet. When performing operation and maintenance management on two powershelves simultaneously, it is necessary to insert the management network ports of both powershelves into the switch. From the perspective of the management software, it is not convenient to log in to two BMC WEBs, and each WEB page can only read half of the PSU information of the entire cabinet and cannot fully display it. All PSU information needs to be queried through two BMC WEB pages. If a PSU under a certain powershelf has an alarm situation, if the operation and maintenance personnel are paying attention to the information of another powershelf on the WEB at this time, the problem of missing PSU alarms may occur.

[0113] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above 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 method. 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. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions to enable a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of the present application.

[0114] In this embodiment, a query device for server power supply information is further provided. This device is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that implements 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.

[0115] Figure 6 is a structural block diagram of a query device for server power supply information according to an embodiment of the present application. As Figure 6 shown, a first power supply component and a second power supply component are deployed in the server. The first power supply component includes a first controller and a first power supply, and the second power supply component includes a second controller and a second power supply. The first power supply component and the second power supply component are set to allow mutual synchronization of the operation information of the generated power supplies. The operation information is used to detect the operation status of the corresponding power supplies. The device is applied to a target controller among the first controller and the second controller. The device includes:

[0116] A receiving module 602, configured to receive a target query request, where the target query request is used to request to query the operation information of the power supplies deployed on the server;

[0117] An extraction module 604, configured to respond to the target query request, extract the target operation information of the target power supply in the target power supply component collected by the target controller, and extract the reference operation information of the reference power supply synchronized to the target controller, where the reference controller is the controller other than the target controller among the first controller and the second controller, and the reference power supply is the power supply corresponding to the reference controller;

[0118] An output module 606, configured to output the target operation information and the reference operation information.

[0119] Through the above device, the operation information of the power supplies generated by each power supply component in the server is allowed to be mutually synchronized. In this way, the operation and maintenance personnel can query the operation information of the power supplies in all power supply components on the server through any one controller. Therefore, the problem of low query efficiency of server power supply information is solved, and the technical effect of improving the query efficiency of server power supply information is achieved.

[0120] In an exemplary embodiment, the device further includes:

[0121] The first processing module is used to collect and store the target operation information and detect the reference operation status of the reference controller before extracting the target operation information of the target power supply in the target controller collected by the target controller and extracting the reference operation information of the reference power supply synchronized by the target controller, where the reference operation status is used to indicate the operation condition of the reference controller;

[0122] The second processing module is used to obtain and store the reference operation information synchronized by the reference controller to the target controller when the reference operation status is used to indicate that the reference controller is operating normally;

[0123] The third processing module is used to collect and store the reference operation information from the reference power supply when the reference operation status is used to indicate that the reference controller is operating abnormally.

[0124] In an exemplary embodiment, a detection pin is deployed on the target controller, the detection pin is connected to the reference controller, and the first processing module includes:

[0125] The first detection unit is used to detect the heartbeat signal sent by the reference controller from the data received by the detection pin to obtain a detection result, where the reference controller is set to send a heartbeat signal to the detection pin according to a target period;

[0126] The determination unit is used to determine that the reference operation status is used to indicate that the reference controller is operating normally when the detection result is used to indicate that a heartbeat signal is detected from the data received by the detection pin; and determine that the reference operation status is used to indicate that the reference controller is operating abnormally when the detection result is used to indicate that no heartbeat signal is detected from the data received by the detection pin within a target duration.

[0127] In an exemplary embodiment, a first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a first switch is deployed in the reference power supply component corresponding to the reference power supply, the first bus port is connected to the first switch, the first switch is further set to allow connection to the second bus port, and the second bus port is connected to the reference power supply. The third processing module includes:

[0128] The switching unit is used to switch the bus link to be connected to the management link of the reference controller through the first switch, where the bus link includes the link between the first switch and the first bus port, and the management link includes the link between the first switch and the second bus port;

[0129] The acquisition unit is used to acquire the reference operation information through the connected bus link and management link.

[0130] In an exemplary embodiment, the switching unit is used to:

[0131] Generate a target switching instruction, where the target switching instruction is used to indicate switching the bus link to connect to the management link;

[0132] Send the target switching instruction to the first switch, where the first switch is used to execute the target switching instruction.

[0133] In an exemplary embodiment, a first register is deployed in the reference power supply, the first register is connected to the second bus port, and the operating information of the reference power supply is stored in the first register. The acquisition unit is used for:

[0134] Extract the reference operating information from the first register through the target transmission link in a polling manner, where the target transmission link includes the connected bus link and management link, and the reference operating information includes the voltage information, current information, power consumption information, and temperature information of the reference power supply.

[0135] In an exemplary embodiment, a target data interface is deployed on the target controller, the target data interface is connected to the reference controller, and the second processing module includes:

[0136] A second detection unit for detecting the reference transmission status of the reference controller;

[0137] A transmission unit for transmitting the acquired target operating information to the reference controller through the target data interface when the reference transmission status is used to indicate that the reference controller allows receiving data transmitted by the target controller;

[0138] A processing unit for receiving, through the target data interface, the reference operating information transmitted by the reference controller through the reference controller and storing the reference operating information when the transmission of the target operating information to the reference controller is completed through the target data interface.

[0139] In an exemplary embodiment, a first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a second switch and a second register are deployed in the reference power supply component corresponding to the reference power supply, the second switch is set to allow connection to the second register, the second switch is set to allow connection to the second bus port, the second switch is connected to the first bus port, the second register is used to record status parameters, and the value of the status parameter is used to indicate whether the reference controller allows receiving data transmitted by the target controller. The second detection unit is used for:

[0140] Switch the bus link to connect to the second register through the second switch, where the bus link includes the link between the second switch and the first bus port;

[0141] Read the candidate value of the status parameter recorded in the second register through the second switcher;

[0142] When the candidate value is equal to the reference value, determine the reference transmission state to indicate that the reference controller allows receiving the data transmitted by the target controller; when the candidate value is not equal to the reference value, determine the reference transmission state to indicate that the reference controller does not allow receiving the data transmitted by the target controller.

[0143] In an exemplary embodiment, the device further includes:

[0144] The first detection module is configured to, after detecting the reference transmission state of the reference controller, continue to detect the reference transmission state when the reference transmission state is used to indicate that the reference controller does not allow receiving the data transmitted by the target controller;

[0145] The transmission module is configured to, when the reference transmission state is converted from indicating that the reference controller does not allow receiving the data transmitted by the target controller to indicating that the reference controller allows receiving the data transmitted by the target controller, transmit the acquired target operation information to the reference controller through the target data interface.

[0146] In an exemplary embodiment, detecting the reference transmission state of the reference controller includes:

[0147] The third detection unit is configured to start detecting the reference transmission state of the reference controller after collecting and storing the target operation information; or,

[0148] The fourth detection unit is configured to detect the reference transmission state of the reference controller when starting to collect the updated operation information of the target power supply, where the updated operation information is the operation information of the next target power supply collected by the target controller after the target operation information.

[0149] In an exemplary embodiment, a first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a third switcher and a third register are deployed in the reference power supply component corresponding to the reference power supply. When the reference operation state is used to indicate that the reference controller is operating normally, the bus link is also switched to be connected to the third register through the third switcher. The bus link includes the link between the third switcher and the first bus port. The third register is used to record the transmission parameter, and the value of the transmission parameter is used to indicate whether the target controller has completed transmitting the target operation information through the target data interface. After transmitting the acquired target operation information to the reference controller through the target data interface, the device further includes:

[0150] The second detection module is configured to detect the target transmission state of the target operation information;

[0151] An adjustment module, configured to, when a target transmission state is used to indicate that a target controller completes the transmission of target operation information through a target data interface, adjust the value of a transmission parameter recorded in a third register to a target value through a bus link.

[0152] It should be noted that the above-mentioned various modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above-mentioned modules are all located in the same processor; or, the above-mentioned various modules are respectively located in different processors in any combination form.

[0153] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. Wherein, the computer program is configured to execute the steps in any one of the above method embodiments when running.

[0154] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: various media such as USB flash drives, read-only memories (ROMs for short), random access memories (RAMs for short), mobile hard disks, magnetic disks, or optical discs that can store computer programs.

[0155] An 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 above method embodiments.

[0156] In an exemplary embodiment, the above electronic device may further include a transmission device and an input / output device. Wherein, the transmission device is connected to the above processor, and the input / output device is connected to the above processor.

[0157] An embodiment of the present application further provides a computer program product. The above computer program product includes a computer program, and when the computer program is executed by a processor, it implements the steps in any one of the above method embodiments.

[0158] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium. The non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the steps in any one of the above method embodiments.

[0159] An embodiment of the present application further provides a computer program. The computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in any one of the above method embodiments.

[0160] The specific examples in this embodiment may refer to the examples described in the above embodiments and exemplary embodiments, and will not be elaborated herein.

[0161] Obviously, those skilled in the art should understand that the various modules or steps of the present application described above can be implemented by a general-purpose computing device. They can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. They can be implemented with 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 for implementation. In this way, the present application is not limited to any specific combination of hardware and software.

[0162] The above is only the preferred embodiment of the present application and is 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 querying server power supply information, characterized in that a first power supply component and a second power supply component are deployed in the server. The first power supply component includes a first controller and a first power supply, and the second power supply component includes a second controller and a second power supply. The first power supply component and the second power supply component are set to allow mutual synchronization of the operation information of the generated power supply, and the operation information is used to detect the operation state of the corresponding power supply. The method is applied to a target controller among the first controller and the second controller, and the method includes: receiving a target query request, where the target query request is used to request querying the operation information of the power supply deployed on the server; responding to the target query request, extracting the target operation information of the target power supply in the target power supply component collected by the target controller, and extracting the reference operation information of the reference power supply synchronized to the target controller, where the reference controller is the controller other than the target controller among the first controller and the second controller, and the reference power supply is the power supply corresponding to the reference controller; outputting the target operation information and the reference operation information; wherein, before extracting the target operation information of the target power supply in the target power supply component collected by the target controller and extracting the reference operation information of the reference power supply synchronized to the target controller, the method further includes: collecting and storing the target operation information, and detecting the reference operation state of the reference controller, where the reference operation state is used to indicate the operation condition of the reference controller; in the case where the reference operation state is used to indicate that the reference controller is operating normally, obtaining and storing the reference operation information synchronized by the reference controller to the target controller; in the case where the reference operation state is used to indicate that the reference controller is operating abnormally, collecting and storing the reference operation information from the reference power supply; A first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, and a first switch, a second register, and a third register are deployed in the reference power supply component corresponding to the reference power supply. The first bus port is connected to the first switch, and the first switch is further set to allow connection to the second bus port. The first switch is set to allow connection to the second register, and the second register is used to record status parameters. The value of the status parameter is used to indicate whether the reference controller allows receiving data transmitted by the target controller. When the reference operating state is used to indicate that the reference controller is operating normally, the bus link is further switched to be connected to the third register through the first switch. The bus link includes the link between the first switch and the first bus port. The third register is used to record transmission parameters, and the value of the transmission parameter is used to indicate whether the target controller has completed transmitting the target operating information. The second bus port is connected to the reference power supply. When the reference operating state is used to indicate that the reference controller is operating abnormally, the reference operating information is collected and stored from the reference power supply, including: switching the bus link to be connected to the management link of the reference controller through the first switch, where the management link includes the link between the first switch and the second bus port. The second bus port is further used for the reference controller to collect the operating information of the reference power supply through the second bus port when the reference controller is operating normally; collecting the reference operating information through the connected bus link and the management link.

2. The method according to claim 1, wherein a detection pin is deployed on the target controller, and the detection pin is connected to the reference controller. Detecting the reference operating state of the reference controller includes: detecting a heartbeat signal sent by the reference controller from the data received by the detection pin to obtain a detection result, where the reference controller is set to send the heartbeat signal to the detection pin according to a target period; when the detection result is used to indicate that the heartbeat signal is detected from the data received by the detection pin, determining that the reference operating state is used to indicate that the reference controller is operating normally; when the detection result is used to indicate that the heartbeat signal is not detected from the data received by the detection pin within a target duration, determining that the reference operating state is used to indicate that the reference controller is operating abnormally.

3. The method according to claim 1, wherein switching the bus link to be connected to the management link of the reference controller through the first switch includes: generating a target switching instruction, where the target switching instruction is used to indicate switching the bus link to be connected to the management link; Send the target switching instruction to the first switcher, where the first switcher is used to execute the target switching instruction.

4. The method according to claim 1, wherein: A first register is deployed in the reference power supply, the first register is connected to the second bus port, and the operating information of the reference power supply is stored in the first register. The collecting of the reference operating information through the connected bus link and management link includes: Extract the reference operating information from the first register through a target transmission link in a polling manner, where the target transmission link includes the connected bus link and management link, and the reference operating information includes the voltage information of the reference power supply, the current information of the reference power supply, the power consumption information of the reference power supply, and the temperature information of the reference power supply.

5. The method according to claim 1, wherein: A target data interface is deployed on the target controller, the target data interface is connected to the reference controller, and when the reference operating state is used to indicate that the reference controller is operating normally, obtaining and storing the reference operating information synchronized by the reference controller to the target controller includes: Detect the reference transmission state of the reference controller; When the reference transmission state is used to indicate that the reference controller allows receiving data transmitted by the target controller, transmit the collected target operating information to the reference controller through the target data interface; When the transmission of the target operating information to the reference controller is completed through the target data interface, receive the reference operating information transmitted by the reference controller through the target data interface and store the reference operating information.

6. The method according to claim 5, wherein: The detecting the reference transmission state of the reference controller includes: Switch the bus link to be connected to the second register through the first switcher; Read the candidate value of the status parameter recorded in the second register through the first switcher; When the candidate value is equal to the reference value, determine that the reference transmission state is used to indicate that the reference controller allows receiving data transmitted by the target controller; when the candidate value is not equal to the reference value, determine that the reference transmission state is used to indicate that the reference controller does not allow receiving data transmitted by the target controller.

7. The method according to claim 5, wherein: After the detecting the reference transmission state of the reference controller, the method further includes: When the reference transmission state is used to indicate that the reference controller does not allow receiving data transmitted by the target controller, continue to detect the reference transmission state; In the case where the reference transmission state changes from indicating that the reference controller is not allowed to receive data transmitted by the target controller to indicating that the reference controller is allowed to receive data transmitted by the target controller, the acquired target operation information is transmitted to the reference controller through the target data interface.

8. The method according to claim 5, wherein detecting the reference transmission state of the reference controller includes: starting to detect the reference transmission state of the reference controller after acquiring and storing the target operation information; or, detecting the reference transmission state of the reference controller when starting to acquire the updated operation information of the target power supply, where the updated operation information is the operation information of the next target power supply acquired by the target controller after the target operation information.

9. The method according to claim 5, wherein after transmitting the acquired target operation information to the reference controller through the target data interface, the method further includes: detecting the target transmission state of the target operation information; in the case where the target transmission state is used to indicate that the target controller has completed transmitting the target operation information through the target data interface, adjusting the value of the transmission parameter recorded in the third register to a target value through the bus link.

10. A query device for server power supply information, wherein a first power supply component and a second power supply component are deployed in the server. The first power supply component includes a first controller and a first power supply, and the second power supply component includes a second controller and a second power supply. The first power supply component and the second power supply component are set to allow mutual synchronization of the operation information of the generated power supplies, and the operation information is used to detect the operation state of the corresponding power supplies. The device is applied to the target controller among the first controller and the second controller, and the device includes: a receiving module, configured to receive a target query request, where the target query request is used to request querying the operation information of the power supplies deployed on the server; an extraction module, configured to respond to the target query request, extract the target operation information of the target power supply in the target power supply component acquired by the target controller, and extract the reference operation information of the reference power supply synchronized by the target controller, where the reference controller is the controller other than the target controller among the first controller and the second controller, and the reference power supply is the power supply corresponding to the reference controller; an output module, configured to output the target operation information and the reference operation information. Wherein, the device further comprises: a first processing module, configured to collect and store the target operation information, and detect the reference operation state of the reference controller before extracting the target operation information of the target power supply component collected by the target controller and the reference operation information of the reference power supply synchronized by the target controller, wherein the reference operation state is used to indicate the operation condition of the reference controller; a second processing module, configured to obtain and store the reference operation information synchronized by the reference controller to the target controller when the reference operation state is used to indicate that the reference controller is operating normally; a third processing module, configured to collect and store the reference operation information from the reference power supply when the reference operation state is used to indicate that the reference controller is operating abnormally. A first bus port is deployed on the target controller, a second bus port is deployed on the reference controller, a first switch, a second register and a third register are deployed in the reference power supply component corresponding to the reference power supply, the first bus port is connected to the first switch, the first switch is further configured to allow connection to the second bus port, the first switch is configured to allow connection to the second register, the second register is used to record status parameters, and the value of the status parameter is used to indicate whether the reference controller is allowed to receive the data transmitted by the target controller. When the reference operation state is used to indicate that the reference controller is operating normally, the bus link is further switched to be connected to the third register through the first switch. The bus link includes the link between the first switch and the first bus port. The third register is used to record transmission parameters, and the value of the transmission parameter is used to indicate whether the target controller has completed transmitting the target operation information. The second bus port is connected to the reference power supply. The third processing module includes: a switching unit, configured to switch the bus link to be connected to the management link of the reference controller through the first switch, wherein the management link includes the link between the first switch and the second bus port, and the second bus port is further used for the reference controller to collect the operation information of the reference power supply through the second bus port when the reference controller is operating normally; a collecting unit, configured to collect the reference operation information through the connected bus link and the management link.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.

12. 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 9 are implemented.

13. A computer program product, comprising a computer program, characterized in that The steps of the method described in any one of claims 1 to 9 are implemented when the computer program is executed by a processor.

Citation Information

Patent Citations

  • Multi-controller architecture and deployment method for service grid

    CN115426257A