CN105183497A - Method for automatically refreshing basic input/output systems (BIOSs) in batches by universal server - Google Patents
Method for automatically refreshing basic input/output systems (BIOSs) in batches by universal server Download PDFInfo
- Publication number
- CN105183497A CN105183497A CN201510430838.9A CN201510430838A CN105183497A CN 105183497 A CN105183497 A CN 105183497A CN 201510430838 A CN201510430838 A CN 201510430838A CN 105183497 A CN105183497 A CN 105183497A
- Authority
- CN
- China
- Prior art keywords
- refreshing
- server
- bios
- node
- server node
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a method for automatically refreshing basic input/output systems (BIOSs) in batches by a universal server, and relates to a BIOS firmware refreshing technology. With a server in a cabinet as a control node, the method comprises the following steps: firstly, compiling a bash script under a Linux system, integrating refreshing commands into the script, and copying required firmware files and refreshing tools to all server nodes; secondly, executing the refreshing tools on all server nodes, and restarting an operation system after refreshing is ended; and finally, automatically inspecting BIOS editions of all server nodes, generating documents and inspecting the refreshing result, namely validating refreshing successfully. According to the method, a fussy manual operation is not needed; the BIOSs are simply and automatically refreshed in a time-saving manner; the time of refreshing the BIOSs one by one is greatly shortened; the error caused by repetitive operations is avoided; and the accuracy of a lot of operations of refreshing the BIOSs of the server is improved.
Description
Technical field
The present invention relates to BIOS firmware refresh technique, specifically a kind of method of generic server automatic batch refreshing BIOS.
Background technology
Usually have the server of 10 to 40 identical types in the generic server rack of large-scale machine room, test and daily servicing process in, need to carry out firmware upgrade refreshing to the BIOS of these servers.Under normal circumstances, the BIOS firmware of a refreshing and upgrading 4M, approximately needs 3 to 5 minutes under linux system, if refreshed one by one at each server, then can need the time of more than one hour even two hours, the manpower of such at substantial and time, have a strong impact on work efficiency.
Summary of the invention
The present invention is directed to the weak point of current needs and prior art development, a kind of method of generic server automatic batch refreshing BIOS is provided.
The method of a kind of generic server automatic batch refreshing BIOS of the present invention, the technical scheme solving the problems of the technologies described above employing is as follows: the method for described generic server automatic batch refreshing BIOS, in employing rack, a server is as Controlling vertex, first by compiling a bash script under linux system, refresh command is incorporated in script, copies required firmware file and refresh tool to whole server node; Then perform refresh tool at whole server node, and after refreshing completes reboot operation system, the bios version of the whole server node of last self-verifying also generates document, checks refreshing result.
Preferably, by server node whole in rack according to physical location, order arranges server node title and distributing IP address from top to bottom, is then lighted the BMC identification LEDs of Servers-all node by order successively, guarantees that each meshed network is unobstructed.
Preferably, in whole server node, load the driving file of refresh tool.
Preferably, by BIOS refresh tool afulnx and BIOS firmware rom file copy to be brushed extremely whole server node.
Preferably, server node utilizes dmidecode to read Node B ios release information after restarting, then unified stored in document.
The method of a kind of generic server automatic batch refreshing BIOS of the present invention, the beneficial effect compared with prior art had is: the present invention is by being incorporated in script by refresh command, the BIOS realizing a large amount of server node in rack synchronously refreshes automatically, for generic servers all in current industry, achieve without the need to loaded down with trivial details manual operation, succinctly, save time, the refreshing BIOS of robotization, save server one by one in a large number and refresh the time of BIOS, avoid the mistake that repetitive operation causes, improve the accuracy of a large amount of server B IOS refresh operation, promote the total quality of server later maintenance simultaneously.
Accompanying drawing explanation
Accompanying drawing 1 is the process flow diagram of the method for described generic server automatic batch refreshing BIOS.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with specific embodiment, and with reference to accompanying drawing, the method for a kind of generic server automatic batch refreshing BIOS of the present invention is further described.
The method of a kind of generic server automatic batch refreshing BIOS of the present invention, in employing rack, a server is as Controlling vertex, first by compiling a bash script under linux system, refresh command is incorporated in script, copies required firmware file and refresh tool to whole server node; Then perform refresh tool at whole server node, and after refreshing completes reboot operation system, the bios version of the whole server node of last self-verifying also generates document, checks refreshing result, confirms to refresh whether success.
The method of this generic server automatic batch refreshing BIOS, by compiling a simple bash script under linux system, refresh command is incorporated in script, operated from a distance is carried out to server node whole on rack, can under linux system fast and convenient whole servers efficiently to whole rack, carry out the operation of BIOS synchronous refresh, greatly reduce and refresh the time that in whole rack, all server is used, improve work efficiency; Avoid a large amount of mistake repeating refresh operation and occur simultaneously.
Embodiment: a kind of method of generic server automatic batch refreshing BIOS described in the present embodiment, main contents comprise four parts, and first, realization logs in each server, and proceed to backstage after performing specified command, the second, refresh tool and BIOS firmware rom file to be brushed are copied into each server node, 3rd, perform BIOS refresh tool, carry out the operation of BIOS refreshing and upgrading, the 4th, capture server B ios release information after restarting server, verify whether Flushing success.
Below for 40 generic servers in a rack, the specific implementation process of the method for automatic batch refreshing BIOS described in the present embodiment is described, as shown in Figure 1.
First, by server whole in rack according to physical location, order arranges server node title and distributing IP address from top to bottom, such as: cu1/192.168.1.1; Cu2/192.168.1.2; Cu40/192.168.1.40; Configure ssh after being assigned automatically to log in; Then by order:
foriin{1..40}
dosshcu$iipmitoolchassisidentify
Light the BMC identification LEDs of Servers-all node successively, whether unobstructedly detect each meshed network; Detect after guaranteeing that the network of each server node is unobstructed, carried out generic server automatic batch refreshing BIOS by method described in the present embodiment.
The method of generic server automatic batch refreshing BIOS described in the present embodiment, its main contents comprise four parts, and the first, under linux system, compile a bash script, realize logging in each server node, and proceed to backstage after performing specified command; The second, by refresh tool and BIOS firmware rom file copy to be brushed to each server node, the 3rd, perform BIOS refresh tool, carry out the operation of BIOS refreshing and upgrading, the 4th, capture server B ios release information after restarting server node, verify whether Flushing success.
In a first portion, described bash script:
#!/bin/bash
functionlogon()
Naming program is logon
{ssh$1$2}
Logon procedure subject is that ssh telnet is defined as server node ip address to $ 1($ 1), perform $ 2($ 2 and be defined as the specific procedure realizing subsequent sections function)
foriin{1..40}
Defined parameters " i " is circulated to 40 from 1
do
Perform following operation
echo"-----------$i--------"
Display is circulated to the value of current " i "
logon192.168.1.$i"$1"&
Perform logon program, log on the ip of previous cycle to server, and perform " $ 1 " ($ 1 when $ 1 is different from define program above herein, but representative $ 2 above), last " & " symbol then represents that this order proceeds to consistency operation, can direct cycle to next step, by this order, this program has not then needed performed order to continue loop program, greatly reduces working time
done
EOP (end of program); Realize logging in each server node.
In the second portion, by refresh tool and BIOS firmware rom file copy to be brushed to each server node,
#!/bin/bash
functionscopy()
Naming program is scopy
{scp$1$2$3}
Scopy procedure subject is telecopy scp, $ 1($ 1 is defined as BIOS refresh tool afulnx, the BIOS refresh tool afulnx of identical version is installed in whole server node, if install, this may skip) be defined as the BIOS firmware rom file of refreshing and upgrading with $ 2($ 2) be copied to the concrete register of $ 3(destination node under, $ 3 adopts previous cycle node i p extremely in Part I)
scopyafulnxrom192.168.1.$i:/root/BIOS/
Perform scopy program, by the BIOS refresh tool afulnx of this locality and rom file telecopy in the root directory BIOS file folder to previous cycle to server
done
EOP (end of program).
In Part III, perform BIOS refresh tool, carry out the operation of BIOS refreshing and upgrading, use in conjunction with described logon program, as $ 2 part of logon program,
cd/root/BIOS/
Enter in root directory BIOS file folder
/sbin/insmodamifldrv_mod.o
Load refresh tool afulnx required driving amifldrv_mod.o, can file copy be driven in file this in advance in the second portion if needed
./afulnxrom/n/b/p/x
Execution refresh tool afulnx brushes the rom file into needs, and wherein/n/b/p/x is that refresh tool afulnx runs desired parameters, and/n is for writing NVRAM file, and/b is for writing startup module, and/p is for writing whole BIOS, and/x is the identifying information not checking rom file;
Be a script by above-mentioned thin consolidation, use after logon part, refreshing operation can be completed.
In Part IV, after opening server node, capture server B ios release information, verify whether Flushing success;
First this part script is placed in etc/rc.d/rc.local, as start self-starting part, after restarting server, performs following operation:
foriin{1..40}
Defined parameters " i " is circulated to 40 from 1
doecho“cu$i”>>check.txt
By previous cycle to the title write check.txt document of server
ssh192.168.1.$idmidecode|grep“BIOSInformation”–A5|grepVersion>>check.txt
Bios version information is captured, write check.txt in dmidecode
done
Complete operation;
Because server number is be sequentially written in check.txt with server info, therefore can be checked through the bios version number of each server very intuitively in check.txt, to verify that whether refresh operation is successful.
Be a script by above-mentioned four thin consolidation, whole server node automatic batch refreshing BIOS can be completed and operate, refresh operation whether success can be checked simultaneously.Visible, the present invention can fast, efficient, accurately, robotization synchronous refresh operation is carried out to generic server a large amount of in rack, greatly save working hour, and because whole instruction writes script in advance, can avoid when manual refreshing, due to the instruction input error that a large amount of repetitive operation causes.By the present invention, not only in test job, improve work efficiency, make the maintenance work in server later stage more convenient simultaneously.
Above-mentioned embodiment is only concrete case of the present invention; scope of patent protection of the present invention includes but not limited to above-mentioned embodiment; any claims according to the invention and any person of an ordinary skill in the technical field to its suitable change done or replacement, all should fall into scope of patent protection of the present invention.
Claims (5)
1. the method for a generic server automatic batch refreshing BIOS, it is characterized in that, in employing rack, a server is as Controlling vertex, first by compiling a bash script under linux system, refresh command is incorporated in script, copies required firmware file and refresh tool to whole server node; Then perform refresh tool at whole server node, and after refreshing completes reboot operation system, the bios version of the whole server node of last self-verifying also generates document, checks refreshing result.
2. the method for a kind of generic server automatic batch refreshing BIOS according to claim 1, it is characterized in that, by server node whole in rack according to physical location, order arranges server node title and distributing IP address from top to bottom, then lighted the BMC identification LEDs of Servers-all node by order successively, guarantee that each meshed network is unobstructed.
3. the method for a kind of generic server automatic batch refreshing BIOS according to claim 2, is characterized in that, load the driving file of refresh tool in whole server node.
4. the method for a kind of generic server automatic batch refreshing BIOS according to claim 3, is characterized in that, by BIOS refresh tool afulnx and BIOS firmware rom file copy to be brushed to whole server node.
5. the method for a kind of generic server automatic batch refreshing BIOS according to claim 4, is characterized in that, server node utilizes dmidecode to read Node B ios release information after restarting, then unified stored in document.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510430838.9A CN105183497A (en) | 2015-07-21 | 2015-07-21 | Method for automatically refreshing basic input/output systems (BIOSs) in batches by universal server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510430838.9A CN105183497A (en) | 2015-07-21 | 2015-07-21 | Method for automatically refreshing basic input/output systems (BIOSs) in batches by universal server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105183497A true CN105183497A (en) | 2015-12-23 |
Family
ID=54905595
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510430838.9A Pending CN105183497A (en) | 2015-07-21 | 2015-07-21 | Method for automatically refreshing basic input/output systems (BIOSs) in batches by universal server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105183497A (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106227562A (en) * | 2016-07-22 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | A kind of method of Smart Rack whole machine cabinet BIOS batch upgrading automatically |
CN106250176A (en) * | 2016-07-22 | 2016-12-21 | 浪潮电子信息产业股份有限公司 | A kind of method refreshing BIOS under 8 road server (SuSE) Linux OS |
CN106713053A (en) * | 2017-02-19 | 2017-05-24 | 郑州云海信息技术有限公司 | Method and device for batch updating server firmware based on Linux |
CN106775877A (en) * | 2016-12-22 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of firmware method for refreshing and a kind of server |
CN106843971A (en) * | 2017-01-23 | 2017-06-13 | 郑州云海信息技术有限公司 | BIOS method for refreshing, server, BMC, medium and storage control |
CN107402789A (en) * | 2017-07-31 | 2017-11-28 | 郑州云海信息技术有限公司 | A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW |
CN107479889A (en) * | 2017-08-16 | 2017-12-15 | 郑州云海信息技术有限公司 | A kind of batch refresh CPLD method |
CN107566548A (en) * | 2017-09-29 | 2018-01-09 | 郑州云海信息技术有限公司 | A kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses |
CN107894956A (en) * | 2017-12-21 | 2018-04-10 | 郑州云海信息技术有限公司 | A kind of long-range BIOS promotion and demotion refresh automated testing method |
CN108040131A (en) * | 2017-11-10 | 2018-05-15 | 中国电子科技集团公司第三十二研究所 | Method for automatically configuring network port address of node management module by whole cabinet server |
CN108874423A (en) * | 2018-06-20 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of method that remote batch refreshes hard disk firmware |
CN108984226A (en) * | 2018-06-29 | 2018-12-11 | 深圳市同泰怡信息技术有限公司 | Method, the system of batch modification server B IOS configuration |
CN109284118A (en) * | 2018-09-27 | 2019-01-29 | 郑州云海信息技术有限公司 | A kind of firmware method for refreshing, system, electronic equipment and computer readable storage medium |
CN110968510A (en) * | 2019-11-28 | 2020-04-07 | 深圳忆联信息系统有限公司 | SSD automatic online upgrading firmware test method and device and computer equipment |
CN111290774A (en) * | 2020-02-24 | 2020-06-16 | 深圳忆联信息系统有限公司 | Method and device for upgrading solid state disk firmware in batch based on Windows system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604246A (en) * | 2009-07-16 | 2009-12-16 | 浪潮电子信息产业股份有限公司 | A kind of automatic batch refreshing method of general mainboard bios |
US20100100720A1 (en) * | 2008-10-20 | 2010-04-22 | Asustek Computer Inc. | Computer system having dual bios program protecting function and control method thereof |
CN104461611A (en) * | 2014-11-05 | 2015-03-25 | 浪潮电子信息产业股份有限公司 | Method for refreshing node BIOSes of RACK cabinet in batches |
-
2015
- 2015-07-21 CN CN201510430838.9A patent/CN105183497A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100100720A1 (en) * | 2008-10-20 | 2010-04-22 | Asustek Computer Inc. | Computer system having dual bios program protecting function and control method thereof |
CN101604246A (en) * | 2009-07-16 | 2009-12-16 | 浪潮电子信息产业股份有限公司 | A kind of automatic batch refreshing method of general mainboard bios |
CN104461611A (en) * | 2014-11-05 | 2015-03-25 | 浪潮电子信息产业股份有限公司 | Method for refreshing node BIOSes of RACK cabinet in batches |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106227562A (en) * | 2016-07-22 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | A kind of method of Smart Rack whole machine cabinet BIOS batch upgrading automatically |
CN106250176A (en) * | 2016-07-22 | 2016-12-21 | 浪潮电子信息产业股份有限公司 | A kind of method refreshing BIOS under 8 road server (SuSE) Linux OS |
CN106775877A (en) * | 2016-12-22 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of firmware method for refreshing and a kind of server |
CN106843971A (en) * | 2017-01-23 | 2017-06-13 | 郑州云海信息技术有限公司 | BIOS method for refreshing, server, BMC, medium and storage control |
CN106713053A (en) * | 2017-02-19 | 2017-05-24 | 郑州云海信息技术有限公司 | Method and device for batch updating server firmware based on Linux |
CN107402789A (en) * | 2017-07-31 | 2017-11-28 | 郑州云海信息技术有限公司 | A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW |
CN107479889A (en) * | 2017-08-16 | 2017-12-15 | 郑州云海信息技术有限公司 | A kind of batch refresh CPLD method |
CN107566548A (en) * | 2017-09-29 | 2018-01-09 | 郑州云海信息技术有限公司 | A kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses |
CN108040131A (en) * | 2017-11-10 | 2018-05-15 | 中国电子科技集团公司第三十二研究所 | Method for automatically configuring network port address of node management module by whole cabinet server |
CN107894956A (en) * | 2017-12-21 | 2018-04-10 | 郑州云海信息技术有限公司 | A kind of long-range BIOS promotion and demotion refresh automated testing method |
CN108874423A (en) * | 2018-06-20 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of method that remote batch refreshes hard disk firmware |
CN108984226A (en) * | 2018-06-29 | 2018-12-11 | 深圳市同泰怡信息技术有限公司 | Method, the system of batch modification server B IOS configuration |
CN109284118A (en) * | 2018-09-27 | 2019-01-29 | 郑州云海信息技术有限公司 | A kind of firmware method for refreshing, system, electronic equipment and computer readable storage medium |
CN110968510A (en) * | 2019-11-28 | 2020-04-07 | 深圳忆联信息系统有限公司 | SSD automatic online upgrading firmware test method and device and computer equipment |
CN111290774A (en) * | 2020-02-24 | 2020-06-16 | 深圳忆联信息系统有限公司 | Method and device for upgrading solid state disk firmware in batch based on Windows system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105183497A (en) | Method for automatically refreshing basic input/output systems (BIOSs) in batches by universal server | |
CN104461611A (en) | Method for refreshing node BIOSes of RACK cabinet in batches | |
CN105260208A (en) | RAID card driver automatic batch refreshing method for servers | |
CN106775877A (en) | A kind of firmware method for refreshing and a kind of server | |
CN106681775A (en) | Method for achieving online batch upgrading of hard disk firmware through RAID card under Linux system | |
CN106445591A (en) | Automatic and batched RAID card FW refreshing method of servers | |
CN107402789A (en) | A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW | |
CN103150188B (en) | The compatible video card fast initializing method of the x86 of non-x 86 instruction set computer | |
CN103237252A (en) | Method and device for burning set-top box storage chips | |
CN113515297B (en) | Version updating method and device, electronic equipment and storage medium | |
CN108923997B (en) | Cloud service node automatic testing method and device based on python | |
CN105260274A (en) | Linux-based hard disk random hot plug stability detection method | |
CN110196726A (en) | A method of the load of FPGA program remote upgrading is realized based on CPU+CPLD | |
CN105335263A (en) | Method for automatically testing out-of-band upgrading and degrading of RMC (Remote Management Controller) based on LINUX platform | |
CN113254054B (en) | Intelligent contract one-stop development system and method | |
CN105630661A (en) | Automatic cross-system program debugging method and device | |
CN104598382A (en) | Test control method and device | |
CN102902526A (en) | Automatic setting method for realizing BMC (Baseboard Management Controller) and IP (Internet Protocol) information through time delay | |
CN114281367A (en) | Big data platform deployment method and system for trust and creation environment | |
CN106293829A (en) | A kind of method of automatic refreshing LSI RAID card FW | |
CN106445504A (en) | Update method and system of mobile terminal device driver | |
CN109445800A (en) | A kind of version automatic deployment method and system based on distributed system | |
CN110888656B (en) | Multifunctional programming device and programming method | |
CN117234781A (en) | Method, device, equipment and medium for correcting option value of setting option | |
CN107291499A (en) | A kind of method by BMC automatic batch bulking systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20151223 |