CN109857471A - Method, apparatus, terminal and the storage medium of the tactful real-time synchronization of electricity under a kind of BIOS and BMC - Google Patents
Method, apparatus, terminal and the storage medium of the tactful real-time synchronization of electricity under a kind of BIOS and BMC Download PDFInfo
- Publication number
- CN109857471A CN109857471A CN201910099922.5A CN201910099922A CN109857471A CN 109857471 A CN109857471 A CN 109857471A CN 201910099922 A CN201910099922 A CN 201910099922A CN 109857471 A CN109857471 A CN 109857471A
- Authority
- CN
- China
- Prior art keywords
- setting value
- bmc
- bios
- bit0
- lower electricity
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of method of the tactful real-time synchronization of electricity under BIOS and BMC, comprising: obtains the current lower electricity strategy of BMC, according to the Bit0 of lower electricity strategy setting PCH register and saves setting value;The setting value for obtaining BIOS setup option, judges whether setting value is consistent with the setting value of the Bit0 of PCH register, and the Bit0 setting value of PCH register is flushed to the setting value of BIOS setup option if inconsistent;When the setting value in BIOS Setup is modified, judge whether the setting value of the Bit0 of PCH register and the setting value in modified BIOS Setup are consistent, the lower electricity strategy of BMC modification is notified if inconsistent;The application can be obtained BMC by BIOS and set and flush to menu, the method that the lower electricity strategy of BIOS setting comes into force immediately after saving, guarantee the real-time of electric policy synchronization under BIOS and BMC end system, it will not cause to be configured without the illusion to come into force to client, improve the availability of product, the performance of product is enhanced, the satisfaction of client is improved.
Description
Technical field
The present invention relates to server technology fields, and in particular to a kind of method of the tactful real-time synchronization of electricity under BIOS and BMC,
Device, terminal and storage medium.
Background technique
It is with rapid changepl. never-ending changes and improvements with mobile terminal device with the fast development of Internet technology, the enterprise in the fields such as IT, internet
Demand of the industry to server is also being gradually increased.Server is after abnormal shutdown power down, then when being powered on there are three types of start-up modes:
(1) start automatically when being powered on again after starting (Power On) i.e. abnormal shutdown power down automatically;(2) do not start (Power automatically
Do not start automatically when Off) being powered on again after abnormal shutdown power down;(3) state (Last state) when remaining turned off is i.e. non-
State when being remained turned off when being powered on again after normal shutdown power down, if system is the state of booting when abnormal shutdown power down,
System will start automatically when being then powered on again;If system is the state of shutdown, then system when being powered on when abnormal shutdown power down
It will not start automatically.
The lower electricity strategy of default can be set on server product in BIOS and BMC, BIOS can be by option "
Restore AC Power Loss " setting, BMC Web can pass through " Power Policy Options " set of options.Existing side
Case is the setting that BMC desynchronizes under BIOS based on the setting under BIOS.But after setting and modifying under BIOS, BMC's
Setting can not synchronize at once to come into force, and the setting that BMC gets BIOS when can only wait restart next time can be just modified under BMC later
Setting, BMC under BIOS electricity strategy set synchronize have delay.Certain puzzlement can be caused to client in this way, BIOS is had modified and sets
It is fixed, but to see under BMC Web still before setting, can worry to set unsuccessful, customer experience is poor.
Therefore, the method for needing a kind of tactful real-time synchronization of electricity under BIOS and BMC, can be under real-time synchronization BIOS and BMC
System under electricity strategy setting, solve BIOS and BMC setting the problem of being unable to real-time synchronization, client is caused to perplex.
Summary of the invention
In view of the deficiencies of the prior art, the present invention provides a kind of method of the tactful real-time synchronization of electricity under BIOS and BMC, dress
It sets, terminal and storage medium, complicated opaque process adds check post among escalation process, is asked with solving above-mentioned technology
Topic.
In a first aspect, the embodiment of the present application provides a kind of method of the tactful real-time synchronization of electricity under BIOS and BMC, the method
Include:
The current lower electricity strategy of BMC is obtained, according to the Bit0 of lower electricity strategy setting PCH register and saves setting value;
The setting value for obtaining BIOS setup option, judge the Bit0 of setting value and PCH register setting value whether one
It causes, the Bit0 setting value of PCH register is flushed to the setting value of BIOS setup option if inconsistent;
When the setting value in BIOS Setup is modified, the current lower electricity strategy of BMC is obtained, judges that BMC is current
Whether lower electricity strategy is consistent with the setting value in modified BIOS Setup, and the lower electricity strategy of BMC modification is notified if inconsistent.
It is with reference to first aspect, described to obtain the current lower electricity strategy of BMC in the first embodiment of first aspect,
According to the Bit0 value of lower electricity strategy setting PCH register and save setting value, comprising:
The current lower electricity strategy of BMC is obtained,
If the lower electricity strategy of BMC is Power Off, the Bit0 of PCH register is set as 0;
The Bit0 of PCH register is set as 1 if being Last State if the lower electricity strategy of BMC;
If the lower electricity strategy of BMC is Power On, the Bit0 of PCH register is set as 2;
Save the Bit0 setting value of current PC H register.
With reference to first aspect, described to obtain setting for BIOS setup option in second of embodiment of first aspect
Definite value judges whether setting value is consistent with the setting value of the Bit0 of PCH register, by the Bit0 of PCH register if inconsistent
Setting value flushes to the setting value of BIOS setup option, comprising:
Obtain the setting value of Restore AC Power Loss option in BIOS setup;
Judge the Bit0 of the setting value and PCH register of Restore AC Power Loss option in BIOS setup
Whether setting value is consistent;
If inconsistent, the setting value of the Bit0 of PCH register is flushed into Restore AC in BIOS setup
The setting value of Power Loss option.
With reference to first aspect, in the third embodiment of first aspect, the setting value when in BIOS Setup
When modifying, the current lower electric strategy of BMC is obtained, is judged in BMC current lower electricity strategy and modified BIOS Setup
Setting value it is whether consistent, the lower electricity strategy of BMC modification is notified if inconsistent, comprising:
When the setting value of AC Power Loss option in BIOS setup is modified, the current lower electric plan of BMC is obtained
Slightly, judge whether the current lower electricity strategy of BMC is consistent with the setting value in modified BIOS Setup;
The lower electricity strategy of BMC modification is notified if inconsistent.
Second aspect, the embodiment of the present application provide electricity under a kind of BIOS and BMC tactful real-time synchronization device, described device packet
It includes:
Acquiring unit, the acquiring unit are used to obtain the current lower electricity strategy of BMC, are posted according to lower electricity strategy setting PCH
The Bit0 of storage simultaneously saves setting value;
Initialization unit, the initialization unit are used to obtain the setting value of BIOS setup option, judge setting value with
Whether the setting value of the Bit0 of PCH register is consistent, and the Bit0 setting value of PCH register is flushed to BIOS if inconsistent
The setting value of setup option;
Synchronization unit, the synchronization unit are used for when the setting value in BIOS Setup is modified, and it is current to obtain BMC
Lower electricity strategy, judge whether the current lower electricity strategy of BMC consistent with the setting value in modified BIOS Setup, if different
Cause then notifies the lower electricity strategy of BMC modification.
In conjunction with second aspect, in the first embodiment of second aspect, the acquiring unit is specifically used for:
The current lower electricity strategy of BMC is obtained,
If the lower electricity strategy of BMC is Power Off, the Bit0 of PCH register is set as 0;
The Bit0 of PCH register is set as 1 if being Last State if the lower electricity strategy of BMC;
If the lower electricity strategy of BMC is Power On, the Bit0 of PCH register is set as 2;
Save the Bit0 setting value of current PC H register.
In conjunction with second aspect, in second of embodiment of second aspect, the initialization unit is specifically used for:
Obtain the setting value of Restore AC Power Loss option in BIOS setup;
Judge the Bit0 of the setting value and PCH register of Restore AC Power Loss option in BIOS setup
Whether setting value is consistent;
If inconsistent, the setting value of the Bit0 of PCH register is flushed into Restore AC in BIOS setup
The setting value of Power Loss option.
In conjunction with second aspect, in the third embodiment of second aspect, the synchronization unit is specifically used for:
When the setting value of AC Power Loss option in BIOS setup is modified, the current lower electric plan of BMC is obtained
Slightly, judge whether the current lower electricity strategy of BMC is consistent with the setting value in modified BIOS Setup;
The lower electricity strategy of BMC modification is notified if inconsistent.
The third aspect provides a kind of terminal, comprising:
Processor, memory, wherein
The memory is used to store computer program,
The processor from memory for calling and running the computer program, so that executing the above method in terminal.
Fourth aspect provides a kind of computer storage medium, instruction is stored in the computer readable storage medium,
When run on a computer, so that computer executes method described in above-mentioned various aspects.
5th aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that
Computer executes method described in above-mentioned various aspects.
The beneficial effects of the present invention are:
Method, apparatus, terminal and the storage medium of electricity strategy real-time synchronization under BIOS and BMC provided by the invention, can
BMC is obtained by BIOS and sets and flush to menu, and the method that the lower electricity strategy of BIOS setting comes into force immediately after saving guarantees BIOS
With the real-time of policy synchronization electric under BMC end system, it will not cause to be configured without the illusion to come into force to client, improve product
Availability enhances the performance of product, improves the satisfaction of client.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art
Speech, without creative efforts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the schematic flow chart of the method for the application one embodiment.
Fig. 2 is the schematic block diagram of the device of the application one embodiment.
Fig. 3 is a kind of structural schematic diagram of terminal provided in an embodiment of the present invention.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real
The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation
Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common
Technical staff's every other embodiment obtained without making creative work, all should belong to protection of the present invention
Range.
Term is explained:
BMC:Baseboard Management Controller, baseboard management controller;
BIOS:Basic Input Output System, basic input output system;
CMC:Chassis Management Controller, Shelf Management Controller.
Fig. 1 is the schematic flow chart of the method for the application one embodiment.Wherein, Fig. 1 executing subject can be one kind
Electricity strategy real-time synchronization device under BIOS and BMC.
As shown in Figure 1, this method 100 includes:
Step 110, the current lower electricity strategy of BMC is obtained, according to the Bit0 of lower electricity strategy setting PCH register and preservation is set
Definite value;
Step 120, the setting value for obtaining BIOS setup option judges the setting of the Bit0 of setting value and PCH register
Whether value is consistent, and the Bit0 setting value of PCH register is flushed to the setting value of BIOS setup option if inconsistent;
Step 130, when the setting value in BIOS Setup is modified, the current lower electricity strategy of BMC, judgement are obtained
Whether BMC current lower electricity strategy is consistent with the setting value in modified BIOS Setup, notifies BMC to modify if inconsistent
Lower electricity strategy.
Optionally, described to obtain the current lower electricity strategy of BMC as the application one embodiment, it is set according to lower electric strategy
Determine the Bit0 value of PCH register and save setting value, comprising:
The current lower electricity strategy of BMC is obtained,
If the lower electricity strategy of BMC is Power Off, the Bit0 of PCH register is set as 0;
The Bit0 of PCH register is set as 1 if being Last State if the lower electricity strategy of BMC;
If the lower electricity strategy of BMC is Power On, the Bit0 of PCH register is set as 2;
Save the Bit0 setting value of current PC H register.
Optionally, as the application one embodiment, the setting value for obtaining BIOS setup option judges setting value
It is whether consistent with the setting value of the Bit0 of PCH register, the Bit0 setting value of PCH register is flushed into BIOS if inconsistent
The setting value of setup option, comprising:
Obtain the setting value of Restore AC Power Loss option in BIOS setup;
Judge the Bit0 of the setting value and PCH register of Restore AC Power Loss option in BIOS setup
Whether setting value is consistent;
If inconsistent, the setting value of the Bit0 of PCH register is flushed into Restore AC in BIOS setup
The setting value of Power Loss option.
Optionally, it as the application one embodiment, when the setting value when in BIOS Setup is modified, obtains
BMC current lower electricity strategy, judge the current lower electricity strategy of BMC and the setting value in modified BIOS Setup whether one
It causes, the lower electricity strategy of BMC modification is notified if inconsistent, comprising:
When the setting value of AC Power Loss option in BIOS setup is modified, the current lower electric plan of BMC is obtained
Slightly, judge whether the current lower electricity strategy of BMC is consistent with the setting value in modified BIOS Setup;
The lower electricity strategy of BMC modification is notified if inconsistent.
In order to facilitate the understanding of the present invention, below with the principle of electricity strategy real-time synchronization under BIOS of the present invention and BMC, knot
It closes to the process of electricity strategy real-time synchronization under BIOS and BMC in embodiment, it is real to electricity strategy under BIOS provided by the invention and BMC
When synchronous method be further described.
Specifically, electricity strategy real-time synchronization method includes the following steps: under BIOS and BMC
S1, acquisition cabinet state (Get Chassis Status Command) IPMI order is sent, is obtained from BMC current
Lower electricity it is tactful (Power Restore Policy)
S2, setting PCH register Bit0 setting value, if the lower electricity strategy of BMC is Power Off, by PCH register
Bit0 is set as 0, the Bit0 of PCH register is set as 1 if being Last State if the lower electricity strategy of BMC, if the lower electricity of BMC
Strategy is Power On, then the Bit0 of PCH register is set as 2;It is protected simultaneously with a Pcd State After G3Vaule
Deposit the Bit0 setting value of current PC H register.
S3, the setting value that Restore AC Power Loss option in BIOS setup is obtained using Get Variable,
The setting value of Restore AC Power Loss option in BIOS setup is saved with Pcd State After G3Vaule
The Bit0 setting value of current PC H register compare, judge whether consistent, if inconsistent, call Sync State After
G3With Bmc function refreshes the Bit0 setting value of the current PC H register of the preservation of Pcd State After G3Vaule
The setting value of Restore AC Power Loss option into BIOS menu;
S4, when the setting value of AC Power Loss option in BIOS setup is modified, BIOS sends Get first
The IPMI order of Chassis Status Command obtains current Power Restore Policy from BMC, judges BMC's
Whether lower electricity strategy is consistent with the setting value of Restore AC Power Loss option in modified BIOS Setup, if not
The lower electric plan of IPMI order notice BMC modification that is consistent then sending CHASSIS SET POWER RESTORE POLICY Command
Slightly.
If Fig. 2 shows, which includes:
Acquiring unit 210, the acquiring unit 210 is used to obtain the current lower electricity strategy of BMC, according to lower electricity strategy setting
The Bit0 of PCH register simultaneously saves setting value;
Initialization unit 220, the initialization unit 220 are used to obtain the setting value of BIOS setup option, and judgement is set
Whether definite value is consistent with the setting value of the Bit0 of PCH register, flushes to the Bit0 setting value of PCH register if inconsistent
The setting value of BIOS setup option;
Synchronization unit 230, the synchronization unit 230 are used for when the setting value in BIOS Setup is modified, and are obtained
BMC current lower electricity strategy, judge the current lower electricity strategy of BMC and the setting value in modified BIOS Setup whether one
It causes, the lower electricity strategy of BMC modification is notified if inconsistent.
Optionally, as the application one embodiment, the acquiring unit 210 is specifically used for:
The current lower electricity strategy of BMC is obtained,
If the lower electricity strategy of BMC is Power Off, the Bit0 of PCH register is set as 0;
The Bit0 of PCH register is set as 1 if being Last State if the lower electricity strategy of BMC;
If the lower electricity strategy of BMC is Power On, the Bit0 of PCH register is set as 2;
Save the Bit0 setting value of current PC H register.
Optionally, as the application one embodiment, the initialization unit 220 is specifically used for:
Obtain the setting value of Restore AC Power Loss option in BIOS setup;
Judge the Bit0 of the setting value and PCH register of Restore AC Power Loss option in BIOS setup
Whether setting value is consistent;
If inconsistent, the setting value of the Bit0 of PCH register is flushed into Restore AC in BIOS setup
The setting value of Power Loss option.
Optionally, as the application one embodiment, the synchronization unit 230 is specifically used for:
When the setting value of AC Power Loss option in BIOS setup is modified, the current lower electric plan of BMC is obtained
Slightly, judge whether the current lower electricity strategy of BMC is consistent with the setting value in modified BIOS Setup;
The lower electricity strategy of BMC modification is notified if inconsistent.
Fig. 3 is a kind of structural schematic diagram of terminal installation 300 provided in an embodiment of the present invention, which can be with
Method for executing electricity strategy real-time synchronization under a kind of BIOS and BMC provided by the embodiments of the present application.
Wherein, which may include: processor 310, memory 320 and communication unit 330.These components
It is communicated by one or more bus, it will be understood by those skilled in the art that the structure of server shown in figure is not
The restriction to the application is constituted, it is also possible to hub-and-spoke configuration either busbar network, can also include more than illustrating
Or less component, perhaps combine certain components or different component layouts.
Wherein, which can be used for executing instruction for storage processor 310, and memory 320 can be by any class
The volatibility or non-volatile memories terminal or their combination of type are realized, such as static random access memory (SRAM), electricity
Erasable Programmable Read Only Memory EPROM (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory
(PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.When executing instruction in memory 320
When being executed by processor 310, so that terminal 300 some or all of is able to carry out in following above method embodiment step.
Processor 310 is the control centre for storing terminal, utilizes each of various interfaces and the entire electric terminal of connection
A part by running or execute the software program and/or module that are stored in memory 320, and calls and is stored in storage
Data in device, to execute the various functions and/or processing data of electric terminal.The processor can be by integrated circuit
(Integrated Circuit, abbreviation IC) composition, such as the IC that can be encapsulated by single are formed, can also be by more of connection
The encapsulation IC of identical function or different function and form.For example, processor 310 can only include central processing unit
(Central Processing Unit, abbreviation CPU).In the application embodiment, CPU can be single operation core, can also
To include multioperation core.
Communication unit 330, for establishing communication channel, so that the storage terminal be allow to be led to other terminals
Letter.It receives the user data of other terminals transmission or sends user data to other terminals.
The application also provides a kind of computer storage medium, wherein the computer storage medium can be stored with program, the journey
Sequence may include step some or all of in each embodiment provided by the present application when executing.The storage medium can for magnetic disk,
CD, read-only memory (English: read-only memory, referred to as: ROM) or random access memory (English:
Random access memory, referred to as: RAM) etc..
Therefore, electricity strategy real-time synchronization method, device, terminal and storage medium, energy under BIOS and BMC provided by the present application
BMC is enough obtained by BIOS and sets and flush to menu, the method that the lower electricity strategy of BIOS setting comes into force immediately after saving guarantees
The real-time of electric policy synchronization, will not cause to be configured without the illusion to come into force to client, improve production under BIOS and BMC end system
The availability of product enhances the performance of product, improves the satisfaction of client, and the attainable technical effect of the present embodiment institute can be with
Description in seeing above, details are not described herein again.
It is required that those skilled in the art can be understood that the technology in the embodiment of the present application can add by software
The mode of general hardware platform realize.Based on this understanding, the technical solution in the embodiment of the present application substantially or
Say that the part that contributes to existing technology can be embodied in the form of software products, which is stored in
Such as USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory in one storage medium
The various media that can store program code such as (RAM, Random Access Memory), magnetic or disk, including it is several
Instruction is used so that a terminal (can be personal computer, server or second terminal, the network terminal etc.) is held
Row all or part of the steps of the method according to each embodiment of the present invention.
Same and similar part may refer to each other between each embodiment in this specification.Implement especially for terminal
For example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring in embodiment of the method
Explanation.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
Although by reference to attached drawing and combining the mode of preferred embodiment to the present invention have been described in detail, the present invention
It is not limited to this.Without departing from the spirit and substance of the premise in the present invention, those of ordinary skill in the art can be to the present invention
Embodiment carry out various equivalent modifications or substitutions, and these modifications or substitutions all should in covering scope of the invention/appoint
What those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, answer
It is included within the scope of the present invention.Therefore, protection scope of the present invention is answered described is with scope of protection of the claims
It is quasi-.
Claims (10)
1. the method for electricity strategy real-time synchronization under a kind of BIOS and BMC, which is characterized in that the described method includes:
The current lower electricity strategy of BMC is obtained, according to the Bit0 of lower electricity strategy setting PCH register and saves setting value;
The setting value for obtaining BIOS setup option, judges whether setting value is consistent with the setting value of the Bit0 of PCH register, if
It is inconsistent, the Bit0 setting value of PCH register is flushed to the setting value of BIOS setup option;
When the setting value in BIOS Setup is modified, the current lower electricity strategy of BMC is obtained, judges the current lower electricity of BMC
It is tactful whether consistent with setting value in modified BIOS Setup, the lower electricity strategy of BMC modification is notified if inconsistent.
2. the method for electricity strategy real-time synchronization under BIOS as described in claim 1 and BMC, which is characterized in that the acquisition BMC
Current lower electricity strategy according to the Bit0 value of lower electricity strategy setting PCH register and saves setting value, comprising:
The current lower electricity strategy of BMC is obtained,
If the lower electricity strategy of BMC is Power Off, the Bit0 of PCH register is set as 0;
The Bit0 of PCH register is set as 1 if being Last State if the lower electricity strategy of BMC;
If the lower electricity strategy of BMC is Power On, the Bit0 of PCH register is set as 2;
Save the Bit0 setting value of current PC H register.
3. the method for electricity strategy real-time synchronization under BIOS as described in claim 1 and BMC, which is characterized in that the acquisition
The setting value of BIOS setup option judges whether setting value is consistent with the setting value of the Bit0 of PCH register, if inconsistent
The Bit0 setting value of PCH register is flushed to the setting value of BIOS setup option, comprising:
Obtain the setting value of Restore AC Power Loss option in BIOS setup;
Judge the setting of the Bit0 of the setting value and PCH register of Restore AC Power Loss option in BIOS setup
Whether consistent it is worth;
If inconsistent, the setting value of the Bit0 of PCH register is flushed into Restore AC Power in BIOS setup
The setting value of Loss option.
4. the method for electricity strategy real-time synchronization under BIOS as described in claim 1 and BMC, which is characterized in that work as BIOS
When setting value in Setup is modified, the current lower electric strategy of BMC is obtained, after judging the current lower electricity strategy of BMC and modification
BIOS Setup in setting value it is whether consistent, the lower electricity strategy of BMC modification is notified if inconsistent, comprising:
When the setting value of AC Power Loss option in BIOS setup is modified, the current lower electricity strategy of BMC is obtained,
Judge whether the current lower electricity strategy of BMC is consistent with the setting value in modified BIOS Setup;
The lower electricity strategy of BMC modification is notified if inconsistent.
5. the device of electricity strategy real-time synchronization under a kind of BIOS and BMC, which is characterized in that described device includes:
Acquiring unit, the acquiring unit is used to obtain the current lower electricity strategy of BMC, according to lower electricity strategy setting PCH register
Bit0 and save setting value;
Initialization unit, the initialization unit are used to obtain the setting value of BIOS setup option, judge that setting value is posted with PCH
Whether the setting value of the Bit0 of storage is consistent, and the Bit0 setting value of PCH register is flushed to BIOS setup if inconsistent
The setting value of option;
Synchronization unit, the synchronization unit are used for when the setting value in BIOS Setup is modified, under obtaining BMC currently
Electric strategy judges whether the current lower electricity strategy of BMC is consistent with the setting value in modified BIOS Setup, if inconsistent
Notify the lower electricity strategy of BMC modification.
6. the device of electricity strategy real-time synchronization under BIOS as claimed in claim 5 and BMC, which is characterized in that the acquisition is single
Member is specifically used for:
The current lower electricity strategy of BMC is obtained,
If the lower electricity strategy of BMC is Power Off, the Bit0 of PCH register is set as 0;
The Bit0 of PCH register is set as 1 if being Last State if the lower electricity strategy of BMC;
If the lower electricity strategy of BMC is Power On, the Bit0 of PCH register is set as 2;
Save the Bit0 setting value of current PC H register.
7. the device of electricity strategy real-time synchronization under BIOS as claimed in claim 5 and BMC, which is characterized in that the initialization
Unit is specifically used for:
Obtain the setting value of Restore AC Power Loss option in BIOS setup;
Judge the setting of the Bit0 of the setting value and PCH register of Restore AC Power Loss option in BIOS setup
Whether consistent it is worth;
If inconsistent, the setting value of the Bit0 of PCH register is flushed into Restore AC Power in BIOS setup
The setting value of Loss option.
8. the device of electricity strategy real-time synchronization under BIOS as claimed in claim 5 and BMC, which is characterized in that described to synchronize list
Member is specifically used for:
When the setting value of AC Power Loss option in BIOS setup is modified, the current lower electricity strategy of BMC is obtained,
Judge whether the current lower electricity strategy of BMC is consistent with the setting value in modified BIOS Setup;
The lower electricity strategy of BMC modification is notified if inconsistent.
9. a kind of terminal characterized by comprising
Processor;
The memory executed instruction for storage processor;
Wherein, the processor is configured to perform claim requires the described in any item methods of 1-4.
10. a kind of computer readable storage medium for being stored with computer program, which is characterized in that the program is executed by processor
Shi Shixian method for example of any of claims 1-4.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910099922.5A CN109857471A (en) | 2019-01-31 | 2019-01-31 | Method, apparatus, terminal and the storage medium of the tactful real-time synchronization of electricity under a kind of BIOS and BMC |
PCT/CN2019/098501 WO2020155591A1 (en) | 2019-01-31 | 2019-07-31 | Method and device for real time synchronization of bios and bmc power-off policy, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910099922.5A CN109857471A (en) | 2019-01-31 | 2019-01-31 | Method, apparatus, terminal and the storage medium of the tactful real-time synchronization of electricity under a kind of BIOS and BMC |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109857471A true CN109857471A (en) | 2019-06-07 |
Family
ID=66897119
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910099922.5A Withdrawn CN109857471A (en) | 2019-01-31 | 2019-01-31 | Method, apparatus, terminal and the storage medium of the tactful real-time synchronization of electricity under a kind of BIOS and BMC |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109857471A (en) |
WO (1) | WO2020155591A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111475007A (en) * | 2020-04-08 | 2020-07-31 | 苏州浪潮智能科技有限公司 | Server power-off method, device and related equipment |
WO2020155591A1 (en) * | 2019-01-31 | 2020-08-06 | 郑州云海信息技术有限公司 | Method and device for real time synchronization of bios and bmc power-off policy, terminal and storage medium |
CN113064643A (en) * | 2021-03-16 | 2021-07-02 | 山东英信计算机技术有限公司 | Method, system and medium for instantly-effective modification of BIOS set value |
WO2022078013A1 (en) * | 2020-10-16 | 2022-04-21 | 苏州浪潮智能科技有限公司 | Server power-down detection method and system, and device and medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7600110B2 (en) * | 2006-07-11 | 2009-10-06 | Giga-Byte Technology Co., Ltd. | Method for simulating an intelligent platform management interface using BIOS |
CN104601373A (en) * | 2015-01-05 | 2015-05-06 | 浪潮电子信息产业股份有限公司 | Method for setting and synchronizing BIOS configuration parameters in out-of-band mode |
CN107168906A (en) * | 2017-05-12 | 2017-09-15 | 郑州云海信息技术有限公司 | A kind of BIOS sets the method that BMCSOL baud rates come into force |
CN108170454A (en) * | 2018-01-22 | 2018-06-15 | 郑州云海信息技术有限公司 | A kind of data interactive method for being applied to BIOS and baseboard management controller |
CN109857471A (en) * | 2019-01-31 | 2019-06-07 | 郑州云海信息技术有限公司 | Method, apparatus, terminal and the storage medium of the tactful real-time synchronization of electricity under a kind of BIOS and BMC |
-
2019
- 2019-01-31 CN CN201910099922.5A patent/CN109857471A/en not_active Withdrawn
- 2019-07-31 WO PCT/CN2019/098501 patent/WO2020155591A1/en active Application Filing
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020155591A1 (en) * | 2019-01-31 | 2020-08-06 | 郑州云海信息技术有限公司 | Method and device for real time synchronization of bios and bmc power-off policy, terminal and storage medium |
CN111475007A (en) * | 2020-04-08 | 2020-07-31 | 苏州浪潮智能科技有限公司 | Server power-off method, device and related equipment |
WO2022078013A1 (en) * | 2020-10-16 | 2022-04-21 | 苏州浪潮智能科技有限公司 | Server power-down detection method and system, and device and medium |
US11880689B2 (en) | 2020-10-16 | 2024-01-23 | Inspur Suzhou Intelligent Technology Co., Ltd. | Server power-down detection method and system, device, and medium |
CN113064643A (en) * | 2021-03-16 | 2021-07-02 | 山东英信计算机技术有限公司 | Method, system and medium for instantly-effective modification of BIOS set value |
Also Published As
Publication number | Publication date |
---|---|
WO2020155591A1 (en) | 2020-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109857471A (en) | Method, apparatus, terminal and the storage medium of the tactful real-time synchronization of electricity under a kind of BIOS and BMC | |
CN109039829A (en) | A kind of network card performance testing method, apparatus, terminal and storage medium | |
CN111669284B (en) | OpenStack automatic deployment method, electronic device, storage medium and system | |
CN109542525A (en) | A kind of method, apparatus, terminal and storage medium by BMC switching system memory configurations | |
CN112235136B (en) | Network file system backup method, system, terminal and storage medium | |
CN109542758B (en) | Method and device for testing fault tolerance of application program and computer readable storage medium | |
CN109510742A (en) | A kind of server network interface card remote test method, device, terminal and storage medium | |
CN112463239A (en) | BIOS and BMC interaction option default value modification method, system, terminal and storage medium | |
CN109522173A (en) | A kind of OPA network card testing method, device, terminal and storage medium | |
CN109257249A (en) | A kind of network interface card stability test method, apparatus, terminal and storage medium | |
CN109787864A (en) | A kind of network automatic test approach, device, terminal and storage medium based on Netperf | |
CN109976926A (en) | Method, circuit, terminal and the storage medium of protection BMC renewal process are restarted in a kind of shielding | |
CN109815721A (en) | A kind of method, apparatus, terminal and storage medium for modifying BIOS Setup option password by BMC | |
CN107908452A (en) | Multi-page starts method and device | |
CN109445517A (en) | A kind of method, apparatus, terminal and the storage medium of synchronous BMC and OS time | |
CN103795603A (en) | Edge virtual bridging method and device based on multiple network interface cards | |
CN109815076A (en) | A kind of network interface card boot option detection method, system, terminal and storage medium | |
CN109815070A (en) | A kind of HOST-BOX server stability test method, apparatus, terminal and storage medium | |
CN106131020B (en) | Firewall virtualization module and management method | |
CN109871250A (en) | Desktop delivery method, device, terminal and storage medium based on physical display card | |
CN109189638A (en) | A kind of GPU driving detection method, device, terminal and storage medium | |
CN109992420A (en) | A kind of Parallel PC IE-SSD performance optimization method and system | |
CN109361543A (en) | A kind of whole machine cabinet monitoring method, device, terminal and storage medium | |
CN109086214A (en) | A kind of database write performance test methods, device, terminal and storage medium | |
CN109324935A (en) | A kind of system cold start-up test method, device, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190607 |
|
WW01 | Invention patent application withdrawn after publication |