CN107220150A - A kind of method of testing and system for changing BIOS option by IPMI instruments based on linux system - Google Patents

A kind of method of testing and system for changing BIOS option by IPMI instruments based on linux system Download PDF

Info

Publication number
CN107220150A
CN107220150A CN201710390125.3A CN201710390125A CN107220150A CN 107220150 A CN107220150 A CN 107220150A CN 201710390125 A CN201710390125 A CN 201710390125A CN 107220150 A CN107220150 A CN 107220150A
Authority
CN
China
Prior art keywords
bios
ipmi
order
default value
option
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
CN201710390125.3A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710390125.3A priority Critical patent/CN107220150A/en
Publication of CN107220150A publication Critical patent/CN107220150A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2289Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by configuration test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • 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

Abstract

The invention provides a kind of method of testing and system for changing BIOS option by IPMI instruments based on linux system, IPMI services are enabled by starting order, BIOS Setup options are carried out first enables setting, change BIOS option currency and default value, it is default value flag bit to set currency synchronous vacations, system is restarted after being provided with, the method and system of the present invention being capable of fast construction test environment, the shortening testing time is easy to test to be smoothed out, ensure product quality, facilitate test to carry out, save the testing time.

Description

A kind of method of testing for changing BIOS option by IPMI instruments based on linux system And system
Technical field
The present invention relates to the technical field of computer server, and in particular to passes through IPMI based on linux system to one kind Instrument changes the method for testing and system of BIOS option.
Background technology
BIOS is one group of program being cured in computer on mainboard on a rom chip, and its in store computer is most heavy Self-check program and system self-triggered program after the programs of the basic input and output wanted, start, it read-write system can set from CMOS The specifying information put, its major function is to provide the bottom, most direct hardware setting and control for computer.BIOS is clothes Business one indispensable critical function of device, it is very multi-functional to realize the support for being required for BIOS.In testing, it is often necessary to repair Change BIOS option to support to test required environment, but the option in BIOS is very more, can be with simple and convenient so being badly in need of one kind Modification BIOS option method.
The content of the invention
Based on above mentioned problem, the present invention proposes a kind of survey for changing BIOS option by IPMI instruments based on linux system Method for testing and system.
The present invention provides following technical scheme:
On the one hand, the present invention provides a kind of method of testing for changing BIOS option by IPMI instruments based on linux system, Including:
Step 101, IPMI services are enabled;
Step 102, BIOS Setup options, which are enabled, is set;
Step 103, modification BIOS option currency and default value;
Step 104, it is default value flag bit to set currency synchronous vacations;
Step 105, system is restarted after being provided with so that BIOS, which is set, to come into force.
Wherein, it is described enable IPMI service order be:service ipmi start.
Wherein, the setting BIOS Setup options are enabled and are set to:By setting BIOS Setup options to enable order It is configured, the order is ipmitool raw 0x3a 0x1a 01.
Wherein, the modification BIOS option currency is with default value:Set by BIOS option order:ipmitool Raw 0x3e 0x20param1 0x00param2, wherein param1 for the BIOS option to be set Offset values, Param2 is to be set the value in BIOS option Description.
Wherein, it is that default value flag bit is to set currency synchronous vacations:Default settings mark order of the bit: Ipmitool raw 0x3e 0x23 0x00/0x01, last 0x00 of default settings order represent to be not provided with default value, 0x01 represents default settings.
In addition, the present invention also provides a kind of test system for changing BIOS option by IPMI instruments based on linux system, The system includes:
Starting module, for enabling IPMI services;
Setup module, enables for BIOS Setup options and sets, modification BIOS option currency and default value, and setting will be current Value synchronous vacations are default value flag bit;
Module is restarted, for restarting system after being provided with so that BIOS, which is set, to come into force.
Wherein, it is described enable IPMI service order be:service ipmi start.
Wherein, the setting BIOS Setup options are enabled and are set to:By setting BIOS Setup options to enable order It is configured, the order is ipmitool raw 0x3a 0x1a 01.
Wherein, the modification BIOS option currency is with default value:Set by BIOS option order:ipmitool Raw 0x3e 0x20param1 0x00param2, wherein param1 for the BIOS option to be set Offset values, Param2 is to be set the value in BIOS option Description.
Wherein, it is that default value flag bit is to set currency synchronous vacations:Default settings mark order of the bit: Ipmitool raw 0x3e 0x23 0x00/0x01, last 0x00 of default settings order represent to be not provided with default value, 0x01 represents default settings.
The invention provides a kind of based on linux system is by the method for testing of IPMI instruments modification BIOS option and is System, enables IPMI services by starting order, BIOS Setup options is carried out first and enable setting, BIOS option currency is changed With default value, it is default value flag bit to set currency synchronous vacations, restarts system after being provided with, method of the invention and System can fast construction test environment, shorten the testing time be easy to test to be smoothed out, it is ensured that product quality, facilitate test Carry out, save the testing time.
Brief description of the drawings
Fig. 1 is the method and step flow chart of the present invention;
Fig. 2 is the system architecture diagram of the present invention.
Embodiment
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below by using required in embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ability For the those of ordinary skill of domain, on the premise of not paying creative work, it can also be obtained according to these accompanying drawings other attached Figure.
The present invention provides a kind of method of testing for changing BIOS option by IPMI instruments based on linux system, including:
Step 101, IPMI services are enabled;
Wherein, it is described enable IPMI service order be:service ipmi start.
Step 102, BIOS Setup options, which are enabled, is set;
Set needs first to confirm to set BIOS Setup enable whether be set to 1 before BIOS Setup, only can just enter for 1 Row BIOS is set.Querying command:Ipmitool raw 0x3a 0x19, return value is 01, illustrates to set BIOS Setup options Enable, BIOS option setting can be carried out, otherwise can not.BIOS Setup options are set to enable order:ipmitool raw 0x3a 0x1a 01, disabling order:ipmitool raw 0x3a 0x1a 00.
Step 103, modification BIOS option currency and default value;
1) BIOS option currency order is read:ipmitool raw 0x3e 0x21param1 0x00 0x01;2) set Put BIOS option orders:ipmitool raw 0x3e 0x20param1 0x00param2;
Param1 is the Offset values for the BIOS option to be set, and param2 to be set the BIOS option value to be exactly Value in Description;
It is as shown in the table:
Step 104, it is default value flag bit to set currency synchronous vacations;
Inquire about default settings mark order of the bit:Ipmitool raw 0x3e 0x23 0x01, Res:00, return value 00 Expression is not provided with default value, and 01 represents default settings, default settings mark order of the bit:ipmitool raw 0x3e 0x23 0x00 0x01, last 0x00 of default settings order represents to be not provided with default value, and 0x01 represents default settings.
Step 105, system is restarted after being provided with so that BIOS, which is set, to come into force.
, it is necessary to restart system so that BIOS settings come into force after being provided with.
The invention provides a kind of method of testing for changing BIOS option by IPMI instruments based on linux system, pass through Start order and enable IPMI services, BIOS Setup options are carried out first and enable setting, modification BIOS option currency and acquiescence Value, it is default value flag bit to set currency synchronous vacations, and system, method and system energy of the invention are restarted after being provided with Enough fast construction test environments, the shortening testing time is easy to test to be smoothed out, it is ensured that product quality, facilitates test and carries out,
Save the testing time.
Embodiments of the present invention additionally provide a kind of survey for changing BIOS option by IPMI instruments based on linux system Test system, including:
Starting module 201, for enabling IPMI services;
Wherein, it is described enable IPMI service order be:service ipmi start.
Setup module 202, enables for BIOS Setup options and sets, modification BIOS option currency and default value, if It is default value flag bit to put currency synchronous vacations;
Set needs first to confirm to set BIOS Setup enable whether be set to 1 before BIOS Setup, only can just enter for 1 Row BIOS is set.Querying command:Ipmitool raw 0x3a 0x19, return value is 01, illustrates to set BIOS Setup options Enable, BIOS option setting can be carried out, otherwise can not.BIOS Setup options are set to enable order:ipmitool raw 0x3a 0x1a 01, disabling order:ipmitool raw 0x3a 0x1a 00.
1) BIOS option currency order is read:ipmitool raw 0x3e 0x21param1 0x00 0x01;2) set Put BIOS option orders:ipmitool raw 0x3e 0x20param1 0x00param2;
Param1 is the Offset values for the BIOS option to be set, and param2 to be set the BIOS option value to be exactly Value in Description;
It is as shown in the table:
Inquire about default settings mark order of the bit:Ipmitool raw 0x3e 0x23 0x01, Res:00, return value 00 Expression is not provided with default value, and 01 represents default settings, default settings mark order of the bit:ipmitool raw 0x3e 0x23 0x00 0x01, last 0x00 of default settings order represents to be not provided with default value, and 0x01 represents default settings.
Module 203 is restarted, for restarting system after being provided with so that BIOS, which is set, to come into force.
, it is necessary to restart system so that BIOS settings come into force after being provided with.
The invention provides a kind of test system for changing BIOS option by IPMI instruments based on linux system, pass through Start order and enable IPMI services, BIOS Setup options are carried out first and enable setting, modification BIOS option currency and acquiescence Value, it is default value flag bit to set currency synchronous vacations, and system, method and system energy of the invention are restarted after being provided with Enough fast construction test environments, the shortening testing time is easy to test to be smoothed out, it is ensured that product quality, facilitates test and carries out, Save the testing time.
The foregoing description of the disclosed embodiments, enables those skilled in the art to realize or using the present invention.To this A variety of modifications of a little embodiments will be apparent for a person skilled in the art, and generic principles defined herein can Without departing from the spirit or scope of the present invention, to realize in other embodiments.Therefore, the present invention will not be limited The embodiments shown herein is formed on, but meets the most wide model consistent with features of novelty with principles disclosed herein Enclose.

