CN102831022B - The method and apparatus of amendment system configuration - Google Patents

The method and apparatus of amendment system configuration Download PDF

Info

Publication number
CN102831022B
CN102831022B CN201210265548.XA CN201210265548A CN102831022B CN 102831022 B CN102831022 B CN 102831022B CN 201210265548 A CN201210265548 A CN 201210265548A CN 102831022 B CN102831022 B CN 102831022B
Authority
CN
China
Prior art keywords
startupoptions
copy
bios
basic input
former
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.)
Active
Application number
CN201210265548.XA
Other languages
Chinese (zh)
Other versions
CN102831022A (en
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.)
Zhejiang Shuguang Information Technology Co ltd
Original Assignee
Dawning Information Industry Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN201210265548.XA priority Critical patent/CN102831022B/en
Publication of CN102831022A publication Critical patent/CN102831022A/en
Application granted granted Critical
Publication of CN102831022B publication Critical patent/CN102831022B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of method and apparatus revising system configuration, wherein, the method comprises: the startupoptions copy storing Basic Input or Output System (BIOS); Receive the order of the described startupoptions copy of amendment, and described startupoptions copy is modified; The former startupoptions of the described startupoptions copy stored and Basic Input or Output System (BIOS) is compared; According to comparative result, the former startupoptions of described Basic Input or Output System (BIOS) is modified.The present invention is by storing the startupoptions copy of Basic Input or Output System (BIOS), receive the order of amendment startupoptions copy, and startupoptions copy is modified, the startupoptions copy of storage and the former startupoptions of Basic Input or Output System (BIOS) are compared, then, according to comparative result, the former startupoptions of Basic Input or Output System (BIOS) is modified.Therefore, the program can realize script language calling, highly realizes robotization, and improves the work efficiency of computing machine.

Description

