CN106681738A - Method of modifying BIOS current values of Rack server based on Map String - Google Patents

Method of modifying BIOS current values of Rack server based on Map String Download PDF

Info

Publication number
CN106681738A
CN106681738A CN201710008644.9A CN201710008644A CN106681738A CN 106681738 A CN106681738 A CN 106681738A CN 201710008644 A CN201710008644 A CN 201710008644A CN 106681738 A CN106681738 A CN 106681738A
Authority
CN
China
Prior art keywords
bios
currencys
modification
nodes
txt
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
CN201710008644.9A
Other languages
Chinese (zh)
Inventor
迟江波
周潇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201710008644.9A priority Critical patent/CN106681738A/en
Publication of CN106681738A publication Critical patent/CN106681738A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the field of computer software development, in particular to a method of modifying BIOS current values of a Rack server based on Map String. The method includes the steps that a script compiled with the own linux bash language of the linux system and an SCE tool are used for modifying the BIOS current values of all nodes of the Rack server, all nodes in the Rack server are configured in advance, SSH automatic login of all the nodes in the Rack server is allowed, all the nodes are logged in, all option information of BIOS is guided out to a txt document, BIOS items are modified, and a command is executed to guide the modified txt document back into BIOS. The method of modifying the BIOS current values is simple and easy to operate and saves manpower and time in test, maintenance and configuration use of the server.

Description