Claims (10)

1. a kind of method of testing for changing BIOS option by IPMI instruments based on linux system, it is characterised in that:
Step 101, IPMI services are enabled;
Step 102, BIOS Setup options, which are enabled, is set;
Step 103, modification BIOS option currency and default value;
Step 104, it is default value flag bit to set currency synchronous vacations;
Step 105, system is restarted after being provided with so that BIOS, which is set, to come into force.
2. according to the method described in claim 1, it is characterised in that:It is described enable IPMI service order be:service ipmi start。
3. according to the method described in claim 1, it is characterised in that:The setting BIOS Setup options are enabled and are set to:It is logical Cross the enable order of setting BIOS Setup options to be configured, the order is ipmitool raw 0x3a 0x1a 01.
4. according to the method described in claim 1, it is characterised in that:It is described modification BIOS option currency be with default value:It is logical Cross BIOS option order setting:Ipmitool raw 0x3e 0x20 param1 0x00 param2, wherein param1 is is wanted The Offset values of the BIOS option of setting, param2 is to be set the value in BIOS option Description.
5. according to the method described in claim 1, it is characterised in that:It is default value flag bit to set currency synchronous vacations For:Default settings mark order of the bit:Ipmitool raw 0x3e 0x23 0x00/0x01, default settings order last Position 0x00 represent to be not provided with default value, 0x01 represents default settings.
6. a kind of test system for changing BIOS option by IPMI instruments based on linux system, it is characterised in that:The system Including:
Starting module, for enabling IPMI services;
Setup module, enables for BIOS Setup options and sets, modification BIOS option currency and default value, and setting will be current Value synchronous vacations are default value flag bit;
Module is restarted, for restarting system after being provided with so that BIOS, which is set, to come into force.
7. system according to claim 6, it is characterised in that:It is described enable IPMI service order be:service ipmi start。
8. system according to claim 6, it is characterised in that:The setting BIOS Setup options are enabled and are set to:It is logical Cross the enable order of setting BIOS Setup options to be configured, the order is ipmitool raw 0x3a 0x1a 01.
9. system according to claim 6, it is characterised in that:It is described modification BIOS option currency be with default value:It is logical Cross BIOS option order setting:Ipmitool raw 0x3e 0x20 param1 0x00 param2, wherein param1 is is wanted The Offset values of the BIOS option of setting, param2 is to be set the value in BIOS option Description.
10. system according to claim 6, it is characterised in that:It is default value flag bit to set currency synchronous vacations For:Default settings mark order of the bit:Ipmitool raw 0x3e 0x23 0x00/0x01, default settings order last Position 0x00 represent to be not provided with default value, 0x01 represents default settings.
CN201710390125.3A 2017-05-27 2017-05-27 A kind of method of testing and system for changing BIOS option by IPMI instruments based on linux system Pending CN107220150A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710390125.3A CN107220150A (en) 2017-05-27 2017-05-27 A kind of method of testing and system for changing BIOS option by IPMI instruments based on linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710390125.3A CN107220150A (en) 2017-05-27 2017-05-27 A kind of method of testing and system for changing BIOS option by IPMI instruments based on linux system

