CN115407861A - Target equipment power supply method, system and device and computer readable storage medium - Google Patents

Target equipment power supply method, system and device and computer readable storage medium Download PDF

Info

Publication number
CN115407861A
CN115407861A CN202211041880.8A CN202211041880A CN115407861A CN 115407861 A CN115407861 A CN 115407861A CN 202211041880 A CN202211041880 A CN 202211041880A CN 115407861 A CN115407861 A CN 115407861A
Authority
CN
China
Prior art keywords
server
power supply
power
target device
execution
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211041880.8A
Other languages
Chinese (zh)
Inventor
张青鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211041880.8A priority Critical patent/CN115407861A/en
Publication of CN115407861A publication Critical patent/CN115407861A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a power supply method, a system, a device and a computer readable storage medium for target equipment, relating to the technical field of server power supply setting.

Description

Target equipment power supply method, system and device and computer readable storage medium
Technical Field
The present invention relates to the technical field of server power supply settings, and in particular, to a method, a system, an apparatus, and a computer-readable storage medium for supplying power to a target device.
Background
The satellite server is arranged on the server, is essentially equivalent to a small switch, and can distribute a network for the server, specifically, a power supply circuit exists on a mainboard of the server and is connected to a power supply end of the satellite server, and in practical application, the situation that the satellite server needs to be ensured to normally work when the server is shut down exists, which means that the satellite server needs to be ensured to be powered on all the time so as to avoid influencing the normal work of the satellite server.
A BMC (Baseboard Management Controller) in the server may issue a power command, and further control a working state of the entire server, including a power supply state of each power supply line on the motherboard. However, in the process of starting up the server, the situation that the whole server is shut down or restarted accidentally without identifying or completing the satellite server is likely to exist, at this time, because the satellite server is not identified yet, the BMC can naturally control all the servers to be powered off, all power supply circuits are powered off, the existing satellite server is broken down due to accidental power off, and the probability of system breakdown of the whole server is improved.
Disclosure of Invention
The invention aims to provide a method, a system and a device for supplying power to target equipment and a computer readable storage medium, which ensure that the power failure of the target equipment cannot be caused by the accidental power failure of a server, realize the protection of a server system, reduce the breakdown probability of the whole server system and provide convenience for the use of subsequent users, the maintenance of the server and the like.
In order to solve the above technical problem, the present invention provides a method for supplying power to a target device, including:
when a configuration identification process of a server is executed, judging whether a control instruction for controlling the power-off of the server is received or not;
if so, forbidding to execute the control instruction, and controlling the configuration identification process to continue to execute;
and when the result of the execution completion of the configuration identification process is determined to be that target equipment exists, determining that the server executes a first preset power-down strategy so as to keep supplying power for the target equipment.
Preferably, the step of executing the first preset power-down policy includes:
controlling a target power supply circuit which is arranged on a mainboard of the server and supplies power to the target equipment to keep outputting electric energy;
and sequentially controlling the rest power supply circuits on the mainboard to stop outputting the electric energy according to a preset power failure priority sequence.
Preferably, when the target device is a satellite server;
the step of determining that the target device exists as a result of the end of the execution of the configuration identification process includes:
judging whether the post stage of the server is executed;
if the execution is finished, acquiring FRU information stored in an EEPROM in the server;
judging whether a target identification field exists in the FRU information or not;
and if the target identification field exists, determining that the result of the configuration identification process is that the satellite server exists.
Preferably, the method for supplying power to the target device further includes:
and when the result of the execution completion of the configuration identification process is determined that no target equipment exists, determining that the server executes a second preset power-down strategy, wherein the second preset power-down strategy is used for controlling all power supply circuits on a main board of the server to stop power output.
Preferably, the step of determining that the control instruction for controlling the power-off of the server is received includes:
and when an out-of-band IPMI instruction which is sent by upper management equipment and used for controlling the shutdown and/or restart of the server is received, and/or an in-band OS instruction which is sent by an OS on the server and used for controlling the shutdown and/or restart of the server is received, judging that a control instruction which is used for controlling the power-off of the server is received.
Preferably, prohibiting the execution of the control instruction and controlling the configuration identification process to continue executing includes:
and adjusting the execution position of the control instruction to the position of the last instruction in the current instruction queue to be executed, wherein the current instruction queue to be executed comprises an execution instruction corresponding to the execution of the configuration identification process.
Preferably, the method for supplying power to the target device further includes:
in the process of executing the configuration identification, judging whether an identification signal representing that the server enters a BIOS setting stage is received or not;
and if so, clearing the stored control instruction.
In order to solve the above technical problem, the present invention further provides a power supply system for a target device, including:
the first judgment unit is used for judging whether a control instruction for controlling the power-off of the server is received or not when a configuration identification process of the server is executed; if yes, triggering a first interception unit;
the first interception unit is used for forbidding the execution of the control instruction and controlling the configuration identification process to continue to execute;
and the first power-down control unit is used for determining that the server executes a first preset power-down strategy to keep supplying power to the target equipment when the result of the execution completion of the configuration identification process is determined to be that the target equipment exists.
In order to solve the above technical problem, the present invention further provides a power supply apparatus for a target device, including:
a memory for storing a computer program;
a processor for performing the steps of the target device power supply method as described above.
To solve the above technical problem, the present invention also provides a computer-readable storage medium, comprising:
the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the target device power supply method as described above.
The application provides a power supply method, a power supply system, a power supply device and a computer readable storage medium of target equipment, wherein in the execution process of a configuration identification process of a server, whether a control instruction for representing and controlling the power-off of the server is received is judged, if yes, the whole server is not directly controlled to be completely powered off like the prior art, the execution of the control instruction is suspended, namely, the execution of the control instruction is forbidden, and the configuration identification process is controlled to be continuously executed, so that when the execution end result of the configuration identification process is determined to be the existence of the target equipment, the server is determined to execute a first preset power-off strategy to keep supplying power to the target equipment, the accidental power-off breakdown of the server cannot be caused to the target equipment, the protection of a server system is realized, the breakdown probability of the whole server system is reduced, and convenience is provided for the use of subsequent users, the maintenance of the server and the like.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required in the prior art and the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a method for supplying power to a target device according to the present invention;
fig. 2 is a schematic structural diagram of a target device power supply system provided in the present invention;
fig. 3 is a schematic structural diagram of a target device power supply apparatus provided in the present invention.
Detailed Description
The core of the invention is to provide a method, a system and a device for supplying power to target equipment and a computer readable storage medium, which ensure that the accidental power failure of a server does not cause the power failure of the target equipment, realize the protection of the server system, reduce the breakdown probability of the whole server system, and provide convenience for the subsequent use of users, the maintenance of the server and the like.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a power supply method for a target device according to an embodiment of the present invention.
In this embodiment, it is considered that the satellite server is a device disposed on the server and used for allocating a network to the server, and it is necessary to ensure that the satellite server is always powered on so as to avoid affecting normal operation of the satellite server. The BMC in the server can issue a Power command (specifically, an Advanced Configuration and Power Interface (ACPI)) which is a Power management Interface and a model of firmware and an Operating System (OS), wherein the ACPI specification defines the working state of a Central Processing Unit (CPU), and the ACPI state is controlled by the Power command issued by the BMC, so that the implementation logic of the Power command issued by the BMC directly influences the working states of a server System and the CPU. In order to solve the technical problem, the application provides a power supply method for target equipment, which reduces the probability of system breakdown of the whole server and ensures power supply support for a satellite server.
The target device power supply method comprises the following steps:
s11: when the configuration identification process of the server is executed, judging whether a control instruction for representing the power-off of the control server is received; if yes, entering S12;
specifically, the target device power supply method can be specifically applied to a BMC on the server, where the BMC is a substrate management system on the server, and is used as an embedded management microcontroller, which is responsible for important functions of asset information display, hardware monitoring, heat dissipation regulation and control, system configuration, remote monitoring, log collection, fault diagnosis, system maintenance, and the like of the server, and can reliably implement a logic control function in the present application; the target device includes, but is not limited to, the satellite server described above, and further, the satellite server may specifically include three ports, where a first port is a port for connecting to an external local area network, a second port is a port for connecting to a port of a server mounted on the satellite server to allocate a network for the server mounted on the satellite server, and a third port is a power supply port connected to a special power supply line on the motherboard to obtain power supply.
It should be further noted that, the configuration identification process of the server described herein essentially corresponds to the work content, and specifically includes the following two aspects, that is: the server firstly goes through a post stage in the power-on and power-on processes, wherein the post stage is essentially understood as a pre-configuration stage for each parameter to be configured in the power-on process of the server, and after the post stage is completed, the identification work of whether the satellite server is currently mounted on the server is continued.
S12: forbidding to execute the control instruction, and controlling the configuration identification process to continue executing;
specifically, when a control instruction for representing that the control server powers off is received, since the current configuration identification process of the server is not executed (that is, the current process is in the post stage process, or the identification process of the satellite server), there is a high possibility that the following situations occur: at present, target equipment such as a satellite server exists on the server, but the satellite server is not identified yet because the configuration identification process is not executed completely, and at this time, if the BMC immediately controls and executes the control instruction as in the prior art, the control instruction is likely to cause abnormal power failure and crash of the satellite server, so the control instruction is processed in the step S12 in the present application, and the specific steps are described above, which is not described herein again, and it can be seen that the step S12 can preferentially ensure the continuation of the configuration identification process.
It can be understood that the execution process of the configuration identification process corresponds to a process of powering on and powering on the server, and as long as the server is powered on, each power supply circuit on the motherboard is powered on naturally, so that each power supply circuit on the motherboard is powered on in the process, and the satellite server is naturally guaranteed to supply power if the satellite server has power.
S13: and when the result of the execution completion of the configuration identification process is determined to be that the target equipment exists, determining that the server executes a first preset power-down strategy so as to keep supplying power for the target equipment.
Specifically, when it is determined that the target device exists as a result of the execution completion of the configuration identification process, the first preset power down policy is determined to be executed, so that power supply to the target device, such as a satellite server, can be ensured, and the control instruction is further controlled to be executed, so as to control orderly power down of other components on the motherboard, such as a Central Processing Unit (CPU), a memory, and other power utilization components.
It should be noted that, if a control instruction for representing that the server is powered off is not received in the configuration identification process, the power-on and power-on processes of the server are directly and normally completed, and the server is normally powered on; in addition, after the configuration identification process is completed, when a control instruction for representing the power-off of the control server is received, the control instruction can be directly controlled and executed according to the condition of existence of the satellite server. It can be understood that, if the satellite server has been identified in the configuration identification process, the BMC essentially determines to execute the first preset power-down policy at this time, so as to preferentially maintain power supply to the satellite server, and sends a corresponding power command to control the orderly power down of other power-consuming components on the motherboard.
In summary, the present application provides a method for supplying power to a target device, in an execution process of a configuration identification process of a server, determining whether a control instruction representing to control power down of the server is received, if yes, directly controlling complete power down of the entire server, as in the prior art, but suspending execution of the control instruction, that is, prohibiting execution of the control instruction, and controlling the configuration identification process to continue execution, so that when it is determined that a result of completion of execution of the configuration identification process is that the target device exists, it is determined that the server executes a first preset power down policy to keep supplying power to the target device, thereby ensuring that accidental power down of the server does not cause power down breakdown of the target device, implementing protection on a server system, reducing breakdown probability of the entire server system, and providing convenience for subsequent user use, server maintenance, and other aspects.
On the basis of the above-described embodiment:
as a preferred embodiment, the step of executing the first preset power-down policy includes:
a target power supply circuit for supplying power to the target equipment on a mainboard of the control server keeps outputting electric energy;
and sequentially controlling the rest power supply circuits on the mainboard to stop outputting the electric energy according to the preset power-down priority sequence.
In this embodiment, in consideration of the fact that in practical application, a target power supply line exists on the motherboard, and is specially used for supplying power to the target device, and other power supply lines exist to supply power to power consumption components such as the CPU and the memory, respectively, therefore, the specific execution step of the first preset power-down policy here is: maintaining power to the target power supply line, i.e., maintaining power output to achieve power supply to the target device, e.g., a satellite server; and cutting off the power supply of the rest power supply lines, namely stopping the power output of the rest power supply lines so as to realize the power failure of other power consumption parts.
It should be noted that, when other power consuming components have a preset power-down priority sequence, the remaining power supply circuits may be sequentially controlled to be powered down according to the preset power-down priority sequence, so as to ensure the safe and reliable power-down of the server and the service life of the server system, where the preset power-down priority sequence is set according to actual requirements, and no particular limitation is made herein.
Therefore, the power-down shutdown of the server can be simply and reliably realized through the design of the first preset power-down strategy, and the power supply of the satellite server is still ensured.
As a preferred embodiment, when the target device is a satellite server;
the step of determining that the target device exists as a result of the end of execution of the configuration recognition process includes:
judging whether the post stage of the server is executed or not;
if the execution is finished, acquiring FRU information stored in an EEPROM in the server;
judging whether the FRU information has a target identification field or not;
and if the target identification field exists, determining that the result of the configuration identification process is that the satellite server exists.
In this embodiment, based on that in an EEPROM (Electrically Erasable Programmable read only memory), if there is a satellite server, there will be a target identification field, and therefore, the determination of the presence or absence of the satellite server can be implemented according to the presence or absence of the target identification field.
Specifically, in the process of powering on and powering on the server, the identification process of the satellite server is performed only after the post stage is finished, and therefore, if the post stage is not finished, the configuration work corresponding to the post stage is continued. And after the post stage is finished, acquiring FRU information stored in an EEPROM in the server, judging whether a target identification field exists in the FRU information, if so, determining that the result of the configuration identification process is that the satellite server exists, and if not, determining that the result of the configuration identification process is that the satellite server does not exist.
Therefore, the device can simply and reliably realize the determination and identification of the existence of the satellite server, and is convenient for subsequently adopting different server power-down strategies.
As a preferred embodiment, the target device power supply method further includes:
and when the result of the execution completion of the configuration identification process is determined that the target equipment does not exist, determining that the server executes a second preset power-down strategy, wherein the second preset power-down strategy is used for controlling all power supply circuits on a mainboard of the server to stop power output.
In this embodiment, the inventor further considers that when it is determined that there is no target device as a result of the end of the execution of the configuration identification process, there is no need to reserve power output of any power supply line on the motherboard, so as to achieve energy saving. And then, determining to execute a second preset power-down strategy, namely sending a corresponding power supply instruction to control all power supply circuits on the mainboard of the server to be powered down, namely stopping power output.
It should be further noted that, the specific control process for power down of all power supply lines on the motherboard includes, but is not limited to: and performing power failure according to a preset power failure priority order to ensure the safe and reliable power failure of the server and the service life of a server system.
As a preferred embodiment, the step of determining that the control command for indicating the power-off of the control server is received includes:
and when an out-of-band IPMI instruction which is sent by upper management equipment and used for representing shutdown and/or restart of the control server is received, and/or an in-band OS instruction which is sent by an OS on the server and used for representing shutdown and/or restart of the control server is received, judging that a control instruction which is used for representing power-off of the control server is received.
In this embodiment, an IPMI (Intelligent Platform Management Interface) is based on a new generation of universal Interface standard that enables hardware Management to be Intelligent. The IPMI may be used by a user to monitor physical characteristics of the server, such as temperature, voltage, fan operating conditions, power supply, and chassis. The upper management device is essentially an out-of-band management device, and when receiving an out-of-band IPMI instruction sent by the upper management device and indicating the shutdown and/or the restart of the control server, the upper management device judges that a control instruction indicating the power-down of the control server is received, and the OS is essentially an in-band OS on the upper management device, and when receiving the in-band OS instruction sent by the OS and indicating the shutdown and/or the restart of the control server, the upper management device judges that the control instruction indicating the power-down of the control server is received.
As a preferred embodiment, prohibiting the execution of the control instruction and controlling the configuration identification process to continue execution includes:
and adjusting the execution position of the control instruction to the last position in the current instruction queue to be executed, wherein the current instruction queue to be executed comprises the execution instruction corresponding to the execution configuration identification process.
In this embodiment, a specific step of prohibiting execution of the control instruction and controlling the configuration identification process to continue execution is provided, where first, the execution instructions corresponding to the execution configuration identification process are all stored in the current to-be-executed instruction queue, a storage sequence of each execution instruction in the to-be-executed instruction queue is an actual execution sequence, and the control instruction may specifically include a shutdown instruction and/or a restart instruction, and whichever the execution sequence is, an execution position of the control instruction is adjusted to a position of a last one in the current to-be-executed instruction queue (if there are multiple control instructions, only the position of the last one in the current to-be-executed instruction queue needs to be adjusted in sequence as a time sequence received by the multiple control instructions exists), so that continuous execution of the configuration identification process can be preferentially ensured, and after all execution instructions corresponding to the configuration identification process are executed, the control execution of the control instruction is controlled according to a result of the configuration identification process, an implementation manner is simple and reliable, a maximum protection of the server system can be achieved, and a probability of crash of the server system is reduced.
As a preferred embodiment, the target device power supply method further includes:
in the process of executing configuration identification, judging whether an identification signal representing that a server enters a BIOS setting stage is received or not;
if yes, clearing the stored control instruction.
In this embodiment, the inventor further considers that there is a special case, that is, in executing the configuration identification process, specifically, when entering a BIOS (Basic Input Output System) setting stage (specifically, when entering a BIOS setup interface) when a post stage is being performed or an identification stage of the satellite server is being performed, at this time, an operation process of the BIOS setting stage or when manually exiting the BIOS setting stage and restarting, power supply of a power supply line on the motherboard is guaranteed, so if there is a target device, such as the satellite server, which can naturally obtain power supply, then the control instruction stored before the clearing (i.e., the control instruction before entering the setup) is cleared. It should be noted that the entering of the BIOS setting stage may specifically be triggered by a technician or a user.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a target device power supply system according to the present invention.
The target device power supply system includes:
a first judging unit 21, configured to judge whether a control instruction representing that the control server powers off is received when a configuration identification process of the server is executed; if yes, triggering the first interception unit 22;
the first interception unit 22 is configured to prohibit execution of the control instruction and control the configuration identification process to continue execution;
and the first power-down control unit 23 is configured to determine that the server executes a first preset power-down policy to keep supplying power to the target device when it is determined that the target device exists as a result of the execution completion of the configuration identification process.
For the introduction of the target device power supply system provided in the present invention, please refer to the above-mentioned embodiment of the target device power supply method, which is not described herein again.
As a preferred embodiment, the target device power supply system includes:
the first control unit is used for controlling a target power supply circuit which is arranged on a mainboard of the server and supplies power to the target equipment to keep electric energy output;
and the second control unit is used for sequentially controlling the rest power supply circuits on the mainboard to stop outputting the electric energy according to the preset power failure priority order.
As a preferred embodiment, when the target device is a satellite server; the target device power supply system includes:
a second judging unit, configured to judge whether execution of the post stage of the server is completed; if yes, triggering a first information acquisition unit;
the first information acquisition unit is used for acquiring FRU information stored in an EEPROM in the server;
a third judging unit, configured to judge whether a target identification field exists in the FRU information; if yes, triggering a configuration identification result determining unit;
and the configuration identification result determining unit is used for determining that the result of the configuration identification process is that the satellite server exists.
As a preferred embodiment, the target device power supply system further includes:
and the second power-down control unit is used for determining that the server executes a second preset power-down strategy when the result of the execution completion of the configuration identification process is determined that no target equipment exists, wherein the second preset power-down strategy is used for controlling all power supply circuits on a mainboard of the server to stop power output.
As a preferred embodiment, the target device power supply system includes:
and the instruction receiving and determining unit is used for judging that a control instruction for controlling the power-off of the server is received when an out-of-band IPMI instruction which is sent by upper management equipment and used for controlling the shutdown and/or the restart of the server is received, and/or an in-band OS instruction which is sent by an OS on the server and used for controlling the shutdown and/or the restart of the server is received.
As a preferred embodiment, the first intercepting unit 22 specifically includes:
and the instruction position adjusting unit is used for adjusting the execution position of the control instruction to the position of the last instruction in the current instruction queue to be executed, wherein the current instruction queue to be executed comprises an execution instruction corresponding to the execution of the configuration identification process.
As a preferred embodiment, the target device power supply system further includes:
a fourth judging unit, configured to, in executing the configuration identification process, judge whether an identification signal indicating that the server enters a BIOS setting stage is received; if yes, triggering an instruction clearing unit;
and the instruction clearing unit is used for clearing the stored control instruction.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a target device power supply apparatus provided in the present invention.
The target device power supply apparatus includes:
a memory 31 for storing a computer program;
a processor 32 for performing the steps of the target device power supply method as described above.
For the introduction of the target device power supply apparatus provided in the present invention, please refer to the above embodiments of the target device power supply method, which are not described herein again.
The present invention also provides a computer-readable storage medium comprising:
the computer readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps of the target device power supply method as described above.
For the introduction of the computer-readable storage medium provided in the present invention, please refer to the above-mentioned embodiment of the target device power supply method, which is not described herein again.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. Relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the components and steps of the various examples have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for powering a target device, comprising:
when a configuration identification process of a server is executed, judging whether a control instruction for controlling the power-off of the server is received or not;
if so, forbidding to execute the control instruction, and controlling the configuration identification process to continue executing;
and when the result of the execution completion of the configuration identification process is determined that target equipment exists, determining that the server executes a first preset power-down strategy to keep supplying power for the target equipment.
2. The target device power supply method of claim 1, wherein the step of executing the first predetermined power-down policy comprises:
controlling a target power supply circuit which is arranged on a mainboard of the server and supplies power to the target equipment to keep outputting electric energy;
and sequentially controlling the rest power supply circuits on the mainboard to stop outputting the electric energy according to a preset power failure priority sequence.
3. The method for powering a target device according to claim 1, wherein when said target device is a satellite server;
the step of determining that the target device exists as a result of the end of the execution of the configuration identification process includes:
judging whether the post stage of the server is executed;
if the execution is finished, acquiring FRU information stored in an EEPROM in the server;
judging whether a target identification field exists in the FRU information;
and if the target identification field exists, determining that the result of the configuration identification process is that the satellite server exists.
4. The target device power supply method of claim 1, wherein the target device power supply method further comprises:
and when the result of the execution completion of the configuration identification process is determined that no target equipment exists, determining that the server executes a second preset power-down strategy, wherein the second preset power-down strategy is used for controlling all power supply circuits on a main board of the server to stop power output.
5. The target device power supply method of claim 1, wherein the step of determining that a control instruction is received characterizing controlling the power down of the server comprises:
and when an out-of-band IPMI instruction which is sent by upper management equipment and used for controlling the shutdown and/or restart of the server is received, and/or an in-band OS instruction which is sent by an OS on the server and used for controlling the shutdown and/or restart of the server is received, judging that a control instruction which is used for controlling the power-off of the server is received.
6. The target device power supply method according to claim 1, wherein prohibiting execution of the control instruction and controlling the configuration identification process to continue execution includes:
adjusting the execution position of the control instruction to the position of the last instruction in the current instruction queue to be executed; and the current instruction queue to be executed comprises an execution instruction corresponding to the execution of the configuration identification process.
7. The target device power supply method according to any one of claims 1 to 6, wherein the target device power supply method further comprises:
in the process of executing the configuration identification, judging whether an identification signal representing that the server enters a BIOS setting stage is received;
and if so, clearing the stored control instruction.
8. A target device power supply system, comprising:
the first judgment unit is used for judging whether a control instruction for representing and controlling the power-off of the server is received or not when a configuration identification process of the server is executed; if yes, triggering a first interception unit;
the first interception unit is used for forbidding the execution of the control instruction and controlling the configuration identification process to continue to execute;
and the first power-down control unit is used for determining that the server executes a first preset power-down strategy to keep supplying power to the target equipment when determining that the target equipment exists as a result of the execution completion of the configuration identification process.
9. A target device power supply apparatus, comprising:
a memory for storing a computer program;
a processor for performing the steps of the target device power supply method of any one of claims 1 to 7.
10. A computer-readable storage medium, comprising:
the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, carries out the steps of the target device power supply method according to any one of claims 1 to 7.
CN202211041880.8A 2022-08-29 2022-08-29 Target equipment power supply method, system and device and computer readable storage medium Pending CN115407861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211041880.8A CN115407861A (en) 2022-08-29 2022-08-29 Target equipment power supply method, system and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211041880.8A CN115407861A (en) 2022-08-29 2022-08-29 Target equipment power supply method, system and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115407861A true CN115407861A (en) 2022-11-29

