CN114756409A - Power-on control method of server and related components - Google Patents

Power-on control method of server and related components Download PDF

Info

Publication number
CN114756409A
CN114756409A CN202210466927.9A CN202210466927A CN114756409A CN 114756409 A CN114756409 A CN 114756409A CN 202210466927 A CN202210466927 A CN 202210466927A CN 114756409 A CN114756409 A CN 114756409A
Authority
CN
China
Prior art keywords
power
state
server
preset
previous
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
CN202210466927.9A
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 CN202210466927.9A priority Critical patent/CN114756409A/en
Publication of CN114756409A publication Critical patent/CN114756409A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1441Resetting or repowering

Abstract

The invention discloses a power-on control method of a server and a related component, which are applied to the field of servers, detect the current power-on and power-off states of the server, update the power-on and power-off states stored in a chassis previous strategy when the server maintains the power-on state for a first preset number of times or the power-off state for a second preset number of times, and keep the power-on and power-off states in the chassis previous strategy when the power-on and power-off states of the server do not meet the power-on state for the first preset number of times or the power-off state for the second preset number of times. And updating the on-off state stored in the chassis previous strategy, and when the server is powered on after power failure, controlling the on-off state of the server which is powered on after power failure to be the on-off state stored in the chassis previous strategy, so that the server can be accurately restored to the state before power failure after power failure.

Description