The method and apparatus of amendment system configuration
Technical field
The present invention relates to computer realm, and especially, relate to a kind of method and apparatus revising system configuration.
Background technology
Along with the rise of script, some business perform sequence can by compile script thus automatic, orderly and controlled being performed, and the most important thing is, the process that these operations are performed does not need people manually to intervene, and therefore can save human cost, but the boot option modification of Basic Input or Output System (BIOS) (BIOS) can only in computer starting initialization procedure, artificially keyboard is operated and just can enter Basic Input or Output System (BIOS) setting (BIOS Setup) interface, and find in the menu of various complexity and then revise corresponding option, so when needing the startupoptions revising some BIOS in some traffic sequence, script just cannot remove by some order the option revising these BIOS, which decrease the work efficiency of computing machine, also cannot reach the computer run in unmanned situation simultaneously.
Therefore, existing scheme cannot realize the configuration automatically revising system, and cannot be called by script, inefficiency.
For realizing the configuration automatically revising system in correlation technique, and cannot be called by script, ineffective problem, not yet propose effective solution at present.
Summary of the invention
For realizing the configuration automatically revising system in correlation technique, and cannot be called by script, ineffective problem, the present invention proposes a kind of apparatus and method revising system configuration, automaticity and efficiency can be improved, and can script language calling be realized.
Technical scheme of the present invention is achieved in that
According to an aspect of the present invention, a kind of method revising system configuration is provided.
Method according to amendment system configuration of the present invention comprises:
Store the startupoptions copy of Basic Input or Output System (BIOS);
Receive the order of amendment startupoptions copy, and startupoptions copy is modified;
The startupoptions copy of storage and the former startupoptions of Basic Input or Output System (BIOS) are compared;
According to comparative result, the former startupoptions of Basic Input or Output System (BIOS) is modified.
Wherein, the startupoptions copy of storage and the former startupoptions of Basic Input or Output System (BIOS) compared comprise:
The startupoptions copy of storage and the former startupoptions of Basic Input or Output System (BIOS) are called in internal memory, and in internal memory, startupoptions copy and former startupoptions is compared.
Further, the startupoptions copy storing Basic Input or Output System (BIOS) comprises:
Baseboard management controller stores startupoptions copy.
In addition, the method comprises further:
Prejudge RTC battery whether to be pulled out, when judged result is no, receives the order of amendment startupoptions copy, and startupoptions copy is modified.
And, when RTC battery is pulled out, be then default value by the former boot settings configuration of Basic Input or Output System (BIOS), and according to former startupoptions, the startupoptions copy stored carried out synchronously.
Alternatively, after baseboard management controller receives the order of amendment startupoptions copy, the method can comprise further:
Basic Input or Output System (BIOS) restarts.
According to an aspect of the present invention, a kind of device revising system configuration is provided.
Device according to amendment system configuration of the present invention comprises:
Memory module, for storing the startupoptions copy of Basic Input or Output System (BIOS);
Receiver module, for receiving the order of amendment startupoptions copy;
First modified module, for modifying to startupoptions copy according to order;
Comparison module, for the former startupoptions of the startupoptions copy and Basic Input or Output System (BIOS) that compare storage;
Second modified module, for according to comparative result, modifies to the former startupoptions of Basic Input or Output System (BIOS).
Wherein, comparison module is used for the startupoptions copy of storage and the former startupoptions of Basic Input or Output System (BIOS) to call in internal memory, and compares startupoptions copy and former startupoptions in internal memory.
This device may further include:
Whether judge module, be pulled out for prejudging RTC battery;
Further, the first modified module is used for when judged result is no, according to the order of the amendment startupoptions copy received, modifies to startupoptions copy.
Further, this device can further include:
The former boot settings configuration of Basic Input or Output System (BIOS), for when RTC battery is pulled out, is default value by synchronization module, and carries out synchronously the startupoptions copy stored according to former startupoptions.
The present invention is by storing the startupoptions copy of Basic Input or Output System (BIOS), receive the order of amendment startupoptions copy, and startupoptions copy is modified, the startupoptions copy of storage and the former startupoptions of Basic Input or Output System (BIOS) are compared, then, according to comparative result, the former startupoptions of Basic Input or Output System (BIOS) is modified.Therefore, the program can realize script language calling, highly realizes robotization, and improves the work efficiency of computing machine.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the method for amendment system configuration according to the embodiment of the present invention;
Fig. 2 is the block diagram of the device of amendment system configuration according to the embodiment of the present invention;
Fig. 3 is the process flow diagram of the instantiation of the method for testing of Dynamic System according to the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain, all belongs to the scope of protection of the invention.
According to embodiments of the invention, provide a kind of method revising system configuration.
As shown in Figure 1, the method for testing of Dynamic System of the present invention comprises:
Step S101, stores the startupoptions copy of Basic Input or Output System (BIOS);
Step S103, receives the order of amendment startupoptions copy and modifies to startupoptions copy;
Step S105, compares the startupoptions copy of storage and the former startupoptions of Basic Input or Output System (BIOS);
Step S107, according to comparative result, modifies to the former startupoptions of Basic Input or Output System (BIOS).
Wherein, when the startupoptions copy of storage and the former startupoptions of Basic Input or Output System (BIOS) are compared, the former startupoptions of the startupoptions copy of storage and Basic Input or Output System (BIOS) can be called in internal memory, and in internal memory, startupoptions copy and former startupoptions be compared.
Further, when storing the startupoptions copy of Basic Input or Output System (BIOS), startupoptions copy can be stored by baseboard management controller.
Further, the method can also comprise:
Prejudge RTC battery whether to be pulled out, when judged result is no, receives the order of amendment startupoptions copy, and startupoptions copy is modified.
And, when RTC battery is pulled out, be then default value by the former boot settings configuration of Basic Input or Output System (BIOS), and according to former startupoptions, the startupoptions copy stored carried out synchronously.
Alternatively, after baseboard management controller receives the order of amendment startupoptions copy, the method comprises further:
Basic Input or Output System (BIOS) restarts.
According to embodiments of the invention, additionally provide a kind of device revising system configuration.
As shown in Figure 2, comprise according to the device of the amendment system configuration of the embodiment of the present invention:
Memory module 1, for storing the startupoptions copy of Basic Input or Output System (BIOS);
Receiver module 2, for receiving the order of amendment startupoptions copy;
First modified module 3, for modifying to startupoptions copy according to order;
Comparison module 4, for the former startupoptions of the startupoptions copy and Basic Input or Output System (BIOS) that compare storage;
Second modified module 5, for according to comparative result, modifies to the former startupoptions of Basic Input or Output System (BIOS).
Wherein, comparison module 4 for calling the startupoptions copy of storage and the former startupoptions of Basic Input or Output System (BIOS) in internal memory, and compares startupoptions copy and former startupoptions in internal memory.
Further, this device comprises:
Whether judge module (not shown), be pulled out for prejudging RTC battery;
Further, the first modified module 3 is for being no in judged result, according to the order of the amendment startupoptions copy received, startupoptions copy is modified.
Further, comprise further:
The former boot settings configuration of Basic Input or Output System (BIOS), for when RTC battery is pulled out, is default value by synchronization module (not shown), and carries out synchronously the startupoptions copy stored according to former startupoptions.
By means of technique scheme of the present invention, can modify to the configuration of system in several cases.Such as, when user revises startupoptions in BIOS Setup time, Baseboard Management Controller (BMC) copy should be upgraded when user releases BIOS Setup program; Whether BIOS detecting BMC copy of having the ability was initialised, if be not initialised, then by the configuration synchronization of BIOS this locality to BMC; Whether the BIOS detecting RTC Battery that should have the ability is pulled out, and by the local configuration synchronization of BIOS that resets to defaults to BMC.
As shown in Figure 3, to revise BIOS, the process of the solution of the present invention when revising system configuration is as follows:
Step 301, initialization in-band management submodule;
Step 302, judges whether real-time timepiece chip (RTC) battery is extracted;
If the judged result of step 302 is not for extract, then perform step 303;
Step 303, reads and compares BMC copy, then judging whether identical;
Judged result as step 303 is not identical, then perform step 304;
Step 304, synchronous BIOS this locality configuration, then performs step 305;
Step 305, reset system, then EOP (end of program);
Judged result as step 303 is identical, then perform step 308;
Step 308, judges whether to enter SETUP interface;
Judged result as step 308 is no, then process terminates;
Judged result as step 308 is yes, then perform step 309;
Step 309, synchronous local configuration is to BMC, and then process terminates;
If the judged result of step 302 is for extracting, then perform step 306;
Step 306, resets BIOS and is configured to default value, perform step 307 afterwards;
Step 307, synchronous local configuration, to BMC, performs above-mentioned steps 308 afterwards.
In sum, by means of technique scheme of the present invention, by storing the startupoptions copy of Basic Input or Output System (BIOS), receive the order of amendment startupoptions copy, and startupoptions copy is modified, the startupoptions copy of storage and the former startupoptions of Basic Input or Output System (BIOS) are compared, then, according to comparative result, the former startupoptions of Basic Input or Output System (BIOS) is modified.Therefore, the program can realize script language calling, highly realizes robotization, and improves the work efficiency of computing machine.Such as, the present invention mainly realizes in BIOS, and BMC plays function that is auxiliary and storage BIOS startupoptions copy.In script, notify that BMC makes it change BIOS startupoptions copy by IPMI order, restart rear BIOS will remove to access the startupoptions copy be stored in BMC by KCS interface and compare with local boot option, if not identical both finding, then according to corresponding relation, corresponding for this locality option is upgraded, and reset system.After the program of the program puts into common BIOS, BIOS option can be configured in any version of Linux and Windows, through unit and pressure test no problem simultaneously.Similarly, for the system of the other types except BIOS, amendment can be configured in the manner described above equally.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1., based on a method for the amendment system configuration of basic input/output, it is characterized in that,
Store the startupoptions copy of Basic Input or Output System (BIOS);
Receive the order of the described startupoptions copy of amendment, and described startupoptions copy is modified;
The former startupoptions of the described startupoptions copy stored and Basic Input or Output System (BIOS) is compared;
According to comparative result, the former startupoptions of described Basic Input or Output System (BIOS) is modified;
Wherein, described startupoptions copy is stored by baseboard management controller;
Wherein, described method also comprises:
Prejudge RTC battery whether to be pulled out, when judged result is no, receives the order of the described startupoptions copy of amendment, and described startupoptions copy is modified;
When described RTC battery is pulled out, be then default value by the former boot settings configuration of described Basic Input or Output System (BIOS), and according to described former startupoptions, the described startupoptions copy stored carried out synchronously.
2. method according to claim 1, is characterized in that, the described startupoptions copy of storage and the former startupoptions of Basic Input or Output System (BIOS) is compared and comprises:
The former startupoptions of the described startupoptions copy stored and Basic Input or Output System (BIOS) is called in internal memory, and in described internal memory, described startupoptions copy and described former startupoptions is compared.
3. method according to claim 1, is characterized in that, after the order of the described startupoptions copy of described reception amendment, the method comprises further:
Described Basic Input or Output System (BIOS) restarts.
4., based on a device for the amendment system configuration of basic input/output, it is characterized in that,
Memory module, for storing the startupoptions copy of Basic Input or Output System (BIOS), wherein, stores described startupoptions copy by baseboard management controller;
Receiver module, for receiving the order revising described startupoptions copy;
First modified module, for modifying to described startupoptions copy according to described order;
Comparison module, for the former startupoptions of the described startupoptions copy and Basic Input or Output System (BIOS) that compare storage;
Second modified module, for according to comparative result, modifies to the former startupoptions of described Basic Input or Output System (BIOS);
Whether judge module, be pulled out for prejudging RTC battery;
Further, described first modified module is used for when judged result is no, according to the order of the described startupoptions copy of amendment received, modifies to described startupoptions copy;
The former boot settings configuration of described Basic Input or Output System (BIOS), for when described RTC battery is pulled out, is default value by synchronization module, and carries out synchronously the described startupoptions copy stored according to described former startupoptions.
5. device according to claim 4, it is characterized in that, described comparison module is used for the former startupoptions of the described startupoptions copy stored and Basic Input or Output System (BIOS) to call in internal memory, and compares described startupoptions copy and described former startupoptions in described internal memory.
CN201210265548.XA 2012-07-27 2012-07-27 The method and apparatus of amendment system configuration Active CN102831022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210265548.XA CN102831022B (en) 2012-07-27 2012-07-27 The method and apparatus of amendment system configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210265548.XA CN102831022B (en) 2012-07-27 2012-07-27 The method and apparatus of amendment system configuration

Publications (2)

Publication Number Publication Date
CN102831022A CN102831022A (en) 2012-12-19
CN102831022B true CN102831022B (en) 2015-08-26

Family

ID=47334171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210265548.XA Active CN102831022B (en) 2012-07-27 2012-07-27 The method and apparatus of amendment system configuration

Country Status (1)

Country Link
CN (1) CN102831022B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412769B (en) * 2013-07-25 2017-11-21 华为技术有限公司 External card parameter configuration, equipment and system
CN103593250A (en) * 2013-11-19 2014-02-19 浪潮电子信息产业股份有限公司 Realizing method for modifying BIOS Setup option out of band
CN104601373A (en) * 2015-01-05 2015-05-06 浪潮电子信息产业股份有限公司 Method for setting and synchronizing BIOS configuration parameters in out-of-band mode
CN106155716A (en) * 2015-03-30 2016-11-23 联想(北京)有限公司 The configuration store method of BIOS and configuration save set
CN105005471A (en) * 2015-06-24 2015-10-28 北京百度网讯科技有限公司 Method, device, server and system for modifying configuration parameters of BIOS
CN105138362B (en) * 2015-08-20 2018-09-07 浪潮(北京)电子信息产业有限公司 The method and device of user configuration is preserved under a kind of Linux system
CN106533538B (en) * 2016-11-17 2020-05-26 航天恒星科技有限公司 Satellite communication system real-time configuration method based on double buffer mechanisms
CN108052350A (en) * 2017-12-28 2018-05-18 合肥联宝信息技术有限公司 A kind of method and apparatus of automatic setting BIOS
CN108256332A (en) * 2018-01-17 2018-07-06 郑州云海信息技术有限公司 A kind of method of the BIOS startup passwords setting based on IPMI orders
CN109815721A (en) * 2019-01-30 2019-05-28 郑州云海信息技术有限公司 A kind of method, apparatus, terminal and storage medium for modifying BIOS Setup option password by BMC
CN111949332A (en) * 2020-08-27 2020-11-17 英业达科技有限公司 Method, system and device for modifying options of basic input and output system
CN114003516B (en) * 2021-12-30 2022-05-10 深圳市吉方工控有限公司 Method, system, equipment and storage medium for setting BIOS as default value

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1624661A (en) * 2003-11-06 2005-06-08 微软公司 Optimizing file replication using binary comparisons
CN101814033A (en) * 2009-02-19 2010-08-25 英业达股份有限公司 Setting method of basic input/output system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070234104A1 (en) * 2006-03-28 2007-10-04 Inventec Corporation Computer platform setup configuration data backup handling method and system
CN101414276B (en) * 2007-10-19 2010-09-29 华硕电脑股份有限公司 Method and apparatus for reducing data
CN101840365B (en) * 2010-04-30 2012-08-29 广州广电运通金融电子股份有限公司 Safe protection method and system for BIOS (Basic Input/Output System)
CN102298414A (en) * 2010-06-22 2011-12-28 鸿富锦精密工业(深圳)有限公司 Server time synchronizing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1624661A (en) * 2003-11-06 2005-06-08 微软公司 Optimizing file replication using binary comparisons
CN101814033A (en) * 2009-02-19 2010-08-25 英业达股份有限公司 Setting method of basic input/output system