Publications (1)

Publication Number Publication Date
CN107220150A true CN107220150A (en) 2017-09-29

Family

ID=59948118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710390125.3A Pending CN107220150A (en) 2017-05-27 2017-05-27 A kind of method of testing and system for changing BIOS option by IPMI instruments based on linux system

Country Status (1)

Country Link
CN (1) CN107220150A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107894934A (en) * 2017-10-10 2018-04-10 曙光信息产业(北京)有限公司 Control the method, apparatus and server of BIOS Debugging message output
CN109359041A (en) * 2018-10-08 2019-02-19 郑州云海信息技术有限公司 A kind of test method and system for distinguishing BIOS option set meal by PPN
CN109558327A (en) * 2018-12-04 2019-04-02 浪潮电子信息产业股份有限公司 A kind of wiring method, system and the associated component of BMC log
CN109669863A (en) * 2018-12-03 2019-04-23 郑州云海信息技术有限公司 A kind of BIOS option function test method and system based on AMI BIOS
CN109800022A (en) * 2019-01-25 2019-05-24 郑州云海信息技术有限公司 A kind of method, system, terminal and the storage medium of automation comparison BIOS information difference
CN111708705A (en) * 2020-06-19 2020-09-25 山东云海国创云计算装备产业创新中心有限公司 Method, device, equipment and medium for testing automatic repair function of BIOS
CN113010214A (en) * 2021-03-12 2021-06-22 山东英信计算机技术有限公司 BIOS option setting method, system and storage medium
CN114253618A (en) * 2021-12-20 2022-03-29 东莞记忆存储科技有限公司 BIOS modification method and device based on different manufacturers, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789396A (en) * 2011-05-18 2012-11-21 鸿富锦精密工业(深圳)有限公司 Switching system and method for BIOS (Basic Input/Output System) configuration mode
CN103473141A (en) * 2013-09-13 2013-12-25 浪潮电子信息产业股份有限公司 Method for out-of-band check and modification of BIOS (basic input/output system) setting options
CN105224459A (en) * 2015-10-21 2016-01-06 浪潮电子信息产业股份有限公司 Under a kind of LINUX platform, test b MC is by the method for OEM order read-write BIOS configuration feature
CN105302621A (en) * 2015-12-09 2016-02-03 浪潮电子信息产业股份有限公司 Method for remotely achieving initial value restoration of server BIOS Setup
CN105721206A (en) * 2016-01-29 2016-06-29 浪潮电子信息产业股份有限公司 Method for setting BMC (Baseboard Management Controller) network parameters to take effect immediately in BIOS

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789396A (en) * 2011-05-18 2012-11-21 鸿富锦精密工业(深圳)有限公司 Switching system and method for BIOS (Basic Input/Output System) configuration mode
CN103473141A (en) * 2013-09-13 2013-12-25 浪潮电子信息产业股份有限公司 Method for out-of-band check and modification of BIOS (basic input/output system) setting options
CN105224459A (en) * 2015-10-21 2016-01-06 浪潮电子信息产业股份有限公司 Under a kind of LINUX platform, test b MC is by the method for OEM order read-write BIOS configuration feature
CN105302621A (en) * 2015-12-09 2016-02-03 浪潮电子信息产业股份有限公司 Method for remotely achieving initial value restoration of server BIOS Setup
CN105721206A (en) * 2016-01-29 2016-06-29 浪潮电子信息产业股份有限公司 Method for setting BMC (Baseboard Management Controller) network parameters to take effect immediately in BIOS

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107894934A (en) * 2017-10-10 2018-04-10 曙光信息产业(北京)有限公司 Control the method, apparatus and server of BIOS Debugging message output
CN109359041A (en) * 2018-10-08 2019-02-19 郑州云海信息技术有限公司 A kind of test method and system for distinguishing BIOS option set meal by PPN
CN109669863A (en) * 2018-12-03 2019-04-23 郑州云海信息技术有限公司 A kind of BIOS option function test method and system based on AMI BIOS
CN109558327A (en) * 2018-12-04 2019-04-02 浪潮电子信息产业股份有限公司 A kind of wiring method, system and the associated component of BMC log
CN109800022A (en) * 2019-01-25 2019-05-24 郑州云海信息技术有限公司 A kind of method, system, terminal and the storage medium of automation comparison BIOS information difference
CN111708705A (en) * 2020-06-19 2020-09-25 山东云海国创云计算装备产业创新中心有限公司 Method, device, equipment and medium for testing automatic repair function of BIOS
CN111708705B (en) * 2020-06-19 2022-07-05 山东云海国创云计算装备产业创新中心有限公司 Method, device, equipment and medium for testing automatic repair function of BIOS
CN113010214A (en) * 2021-03-12 2021-06-22 山东英信计算机技术有限公司 BIOS option setting method, system and storage medium
CN113010214B (en) * 2021-03-12 2022-11-25 山东英信计算机技术有限公司 BIOS option setting method, system and storage medium
CN114253618A (en) * 2021-12-20 2022-03-29 东莞记忆存储科技有限公司 BIOS modification method and device based on different manufacturers, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107220150A (en) A kind of method of testing and system for changing BIOS option by IPMI instruments based on linux system
KR102219857B1 (en) An electronic device and operating method thereof
US10958850B2 (en) Electronic device and method for capturing image by using display
EP2911377B1 (en) Method of providing preview image regarding display setting for device
US8990914B2 (en) Device, method, and system for augmented reality security
TWI515645B (en) Electronic device and control method thereof
US9641961B2 (en) System, system control method, information processing apparatus, and storage medium
CN104166610A (en) Mobile terminal detection method and detection system
US20190050704A1 (en) Application processing method and apparatus for embedded universal integrated circuit card
CN110073650B (en) Terminal device, electronic device, and control method for determining position of search target device
CN108830605B (en) Mobile payment method, device and payment system
US11210056B2 (en) Electronic device and method of controlling thereof
RU2014152990A (en) METHOD, DEVICE AND TERMINAL FOR CONFIGURING APPLICATION SYMBOLS
US20170111531A1 (en) Scan processing system, information processing system, and cooperative processing method
US9886055B2 (en) Memory initializing method and electronic device supporting the same
JP2016538792A (en) Short-range wireless communication control method and apparatus supporting the same
AU2020203975A1 (en) Information display method, terminal, and server
WO2018010339A1 (en) Target object processing method and device
US10520929B2 (en) Techniques for implementing universal commands in a welding or cutting system
CN107665130A (en) A kind of method based on DOS systems modification BIOS option
US10277961B2 (en) Electronic device, companion device, and method of operating the electronic device
AU2015219606A1 (en) Method of providing preview image regarding display setting for device
US20170048292A1 (en) Electronic device and method for providing content
KR102325340B1 (en) Method and Electronic Apparatus for Executing an Application
CN112398889A (en) Operation method and device of cloud service and electronic equipment

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170929