Power-on control method of server and related components
Technical Field
The present invention relates to the field of servers, and in particular, to a power-on control method and related components for a server.
Background
The chassies strategy of the BMC (Baseboard Management Controller) can control the power-on and power-off state of a server after power failure occurs, and the chassies strategy comprises always-on, always-off and previous. always-on, namely, the server is powered on again after power failure, and the BMC controls the server to be in a starting state; always-off, namely, powering on the server again after the power failure, and controlling the server to be in a power-off state by the BMC; previous, namely, the server is powered on again after power failure, and the BMC determines that the server is powered on or powered off again according to the state of the server before power failure. Under the chassis preview strategy, when the server is in a startup state and abnormal power failure occurs, the server supplies a small amount of electric quantity stored by the shutdown server to the BMC, so that the BMC can be used as a monitoring system independent of an operating system of the server and cannot be immediately shut down at the time of power failure, the operating system of the server detected by the BMC is already shut down, and meanwhile, the startup and shutdown state stored in the chassis preview strategy is set to be a shutdown state. When the server is powered back, the BMC cannot operate the server to start up to work normally according to the expected result, and only the administrator can manually start up the server, so that the work difficulty and burden are increased for the administrator, and even the normal operation of the service is influenced.
Disclosure of Invention
The invention aims to provide a power-on control method and a related component of a server, which are used for updating a power-on and power-off state stored in a chassis previous strategy, and controlling the power-on and power-off state of the server after power failure to be the power-on and power-off state stored in the chassis previous strategy when the server is powered on after power failure, so that the power-on and power-off of the server can be accurately recovered to the state before power failure.
In order to solve the technical problem, the invention provides a power-on control method of a server, which is applied to BMC and comprises the following steps:
acquiring the current on-off state of a server, wherein the current on-off state comprises a power-on state and a power-off state;
judging whether the current on-off state and the previous on-off state meet the on-off state for a first preset number of continuous times or the off-off state for a second preset number of continuous times; the time for supplying power to the BMC by the residual power after the power failure of the server is less than the time recorded by the first preset times and the time recorded by the second preset times;
if not, keeping the on-off state saved in the chassis previous strategy;
if yes, updating the power-on and power-off states stored in the chassies previous strategy to the power-on state for continuous first preset times or the power-off state for continuous second preset times;
And when the server is powered on after power failure, controlling the power-on and power-off state of the server which is powered on after power failure to be the power-on and power-off state stored in the chassis previous strategy.
Preferably, the method further comprises the following steps:
and setting the initial startup and shutdown state in the channels previous strategy as a startup state.
Preferably, the obtaining of the current on/off state of the server includes:
when the server is obtained to be in a starting state at present, writing first data in a first array, clearing second data, and triggering the second array to enter a default state;
when the server is obtained to be in a power-off state at present, writing one second data in the second array, clearing one first data, and triggering the first array to be cleared to enter a default state;
the length of the first array is a first preset length, and the length of the second array is a second preset length; the first array is used for recording the starting state of the server, and the second data with the first preset length are stored when the first array is in a default state; the second array is used for recording a shutdown state of the server, and the first data with the second preset length is stored when the second array is in a default state; the recording time of the first preset length and the recording time of the second preset length are both longer than the time for supplying power to the BMC for the residual power after the server is powered off; the number of the data recorded in the first preset length is equal to the first preset times, and the number of the data recorded in the second preset length is equal to the second preset times.
Preferably, the determining whether the current power on/off state and the previous power on/off state satisfy a power on state for a first preset number of consecutive times or a power off state for a second preset number of consecutive times includes:
when all the data stored in the first array are the first data, judging that the current on-off state and the previous on-off state meet the on-off state for a first preset number of continuous times;
and when whether all the data written in the second array are the second data, judging that the current on-off state and the previous on-off state meet the on-off state for a first preset number of continuous times or the off-off state for a second preset number of continuous times.
Preferably, the method further comprises the following steps:
and when an IPMI instruction is received, modifying the first preset length and/or the second preset length according to the IPMI instruction.
In order to solve the above technical problem, the present invention further provides a power-on control system for a server, including:
the server comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the current on-off state of the server, and the current on-off state comprises a power-on state and a power-off state;
the judging unit is used for judging whether the current on-off state and the previous on-off state meet the on-off state for a first preset number of continuous times or the off-off state for a second preset number of continuous times; the time for supplying power to the BMC by the residual power after the power failure of the server is less than the time recorded by the first preset times and the time recorded by the second preset times;
The updating unit is used for updating the power-on and power-off states stored in the chassies previous strategy to the power-on states of continuous first preset times or the power-off states of continuous second preset times when the current power-on and power-off states and the previous power-on and power-off states meet the power-on states of continuous first preset times or the power-off states of continuous second preset times; when the current on-off state and the previous on-off state do not meet the on-off state for the continuous first preset times or the off-off state for the continuous second preset times, keeping the on-off state saved in the chassis previous strategy;
and the control unit is used for controlling the power-on and power-off state of the server after power failure to be the power-on and power-off state stored in the chassis previous strategy when the server is powered on after power failure.
In order to solve the above technical problem, the present invention further provides a BMC, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the power-on control method of the server when executing the computer program.
In order to solve the technical problem, the invention further provides a server which comprises the BMC.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the power-on control method for the server.
The application provides a power-on control method and a related component of a server, which are applied to the field of servers, detect the current power-on and power-off states of the server, update the power-on and power-off states stored in a chassis previous strategy when the server maintains the power-on states for the first preset times or the power-off states for the second preset times, and maintain the power-on and power-off states in the chassis previous strategy when the power-on and power-off states of the server do not meet the power-on states for the first preset times or the power-off states for the second preset times. And updating the on-off state stored in the chassis previous strategy, and when the server is powered on after power failure, controlling the on-off state of the server which is powered on after power failure to be the on-off state stored in the chassis previous strategy, so that the power on of the server can be accurately restored to the state before power failure after power failure.
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 power-on control method for a server according to the present invention;
fig. 2 is a schematic structural diagram of a power-on control system of a server according to the present invention;
fig. 3 is a schematic structural diagram of a BMC according to the present invention.
Detailed Description
The core of the invention is to provide a power-on control method and related components of a server, which are used for updating the power-on and power-off state stored in the chassis previous strategy, and controlling the power-on and power-off state of the server after power failure to be the power-on and power-off state stored in the chassis previous strategy when the server is powered on after power failure, so that the power-on and power-off of the server can be accurately restored to the state before power failure.
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.
Fig. 1 is a flowchart of a power-on control method for a server according to the present invention; applied to BMC, including:
s11: acquiring the current on-off state of a server, wherein the current on-off state comprises a power-on state and a power-off state;
judging whether the current on-off state and the previous on-off state meet the on-off state for a first preset number of continuous times or the off-off state for a second preset number of continuous times; the time for supplying power to the BMC by the residual power after the power failure of the server is less than the time recorded by the first preset times and the time recorded by the second preset times;
if not, keeping the on-off state saved in the chassi previous strategy;
if yes, updating the on-off state stored in the chassies previous strategy to be the on-off state for the continuous first preset times or the off-off state for the continuous second preset times;
in consideration of the fact that in the prior art, under the chassis preview strategy, when the server is in the power-on state and abnormal power failure occurs, the server supplies a small amount of electric quantity stored in the power-off server to the BMC, so that the BMC is used as a monitoring system independent of the operating system of the server and cannot be immediately powered off at the time of power failure, the operating system of the server detected by the BMC is already powered off, and meanwhile, the power-on/off state stored in the chassis preview strategy is set to be the power-off state. When the server is powered back, the BMC cannot operate the server to start up to work normally according to the expected result, and only the administrator can manually start up the server, so that the work difficulty and burden are increased for the administrator, and even the normal operation of the service is influenced.
The method and the device for the startup and shutdown of the server acquire the current startup and shutdown state of the server, and meet the startup state of continuous first preset times or the shutdown state of continuous second preset times when the current startup and shutdown state of the server and the previous startup and shutdown state of the server are acquired. The time for recording the full server in the power-on state for the first preset times or the power-off state for the second preset times is longer than the time for supplying power to the BMC by the residual power after the power failure of the server, so that the problem that the power-on state of the server cannot be accurately obtained due to the fact that the BMC detects the complete power-off state for the second preset times after the power failure of the server is the same as that in the prior art can be avoided. Specifically, if the time for supplying power to the BMC after the power failure of the server is 5 seconds, the on-off state of the server needs to be greater than 5 seconds for a first preset number of continuous power-on states or a second preset number of continuous power-off states, after the abnormal power failure of the server is prevented, the BMC detects the second preset number of power-off states in the remaining 5 seconds, and then the on-off state stored in the chassis previous strategy is set to be the power-off state, but at this time, the server is powered off due to the abnormal power failure, the state before the power-off of the server is the power-on state, and at this time, the power on of the server cannot be restored to the original state after the power failure of the server.
The server can be determined to be currently kept in the power-on state when the server has the power-on state for the first preset times, and the server can be determined to be currently kept in the power-off state when the server has the power-off state for the second preset times. When one of the two conditions is met, the on-off state stored in the chassis previous strategy can be updated to be a stable state of the server, namely the on-off state or the power-off state. And if one of the two conditions is not met, keeping the on-off state saved in the chassis previous strategy.
In addition, the BMC continuously acquires the current on-off state of the server, and updates the on-off state stored in the chassis previous strategy when the on-off state meets the continuous first preset times or the off state meets the second preset times, so that the on-off state stored in the chassis previous strategy is always the latest state maintained by the server, and the server can be more accurately recovered to the state before power failure after power failure and power failure.
It should be noted that, since the BMC is used as a monitoring system outside the operating system independent of the server, the BMC determines the on/off state of the server by acquiring the power on or off of the operating system of the server. The first preset number and the second preset number may be the same or different, and the application is not limited herein. The startup state of the first preset times and the shutdown state of the second preset times cannot be simultaneously met, and the startup and shutdown state stored in the chassi previous strategy can only be a startup and shutdown state.
S12: and when the server is powered on after power failure, controlling the power-on and power-off state of the server which is powered on after power failure to be the power-on and power-off state stored in the chassis previous strategy.
And when the server is powered on after power failure, the on-off state stored in the sessions previous strategy is the on-off state of the server. At this time, the startup and shutdown state stored in the chassis previous strategy is a more accurate state before the server fails, so that the server can be accurately restored to the state before the power failure.
In summary, the present application provides a power-on control method for a server, which is applied to the field of servers, detects a current power-on/off state of the server, updates the power-on/off state stored in a chassis previous policy when the server maintains the power-on state for a first preset number of times or the power-off state for a second preset number of times, and maintains the power-on/off state in the chassis previous policy when the power-on/off state of the server does not satisfy the power-on state for the first preset number of times or the power-off state for the second preset number of times. And updating the on-off state stored in the chassis previous strategy, and controlling the on-off state of the server which is powered on after power failure to be the on-off state stored in the chassis previous strategy when the server is powered on after power failure, so that the power on of the server can be accurately restored to the state before power failure after power failure.
On the basis of the above-described embodiment:
as a preferred embodiment, further comprising:
and setting the initial power-on and power-off state in the chassis previous strategy as a power-on state.
In consideration of the fact that when the server is powered off and powered off, the BMC may not acquire the power-on state for the first preset number of times or the power-off state for the second preset number of times, and at this time, the power-on state stored in the chassis priority policy cannot be updated. Therefore, the initial on-off state in the chassis priority strategy is set to be the on-off state, and when the BMC does not update the on-off state stored in the chassis priority strategy, the server is powered off and then powered on to be powered on or powered off in the initial on-off state.
In addition, the initial power on/off state in the chassis previous policy may also be set to be the power off state, which is not limited herein.
In summary, in order to prevent the BMC from being unable to obtain the power-on state of the first preset number of times or the power-off state of the second preset number of times and further being unable to update the power-on/off state stored in the chassis priority policy, the initial power-on/off state is stored in the chassis priority policy, so that the server is powered on and powered off after power failure according to the initial power-on/off state.
As a preferred embodiment, the obtaining the current on/off state of the server includes:
when the server is obtained to be in a starting state at present, writing first data in the first array, clearing second data, and triggering the second array to enter a default state;
when the server is obtained to be in a power-off state at present, writing a second data in the second array, clearing a first data, and triggering the first array to be cleared to enter a default state;
the length of the first array is a first preset length, and the length of the second array is a second preset length; the first array is used for recording the starting state of the server, and second data with a first preset length are stored when the first array is in a default state; the second array is used for recording the shutdown state of the server, and first data with a second preset length are stored when the second array is in a default state; the recording time of the first preset length and the recording time of the second preset length are both longer than the time for supplying power to the residual power BMC after the server is powered off; the number of data recorded in the first preset length is equal to the first preset times, and the number of data recorded in the second preset length is equal to the second preset times.
The method and the device consider that whether the current on-off state and the previous on-off state meet the on state for the first preset times or the off state for the second preset times needs to be judged. Therefore, the first array and the second array are set and are respectively used for recording the starting state and the shutdown state of the server. The first array stores second data with a first preset length in a default state, and the second array stores first data with a second preset length in the default state. When the current on-off state of the server is the on-off state, writing a first data in the first array, and clearing a second data; and when the current on-off state of the server is the off state, writing a second data in the second array, and clearing a first data.
Specifically, the first data is "1", the second data is "0", and if the first preset length is 5 and the second preset length is 4, the default state of the first array is "00000", and the default state of the second array is "1111". When the server is detected to be in the power-on state for the first time, the first array is changed to '00001', the second array is changed to '1111', when the server is detected to be in the power-on state for the second time, the first array is changed to '00011', the second array is changed to '1111', and when the server is detected to be in the power-off state for the third time, the first array is changed to '00000', and the second array is changed to '1110'.
It should be noted that the time for recording the full time in the first preset length and the second preset length is longer than the time for supplying power to the remaining power BMC after the server is powered down, so as to ensure that the BMC cannot acquire a complete power-off state after the server is powered down.
In conclusion, the starting state and the shutdown state are recorded by setting the two arrays, so that the starting state or the shutdown state of the server for the first preset times can be more conveniently acquired through the data stored in the arrays.
As a preferred embodiment, the determining whether the current power on/off state and the previous power on/off state satisfy the power on state for the first preset number of consecutive times or the power off state for the second preset number of consecutive times includes:
when all the data stored in the first array are first data, judging that the current on-off state and the previous on-off state meet the on-off state for continuous first preset times;
and when the data written in the second array is completely the second data, judging that the current on-off state and the previous on-off state meet the on-off state for the continuous first preset times or the off-off state for the continuous second preset times.
Considering that the number of the data recorded in the first preset length is equal to the first preset number, when the data stored in the first array are all the first data, it is proved that the current on-off state of the server and the previous on-off state meet the on-off state of the first preset number. The number of the data recorded by the second preset length is equal to the second preset times, and when the data stored in the second array are the second data, the current on-off state of the server and the previous on-off state are proved to meet the power-off state with the second preset times.
In addition, when the first data are not uniform in the first array or the second data are not uniform in the second array, it is determined that the current on-off state and the previous on-off state of the server do not satisfy the first preset times and the second preset times.
In summary, the present application determines whether the current power on/off state satisfies the power on state for the first preset times or the power off state for the second preset times by determining whether the first data is in the first array or the second data is in the second array, so that the determining process is more accurate and convenient.
As a preferred embodiment, further comprising:
when an IPMI (Intelligent Platform Management Interface) instruction is received, the first preset length and/or the second preset length are/is modified according to the IPMI instruction.
In consideration of different configurations of different servers, the first preset number of times and the second preset number of times may be different, and it is further necessary to change the first preset length of the first array recording the power-on state and the second preset length of the second array recording the power-off state. Therefore, the BMC is reserved with the IPMI interface, so that the IPMI interface can be conveniently used for receiving the IPMI command, and the first preset length and/or the second preset length can be modified when the IPMI command is received.
Specifically, the IPMI command comprises a first IPMI command and a second IPMI command, the first preset length is set when the first IPMI command is received, and the second preset length is changed when the second IPMI command is received.
Fig. 2 is a schematic structural diagram of a power-on control system of a server provided in the present invention, including:
an obtaining unit 21, configured to obtain a current power on/off state of the server, where the current power on/off state includes a power on state and a power off state;
a determining unit 22, configured to determine whether the current power on/off state and the previous power on/off state meet a power on state for a first preset number of consecutive times or a power off state for a second preset number of consecutive times; the time for supplying power to the BMC by the residual power after the power failure of the server is less than the time recorded by the first preset times and the time recorded by the second preset times;
the updating unit 23 is configured to update the power on/off state stored in the chassi previous policy to the power on state for the consecutive first preset times or the power off state for the consecutive second preset times when the current power on/off state and the previous power on/off state meet the power on state for the consecutive first preset times or the power off state for the consecutive second preset times; when the current on-off state and the previous on-off state do not meet the on-off state for continuous first preset times or the off-off state for continuous second preset times, the on-off state stored in the chassi previous strategy is kept;
And the control unit 24 is configured to, when the server is powered on after power failure, control the power-on/power-off state of the server that is powered on after power failure to be the power-on/power-off state stored in the chassis previous policy.
For introduction of the power-on control system of the server provided by the present application, please refer to the foregoing embodiments, which are not described herein again.
Fig. 3 is a schematic structural diagram of a BMC provided by the present invention, including:
a memory 31 for storing a computer program;
and a processor 32, configured to implement the steps of the power-on control method for the server when executing the computer program.
For the introduction of the BMC provided in the present application, please refer to the above embodiments, which are not described herein again.
The invention also provides a server which comprises the BMC.
Please refer to the above embodiments for the introduction of the server provided in the present application, which is not described herein again.
The invention also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program is executed by a processor to realize the steps of the power-on control method of the server.
For the introduction of the computer-readable storage medium provided by the present application, please refer to the above embodiments, which are 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 in the embodiment corresponds to the method disclosed in the embodiment, so that the description is simple, and the relevant points can be referred to the description of the method part.
It should also be noted that, in this specification, relational terms such as first and second, and the like are 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 phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
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 (9)