A kind of method that BIOS currencys are changed Rack servers based on Map String
Technical field
The present invention relates to computer software development field, and in particular to one kind is repaiied based on Map String to Rack servers The method for changing BIOS currencys.The pin that the method for the present application is write using the linux bash language that Linux system is carried This and SCE instruments change BIOS currencys to all nodes of frame (RACK) server.It is simple to operation, in the survey of server A large amount of manpowers, man-hour are saved in examination, maintenance and configuration use.
Background technology
With IT technical fields continue to develop and internet+concept proposition, tide Smart Rack can be rated as at present Most ripe, leading, flexibly configurable and the whole machine cabinet server of centralized management.Tide Smart Rack are with standard cabinet to set Meter unit, unification is powered, radiates and manages to the server node that it is carried, and it supports the calculating and storage of variform Node, towards the storage and treatment of mass data, is particularly suitable for the applications such as cloud computing, big data treatment.Traditional rack clothes Business device, be broadly divided into calculatings, store, power, radiate several modules, wherein calculate and storage belongs to functional module, power supply with Radiating belongs to supporting module.Tide Smart Rack function centralization, integral module, its form can be divided into calculating and storage section Point.There are many racks again because the open ended number of nodes of rack is huge, and in a computer room.Safeguarded in daily server And configuration use needs to modify BIOS currencys, if node is operated one by one, when certainly will expend substantial amounts of Between and manpower, therefore modification synchronized to the BIOS currencys of the SMART all nodes of RACK whole machine cabinets be very important.
Current Smart Rack servers need to confirm that configuration information is in factory testing or when delivering to customer to use It is no correct, if it is desired to being modified to BIOS currencys, individually each node can only be operated, this is accomplished by more behaviour Work person or after sale personnel take a substantial amount of time to operate, can be same to whole cabinet if it can have a kind of method to spend a few minutes Step is modified, but also can detect that modification item is errorless, it will greatly improve operating efficiency.
The content of the invention
Regarding to the issue above, the present application one kind can test, client's configuration use and later maintenance in terms of The method for quickly being changed BIOS currencys, can meet in the large batch of supply of material, in the friendship of quick response client's demand In goods configuration or substantial amounts of maintenance work, fast accurate modification BIOS currencys.The method of the present application can be saved the time And human cost, greatly improve operating efficiency.
A kind of method that BIOS currencys are changed Rack servers based on Map String of the present application, its feature is existed In the method specifically includes following steps:It is pre-configured with the whole nodes in Rack servers, it is allowed to complete in Rack servers Portion's node SSH automated log ons, while log in all nodes, during all of option informations of BIOS are exported into txt documents, to BIOS Option is modified, and execution order leads back to amended txt documents in BIOS.
The method of modification BIOS currencys as described above, is further characterized in that, described is pre-configured with Rack servers In whole node steps, specifically include:The whole nodes in Rack servers are set into host name in order and IP ground is distributed Location;Change under each node system /etc/hosts files;IP address information is added in hosts files;Using a key SSH is configured without cryptographic acess script to log in automatically;Detect whether each meshed network is unobstructed successively.
The method of modification BIOS currencys as described above, is further characterized in that, all node steps are logged in while described Suddenly, specifically include:Arrange parameter is whole server nodes;According to server node host name, SSH telnet current services Device node, it is ensured that log in all nodes.
The method of modification BIOS currencys as described above, is further characterized in that, described believes all of options of BIOS Breath exports to txt document steps, also includes:The step combination loginab programs are used;The all of option informations of BIOS are exported to bios.txt。
The method of modification BIOS currencys as described above, is further characterized in that, described modifies to BIOS option Step, specifically includes:Open bios.txt documents;Being searched in bios.txt documents needs the parameter of modification;Key in and accordingly refer to The parameter is changed in order.
The method of modification BIOS currencys as described above, is further characterized in that, described execution order leads back to modification BIOS steps, specifically include:The step combination loginab programs are used;The information of amended bios.txt is write into BIOS.
The method of modification BIOS currencys as described above, is further characterized in that, described execution order leads back to modification BIOS steps, also include:The all of option informations of BIOS are exported in the TXT documents of new name, it is to avoid covering original bios.txt Document.
The method of modification BIOS currencys as described above, is further characterized in that, the side of described modification BIOS currencys Method, also includes:The amended state of BIOS option is read, checks whether modification succeeds.
Specific embodiment
Invention involved by the application is mainly used on Smart Rack servers, and the server is with current main-stream The OS of Linux Redhat 6.5 are carrier.Invention described herein is added by the script that linux bash language is write and called Some linux service with SCE instruments to realize changing BIOS information to all nodes, now by taking the node of whole machine cabinet 48 as an example, specifically Description implementation process.
More detailed elaboration is carried out to present disclosure below:
1. preposition work:
By the whole nodes in rack are according to the Hostname for sequentially setting each node from top to bottom and distribute IP address, Such as m01/192.168.1.1;m02/192.168.1.2;......;M48/192.168.1.48, while changing each node Under system /etc/hosts files, by 192.168.1.1m01;192.168.1.2m02;......;192.168.1.48 M48 information is added in hosts files, and the modification purpose uses SSH (Secure Shell Protocol, safety after ensureing Shell protocol)+host name may log into, it is ensured that and each node has been changed, and is then matched somebody with somebody without cryptographic acess script using a key SSH has been put to log in automatically.(a specific key is not introduced without cryptographic acess script)
Then by order:
for i in{01..48}
do SSH m$i ipmitool chassis identify
The BMC mark lamps of all nodes are lighted successively, detect whether each meshed network is unobstructed.
Next it is the inventive method for introducing herein after the completion of detection.
2 scripts are realized:
This method realizes mainly thering is three parts, by taking BIOS option " Turbo Mode " (CPU overclockings) as an example, introduces the method The whole process of realization.
(1) Part I script
Log in 48 nodes simultaneously
#!/bin/bash
Function loginab () # naming programs are loginab
{ $ 2 of SSH $ 1 } #loginab procedure subjects are that to $ 1, ($ 1 is defined as server node main frame to SSH telnets Name), perform $ 2 ($ 2 is the specific procedure for realizing subsequent sections function)
For i in { 01..48 } # defined parameters " i " are recycled to 48 from 01
do
Echo " --- --- --- -- $ i-------- " # shows the value for being recycled to current " i "
Loginab m $ i " $ 1 " &# perform loginab programs, log on to previous cycle to server node host name, and " $ 1 " ($ 1 when $ 1 is different from previously defined program herein, but representative $ 2 above) is performed, last " & " symbol is then represented This order is transferred to consistency operation, can direct cycle to next step, important herein, if without this order, this program is then Performed order can be completed and just may proceed to cyclic program, cause the superposition in run time
Done# EPs (end of program)
(2) Part II script
During all of option informations of BIOS are exported into txt documents, this step must be used with reference to loginab programs, be made It is the parts of $ 2 of loginab programs.
./SCELNX_64/o/s all of option informations of BIOS are exported to bins.txt by bios.txt/lang/b#
(/o/s/lang/b parameter case-insensitives, export can be named voluntarily.
It is a script by above-mentioned thin consolidation, is used behind loginab parts, you can completes to rack whole node BIOS total Options information is exported in bios.txt documents.
Now by " Turbo Mode " (CPU overclockings) " as a example by introduce the modification for how realizing this BIOS currency.By opening Bios.txt documents, you can view the information of current BIOS total Options.
Setup Question=Turbo Mode
Map String=PRCOOF
Token=C97//Do NOT change this line
Offset=B9
Width=01
BIOS Default=[01] Enabled
Options=[00] Disabled//Move " * " to the desired Option
*[01]Enabled
Search for " Turbo Mode " in a document, it can be seen that " Map String=PRC00F " below the option, lead to The position of the * crossed behind Options can check that the current set value of Turbo Mode is Enabled, if it is desired to changing the choosing The setting value of item is Disabled, it is only necessary to key in instruction:
./SCELNX_64/i/ms PRC00F/qv 0x00 (0x00 herein be behind Option with Enabled and Disabled difference corresponding 01 and 00)
Modification to other BIOS currencys is also such.
(3) Part III script
Read BIOS option " Turbo Mode " (CPU overclockings) " amended state is also to be arrived by deriving BIOS information In txt documents, specific inspection method has been introduced in (2nd) part.
This step must also be used with reference to loginab programs, used as the parts of $ 2 of loginab programs.
./SCELNX_64/o/s all of option informations of BIOS are exported to biosl.txt by biosl.txt/lang/b# In document, name biosl.txt purposes are the documents before avoiding repeating to override with bios.txt documents before, at certain BIOS information cannot check that the erroneous point for setting before, at which, facilitates failture evacuation when ging wrong.
Using the present application modification BIOS currencys method can conveniently, efficiently, accurately to server cabinet On all nodes synchronize operation, and can simultaneously change multiple BIOS currencys, on the server through multiple authentication, Result shows that the method is feasible.
The method of modification BIOS currencys not only improves operating efficiency to test job, the maintenance to the server later stage It is convenient that work and client's configuration use are also provided.

Claims (8)

1. it is a kind of based on Map String to Rack servers change BIOS currencys method, it is characterised in that the method have Body comprises the following steps:
It is pre-configured with the whole nodes in Rack servers, it is allowed to the whole node SSH automated log ons in Rack servers;
Log in all nodes simultaneously;
During all of option informations of BIOS are exported into txt documents;
BIOS option is modified;
Execution order leads back to amended txt documents in BIOS.
2. the method for modification BIOS currencys as claimed in claim 1, is further characterized in that, described is pre-configured with Rack clothes Whole node steps in business device, specifically include:
The whole nodes in Rack servers are set into host name in order and IP address is distributed;
Change under each node system /etc/hosts files;
IP address information is added in hosts files;
SSH is configured using a key without cryptographic acess script to log in automatically;
Detect whether each meshed network is unobstructed successively.
3. the method for modification BIOS currencys as claimed in claim 2, is further characterized in that, all sections are logged in while described Point step, specifically includes:
Arrange parameter is whole server nodes;
According to server node host name, SSH telnet current server nodes, it is ensured that log in all nodes.
4. the method for modification BIOS currencys as claimed in claim 3, is further characterized in that, described by all of choosings of BIOS Item information exports to txt document steps, also includes:
The step combination loginab programs are used;
The all of option informations of BIOS export to bios.txt.
5. the method for modification BIOS currencys as claimed in claim 4, is further characterized in that, described is carried out to BIOS option Amendment step, specifically includes:
Open bios.txt documents;
Being searched in bios.txt documents needs the parameter of modification;
Key in command adapted thereto and change the parameter.
6. the method for modification BIOS currencys as claimed in claim 5, is further characterized in that, described execution order will be changed BIOS steps are led back to, is specifically included:
The step combination loginab programs are used;
The information of amended bios.txt is write into BIOS.
7. the method for modification BIOS currencys as claimed in claim 6, is further characterized in that, described execution order will be changed BIOS steps are led back to, is also included:
The all of option informations of BIOS are exported in the TXT documents of new name, it is to avoid covering original bios.txt documents.
8. the method for modification BIOS currencys as claimed in claim 7, is further characterized in that, described modification BIOS currencys Method, also include:
The amended state of BIOS option is read, checks whether modification succeeds.
CN201710008644.9A 2017-01-05 2017-01-05 Method of modifying BIOS current values of Rack server based on Map String Pending CN106681738A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710008644.9A CN106681738A (en) 2017-01-05 2017-01-05 Method of modifying BIOS current values of Rack server based on Map String

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710008644.9A CN106681738A (en) 2017-01-05 2017-01-05 Method of modifying BIOS current values of Rack server based on Map String

Publications (1)

Publication Number Publication Date
CN106681738A true CN106681738A (en) 2017-05-17

Family

ID=58849019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710008644.9A Pending CN106681738A (en) 2017-01-05 2017-01-05 Method of modifying BIOS current values of Rack server based on Map String

Country Status (1)

Country Link
CN (1) CN106681738A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107135277A (en) * 2017-07-06 2017-09-05 郑州云海信息技术有限公司 A kind of all-in-one machine realization method and device
CN107273128A (en) * 2017-06-16 2017-10-20 合肥联宝信息技术有限公司 Electronic equipment starts method and device
CN107291466A (en) * 2017-06-16 2017-10-24 郑州云海信息技术有限公司 A kind of BIOS based on Windows Server is extracted and amending method
CN107885644A (en) * 2017-11-10 2018-04-06 郑州云海信息技术有限公司 It is a kind of based on the method that BIOS default values are quickly checked under linux system
CN108256332A (en) * 2018-01-17 2018-07-06 郑州云海信息技术有限公司 A kind of method of the BIOS startup passwords setting based on IPMI orders
CN108733403A (en) * 2018-05-21 2018-11-02 紫光华山信息技术有限公司 A kind of BIOS setting methods and device
CN108804146A (en) * 2018-05-23 2018-11-13 郑州云海信息技术有限公司 A kind of selectivity read-write BIOS method and devices
CN109408032A (en) * 2018-11-01 2019-03-01 郑州云海信息技术有限公司 A kind of customized Fast implementation of BIOS, device, terminal and storage medium
CN109582377A (en) * 2018-12-04 2019-04-05 郑州云海信息技术有限公司 BIOS option amending method, device, equipment and storage medium
CN109656763A (en) * 2018-12-14 2019-04-19 郑州云海信息技术有限公司 A kind of method and system of automatic test activate source processor core heart function
CN109669863A (en) * 2018-12-03 2019-04-23 郑州云海信息技术有限公司 A kind of BIOS option function test method and system based on AMI BIOS
CN111176915A (en) * 2019-12-19 2020-05-19 曙光信息系统(辽宁)有限公司 Serial test method and test tool
CN114253618A (en) * 2021-12-20 2022-03-29 东莞记忆存储科技有限公司 BIOS modification method and device based on different manufacturers, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461611A (en) * 2014-11-05 2015-03-25 浪潮电子信息产业股份有限公司 Method for refreshing node BIOS (basic input/output system) of RACK (RACK operating system) in batches
CN104991782A (en) * 2015-07-23 2015-10-21 英业达科技有限公司 Method and system for modifying BIOS configuration
CN105893097A (en) * 2016-04-25 2016-08-24 浪潮电子信息产业股份有限公司 Method and device for processing option information of BIOS (basic input output system)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461611A (en) * 2014-11-05 2015-03-25 浪潮电子信息产业股份有限公司 Method for refreshing node BIOS (basic input/output system) of RACK (RACK operating system) in batches
CN104991782A (en) * 2015-07-23 2015-10-21 英业达科技有限公司 Method and system for modifying BIOS configuration
CN105893097A (en) * 2016-04-25 2016-08-24 浪潮电子信息产业股份有限公司 Method and device for processing option information of BIOS (basic input output system)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273128B (en) * 2017-06-16 2020-11-10 合肥联宝信息技术有限公司 Electronic equipment starting method and device
CN107273128A (en) * 2017-06-16 2017-10-20 合肥联宝信息技术有限公司 Electronic equipment starts method and device
CN107291466A (en) * 2017-06-16 2017-10-24 郑州云海信息技术有限公司 A kind of BIOS based on Windows Server is extracted and amending method
CN107135277A (en) * 2017-07-06 2017-09-05 郑州云海信息技术有限公司 A kind of all-in-one machine realization method and device
CN107885644A (en) * 2017-11-10 2018-04-06 郑州云海信息技术有限公司 It is a kind of based on the method that BIOS default values are quickly checked under linux system
CN108256332A (en) * 2018-01-17 2018-07-06 郑州云海信息技术有限公司 A kind of method of the BIOS startup passwords setting based on IPMI orders
CN108733403A (en) * 2018-05-21 2018-11-02 紫光华山信息技术有限公司 A kind of BIOS setting methods and device
CN108804146A (en) * 2018-05-23 2018-11-13 郑州云海信息技术有限公司 A kind of selectivity read-write BIOS method and devices
CN109408032A (en) * 2018-11-01 2019-03-01 郑州云海信息技术有限公司 A kind of customized Fast implementation of BIOS, device, terminal and storage medium
CN109669863A (en) * 2018-12-03 2019-04-23 郑州云海信息技术有限公司 A kind of BIOS option function test method and system based on AMI BIOS
CN109582377A (en) * 2018-12-04 2019-04-05 郑州云海信息技术有限公司 BIOS option amending method, device, equipment and storage medium
CN109656763A (en) * 2018-12-14 2019-04-19 郑州云海信息技术有限公司 A kind of method and system of automatic test activate source processor core heart function
CN109656763B (en) * 2018-12-14 2021-10-29 郑州云海信息技术有限公司 Method and system for automatically testing and activating core function of source processor
CN111176915A (en) * 2019-12-19 2020-05-19 曙光信息系统(辽宁)有限公司 Serial test method and test tool
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
CN106681738A (en) Method of modifying BIOS current values of Rack server based on Map String
US8959205B2 (en) Method and system to recognize and inventory applications
CN104065528B (en) For analyzing and examining functional method and apparatus of multiple network equipments
CN105893097A (en) Method and device for processing option information of BIOS (basic input output system)
US20130031542A1 (en) Method and system for distributed application stack deployment
CN110033206A (en) Bill of materials automatic Check method and device
CN109788052B (en) Server configuration remote query method, device, terminal and storage medium
CN105024849A (en) Method for batch operation of high-density cabinet server on each node BMC
CN103955429B (en) Determine the method and device of regression test scope
CN105302556B (en) Realize the method and system and server unit calculated
CN106708573A (en) System and method used for automatic installation of Hadoop cluster
CN111124892B (en) Automatic testing method and system based on command line
US20150193405A1 (en) Enhanced testing for application services
CN110334248A (en) A kind of system configuration information treating method and apparatus
CN104391845B (en) A kind of method and device generating database script
CN107844328A (en) A kind of server B IOS collocation methods and system
US10613708B2 (en) Cloning a hypervisor
CN113055391A (en) Method and device for policy configuration conversion during firewall replacement
CN115618777A (en) File generation method, device, equipment and storage medium
US20160070564A1 (en) Dynamically schematized log messages for software applications
CN109460318A (en) It is a kind of can rollback archives acquisition data introduction method, computer installation and computer readable storage medium
CN111752677B (en) Cloud resource configuration method, system, terminal and storage medium
CN112256500A (en) Storage system test server configuration method, system, terminal and storage medium
Wolfe et al. Automating the installation of Apache VCL on OpenStack
CN102663299B (en) Hardware resource information security online detecting system facing to terminal computers

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: 20170517