Family

ID=84162323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211041880.8A Pending CN115407861A (en) 2022-08-29 2022-08-29 Target equipment power supply method, system and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115407861A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116520957A (en) * 2023-06-28 2023-08-01 新华三信息技术有限公司 Mainboard, mainboard power supply control method and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116520957A (en) * 2023-06-28 2023-08-01 新华三信息技术有限公司 Mainboard, mainboard power supply control method and electronic equipment
CN116520957B (en) * 2023-06-28 2023-10-03 新华三信息技术有限公司 Mainboard, mainboard power supply control method and electronic equipment

Similar Documents

Publication Publication Date Title
US9489213B2 (en) Shutdown method, startup method, and communication terminal
US8578182B2 (en) Power lock-up setting method performed by baseboard management controller and electronic apparatus using the same
CN106371540B (en) System power management method, chip and electronic equipment
CN105739668A (en) Power management method and power management system of notebook computers
JPH09212261A (en) Power supply control system for information processor
US8219842B2 (en) Computer system and method for energy-saving operation of a computer system
US7240189B2 (en) Fast resume to normal operation of a computer in a power saving mode
US6408397B1 (en) Using RTC wake-up to enable recovery from power failures
CN115407861A (en) Target equipment power supply method, system and device and computer readable storage medium
JP5976074B2 (en) Computer system and operation method thereof
CN111124761B (en) Equipment restarting method, device, equipment and medium
CN112035285A (en) Hardware watchdog circuit system based on high-pass platform and monitoring method thereof
WO2023029375A1 (en) Power source consumption management apparatus for four-way server
CN113835508A (en) Power consumption management method and device of server, BMC and storage medium
WO2024082873A1 (en) Data backup method, and computer device and storage medium
CN115795568A (en) Liquid cooling server liquid leakage protection method, device, equipment and storage medium
CN114217942B (en) Power management in blade enclosure
JPH10105296A (en) Power source controller
CN109976490B (en) Power supply control method and electronic equipment
EP2957984A1 (en) Method for power management and corresponding apparatus
CN111475339A (en) BIOS firmware updating method, device, equipment and storage medium
CN108170247A (en) BMC power loss recovery method and apparatus
CN113867191A (en) Intelligent power control system, method and medium for terminal equipment
CN115617149A (en) Low-cost high-reliability server cluster startup and shutdown system and method
CN116643638A (en) Power supply cold redundancy management method and device, substrate management controller and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination