CN115220801A - Server state control method and device, electronic equipment and storage medium - Google Patents

Server state control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115220801A
CN115220801A CN202210989664.XA CN202210989664A CN115220801A CN 115220801 A CN115220801 A CN 115220801A CN 202210989664 A CN202210989664 A CN 202210989664A CN 115220801 A CN115220801 A CN 115220801A
Authority
CN
China
Prior art keywords
bmc
state
server
information
acquisition module
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
CN202210989664.XA
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202210989664.XA priority Critical patent/CN115220801A/en
Publication of CN115220801A publication Critical patent/CN115220801A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Power Sources (AREA)

Abstract

The application discloses a method and a device for controlling the state of a server, electronic equipment and a storage medium, wherein the method comprises the following steps: the BMC comprises a first state and a second state, the first state of the BMC represents that the BMC is in a state incapable of responding to a power control signal of a server, and the second state of the BMC represents that the BMC is in a state capable of responding to the power control signal of the server; determining whether physiological information can be acquired through an information acquisition module of the server to obtain a determination result; and determining whether to switch the BMC from the first state of the BMC to the second state of the BMC according to the determination result.

Description

Server state control method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of server management technologies, and in particular, to a method and an apparatus for controlling a server state, an electronic device, and a storage medium.
Background
In the field of servers, a Baseboard Management Controller (BMC) is used as a Management tool to manage a server. For example, upgrading software and hardware of the server; the method comprises the steps of monitoring the running condition of a processing core of the server, the rotation condition of a fan of the server and the like. The BMC can also be used for realizing the startup or shutdown control of the server.
In the related art, the BMC may mistakenly assume that the server is in a related machine demand, and thus the BMC realizes unexpected shutdown of the server. The unexpected shutdown of the BMC to the server may greatly affect the normal use of the server.
Disclosure of Invention
The application provides a method and a device for controlling a server state, an electronic device and a storage medium, so as to at least solve the above technical problems in the related art.
According to a first aspect of the present application, a method for controlling a server state is provided, and is applied to a baseboard management controller BMC, the method including:
the BMC comprises a first state and a second state, the first state of the BMC represents that the BMC is in a state incapable of responding to a power control signal of a server, and the second state of the BMC represents that the BMC is in a state capable of responding to the power control signal of the server;
determining whether physiological information can be acquired through an information acquisition module of the server to obtain a determination result;
and determining whether to switch the BMC from the first state of the BMC to the second state of the BMC according to the determination result.
In one embodiment, the determining whether to switch the BMC from the first state to the second state according to the determination result includes:
determining to switch the BMC from the first state to the second state under the condition that the determination result represents that physiological information can be acquired through the information acquisition module;
and maintaining the state of the BMC in the first state under the condition that the determined result represents that the physiological information is not acquired through the information acquisition module.
In an embodiment, the determining whether to switch the BMC from the first state to the second state according to the determination result includes:
when the determined result represents that physiological information can be acquired through an information acquisition module of the server and the physiological information is matched with preset physiological information, determining to switch the BMC from the first state to the second state;
and maintaining the state of the BMC in the first state under the condition that the determined result represents that the physiological information can be acquired through an information acquisition module of the server and is not matched with the preset physiological information.
In an implementation manner, when the BMC is in the first state, the power control signal of the server is shielded by the FPGA;
and under the condition that the BMC is in the second state, triggering a response to a power supply control signal of the server by the FPGA, wherein the response to the power supply control signal of the server can realize the startup or shutdown of the server.
In one embodiment, the power control signal is generated based on an operation of a power key of the server;
triggering, by the FPGA, a response to a power control signal of the server when an absolute value of a difference between the first time and the second time is within a time threshold;
the first time is the time when a power key of the server is operated, and the second time is the time when the information acquisition module acquires the physiological information.
In one embodiment, the method further comprises: the BMC is switched from the second state to the first state when an absolute value of a difference between the first time and the second time is outside a time threshold.
According to a second aspect of the present application, there is provided a server state control apparatus, comprising:
the first obtaining unit is used for determining whether the physiological information can be acquired through the information acquisition module of the server to obtain a determination result;
a first determining unit, configured to determine whether to switch the BMC from a first state of the BMC to a second state of the BMC according to the determination result;
the BMC comprises a first state and a second state, the first state of the BMC indicates that the BMC is in a state incapable of responding to a power control signal of a server, and the second state of the BMC indicates that the BMC is in a state capable of responding to the power control signal of the server.
In an embodiment, the first determining unit is configured to:
determining to switch the BMC from a first state of the BMC to a second state of the BMC when the determination result represents that physiological information can be acquired through the information acquisition module;
maintaining the state of the BMC in the first state of the BMC under the condition that the determined result represents that the physiological information is not acquired through the information acquisition module;
alternatively, the first and second electrodes may be,
determining to switch the BMC from a first state of the BMC to a second state of the BMC when the determination result represents that physiological information can be acquired through an information acquisition module of the server and the physiological information is matched with preset physiological information;
and maintaining the state of the BMC in the first state of the BMC under the condition that the determined result represents that the physiological information can be acquired through an information acquisition module of the server and is not matched with the preset physiological information.
According to a third aspect of the present application, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method described herein.
According to a fourth aspect of the present application, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method described herein.
The application provides a method and a device for controlling a server state, electronic equipment and a storage medium, wherein the method comprises the following steps: the BMC comprises a first state and a second state, the first state of the BMC represents that the BMC is in a state incapable of responding to a power control signal of a server, and the second state of the BMC represents that the BMC is in a state capable of responding to the power control signal of the server; determining whether physiological information can be acquired through an information acquisition module of the server to obtain a determination result; and determining whether to switch the BMC from the first state of the BMC to the second state of the BMC according to the determination result.
According to the scheme, whether the BMC is switched from the first state to the second state or not is achieved based on the setting of the first state and the second state of the BMC and the determination result of whether the information acquisition module acquires the physiological information, unexpected response to a power control signal of the server can be effectively avoided, unexpected startup or shutdown of the server is effectively avoided, and normal use of the server is guaranteed.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present application will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present application are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Fig. 1 is a first schematic implementation flow diagram of a method for controlling a server state according to an embodiment of the present application;
fig. 2 illustrates a second implementation flow diagram of the method for controlling a server state according to the embodiment of the present application;
fig. 3 is a schematic flow chart showing an implementation of a method for controlling a server state according to an embodiment of the present application;
fig. 4 illustrates a fourth implementation flow chart of the method for controlling the server state according to the embodiment of the present application;
fig. 5 is a schematic flow chart illustrating an implementation of a method for controlling a server state according to an embodiment of the present application;
fig. 6 is a flowchart illustrating a sixth implementation flow of a control method for a server state according to an embodiment of the present application;
FIG. 7 is a schematic diagram illustrating communication among elements implementing a control method for a server state according to an embodiment of the present application;
FIG. 8 is a schematic diagram illustrating a configuration of a control apparatus for a server state according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram illustrating a composition structure of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. 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 application.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first," "second," and the like, are intended only to distinguish similar objects and not to imply a particular order to the objects, it being understood that "first," "second," and the like may be interchanged under appropriate circumstances or a sequential order, such that the embodiments of the application described herein may be practiced in other than those illustrated or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
It should be understood that, in the various embodiments of the present application, the size of the serial number of each implementation process does not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
In this application, the situation that the BMC mistakenly regards as the server related machine requirement may be: in practical applications, there may be a situation where a power key (physical key) of the server is locked, and the locking of the power key causes a power signal of the server to be pulled down (the power signal changes to a low level signal). In this case, if the BMC restarts and a power signal of the server is detected to be a low level signal during the restarting process, the BMC mistakenly thinks that the server has a shutdown requirement, and the BMC shuts down the server during the restarting. The BMC and the server are used as two independent systems, and when the power key is blocked, the BMC realizes unexpected shutdown of the server when the BMC is restarted. Such an unintended shutdown can greatly impact the normal use of the server.
In practical applications, there are also situations where the server is shut down unexpectedly, for example, if a user presses a power key carelessly, a power signal of the server is pulled down (the power signal changes from a high level to a low level signal), the BMC mistakenly regards as a related machine requirement to shut down the server, and the shutdown is an unexpected shutdown, so that normal use of the server cannot be ensured, and unnecessary economic loss is generated when the server cannot be used normally.
It will be appreciated that the foregoing solution may be a reasonable user inadvertent pressing of the power key. If an unauthorized user, such as an unauthorized user, presses the power key or presses it frequently, an unexpected shutdown of the server may occur, thereby causing unnecessary economic loss.
It can be seen that unexpected power-on or power-off may have a great impact on the normal use of the server.
According to the method and the device for controlling the server state, unexpected shutdown and startup of the server can be effectively avoided, normal use of the server can be achieved, and usability of the BMC and the server is greatly improved.
The processing logic of the control method for the server state provided by the technical scheme is deployed in the BMC, so that unexpected shutdown of the server is effectively avoided.
Fig. 1 shows a first implementation flow diagram of a method for controlling a server state according to an embodiment of the present application. As shown in fig. 1, the method includes:
s101: determining whether physiological information can be acquired through an information acquisition module of the server to obtain a determination result;
and an information acquisition module is arranged for the server at the server side and is used for acquiring the physiological information of the user.
The information acquisition module can be any module capable of acquiring the physiological information of the user, such as an image acquisition module, a fingerprint acquisition module, a voice acquisition module and an eye mask (or iris) acquisition module. The image acquisition module can be a camera, and the acquired physiological information is the face of the user. The physiological information collected by the fingerprint collection module is the fingerprint of the user. The physiological information collected by the voiceprint collection module is the voice of the user. The physiological information collected by the eye film (or iris) collecting module is the eye film or iris of the user.
If the image acquisition module, the fingerprint acquisition module, the voice acquisition module, and the eye mask (or iris) acquisition module are regarded as different types of information acquisition modules, the information acquisition module provided on the server side may be at least one of the aforementioned types. The number of the information acquisition modules of the same kind arranged on the server side can be one, and also can be two or more than two.
It can be understood that if the information acquisition modules arranged on the server side are of various types, the physiological information can be acquired from different physiological angles, so that the user identity can be accurately identified from different physiological angles.
In an alternative embodiment, the information collection module of the server is set to be a single kind of information collection module. The number of the information acquisition modules of a single kind is one. And different types of information acquisition modules do not need to be purchased, so that the cost expenditure of the server can be effectively reduced.
When the system is implemented specifically, the number of the information acquisition modules can be flexibly set according to actual use conditions by arranging a plurality of information acquisition modules on the server, and setting which information acquisition modules are arranged.
The BMC in the step can communicate with the server, and the server can transmit the message indicating whether the information acquisition module acquires the physiological information to the BMC side. The BMC determines whether the information acquisition module acquires the physiological information or not through the message. Or, under the condition that the information acquisition module of the server acquires the physiological information, transmitting the acquired physiological information to the BMC. Therefore, the BMC can confirm whether the information acquisition module acquires the physiological information.
It is understood that any reasonable other situation in which the BMC confirms whether the information collection module collects the physiological information is within the scope of the present application.
S102: determining whether to switch the BMC from a first state of the BMC to a second state of the BMC according to the determination result; the BMC comprises a first state and a second state, the first state of the BMC represents that the BMC is in a state incapable of responding to a power control signal of a server, and the second state of the BMC represents that the BMC is in a state capable of responding to the power control signal of the server;
in this step, the BMC may be set to be in a first state in which it cannot respond to the power control signal of the server, in a default condition. Whether the BMC can be switched from the first state to a second state in which the BMC can respond to the power control signal of the server can be determined according to a confirmation result of whether the BMC acquires the physiological information from the information acquisition module.
The power control signal is a signal generated based on a user pressing, touching, or the like, a power key provided by the server.
In S101 to S102, the BMC includes a first state in which it cannot respond to the power control signal of the server and a second state in which it can respond to the power control signal of the server. The BMC may determine a result of whether physiological information is able to be collected by an information collection module of the server, and determine whether to switch the BMC from a first state in which the BMC is unable to respond to a power control signal of the server to a second state in which the BMC is able to respond to the power control signal of the server.
According to the scheme, whether the BMC is switched from the first state to the second state or not is achieved based on the setting of the first state and the second state of the BMC and the determination result of whether the information acquisition module acquires the physiological information, unexpected response to a power supply control signal of the server can be effectively avoided, unexpected startup or shutdown of the server is effectively avoided, and normal use of the server is guaranteed.
In some embodiments, referring to fig. 2, the aforementioned technical solution of determining whether to switch the BMC from the first state of the BMC to the second state of the BMC according to the determination result may include two situations:
case one, S1020a: and under the condition that the determination result represents that the physiological information can be acquired through the information acquisition module, determining to switch the BMC from the first state of the BMC to the second state of the BMC.
When the number of the information acquisition modules (no matter the same type or different types) arranged on the server side is multiple, the first state of the BMC can be switched to the second state when at least one information acquisition module acquires the physiological information. In a preferred scheme, the first state of the BMC is switched to the second state when all the information acquisition modules acquire the physiological information.
And under the condition that the number of the information acquisition modules arranged on the server side is single, and under the condition that the information acquisition modules acquire the physiological information, switching the first state of the BMC to the second state.
Case two, S1020b: and maintaining the state of the BMC in the first state of the BMC under the condition that the determined result represents that the physiological information is not acquired through the information acquisition module.
When the number of information acquisition modules (whether the information acquisition modules are of the same type or different types) arranged on the server side is large, all the information acquisition modules do not acquire the physiological information, and the state of the BMC is maintained in the first state.
And under the condition that the number of the information acquisition modules arranged on the server side is single and the physiological information is not acquired by the information acquisition modules, maintaining the state of the BMC in the first state.
In the scheme, whether the state of the BMC is switched can be determined based on the condition that whether the information acquisition module acquires the physiological information, the BMC can be in an accurate state, and unexpected response to a power supply control signal of the server can be effectively avoided, so that unexpected startup or shutdown of the server is effectively avoided, and normal use of the server is ensured.
In some embodiments, referring to fig. 3, the foregoing technical solution of determining whether to switch the BMC from the first state of the BMC to the second state of the BMC according to the determination result may include two situations:
s1021a: determining to switch the BMC from a first state of the BMC to a second state of the BMC when the determination result represents that physiological information can be acquired through an information acquisition module of the server and the physiological information is matched with preset physiological information;
the physiological information can be at least one of face information, voice information, eye mask information and iris information, and is determined according to the type of an information acquisition module arranged on the server side.
Under the condition that the number of the information acquisition modules (no matter the same type or different types) arranged on the server side is multiple, aiming at least one information acquisition module which acquires the physiological information, carrying out similarity analysis on the physiological information acquired by the information acquisition module and the physiological information (preset physiological information) set for the information acquisition module, and analyzing whether the similarity between the physiological information acquired by the information acquisition module and the physiological information set for the information acquisition module or the information acquisition modules reaches a threshold value (preset threshold value) set for the information acquisition module or the information acquisition modules.
And if the similarity between the physiological information acquired by the information acquisition module and the physiological information set for the information acquisition module or the information acquisition modules reaches the threshold set for the information acquisition module or the information acquisition modules, the physiological information is considered to be matched with the preset physiological information, and the first state of the BMC is switched to the second state.
The processes of analyzing the physiological information, determining whether the similarity reaches a preset threshold value and the like can be executed in the BMC, and the server only needs to transmit the physiological information acquired by the information acquisition module to the BMC.
In a preferred scheme, the similarity between the physiological information acquired by all the information acquisition modules and the preset physiological information set for each information acquisition module reaches a threshold set for each information acquisition module, and the first state of the BMC is switched to the second state.
For example, the information acquisition module arranged in the server includes a fingerprint acquisition module and an image acquisition module, and assuming that the fingerprint acquisition module acquires fingerprint information, the image acquisition module acquires face information. And if the similarity between the acquired fingerprint information and the preset fingerprint information of the reasonable user reaches a first threshold value such as 80%, the acquired physiological information is considered to be matched with the preset physiological information. And if the similarity between the acquired face information and the face information of the preset reasonable user reaches a second threshold value, such as 90%, the acquired physiological information is considered to be matched with the preset physiological information. And when the physiological information acquired by the two information acquisition modules is matched with the respective preset physiological information, switching the first state of the BMC to the second state.
Under the condition that the number of the information acquisition modules arranged on the server side is single, when the similarity between the physiological information acquired by the information acquisition modules and the preset physiological information set for the information acquisition modules reaches the threshold set for the information acquisition modules, the physiological information acquired by the information acquisition modules is considered to be matched with the preset physiological information, and the first state of the BMC is switched to the second state.
S1021b: and maintaining the state of the BMC in the first state of the BMC under the condition that the determined result represents that the physiological information can be acquired through an information acquisition module of the server and is not matched with the preset physiological information.
In a plurality of information acquisition modules (no matter in the same type or different types) arranged on the server side, two or more information acquisition modules acquire physiological information, and if the similarity between the physiological information acquired by one information acquisition module and preset physiological information set for the information acquisition module does not reach a threshold set for the information acquisition module, the physiological information is considered not to be matched with the preset physiological information, and the state of the BMC is maintained in a first state.
Under the condition that the number of the information acquisition modules arranged on the server side is single, the similarity between the physiological information acquired by the information acquisition modules and the preset physiological information set for the information acquisition modules does not reach the threshold set for the information acquisition modules, the physiological information is considered to be not matched with the preset physiological information, and the state of the BMC is maintained in the first state.
In the scheme, whether the state of the BMC is switched is determined based on the result that whether the physiological information acquired by the information acquisition module is matched with the preset physiological information, the BMC can be in an accurate state, and unexpected response to a power supply control signal of the server can be effectively avoided, so that unexpected startup or shutdown of the server is effectively avoided, and normal use of the server is ensured.
In some embodiments, as shown in fig. 4, the method further comprises:
s401: under the condition that the BMC is in a first state, a power supply control signal of the server is shielded by a programmable array logic chip FPGA;
here, the server is provided with an FPGA, and the FPGA can know whether the BMC is in the first state or the second state through communication with the BMC. If the BMC is in the first state, the signal is shielded under the condition that the FPGA detects the power control signal, so that the server is prevented from being started or shut down.
S402: and under the condition that the BMC is in the second state, triggering the response to the power supply control signal of the server by the FPGA, wherein the response to the power supply control signal of the server can realize the startup or shutdown of the server.
The BMC is in the second state after being switched from the first state to the second state. The power control signal may be a control signal for turning off the server or a signal for turning on the server.
In practical applications, a power key, usually a physical key, is provided on the server. The user can press, touch and other operations on the power key, the FPGA generates a power control signal when detecting the operations, and the FPGA triggers the response to the power control signal under the condition that the FPGA knows that the BMC is in the second state.
Wherein triggering a response to the power supply control signal comprises: the FPGA transmits the power control signal to a Platform Controller (PCH), and the PCH responds to the power control signal to start or shut down the server.
If the server is in the power-on state when the operation is generated, the power control signal generated based on the operation is a control signal for powering off the server. If the server is in the power-off state when the operation is generated, the power control signal generated based on the operation is a control signal for starting the server.
It can be understood that the power key is an entity key arranged on the server, the information acquisition module is also an entity key arranged on the server, and the two entity keys are two different entity keys, and the arrangement positions of the two entity keys on the server are positions convenient for a user to operate, such as a front panel of the server.
In the foregoing S401 to S402, based on the state of the BMC, the FPGA needs to be used in cooperation to implement a response of turning on or off the server.
In the foregoing scheme, the BMC is switched to the second state only when the information acquisition module acquires the physiological information or the acquired physiological information is matched with the preset physiological information. And when the BMC is in the second state, the FPGA triggers a response to the power control signal generated based on the operation of the power key of the server. Generally speaking, the server can be turned on or turned off only when the information acquisition module acquires the physiological information or the acquired physiological information is matched with the preset physiological information and the BMC is in the second state and can acquire the power control signal.
Therefore, unexpected response to the power supply control signal of the server can be effectively avoided, unexpected startup or shutdown of the server is effectively avoided, and normal use of the server is ensured.
The aforementioned power-on or power-off scheme is a scheme in which the user consciously acts the face, fingers, voice, and eyes on the corresponding information acquisition module to enable the information acquisition module to acquire corresponding physiological information, and the server consciously performs power-on or power-off. It can be regarded as a scheme of anticipatory power-on or power-off of the server. That is to say, the technical scheme of the application not only can effectively avoid the unexpected startup or shutdown of the server, but also can realize the expected startup or shutdown of the server.
The processing flow is different from the processing flow of the BMC in the second state. In the technical scheme of the application, if the BMC is in the first state, the FPGA shields the power control signal when the server detects operations such as pressing and touching the physical key, or does not transmit the power control signal to the PCH, and the PCH cannot respond to the power control signal and cannot be turned on or turned off the server. Considering that the pressing, touching and other operations of the physical key may be misoperation or unconscious operation, and the power control signal is not responded in the first state, the unexpected response to the power control signal of the server can be greatly avoided.
In some optional embodiments, if the first time is the time when the power key of the server is operated, and the second time is the time when the physiological information is collected by the information collection module, the FPGA triggers the response to the power control signal of the server if the absolute value of the difference between the first time and the second time is within the time threshold. And if the absolute value of the difference between the first time and the second time is beyond a time threshold, switching the second state of the BMC to the first state.
It is considered that, if the user desires to turn on or off the server, the time when the user operates the power key and the time when the user operates the information collection module are generally close to each other. If the time is not close and the distance is far, the user can be considered to be misoperation or unconscious operation on at least one of the power key and the information acquisition module, and if the user is misoperation or unconscious operation, the server does not need to be started or shut down.
Based on this, the scheme can judge whether the time when the user operates the power key and the time when the user operates the information acquisition module are close to each other based on whether the absolute value of the difference between the two times (the first time and the second time) is outside or within the time threshold. If the absolute value of the difference between the two times (the first time and the second time) is within the time threshold, the two times are close, and are not misoperation or unconscious operation, and the FPGA triggers the response to the power supply control signal of the server so as to realize the expected startup or shutdown.
If the absolute value of the difference between the two times (the first time and the second time) is outside the time threshold, the two times are not close, and are misoperation or unconscious operation, in order to not respond to the startup or shutdown, the BMC is switched from the second state to the first state, and the FPGA shields the power supply control signal.
The technical solution of the present application will be described in detail with reference to fig. 5, 6 and 7.
In this application scenario, as shown in fig. 7, for example, a server is provided with a fingerprint acquisition module, and the fingerprint acquisition module may be disposed at a location easy for a user to operate, for example, near a power key of the server.
Typically, elements such as a fingerprint acquisition module, a power key (Button), etc. are provided on the front panel of the server for user operation. Elements such as BMC, FPGA and PCH in the application scene are arranged on the server mainboard.
In the present application scenario, two partial contents are included. The first part of content is a scheme for configuring the BMC, wherein whether physiological information is collected by using a fingerprint identification module to realize whether the state of the BMC is switched or not is a configuration scheme. The second part is a scheme of starting the configuration scheme, determining whether to switch the BMC state based on whether the fingerprint acquisition module acquires the physiological information, and realizing whether to reasonably start or shut down the server based on the BMC state and the power control signal.
As shown in fig. 5, the first part of the content mainly includes the following aspects: s501: carrying out the configuration of the scheme on a configuration interface of the BMC; s502: inputting a fingerprint of an authorized user; s503: the BMC enters a first state, and the LED lamp is constantly on.
The steps of the first part of the content will be understood in detail:
the BMC is started, and can present a configuration interface, wherein at least one option exists in the configuration interface. One of the options is "start the fingerprint identification module to start or shut down" or an option similar to the expression meaning thereof, and if the option is selected, it indicates that the technical scheme of the present application can be subsequently started to realize the start or shut down of the server. If the selection is not checked, the power key of the server can be operated by any user, and the BMC can be powered on or powered off unexpectedly to the server due to misoperation or unconscious operation of the user. If the power key is stuck, the BMC restarts the server to perform unexpected power-on or power-off.
Preferably, when the BMC is started, the BMC may perform reasonableness detection on an account input by the user, and if the user account is an authorized account, the BMC may enter the configuration interface. And if the user account is an unauthorized account, the user cannot enter the configuration interface. In the case of allowing the authorized user to enter the configuration interface, the checked option is the option selection implemented by the authorized user performing the checking operation on the configuration interface. The scheme that only reasonable users, such as authorized users, are qualified to check the options can effectively avoid the problem that the management of the server is inconvenient due to malicious checking of the unreasonable users.
And when the option is selected, the BMC sends a notification signal to the FPGA, and the FPGA controls an LED lamp arranged on the server to be turned on when receiving the notification signal. Or the BMC sends a control signal to the LED lamp, and the LED lamp responds to the control signal and is lightened. If the options are not selected, the LED lamp is not on and is in an off state. The LED lamp is turned on, so that a prompt effect on a user can be achieved, the user is prompted that the BMC can achieve expected startup or shutdown of the server based on the fingerprint identification module, or unexpected startup or shutdown of the server is avoided based on the fingerprint identification module.
From the user level, the prompt is as follows: if the user wants to turn on or off the server in an expected manner, the user needs to put a finger on the fingerprint identification module and then press or touch the power key.
The LED lamp can be a specially arranged LED lamp, and can be reused with the existing LED lamp on the server. When multiplexing, the color difference when steerable LED lamp is lighted can realize the function and other functions of this scheme.
Under the condition that the option is selected, the BMC generates a log, the enabled time, the enabled content and the like of the scheme can be obtained based on data in the log, and a data basis is provided for follow-up troubleshooting or timed maintenance of the BMC by using log data.
In the case where the aforementioned option is selected, the state of the BMC is a first state in which the power control signal of the server cannot be responded to. The FPGA can realize the acquisition of the state of the BMC based on the communication with the BMC. Illustratively, if the FPGA requests the BMC for status information, the BMC status can be known based on the request. When the state of the BMC changes, the BMC synchronizes the changed state to the FPGA. When the BMC is in the first state, the FPGA shields the power control signal, and when the BMC is in the second state, the FPGA transmits the power control signal to the PCH, and the PCH responds to the power control signal to start or shut down the server.
And under the condition that the option is selected, the BMC requests the authorized user to enter the fingerprint, and obtains preset fingerprint information according to the entered fingerprint. The fingerprint acquisition module arranged on the server acquires the fingerprint of the authorized user, and the server sends the fingerprint of the authorized user to the BMC. The BMC takes the received fingerprint as preset fingerprint (physiological) information set for the fingerprint identification module.
In practical applications, the number of authorized users may be one, or may be two or more. Under the condition that the number of the authorized users is two or more, the fingerprint information of each authorized user needs to be acquired one by one through the fingerprint acquisition module, the BMC receives the fingerprint information, and the fingerprint information of each authorized user acquired by the fingerprint acquisition module is used as preset fingerprint information of each authorized user, so that the BMC can input preset physiological information.
The number of preset fingerprint (physiological) information set for the fingerprint identification module is usually consistent with the number of authorized users capable of inputting fingerprint information, and the fingerprint information of each authorized user capable of inputting fingerprint information can be used as the preset fingerprint information of the user.
In the scheme of authorizing the user to perform fingerprint information entry, the BMC may set a time value, which may be 60s, 2 minutes, and the like, if the time value is the third time. The BMC times the third time in a countdown or count-up manner. And finishing the recording of the fingerprint information of the authorized user in the third time. If the entry is not complete within the third time, the entry may be re-entered, or the entry of the fingerprint of the next authorized user may be made.
Within this timed time, the LED lamp is in a flashing state to remind the user to place a finger on the fingerprint acquisition module. In the fingerprint recording process, the LED lamp is in a flashing state in every third time.
And under the condition that the fingerprint information of all authorized users is recorded, the BMC stores the recorded fingerprint information for subsequent use. The BMC generates a fingerprint entry log for subsequent use.
And under the condition that the BMC stores the input fingerprint information and generates a fingerprint input log, the BMC enters a first state.
And under the condition that the fingerprint information of all authorized users is recorded, the LED lamp is constantly on.
The configuration process is simple and easy to implement in practical application and has good practicability.
If the existing scheme of the server that can be powered on or off in response to any power control operation of the user is regarded as a non-strict power on/off scheme, the foregoing configuration scheme is equivalent to providing a strict power on/off scheme for the server, compared with the non-strict power on/off scheme. By utilizing the rigorous startup and shutdown scheme, the unexpected startup and shutdown of the server can be effectively avoided, and the situation that the server cannot be normally used is avoided.
The configuration scheme provides a novel power-on or power-off scheme for the server. The advent of this solution provides more options for anticipatory power on or off of the server.
As shown in fig. 6, the second part of content mainly includes the following steps: s601: the BMC obtains a determination result through whether the fingerprint acquisition module of the server acquires the physiological information; s602: determining whether to switch the first state to the second state according to the determination result; s603: if the first state is switched to the second state, acquiring a power supply control signal by the FPGA in the second state; s604: the FPGA sends the power control signal to the PCH, which responds to the power control signal.
The second part of the content is specifically understood in conjunction with the above steps:
based on the configuration scheme, the BMC enters a first state, and the server is in a starting state. It can be understood that, in the first state of the BMC, if a user presses or touches a power key due to a misoperation or an unintentional operation of the user, the BMC may not respond to the power control signal generated based on the foregoing operation in the first state, because the FPGA masks the power control signal and does not send the power control signal to the PCH for the power control signal generated at this time.
The first state of the BMC can effectively avoid unexpected shutdown of the server caused by misoperation or unconscious operation of a user.
In a first state of BMC and a state that the server is started, if an operation that a user puts a finger on the fingerprint acquisition module exists, the fingerprint acquisition module on the server acquires fingerprint information.
And under the condition that the fingerprint information is detected, the fingerprint acquisition module transmits the acquired fingerprint information to the BMC in the first state. The BMC may obtain a determination result of whether physiological information is collected by the fingerprint collection module based on whether the fingerprint information is received. Under the determination result, the BMC switches from the first state to the second state.
In the foregoing determination result, the BMC determines whether the received fingerprint information exists in the previously stored fingerprint information. If the fingerprint information exists, the fingerprint information acquired by the fingerprint acquisition module can be determined to be matched with the preset fingerprint information, and the BMC is switched from the first state to the second state.
Or if the BMC exists in the fingerprint information stored previously and the similarity with a certain stored fingerprint information reaches a preset threshold value, for example, 80%, it is determined that the fingerprint information acquired by the fingerprint acquisition module matches the preset fingerprint information, and the BMC switches from the first state to the second state.
When the BMC is in the second state, if an operation such as pressing or touching a power key by a user exists, the FPGA of the server generates a power control signal when the operation is detected. Because the FPGA can know that the BMC is in the second state, the FPGA can send a power control signal to the PCH, and the PCH responds to the received power control signal so as to realize the startup or shutdown of the server.
When the BMC is in the second state, the PCH responds to the received power control signal. And if the power supply control signal is a control signal for enabling the server to be shut down, shutting down the server. And if the power supply control signal is a control signal for starting the server, starting the server.
If the power control signal is generated when the BMC is in the first state, the FPGA shields the power key pressing signal, or the FPGA does not send the power control signal to the PCH.
And the FPGA informs the BMC of the detected operations such as pressing and touching of the power key by the user. The BMC generates logs. The log can provide a certain data base for follow-up fault troubleshooting of the BMC.
It can be understood that if the user desires to turn on or off the server, that is, desires to turn on or off the server in an anticipatory manner, the user may first operate the fingerprint acquisition module, place a finger on the fingerprint acquisition module, then operate the power key, and press or touch the power key. The BMC realizes switching from the first state to the second state based on the operation of the user on the fingerprint acquisition module. The expected on-off of the server is realized based on the pressing or touch operation of the power key by the user.
When the fingerprint is acquired by the fingerprint acquisition module, the BMC records the acquisition time. When a user presses or touches a power key, the FPGA records the operation time and sends the recorded operation time to the BMC. And the BMC in the second state calculates the difference between the acquisition time and the operation time, obtains the absolute value of the difference, informs the FPGA if the absolute value of the difference is within a time threshold value of 10s, transmits the power control signal to the PCH by the FPGA, and responds to the power control signal by the PCH. If the absolute value of the difference is not within the time threshold, e.g., 10s, but outside 10s, the BMC switches from the second state to the first state. The state of the BMC is notified to the FPGA, and the FPGA shields the power control signal.
And if the BMC knows the time of collecting the fingerprint by the fingerprint collecting module, timing is carried out, for example, 1 starts to time to an expected threshold value, such as 10s, or counts down from the expected threshold value, if the time is within 10s, the FPGA detects the pressing, touching and other operations of the user on a power key, the FPGA generates a power control signal based on the operations, transmits the power control signal to the PCH, and the PCH responds to the power control signal. If the FPGA does not detect the pressing, touching and other operations of the power key by the user within 10s, the BMC is switched back to the first state from the second state.
Colloquially, from the user level, the foregoing solution is whether the user presses or touches the power key within 10s after the user places the finger behind the finger capture module, and if so, responds to the power-off signal of the server. If the power key is not pressed or touched, the BMC switches from the second state back to the first state without responding to a power off signal of the server. Thus, the expected shutdown of the server can be accurately realized.
In addition, the scheme can also avoid unexpected startup and shutdown of the server caused by that a malicious user presses or touches the power key (frequently) in too long time due to the fact that the time for operating the power key is too long from the time for operating the fingerprint acquisition module.
For example, if a legitimate user does not operate the power key after operating the fingerprinting module, it may be that the legitimate user walks away after operating the fingerprinting module. If a malicious user comes after a reasonable user leaves, the BMC is always in the second state for a long time under the conditions that the time threshold is not limited and the BMC is not switched from the second state to the first state, and at the moment, if the malicious user operates the power key, a power control signal generated based on the operation of the power key is responded, so that the server is powered off. Such shutdown is obviously not an intended shutdown, and may be a malicious shutdown by a malicious user. In order to avoid the situation, a time threshold value is set and the BMC is switched from the second state to the first state under the condition that the absolute value of the difference value is beyond the time threshold value, so that the malicious shutdown situation can be effectively avoided. In particular, the method comprises the following steps of,
if the power key is operated within a time threshold of a short time, such as 10s, after a reasonable user operates the fingerprint acquisition module, the expected on-off of the server can be realized. If the reasonable user does not operate the power key within the time threshold, the BMC is switched from the first state to the second state, so that the second state of the BMC is prevented from being maintained for too long, and the opportunity of malicious startup and shutdown is provided for a malicious user.
Based on this, it can be understood that the time threshold of the present application is usually set to be short, but is not infinitely small. A reasonable time interval between the operation of the fingerprint acquisition module and the operation of the power key by the same user needs to be considered.
In popular terms, the scheme is that the server is responded to the power-off or power-on signal only when the collected user fingerprint passes the user fingerprint verification and the pressing or touch operation of the power key is collected within a time threshold, otherwise, the server is not responded.
In the scheme, the LED is controlled to flash under the condition that the BMC receives the fingerprint information acquired by the fingerprint acquisition module. Generally, the time length of the LED flashing is controlled to be consistent with the time threshold, so as to prompt the user to press or touch the power key as soon as possible within the time threshold (within the time of the LED flashing).
It can be understood that the LED lamp plays a role in prompting a user. The user can be prompted, if the server is required to be powered off, the finger needs to be placed on the fingerprint acquisition module, and in the flashing time of the LED lamp after the finger is placed on the fingerprint acquisition module, the power key is pressed or touched as soon as possible. In this manner, the server may be powered down as desired.
In practical applications, if the BMC has a problem, the user cannot perform an expected shutdown of the server even if the user inputs a fingerprint and presses or touches the power key. In order to avoid the problem, another power key may be provided in the server, and on the server side, the user turns off or on the server itself by pressing or touching the power key. The problem that the server cannot be shut down or started up in an expected mode and the server cannot be shut down or started up is solved. The other power key can be arranged at a position different from the position of the existing power key, for example, the existing power key is arranged on a front panel of the server, and the other power key is arranged on a mainboard of the server.
According to the scheme, in the first state of the BMC, the FPGA shields the power control signal, the PCH cannot respond to the power control signal, and the scheme for locking the power key based on the first state of the BMC can be realized. In the second state of the BMC, under the condition that the fingerprint identification module collects the fingerprint of the authorized user and the authorized user has operations such as pressing or touching the power key, the FPGA sends a power control signal to the PCH, the PCH responds to the power control signal, and the unlocking scheme of the power key can be realized based on the second state of the BMC. According to the method and the device, the power key is locked or unlocked based on the setting of the state of the BMC.
It can be understood that the BMC is switched from the first state to the second state based on the physiological information collected by the fingerprint collection module, and the setting of the fingerprint collection module in the server may be beneficial to implementing the state switching of the BMC. In combination with the above contents and the setting of the state of the BMC in the present application, it can be known that the power key can be locked or unlocked.
Based on this, the aforementioned first part of content is that the power key of the BMC configuration server can be locked or unlocked by using the fingerprint identification module. The second part of the content is as follows: based on the setting of the BMC, the fingerprint identification module is used for locking or unlocking the power key, so that expected startup or shutdown is realized, and unexpected startup or shutdown of the server is avoided.
Under a normal condition, the BMC is in a first state, aiming at the locking of the power key, a low-level signal of the power key can be shielded by the FPGA, the low-level signal of the power key cannot be detected in the restarting process of the BMC, the restarting of the BMC cannot cause the shutdown of a server, and the unexpected shutdown of the server is avoided. The low level signal of the power key can be regarded as one of the power control signals in the present application.
The setting of the first state of the BMC can effectively avoid the occurrence of unexpected shutdown of the server in the process of locking a power key and restarting the BMC.
In order not to affect the anticipatory startup or shutdown of the server, the second state of the BMC is set in the present application. When the BMC is in the second state and a reasonable user has an operation which hopes that the server is powered off, such as putting a finger on the fingerprint identification module and pressing or touching a power key, the expected on-off of the server is realized, and the normal on-off of the server is realized.
Based on this, the existence of the two states of the BMC in the present application, the setting of the information acquisition module and the processing logic of the foregoing method are all to implement the expected on/off of the server, avoid the unexpected on/off of the server, and implement the normal management of the server, such as the on/off management.
By the aid of the method and the device, unexpected startup and shutdown of the server can be avoided, and service life of the server is prolonged. By the aid of the method and the device, expected startup and shutdown of the server can be realized, normal operation of the server can be guaranteed, and enterprise loss caused by unexpected startup and shutdown is avoided.
The time threshold and the scheme of switching the BMC from the second state to the first state under the condition that the absolute value of the difference is outside the time threshold are equivalent to providing a safety protection mechanism for the server, and the intentional shutdown or startup of an unauthorized user can be prevented.
The scheme can be flexibly selected or not selected based on the selection or non-selection of the configuration options of the BMC, and more selection spaces are provided for users.
According to the scheme, the server can be started or shut down only under the condition that the fingerprint identification is passed. The fingerprint of the authorized person can pass through the fingerprint, and the unauthorized person cannot pass through the fingerprint, so that the situation that the unauthorized person is started unexpectedly can be prevented by the technical scheme.
An embodiment of the present application provides a device for controlling a server state, as shown in fig. 8, the device includes:
a first obtaining unit 701, configured to determine whether physiological information can be collected through an information collection module of a server, so as to obtain a determination result;
a first determining unit 702, configured to determine whether to switch the BMC from a first state of the BMC to a second state of the BMC according to the determination result;
the baseboard management controller BMC comprises a first state and a second state, the first state of the BMC indicates that the BMC is in a state incapable of responding to a power control signal of a server, and the second state of the BMC indicates that the BMC is in a state capable of responding to the power control signal of the server.
Wherein the first determining unit 702 is configured to:
determining to switch the BMC from a first state of the BMC to a second state of the BMC when the determination result represents that physiological information can be acquired through the information acquisition module;
maintaining the state of the BMC in a first state of the BMC under the condition that the determination result represents that physiological information is not acquired through the information acquisition module;
alternatively, the first determining unit 702 is configured to:
determining to switch the BMC from a first state of the BMC to a second state of the BMC when the determination result represents that physiological information can be acquired through an information acquisition module of the server and the physiological information is matched with preset physiological information;
and maintaining the state of the BMC in the first state of the BMC under the condition that the determined result represents that the physiological information can be acquired through an information acquisition module of the server and is not matched with the preset physiological information.
Wherein the apparatus further comprises:
the shielding unit is used for shielding a power supply control signal of the server by a programmable array logic chip FPGA under the condition that the BMC is in a first state;
and the trigger response unit is used for triggering the response to the power supply control signal of the server by the FPGA under the condition that the BMC is in the second state, wherein the response to the power supply control signal of the server can realize the startup or shutdown of the server.
Wherein the power control signal is generated based on an operation of a power key of the server;
the trigger response unit is used for triggering the response to the power supply control signal of the server by the FPGA under the condition that the absolute value of the difference between the first time and the second time is within a time threshold;
the first time is the time when a power key of the server is operated, and the second time is the time when the information acquisition module acquires the physiological information.
Therein, a first determination unit 702 for
And switching the second state of the BMC to the first state under the condition that the absolute value of the difference between the first time and the second time is beyond a time threshold.
It should be noted that, in the control device for server status according to the embodiment of the present application, because a principle of solving the problem of the control device is similar to that of the control method for server status, both the implementation process and the implementation principle of the control device for server status can be described with reference to the implementation process and the implementation principle of the method, and repeated descriptions are omitted.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
FIG. 9 illustrates a schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 9, the apparatus 800 includes a computing unit 801 which can perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM) 802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the device 800 can also be stored. The calculation unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
A number of components in the device 800 are connected to the I/O interface 805, including: an input unit 806, such as a keyboard, a mouse, or the like; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, or the like; and a communication unit 809 such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 801 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The calculation unit 801 executes the respective methods and processes described above, such as a control method of the server state. For example, in some embodiments, the method of controlling server state may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and/or installed onto device 800 via ROM 802 and/or communications unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the control method of the server state described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the control method of the server state in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A control method of server state is applied to a Baseboard Management Controller (BMC), and comprises the following steps:
the BMC comprises a first state and a second state, the first state of the BMC represents that the BMC is in a state incapable of responding to a power control signal of a server, and the second state of the BMC represents that the BMC is in a state capable of responding to the power control signal of the server;
determining whether physiological information can be acquired through an information acquisition module of the server to obtain a determination result;
and determining whether to switch the BMC from the first state to the second state according to the determination result.
2. The method of claim 1, wherein the determining whether to switch the BMC from the first state to the second state according to the determination comprises:
determining to switch the BMC from the first state to a second state under the condition that the determination result represents that physiological information can be acquired through the information acquisition module;
and maintaining the state of the BMC in a first state under the condition that the determined result represents that the physiological information is not acquired through the information acquisition module.
3. The method of claim 1 or 2, wherein the determining whether to switch the BMC from the first state to the second state according to the determination comprises:
when the determination result represents that the physiological information can be acquired through an information acquisition module of the server and is matched with the preset physiological information, determining to switch the BMC from the first state of the BMC to the second state of the BMC;
and maintaining the state of the BMC in the first state of the BMC under the condition that the determined result represents that the physiological information can be acquired through an information acquisition module of the server and is not matched with the preset physiological information.
4. The method according to any one of claims 1 to 3,
under the condition that the BMC is in a first state, a power supply control signal of the server is shielded by a programmable array logic chip FPGA;
and under the condition that the BMC is in the second state, triggering a response to a power supply control signal of the server by the FPGA, wherein the response to the power supply control signal of the server can realize the startup or shutdown of the server.
5. The method of claim 4, wherein the power control signal is generated based on an operation of a power key of the server;
triggering, by the FPGA, a response to a power control signal of the server when an absolute value of a difference between the first time and the second time is within a time threshold;
the first time is the time when a power key of the server is operated, and the second time is the time when the information acquisition module acquires the physiological information.
6. The method of claim 5, further comprising:
the BMC switches from the second state to the first state if an absolute value of a difference between the first time and the second time is outside a time threshold.
7. A device for controlling server states, comprising:
the first obtaining unit is used for determining whether physiological information can be collected through an information collecting module of the server to obtain a determination result;
a first determining unit, configured to determine whether to switch the BMC from a first state of the BMC to a second state of the BMC according to the determination result;
the baseboard management controller BMC comprises a first state and a second state, the first state of the BMC indicates that the BMC is in a state incapable of responding to a power control signal of a server, and the second state of the BMC indicates that the BMC is in a state capable of responding to the power control signal of the server.
8. The apparatus of claim 7, wherein the first determining unit is configured to:
determining to switch the BMC from a first state of the BMC to a second state of the BMC when the determination result represents that physiological information can be acquired through the information acquisition module;
maintaining the state of the BMC in a first state of the BMC under the condition that the determination result represents that physiological information is not acquired through the information acquisition module;
alternatively, the first and second electrodes may be,
determining to switch the BMC from a first state of the BMC to a second state of the BMC when the determination result represents that physiological information can be acquired through an information acquisition module of the server and the physiological information is matched with preset physiological information;
and maintaining the state of the BMC in the first state of the BMC under the condition that the determined result represents that the physiological information can be acquired through an information acquisition module of the server and is not matched with the preset physiological information.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method according to any one of claims 1-6.
CN202210989664.XA 2022-08-17 2022-08-17 Server state control method and device, electronic equipment and storage medium Pending CN115220801A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210989664.XA CN115220801A (en) 2022-08-17 2022-08-17 Server state control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210989664.XA CN115220801A (en) 2022-08-17 2022-08-17 Server state control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115220801A true CN115220801A (en) 2022-10-21

Family

ID=83615342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210989664.XA Pending CN115220801A (en) 2022-08-17 2022-08-17 Server state control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115220801A (en)

Similar Documents

Publication Publication Date Title
RU2676882C2 (en) Administrating power to auxiliary device
US20130287273A1 (en) Anti-misoperation system and method using same
CN108337913A (en) Fingerprint login method, micro-control unit, fingerprint power supply module and electric terminal
US8578182B2 (en) Power lock-up setting method performed by baseboard management controller and electronic apparatus using the same
CN111176734A (en) Startup control method and equipment of server and storage medium
EP3531796A1 (en) One-button power-on processing method and terminal
US10860404B2 (en) Server and debugging method therefor
CN103853987A (en) Dual-network integrated type computer terminal
CN106506484B (en) Data backup method, device and system
CN107003891A (en) Virtual machine switching method, device, electronic equipment and computer program product
WO2018195976A1 (en) Fingerprint identification-based boot method and apparatus
EP3567502A1 (en) Startup processing method and apparatus for terminal device, and terminal device
EP3460630A1 (en) False-touch-wakeup prevention apparatus and method, intelligent terminal and computer storage medium
CN110764965A (en) Process daemon method and device, electronic equipment and storage medium
CN111191219A (en) Control circuit with trusted computing function
CN113608930A (en) System chip and electronic device
CN113031825B (en) Fingerprint event processing device and method
US20160132098A1 (en) Electronic apparatus and wake-up method thereof
CN110096105A (en) The method for controlling power-supply unit
CN115220801A (en) Server state control method and device, electronic equipment and storage medium
CN103135728B (en) Power supply start-up control method and system thereof
CN110457075B (en) Communication terminal shutdown method and device, storage medium and communication terminal
CN105721665B (en) A kind of mobile terminal incoming call sound method and device
JP2000357020A (en) Password code recognizing circuit
CN113343316A (en) Device and method for realizing isolated switching of multiple computing devices

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