1. A power-on control method of a server is applied to BMC and comprises the following steps:
acquiring the current on-off state of a server, wherein the current on-off state comprises a power-on state and a power-off state;
judging whether the current on-off state and the previous on-off state meet the on state for a first preset number of continuous times or the off state for a second preset number of continuous times; the time for supplying power to the BMC by the residual power after the server is powered off is less than the time recorded by the first preset times and the time recorded by the second preset times;
if not, keeping the on-off state saved in the chassis previous strategy;
if yes, updating the power-on/power-off state stored in the chassis previous strategy to the power-on state for a first preset number of times or the power-off state for a second preset number of times;
and when the server is powered on after power failure, controlling the power-on and power-off state of the server which is powered on after power failure to be the power-on and power-off state stored in the chassis previous strategy.
2. The power-on control method for the server according to claim 1, further comprising:
and setting the initial power-on and power-off state in the chassis previous strategy as a power-on state.
3. The power-on control method for the server according to any one of claims 1 to 2, wherein the step of obtaining the current power-on and power-off state of the server comprises the following steps:
when the server is obtained to be in a starting state at present, writing a first data in a first array, clearing a second data, and triggering a second array to enter a default state;
when the server is obtained to be in a power-off state at present, writing one piece of second data into the second array, clearing one piece of first data, and triggering the first array to be cleared to enter a default state;
the length of the first array is a first preset length, and the length of the second array is a second preset length; the first array is used for recording the starting state of the server, and the second data with the first preset length is stored when the first array is in a default state; the second array is used for recording a shutdown state of the server, and the first data with the second preset length is stored when the second array is in a default state; the recording time of the first preset length and the recording time of the second preset length are both longer than the time for supplying power to the BMC for the residual power after the server is powered off; the number of data recorded in the first preset length is equal to the first preset times, and the number of data recorded in the second preset length is equal to the second preset times.
4. The method as claimed in claim 3, wherein the step of determining whether the current power on/off state and the previous power on/off state satisfy a power on state for a first predetermined number of consecutive times or a power off state for a second predetermined number of consecutive times comprises:
when all the data stored in the first array are the first data, judging that the current on-off state and the previous on-off state meet the on-off state for a first preset number of continuous times;
and when whether all the data written in the second array are the second data is judged, the current on-off state and the previous on-off state meet the on state for continuous first preset times or the off state for continuous second preset times.
5. The power-on control method for the server according to claim 3, further comprising:
and when an IPMI instruction is received, modifying the first preset length and/or the second preset length according to the IPMI instruction.
6. A power-on control system for a server, comprising:
the server comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the current on-off state of the server, and the current on-off state comprises a power-on state and a power-off state;
The judging unit is used for judging whether the current on-off state and the previous on-off state meet the on-off state for a first preset number of continuous times or the off-off state for a second preset number of continuous times; the time for supplying power to the BMC by the residual power after the server is powered off is less than the time recorded by the first preset times and the time recorded by the second preset times;
the updating unit is used for updating the power-on and power-off states stored in the chassies previous strategy to the power-on states of continuous first preset times or the power-off states of continuous second preset times when the current power-on and power-off states and the previous power-on and power-off states meet the power-on states of continuous first preset times or the power-off states of continuous second preset times; when the current on-off state and the previous on-off state do not meet the on-off state for the continuous first preset times or the off-off state for the continuous second preset times, keeping the on-off state saved in the chassis previous strategy;
and the control unit is used for controlling the power-on and power-off state of the server after power failure to be the power-on and power-off state stored in the chassis previous strategy when the server is powered on after power failure.
7. A BMC, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the power-on control method of the server according to any one of claims 1 to 5 when executing the computer program.
8. A server comprising the BMC of claim 7.
9. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, carries out the steps of a power-on control method of a server according to any one of claims 1 to 5.
CN202210466927.9A 2022-04-29 2022-04-29 Power-on control method of server and related components Pending CN114756409A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210466927.9A CN114756409A (en) 2022-04-29 2022-04-29 Power-on control method of server and related components

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210466927.9A CN114756409A (en) 2022-04-29 2022-04-29 Power-on control method of server and related components