Also Published As

Publication number Publication date
CN102831022A (en) 2012-12-19

Similar Documents

Publication Publication Date Title
CN102831022B (en) The method and apparatus of amendment system configuration
EP2998861A1 (en) Implementing and deleting method and device for intelligent terminal multi-operation system
CN101937351B (en) Method and system for automatically installing application software
CN106201574B (en) Application interface starting method and device
CN109491736B (en) Display method and device of pop-up frame window
CN105630465A (en) Display screen parameter setting method applied to terminal and terminal
CN102567063A (en) Method and device for automatically installing software
CN106569854B (en) Method and system for setting equipment firmware and realizing factory test
CN101957771A (en) Method and device for installing mobile software for multiple mobile phones simultaneously
CN109947450A (en) System file upgrade method, device, mobile terminal and readable storage medium storing program for executing
CN103701653A (en) Processing method for interface hot plugging and unplugging configuration data and network configuration server
CN104102498A (en) Mobile terminal and booting method thereof
CN106919423B (en) Firmware upgrading method and device
CN106372009B (en) In a kind of Mac system with the method and device of USB device communication
CN102184375A (en) Management method and terminal of data in subscriber identity module (SIM) card
CN104111862A (en) Method and system for obtaining IP (Internet Protocol) address of virtual machine in cloud computing platform
CN105373415A (en) Virtualization based application storage method, execution method, apparatus and system
CN111444253A (en) Data import method and device, computer readable storage medium and computer equipment
CN106445601A (en) Device and method for plugin upgrading
US20220374644A1 (en) Edge computing-based control method and apparatus, edge device and storage medium
CN111147400B (en) Method and device for command line configuration synchronization and electronic equipment
CN103853959A (en) Permission control device and method
CN106293835A (en) A kind of method and system of smart machine firmware upgrade
CN107545186A (en) It is quick to solve the idle method, apparatus of engine and system
CN108848187B (en) Method, device and equipment for establishing communication connection and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100193 Beijing, Haidian District, northeast Wang West Road, building 8, No. 36

