CN105867975A - Method for batch refreshing of BMC based on LINUX platform - Google Patents
Method for batch refreshing of BMC based on LINUX platform Download PDFInfo
- Publication number
- CN105867975A CN105867975A CN201610199800.XA CN201610199800A CN105867975A CN 105867975 A CN105867975 A CN 105867975A CN 201610199800 A CN201610199800 A CN 201610199800A CN 105867975 A CN105867975 A CN 105867975A
- Authority
- CN
- China
- Prior art keywords
- refreshed
- refresh
- machine
- servers
- linux platform
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method for batch refreshing of BMC based on a LINUX platform and relates to the technical field of servers. A Yafuflash tool is utilized for setting servers to be refreshed and a server side under the same network segment, a refresh program is executed cyclically through a remote server side, and BMC of other servers to be refreshed is upgraded. The method comprises the specific steps that 1, all the servers to be refreshed are configured under the same network segment; 2, ips of all the servers to be refreshed are confirmed, and ip addresses are stored in an ip.csv file; 3, whether configurations of the servers to be refreshed are reserved or not is judged; 4, a fresh.sh program is executed on the servers to be refreshed; 5, whether refresh results meet expectations or not is judged till the refresh results of all the servers meet the expectations. According to the method, large-scale batch operation is realized, refresh time of the servers is saved, a large quantity of manpower resources are saved, and the running stability of server products can be ensured.
Description
Technical field
The present invention relates to relate to server technology field, a kind of method of batch refresh BMC based on LINUX platform.
Background technology
After server product lists, software Firmware still can constantly upgrade renewals, in order to realizes some newly-increased functional requirements, or the problem revising discovery.But traditional BMC promotion and demotion method for refreshing, is substantially by refreshing, refreshing etc. based on BMC WEB interface under DOS.As based on the method for refreshing under DOS, it is generally required to carry out single server operating by platform, it is equipped with the USB flash disk possessing refresh function and it needs to being manually entered the corresponding command and operate, the waiting time is longer.For method for refreshing based on BMC WEB interface, although this method for refreshing refreshes thoroughly, Flushing success rate is high, but the method needs to log in the BMC WEB interface of each server to be refreshed, server is entered refresh mode, and after Firmwarm to be upgraded is uploaded to server to be refreshed, just can refresh, the method operating procedure is more, consumes a large amount of manpower.When server number of units to be refreshed is more, operability is poor.
Summary of the invention
The present invention is directed to current needs and the weak point of prior art development, it is provided that a kind of method of batch refresh BMC based on LINUX platform.
nullThe method of a kind of batch refresh BMC based on LINUX platform of the present invention,The technical scheme solving the employing of above-mentioned technical problem is as follows: the method for described batch refresh BMC based on LINUX platform,Utilize Yafuflash instrument,Machine to be refreshed and service end are arranged under the same network segment,Refurbishing procedure is performed by the circulation of remote service end,Other server B MC to be refreshed is upgraded,Its concrete steps include: 1) be first configured under the same network segment by all machines to be refreshed,2) ip of all machines to be refreshed is confirmed,And ip address is stored in ip.csv file,3) judge whether to retain the configuration of machine to be refreshed,4) machine to be refreshed is performed fresh.sh program,5) and judge refresh result whether meet expectation,Until all machines refresh result and meet expectation.
Preferably, all machines to be refreshed are configured under the same network segment, and confirm its ip, IP address is stored in ip.csv file.
Preferably, if machine to be refreshed does not retain configuration, then directly to refreshing machine execution fresh.sh program;Otherwise, then after Yafuflash instructs, add parameter-preserve-config, then machine to be refreshed is performed fresh.sh program.
Preferably, it is judged that refresh whether result meets expectation, if undesirably, then checking fails refreshes the configuration information of machine, and reconfigures, and performs fresh.sh program the most again and refreshes.
Preferably, read machine ip to be refreshed line by line by read order and pass to variables L INE;Meanwhile, valid_ip.sh script inspection ip form is called the most legal effectively.
Preferably, if the ip form of server to be refreshed is illegal, then exports invalid ip, and extract next ip address;If ip is legal effectively, then calls Yafuflash instrument and start refurbishing procedure.
The method of a kind of batch refresh BMC based on LINUX platform of the present invention compared with prior art has the beneficial effect that the present invention is by Yafuflash instrument and script function, utilize LINUX platform automatic batch refreshing BMC, and detection inputs the effectiveness of IP automatically, extensive batch operation, save server refresh time, improve and refresh efficiency;Save a large amount of human resources;Far-end operation, greatly reduces the impact on Client application, it is possible to ensure the stability that server product runs;
The method refresh work only need to use the equipment possessing LINUX platform, reduces device requirement;Being suitable for high-volume server to refresh with version BMC, method for refreshing is simple to operate, and success rate is high, is greatly improved the O&M of product.
Figure of description
Accompanying drawing 1 is the flow chart of the method for described batch refresh BMC based on LINUX platform;
Accompanying drawing 2 is the flow chart refreshing machine to be refreshed.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with specific embodiment, the method for a kind of batch refresh BMC based on LINUX platform of the present invention is further described.
General server B MC refreshes can be by refreshing under DOS, the method such as refreshing under BMC WEB interface, but such method is required for carrying out single server operating by platform, consumes substantial amounts of manpower.In view of existing server B MC refresh present in defect, the present invention proposes a kind of method of batch refresh BMC based on LINUX platform, it it is BMC promotion and demotion method for refreshing based on LINUX system, the method at the maintenance phase of Client application, carries out the BMC upgrade or downgrade refreshing of batch for large batch of server;Ensure that high-volume server, on the premise of not affecting Client application, completes upgrading or the degradation work of BMC, thus reduces R&D costs, increase available device resource.
Embodiment:
A kind of method of batch refresh BMC based on LINUX platform described in the present embodiment, utilize Yafuflash instrument, machine to be refreshed and service end are arranged under the same network segment, perform refurbishing procedure by the circulation of remote service end, other server B MC to be refreshed is upgraded.
The method of batch refresh BMC based on LINUX platform described in the present embodiment, its concrete steps include: 1) be first configured under the same network segment by all machines to be refreshed, 2) ip of all machines to be refreshed is confirmed, and ip address is stored in ip.csv file, 3) judge whether to retain the configuration of machine to be refreshed, 4) machine to be refreshed is performed fresh.sh program, 5) and judge to refresh whether result meets expectation, until all machines refresh result and meet expectation.
The method of batch refresh BMC based on LINUX platform described in the present embodiment, its specific implementation process as shown in Figure 1: first all machines to be refreshed are configured under the same network segment, and confirm its ip, IP address is stored in ip.csv file.If machine to be refreshed does not retain configuration, then directly to refreshing machine execution fresh.sh program;Otherwise, if machine to be refreshed retains configuration, then after Yafuflash instruct, add parameter-preserve-config(preserve configuration), then machine to be refreshed is performed fresh.sh program.Next step judges to refresh whether result meets expectation, meets expectation then machine Flushing success to be refreshed to this ip;Otherwise, i.e. result is undesirably, then checking fails refreshes the configuration information of machine, and reconfigures, and performs fresh.sh program the most again and refreshes.
When machine to be refreshed is performed fresh.sh program, first pass through read order and read machine ip to be refreshed line by line and pass to variables L INE;Now, calling valid_ip.sh script, this script can check ip form the most legal effectively.Described valid_ip.sh script is as follows:
#!/bin/bash
ip=$1
stat=1
if [[ $ip =~
^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
OIFS=$IFS
IFS='.'
ip=($ip)
IFS=$OIFS
[[ ${ip[0]} -le 255
&& ${ip[1]} -le 255 \
&& ${ip[2]} -le
255 && ${ip[3]} -le 255 ]]
# && echo "The ip:
$1 is valid" || echo "The ip: $1 is
invalid"
Fi.
If the ip form of server to be refreshed is illegal, then exports invalid ip, and extract next ip address;If ip is legal effectively, then calls Yafuflash instrument and start refurbishing procedure.By expect statement, scanning needs are manually entered the position of " Y/y ", perform " send " and automatically enter " Y " or " y ";After this ip machine to be refreshed has refreshed, detect all ip extractions, if all ip are the most extracted, refresh and terminate;Otherwise, extract next ip address, restart to refresh, until all machines to be refreshed have refreshed;As shown in Figure 2.
The method of batch refresh BMC described in the present embodiment, the refreshing script used is as follows:
#!/bin/bash
cat ip.csv | while read LINE
#error_count=0
do
`dirname $0`/valid_ip.sh $LINE
if [[ $? = 0 ]];then
echo "ip : $LINE , get
starting ..."
expect -c "
# /usr/bin/expect <<-EOF
set timeout 5
spawn `dirname $0`/Yafuflash
-nw -ip $LINE -u admin -p admin 300-test -preserve-config
expect \"Option :\"
sleep 1
send \"y\r"
# send "Y\r"
# interact
expect eof
EOF
"
# count=$[ $count + 1 ]
else
echo "The ip : $LINE is
invalid."
# error_count=$[ $error_count + 1 ]
fi
done
echo "All done"。
Above-mentioned detailed description of the invention is only the concrete case of the present invention; the scope of patent protection of the present invention includes but not limited to above-mentioned detailed description of the invention; suitably change that it is done by any that meet claims of the present invention and any person of an ordinary skill in the technical field or replace, all should fall into the scope of patent protection of the present invention.
Claims (6)
1. the method for a batch refresh BMC based on LINUX platform, it is characterized in that, utilize Yafuflash instrument, machine to be refreshed and service end are arranged under the same network segment, refurbishing procedure is performed by the circulation of remote service end, other server B MC to be refreshed is upgraded, its concrete steps include: 1) be first configured under the same network segment by all machines to be refreshed, 2) ip of all machines to be refreshed is confirmed, and ip address is stored in ip.csv file, 3) judge whether to retain the configuration of machine to be refreshed, 4) machine to be refreshed is performed fresh.sh program, 5) and judge refresh result whether meet expectation, until all machines refresh result and meet expectation.
A kind of method of batch refresh BMC based on LINUX platform, it is characterised in that all machines to be refreshed are configured under the same network segment, and confirm its ip, IP address is stored in ip.csv file.
A kind of method of batch refresh BMC based on LINUX platform, it is characterised in that if machine to be refreshed does not retain configuration, then directly to refreshing machine execution fresh.sh program;Otherwise, then after Yafuflash instructs, add parameter-preserve-config, then machine to be refreshed is performed fresh.sh program.
A kind of method of batch refresh BMC based on LINUX platform, it is characterized in that, judge to refresh whether result meets expectation, if undesirably, then checking fails refreshes the configuration information of machine, and reconfigure, perform fresh.sh program the most again and refresh.
A kind of method of batch refresh BMC based on LINUX platform, it is characterised in that read machine ip to be refreshed line by line by read order and pass to variables L INE;Meanwhile, valid_ip.sh script inspection ip form is called the most legal effectively.
A kind of method of batch refresh BMC based on LINUX platform, it is characterised in that if the ip form of server to be refreshed is illegal, then export invalid ip, and extract next ip address;If ip is legal effectively, then calls Yafuflash instrument and start refurbishing procedure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610199800.XA CN105867975A (en) | 2016-04-01 | 2016-04-01 | Method for batch refreshing of BMC based on LINUX platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610199800.XA CN105867975A (en) | 2016-04-01 | 2016-04-01 | Method for batch refreshing of BMC based on LINUX platform |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105867975A true CN105867975A (en) | 2016-08-17 |
Family
ID=56627519
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610199800.XA Pending CN105867975A (en) | 2016-04-01 | 2016-04-01 | Method for batch refreshing of BMC based on LINUX platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105867975A (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106503141A (en) * | 2016-10-21 | 2017-03-15 | 郑州云海信息技术有限公司 | A kind of method of Mass production hosts files under linux system |
CN107066307A (en) * | 2017-05-27 | 2017-08-18 | 郑州云海信息技术有限公司 | A kind of outer batch orientation upgrading BMC of the band of easy O&M method |
CN107733700A (en) * | 2017-09-28 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of remote reflash method and system of separate unit, bulk service device BMC |
CN108388437A (en) * | 2018-01-25 | 2018-08-10 | 郑州云海信息技术有限公司 | A kind of remote reflash method and system of server B IOS |
CN108874423A (en) * | 2018-06-20 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of method that remote batch refreshes hard disk firmware |
CN109039770A (en) * | 2018-09-03 | 2018-12-18 | 郑州云海信息技术有限公司 | A kind of method for refreshing, device and the relevant device of server CMC |
CN109408307A (en) * | 2018-10-11 | 2019-03-01 | 郑州云海信息技术有限公司 | A method of automation concurrent testing BMC retains configuration upgrade function |
CN109471646A (en) * | 2018-11-01 | 2019-03-15 | 郑州云海信息技术有限公司 | A kind of upgrade method, device and the storage medium of the BMC version of server |
CN109525478A (en) * | 2018-12-17 | 2019-03-26 | 杭州迪普科技股份有限公司 | A kind of SSL VPN connection method and device |
CN109542479A (en) * | 2018-11-12 | 2019-03-29 | 郑州云海信息技术有限公司 | A kind of the firmware method for refreshing and system of multi-cascade server |
CN109634634A (en) * | 2018-12-12 | 2019-04-16 | 浪潮(北京)电子信息产业有限公司 | A kind of BMC firmware upgrade method, device and terminal |
CN110308950A (en) * | 2019-06-28 | 2019-10-08 | 北京云迹科技有限公司 | Factory initiated configuration method and device, the storage medium of industrial personal computer |
CN110704115A (en) * | 2019-09-16 | 2020-01-17 | 中盈优创资讯科技有限公司 | Method, device and system for configuring BMC (baseboard management controller) of server |
CN111221510A (en) * | 2019-12-26 | 2020-06-02 | 曙光信息产业(北京)有限公司 | Method and device for realizing batch execution framework based on LINUX platform |
CN111857783A (en) * | 2020-07-28 | 2020-10-30 | 山东云海国创云计算装备产业创新中心有限公司 | Method, device, equipment and storage medium for remotely refreshing BMC (baseboard management controller) firmware |
CN112506758A (en) * | 2020-11-19 | 2021-03-16 | 宁畅信息产业(北京)有限公司 | Firmware refreshing method and device, computer equipment and storage medium |
CN113424167A (en) * | 2019-02-19 | 2021-09-21 | 英迈国际有限公司 | System and method for distributing bulk user services using CSV |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104317617A (en) * | 2014-10-23 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Batch BMC Firmware refreshing method |
CN104375860A (en) * | 2014-10-30 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Batch refreshing method for high-density equipment cabinet nodes BMC |
CN104375859A (en) * | 2014-10-29 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Method for refreshing node BMCs of Rack in batch |
CN104461611A (en) * | 2014-11-05 | 2015-03-25 | 浪潮电子信息产业股份有限公司 | Method for refreshing node BIOSes of RACK cabinet in batches |
US9043776B2 (en) * | 2012-10-31 | 2015-05-26 | Lenovo Enterprise Solutions (Singapore) Pte. Ltd. | Transferring files to a baseboard management controller (‘BMC’) in a computing system |
-
2016
- 2016-04-01 CN CN201610199800.XA patent/CN105867975A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9043776B2 (en) * | 2012-10-31 | 2015-05-26 | Lenovo Enterprise Solutions (Singapore) Pte. Ltd. | Transferring files to a baseboard management controller (‘BMC’) in a computing system |
CN104317617A (en) * | 2014-10-23 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Batch BMC Firmware refreshing method |
CN104375859A (en) * | 2014-10-29 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Method for refreshing node BMCs of Rack in batch |
CN104375860A (en) * | 2014-10-30 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Batch refreshing method for high-density equipment cabinet nodes BMC |
CN104461611A (en) * | 2014-11-05 | 2015-03-25 | 浪潮电子信息产业股份有限公司 | Method for refreshing node BIOSes of RACK cabinet in batches |
Non-Patent Citations (2)
Title |
---|
匿名: "Shell脚本实现IP地址合法性判断", 《脚本之家网站》 * |
科钱 等著: "《Unix Shell编程》", 30 April 2004, 中国铁道出版社 * |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106503141A (en) * | 2016-10-21 | 2017-03-15 | 郑州云海信息技术有限公司 | A kind of method of Mass production hosts files under linux system |
CN107066307A (en) * | 2017-05-27 | 2017-08-18 | 郑州云海信息技术有限公司 | A kind of outer batch orientation upgrading BMC of the band of easy O&M method |
CN107733700A (en) * | 2017-09-28 | 2018-02-23 | 郑州云海信息技术有限公司 | A kind of remote reflash method and system of separate unit, bulk service device BMC |
CN108388437A (en) * | 2018-01-25 | 2018-08-10 | 郑州云海信息技术有限公司 | A kind of remote reflash method and system of server B IOS |
CN108874423A (en) * | 2018-06-20 | 2018-11-23 | 郑州云海信息技术有限公司 | A kind of method that remote batch refreshes hard disk firmware |
CN109039770B (en) * | 2018-09-03 | 2021-06-29 | 郑州云海信息技术有限公司 | Server CMC refreshing method and device and related equipment |
CN109039770A (en) * | 2018-09-03 | 2018-12-18 | 郑州云海信息技术有限公司 | A kind of method for refreshing, device and the relevant device of server CMC |
CN109408307A (en) * | 2018-10-11 | 2019-03-01 | 郑州云海信息技术有限公司 | A method of automation concurrent testing BMC retains configuration upgrade function |
CN109408307B (en) * | 2018-10-11 | 2021-10-29 | 郑州云海信息技术有限公司 | Method for automatically testing reserved configuration upgrading function of BMC in parallel |
CN109471646A (en) * | 2018-11-01 | 2019-03-15 | 郑州云海信息技术有限公司 | A kind of upgrade method, device and the storage medium of the BMC version of server |
CN109542479A (en) * | 2018-11-12 | 2019-03-29 | 郑州云海信息技术有限公司 | A kind of the firmware method for refreshing and system of multi-cascade server |
CN109634634A (en) * | 2018-12-12 | 2019-04-16 | 浪潮(北京)电子信息产业有限公司 | A kind of BMC firmware upgrade method, device and terminal |
CN109525478B (en) * | 2018-12-17 | 2021-08-24 | 杭州迪普科技股份有限公司 | SSL VPN connection method and device |
CN109525478A (en) * | 2018-12-17 | 2019-03-26 | 杭州迪普科技股份有限公司 | A kind of SSL VPN connection method and device |
CN113424167A (en) * | 2019-02-19 | 2021-09-21 | 英迈国际有限公司 | System and method for distributing bulk user services using CSV |
CN110308950A (en) * | 2019-06-28 | 2019-10-08 | 北京云迹科技有限公司 | Factory initiated configuration method and device, the storage medium of industrial personal computer |
CN110704115A (en) * | 2019-09-16 | 2020-01-17 | 中盈优创资讯科技有限公司 | Method, device and system for configuring BMC (baseboard management controller) of server |
CN111221510A (en) * | 2019-12-26 | 2020-06-02 | 曙光信息产业(北京)有限公司 | Method and device for realizing batch execution framework based on LINUX platform |
CN111857783A (en) * | 2020-07-28 | 2020-10-30 | 山东云海国创云计算装备产业创新中心有限公司 | Method, device, equipment and storage medium for remotely refreshing BMC (baseboard management controller) firmware |
CN112506758A (en) * | 2020-11-19 | 2021-03-16 | 宁畅信息产业(北京)有限公司 | Firmware refreshing method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105867975A (en) | Method for batch refreshing of BMC based on LINUX platform | |
CN104536875A (en) | Automatic server restart testing method based on IPMI | |
CN105511936B (en) | Test system, method and device | |
CN103973515A (en) | Network card stability testing method | |
CN109802867A (en) | A kind of method and system for testing network interface card NCSI connective stability | |
CN103970650A (en) | Distributed testing method and device | |
CN106549789B (en) | Method and system for realizing server installation | |
CN104572422A (en) | Memory monitoring achievement method based on startup and shutdown of Linux system | |
CN104125504B (en) | Deployment method, device and system based on continuous integration | |
WO2018006702A1 (en) | Abnormality processing method, apparatus and system in automation test | |
CN103559126A (en) | Method, device and computer terminal for testing software versions | |
CN115102877B (en) | Virtual network card network detection method, device, equipment and medium | |
CN111258591A (en) | Program deployment task execution method and device, computer equipment and storage medium | |
CN103618634A (en) | Method for automatically finding nodes in cluster | |
CN106603289B (en) | LMT configuration file smooth upgrading method | |
CN107688512A (en) | One kind optimization virtual-machine data backup method and system | |
WO2022093473A1 (en) | Pushing a firmware update patch to a computing device via an out-of-band path | |
CN112948008A (en) | Ironic based physical bare computer management method | |
CN105653408A (en) | Test method for carrying out POWER CYCLE startup and shutdown on the basis of BMC (Baseboard Management Controller) IPMITOOL (Intelligent Platform Management Interface) command single-node batch control | |
CN110928787B (en) | Automatic test script recording and playback method, device, equipment and storage medium | |
CN106452890A (en) | PXE server automatic configuration method under Ubuntu system | |
CN105426304A (en) | Control method and device of restart test | |
CN109995571B (en) | Method and device for matching server configuration and VNF application | |
CN106411643A (en) | BMC (Baseboard Management Controller) detection method and device | |
CN109257186A (en) | A kind of method and system making server automatically from PXE network startup |
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 |
Application publication date: 20160817 |
|
WD01 | Invention patent application deemed withdrawn after publication |