Publications (1)

Publication Number Publication Date
CN114756409A true CN114756409A (en) 2022-07-15

Family

ID=82332599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210466927.9A Pending CN114756409A (en) 2022-04-29 2022-04-29 Power-on control method of server and related components

Country Status (1)

Country Link
CN (1) CN114756409A (en)

Similar Documents

Publication Publication Date Title
US6734985B1 (en) Printing apparatus, printing system and method of controlling same
JP4481338B2 (en) Backup system, storage device, and data backup method
US9274788B2 (en) Information processing apparatus, method for controlling the same, and storage medium
CN111045866B (en) BMC fault processing method and device, electronic equipment and storage medium
US8161202B2 (en) Peripheral device management system
US6442702B1 (en) On-vehicle computer having function of protecting vehicular battery
CN111124761B (en) Equipment restarting method, device, equipment and medium
CN111381964A (en) Dynamic adjustment system, method and storage medium for memory execution speed
JP2002007000A (en) Electronic equipment
CN114756409A (en) Power-on control method of server and related components
CN110995498A (en) Port starting method and device
CN115407861A (en) Target equipment power supply method, system and device and computer readable storage medium
US20040078539A1 (en) De-fragmenting memory by re-booting based on time
JP4702319B2 (en) Wireless communication card mounting terminal and data updating method in wireless communication card mounting terminal
JP5401952B2 (en) DEVICE MANAGEMENT DEVICE, DEVICE MANAGEMENT SYSTEM, SOFTWARE MANAGEMENT METHOD, SOFTWARE MANAGEMENT PROGRAM, AND RECORDING MEDIUM CONTAINING THE PROGRAM
WO2011093014A1 (en) Information processing apparatus and control method of information processing apparatus
JP2007172186A (en) Data update device, and data update method
US20220261236A1 (en) Communication device and control method
US20040078537A1 (en) De-fragmenting memory by re-booting based on usage
JP5508297B2 (en) Setting information reference activation type control device and setting information management method
CN115048147A (en) Firmware upgrading method, device, equipment and storage medium
JP5712606B2 (en) Image processing apparatus, device management system, device management method, device management program, and recording medium recording the program
JP2016122436A (en) Information processing device and information processing method
JP2001094620A (en) Network system, its terminal control method and recording medium
CN114562475A (en) Control method and device of fan controller and substrate manager

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