Applicant after: Dawning Information Industry (Beijing) Co.,Ltd.

Address before: 100193 Shuguang building, Zhongguancun Software Park, Haidian District, Beijing

Applicant before: Dawning Information Industry (Beijing) Co.,Ltd.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Calendar Army

Inventor after: Ma Li

Inventor before: Ma Li

COR Change of bibliographic data
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20121219

Assignee: JIANGSU DAWN INFORMATION TECHNOLOGY Co.,Ltd.

Assignor: Dawning Information Industry (Beijing) Co.,Ltd.

Contract record no.: 2017320000013

Denomination of invention: Method and device for modifying system configuration

Granted publication date: 20150826

License type: Exclusive License

Record date: 20170217

LICC Enforcement, change and cancellation of record of contracts on the licence for exploitation of a patent or utility model
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220728

Address after: 100089 building 36, courtyard 8, Dongbeiwang West Road, Haidian District, Beijing

Patentee after: Dawning Information Industry (Beijing) Co.,Ltd.

Patentee after: DAWNING INFORMATION INDUSTRY Co.,Ltd.

Address before: 100193 No. 36 Building, No. 8 Hospital, Wangxi Road, Haidian District, Beijing

Patentee before: Dawning Information Industry (Beijing) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231102

Address after: 2nd and 3rd floors, Building D, Lianhui Science and Technology Innovation Center, No. 88 Lianhui Street, Xixing Street, Binjiang District, Hangzhou City, Zhejiang Province, 310052

Patentee after: Zhejiang Shuguang Information Technology Co.,Ltd.

Address before: 100089 building 36, courtyard 8, Dongbeiwang West Road, Haidian District, Beijing

Patentee before: Dawning Information Industry (Beijing) Co.,Ltd.

Patentee before: DAWNING INFORMATION INDUSTRY Co.,Ltd.