CN105589717A - Batch BIOS refreshing method based on SSH service - Google Patents

Batch BIOS refreshing method based on SSH service Download PDF

Info

Publication number
CN105589717A
CN105589717A CN201510915342.0A CN201510915342A CN105589717A CN 105589717 A CN105589717 A CN 105589717A CN 201510915342 A CN201510915342 A CN 201510915342A CN 105589717 A CN105589717 A CN 105589717A
Authority
CN
China
Prior art keywords
ssh
bios
file
server
batch
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
CN201510915342.0A
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510915342.0A priority Critical patent/CN105589717A/en
Publication of CN105589717A publication Critical patent/CN105589717A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

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)
  • Stored Programmes (AREA)

Abstract

The invention provides a batch BIOS refreshing method based on SSH service, which adopts the idea that a server to be tested reduces the upgrade of other servers to be tested: firstly, one server is upgraded locally, and then other servers are upgraded as required by adopting the configuration of SSH service. The method is suitable for synchronous refreshing of large-scale servers, the refreshing method is simple to operate, the achievement rate is high, the operation and maintenance performance of products can be greatly improved, and the labor input is reduced.

Description

A kind of batch BIOS method for refreshing based on SSH service
Technical field
The present invention relates to server software field, be specifically related to a kind of batch BIOS method for refreshing based on SSH service.
Background technology
When after server product listing, software Firmware renewals of still can constantly upgrading, to realize, some increase newlyFunctional requirement, or revise the problem of finding. But traditional BIOS promotion and demotion method for refreshing, be substantially all refresh by under DOS, baseIn refreshing of BMCWEB interface etc. As the method for refreshing based under DOS, generally need to carry out by platform operation separate unit server,Outfit possesses the USB flash disk of refresh function, and needs manually input the corresponding command to operate, and this method for refreshing also existsUnder very large probability, refresh unsuccessful situation; For the method for refreshing based on BMCWEB interface, although that this method for refreshing refreshes is thoroughThe end, Flushing success rate, are high, but the BMCWEB interface that the method need to be logined each and treats refreshing service device enters serverRefresh mode, and Firmwarm to be upgraded is uploaded to after refreshing service device, just can refresh, the method operation is multipleAssorted. When in the time that the server number of units refreshing is more, operability is poor.
General server B IOS refreshes and can refresh by under DOS, the method such as under BMCWEB interface, refreshes, but like thisMethod all need separate unit server to carry out, by platform operation, being difficult to ensure the uniformity of operation.
Summary of the invention
Technical assignment of the present invention is for the deficiencies in the prior art, and a kind of batch BIOS brush based on SSH service is providedNew method. This method adopts server to be measured to fall the idea of other server updating to be measured: first a station server is wherein enteredThe upgrading of row the machine, then adopts the configuration of SSH service, and other server is upgraded as required.
The technical solution adopted for the present invention to solve the technical problems is:
Based on a batch BIOS method for refreshing for SSH service, this method adopts server to be measured to fall other server liter to be measuredThe idea of level a: first station server is wherein carried out to the machine upgrading, then adopt the configuration of SSH service, by other serverUpgrade as required.
All node starts, enter Linux, and data port network configuration is good, chooses a node as master at the same network segmentNode, guarantees that host node and other meshed networks are unimpeded, on host node, copies biosflashtool file and clips to root catalogue,Under ssh-configure-root file, edit hostfile file, add other node IP address to hostfile literary compositionPart, carries out ssh.sh script, and ssh is without password login in configuration, and after having configured, logining other nodes from host node SSH will not needInput password.
On host node, enter biosflashtool file, first on host node, upgrade BIOS checking BIOS and upgradeWithout abnormal, first carry out " serviceipmistart " and guarantee ipmi service unlatching, then carry out " ./Meflash.shBios.bin " start to refresh, after host node has upgraded, because ME part has renewal, need power-off, re-power, break toFew 30 seconds, guarantee that mainboard power down is clean, powering on start enters biosflashtool file, utilize dmidecode withSpsinfo instrument check respectively BIOS ME version and state whether normal.
Compared with prior art, what produce is useful for a kind of batch BIOS method for refreshing based on SSH service of the present inventionEffect is,
1, carry out BIOS upgrading based on SSH service, greatly reduce the impact on Client application;
2, extensive batch operation, ensures to refresh the high consistency of work;
3, refresh work and need to, by external equipment, not use a server to be updated, reduce plant maintenance workload.
Brief description of the drawings
Fig. 1 is host node refurbishing procedure figure;
Fig. 2 is child node refurbishing procedure figure;
Fig. 3 is child node check problem figure.
Detailed description of the invention
Following in detail to a kind of batch BIOS method for refreshing work based on SSH service of the present invention below in conjunction with accompanying drawingBright.
Based on a batch BIOS method for refreshing for SSH service, this method adopts server to be measured to fall other service to be measuredThe idea of device upgrading a: first station server is wherein carried out to the machine upgrading, then adopt the configuration of SSH service, by other clothesBusiness device is upgraded as required.
As shown in Figure 1, all node starts, enter Linux, and data port network configuration is good, at the same network segment, for example, is192.168.1 the network segment. Choose a node as host node, for example host node IP is 192.168.1.10, guarantee host node withOther meshed networks are unimpeded, copy biosflashtool file and clip to root catalogue, at ssh-configure-on host nodeUnder root file, edit hostfile file, for example add other node IP address, to hostfile file,192.168.1.11 ~ 192.168.1.14, carries out ssh.sh script, and ssh is without password login in configuration, after having configured from host nodeSSH logins other nodes will not need to input password, give tacit consent to all LinuxOS user name passwords for " root 111111 ", asFruit password is not " 111111 ", need to revise ssh.sh content.
Attached: the non-ME of refreshing refreshes script:
#!/bin/sh
if[!-n"$1"]
then
echo"Error:HavenotinputBIOSimage!"
exit0
fi
./afulnx_64$1/p/b/n/x/k/l
Attached: to refresh ME and refresh script:
#!/bin/bash
if[!-n"$1"]
then
echo"Error:HavenotinputBIOSimage!"
exit0
fi
echo"==================================================="
echo"MEreflashBegin......"
echo"==================================================="
ipmitoolraw0x3a0x320x01>reflash.log
while[$?-ne0];do
ipmitoolraw0x3a0x320x01>reflash.log
done
echo"3a3202"
echo"WaitingforMEtoreflashnow,pleasewaitamoment......"
sleep3
ipmitoolraw0x3a0x320x02>getme.log
while[$?-ne0];do
ipmitoolraw0x3a0x320x02>getme.log
done
status1=`catgetme.log`
#echo$status1
if["$status1"=="01"];then
echo"==================================================="
echo"MEreflashingnow......"
echo"==================================================="
./afulnx_64$1/b/p/n/x/k/l/ME
if[$?-eq0];then
echo"success">reflash.log
else
echo"Error:Pleaseruntoolagain!"|tee-areflash.log
exit0
fi
else
echo"Error:Pleaserunreflashtoolagain!"|tee-areflash.log
exit0
fi
echo"3a3200"
echo"Pleasewaitamoment......"
ipmitoolraw0x3a0x320x00>reflash.log
while[$?-ne0];do
ipmitoolraw0x3a0x320x00>reflash.log
done
sleep2
ipmitoolraw0x3a0x320x02>getme1.log
while[$?-ne0];do
ipmitoolraw0x3a0x320x02>getme1.log
done
status2=`catgetme1.log`
#echo$status2
if["$status2"=="00"];then
rmgetme.log-f
rmgetme1.log-f
rmreflash.log-f
echo"MEreflashfinished!"
echo"SystemmustACpowerofftohavethechangestakeeffect!"
else
echo"Error:MEisnotinnormalmode,pleaserun'ipmitoolraw0x3a0x320x00'again">reflash.log
exit0
fi
As shown in Figure 2, the ssh.sh script in ssh-configure-root file cannot be normal for LinuxOS such as BaiduUse, because the OS of Baidu does not have expect instrument, so just cannot configure SSH without cryptographic acess. There are two kinds of methods for this problem:
1) provide a complete installation system dish of standard redhat6.5 for oneself as host node, use ssh.sh to configure without password loginThe node of other collocation OS of Baidu, is used for controlling whole batch updating process.
2) on the OS of Baidu host node, #cd/root/.ssh/, #ssh-keygen – trsa, a then road carriage return, rawBecome id_rsa and two files of id_rsa.pub, carry out #catid_rsa.pub authorized_keys, willAuthorized_keys copies under other node/root/.ssh/ catalogue, foriin{11..14}; Doscp/root/.ssh/authorized_keys192.168.1.$i:/root/.ssh/;done
This copy procedure need to be inputted logged linux system password manually, and after having copied, next use will be without handMoving input password.
3) the command.dat content for script under editor biosflashtool file, by other node i p address realmAdd wherein, for example, be revised as foriin{11..14},
Attached: SSH is without password login script example in configuration:
#source/opt/scripts/paizhi.txt
#if[-fhostfile];then
#/bin/rm-fhostfile
#fi
#t=`echo$nodeall|awk'{printNF}'`
#foriin$nodeall
#do
#echom$i|tee-ahostfile
#done
foriin`cathostfile`;doping$i-c1;done
./step1.exp
./step2.exp111111
./step3.exp111111
As shown in Figure 3, on host node, enter biosflashtool file, first on host node, upgrade BIOS checkingBIOS renewal, without abnormal, first carried out " serviceipmistart " and is guaranteed ipmi service unlatching, next carry out " ./Meflash.shbios.bin " start to refresh, after host node has upgraded, because ME part has renewal, need power-off, againPower on, break at least 30 seconds, guarantee that mainboard power down is clean, the start that powers on enters biosflashtool file, utilizesDmidecode and spsinfo instrument check respectively BIOS ME version and state whether normal.
Whether the version of carrying out dmidecode|grep " Version: " inspection BIOS meets expection.
Whether the version of carrying out ./spsinfo|grep " SPSImage " inspection ME meets expection.
Carry out ./spsinfo|grep " CurrentState " and check whether Normal of ME state, Normal represents workNormally, meet expection.

Claims (3)

1. the batch BIOS method for refreshing based on SSH service, is characterized in that this method adopts server to be measured to fall otherThe idea of server updating to be measured: first a station server is wherein carried out to the machine upgrading, then adopt the configuration of SSH service,Other server is upgraded as required.
2. a kind of batch BIOS method for refreshing based on SSH service according to claim 1, is characterized in that all nodesStart, enters Linux, and data port network configuration is good, chooses a node as host node at the same network segment, guarantees host nodeUnimpeded with other meshed networks, on host node, copy biosflashtool file and clip to root catalogue, at ssh-configure-Under root file, edit hostfile file, add other node IP address to hostfile file, carry out ssh.sh script,Ssh is without password login in configuration, and after having configured, logining other nodes from host node SSH will not need to input password.
3. a kind of batch BIOS method for refreshing based on SSH service according to claim 1, is characterized in that at host nodeOn enter biosflashtool file, first on host node, upgrade BIOS checking BIOS and upgrade without abnormal, first carry outServiceipmistart guarantees ipmi service unlatching, then carries out Meflash.shbios.bin and starts to refresh, host nodeAfter renewal completes, because ME part has renewal, need power-off, re-power, break at least 30 seconds, guarantee that mainboard power down is clean,Powering on start enters biosflashtool file, utilize dmidecode and spsinfo instrument check respectively BIOS ME versionAnd whether state is normal.
CN201510915342.0A 2015-12-10 2015-12-10 Batch BIOS refreshing method based on SSH service Pending CN105589717A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510915342.0A CN105589717A (en) 2015-12-10 2015-12-10 Batch BIOS refreshing method based on SSH service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510915342.0A CN105589717A (en) 2015-12-10 2015-12-10 Batch BIOS refreshing method based on SSH service

Publications (1)

Publication Number Publication Date
CN105589717A true CN105589717A (en) 2016-05-18

Family

ID=55929323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510915342.0A Pending CN105589717A (en) 2015-12-10 2015-12-10 Batch BIOS refreshing method based on SSH service

Country Status (1)

Country Link
CN (1) CN105589717A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227562A (en) * 2016-07-22 2016-12-14 浪潮电子信息产业股份有限公司 Method for automatically upgrading BIOS (basic input output System) of complete machine cabinet of Smart Rack in batch
CN106648732A (en) * 2016-09-27 2017-05-10 郑州云海信息技术有限公司 DOS-based extraction and modification method for BIOS
CN106713053A (en) * 2017-02-19 2017-05-24 郑州云海信息技术有限公司 Method and device for batch updating server firmware based on Linux
CN106790125A (en) * 2016-12-27 2017-05-31 郑州云海信息技术有限公司 It is a kind of to automatically configure method and system of the ssh without cryptographic acess
CN107402753A (en) * 2017-06-30 2017-11-28 郑州云海信息技术有限公司 The method for refreshing and device of a kind of hard disk firmware
CN108600031A (en) * 2018-05-10 2018-09-28 烽火通信科技股份有限公司 A kind of lower key of linux system upgrades the implementation method of primary, spare board
CN111475007A (en) * 2020-04-08 2020-07-31 苏州浪潮智能科技有限公司 Server power-off method, device and related equipment

Citations (7)

* Cited by examiner, † Cited by third party
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
CN102521119A (en) * 2011-11-15 2012-06-27 浪潮电子信息产业股份有限公司 Method for rapidly detecting cluster parallel efficiency
CN104461611A (en) * 2014-11-05 2015-03-25 浪潮电子信息产业股份有限公司 Method for refreshing node BIOS (basic input/output system) of RACK (RACK operating system) in batches
CN104572269A (en) * 2015-01-19 2015-04-29 浪潮电子信息产业股份有限公司 Quick cluster deployment method based on Linux operation system
CN104615472A (en) * 2015-03-06 2015-05-13 浪潮集团有限公司 Method for preventing BIOS+ME FW online refresh failure
CN104639378A (en) * 2015-03-10 2015-05-20 浪潮集团有限公司 Automatic server deployment method based on PXE (pre-boot execution environment)
CN104732151A (en) * 2015-03-17 2015-06-24 浪潮集团有限公司 Remote safety batch BIOS updating method under Linux system

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
CN102521119A (en) * 2011-11-15 2012-06-27 浪潮电子信息产业股份有限公司 Method for rapidly detecting cluster parallel efficiency
CN104461611A (en) * 2014-11-05 2015-03-25 浪潮电子信息产业股份有限公司 Method for refreshing node BIOS (basic input/output system) of RACK (RACK operating system) in batches
CN104572269A (en) * 2015-01-19 2015-04-29 浪潮电子信息产业股份有限公司 Quick cluster deployment method based on Linux operation system
CN104615472A (en) * 2015-03-06 2015-05-13 浪潮集团有限公司 Method for preventing BIOS+ME FW online refresh failure
CN104639378A (en) * 2015-03-10 2015-05-20 浪潮集团有限公司 Automatic server deployment method based on PXE (pre-boot execution environment)
CN104732151A (en) * 2015-03-17 2015-06-24 浪潮集团有限公司 Remote safety batch BIOS updating method under Linux system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
系统: "《东坡下载站:https://m.baidu.com/mip/c/m.uzzf.com/mipu/54721.html?from=singlemessage&isappinstalled=0》", 21 October 2013 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106227562A (en) * 2016-07-22 2016-12-14 浪潮电子信息产业股份有限公司 Method for automatically upgrading BIOS (basic input output System) of complete machine cabinet of Smart Rack in batch
CN106648732A (en) * 2016-09-27 2017-05-10 郑州云海信息技术有限公司 DOS-based extraction and modification method for BIOS
CN106790125A (en) * 2016-12-27 2017-05-31 郑州云海信息技术有限公司 It is a kind of to automatically configure method and system of the ssh without cryptographic acess
CN106713053A (en) * 2017-02-19 2017-05-24 郑州云海信息技术有限公司 Method and device for batch updating server firmware based on Linux
CN107402753A (en) * 2017-06-30 2017-11-28 郑州云海信息技术有限公司 The method for refreshing and device of a kind of hard disk firmware
CN107402753B (en) * 2017-06-30 2020-11-27 苏州浪潮智能科技有限公司 Method and device for refreshing hard disk firmware
CN108600031A (en) * 2018-05-10 2018-09-28 烽火通信科技股份有限公司 A kind of lower key of linux system upgrades the implementation method of primary, spare board
CN111475007A (en) * 2020-04-08 2020-07-31 苏州浪潮智能科技有限公司 Server power-off method, device and related equipment

Similar Documents

Publication Publication Date Title
CN105589717A (en) Batch BIOS refreshing method based on SSH service
US8990368B2 (en) Discovery of network software relationships
US10079850B1 (en) Systems and methods for provisioning cyber security simulation exercises
US8219983B1 (en) Systems and methods for providing guidance on the potential impact of application and operating-system changes on a computing system
US8910172B2 (en) Application resource switchover systems and methods
CN101794359B (en) Methods and systems for enabling community-tested security features for legacy applications
US20170168797A1 (en) Model-driven updates distributed to changing topologies
CN103034563B (en) For the method and system of the backup operation of management data
US20140122931A1 (en) Performing diagnostic tests in a data center
CN103905253A (en) Server monitoring and management method based on Nagios and BMC
US10049023B1 (en) Optimizing application recovery in unmanaged clusters
Smith Docker Orchestration
CN104461647A (en) Implementation method for remotely refreshing server power modules in batch
US9197503B2 (en) Enhanced remote presence
US20100281474A1 (en) Firmware updating
US8352757B2 (en) Oversubscribing branch circuits while lowering power distribution costs
US8819663B2 (en) Acceleration of software modifications in networked devices
WO2021031655A1 (en) Method and apparatus for upgrading blockchain network, storage medium, and electronic device
US20180082066A1 (en) Secure data erasure in hyperscale computing systems
US10122602B1 (en) Distributed system infrastructure testing
CN112579353A (en) Automatic operation and maintenance method and device and big data platform
US10613708B2 (en) Cloning a hypervisor
US8819234B1 (en) Supplying data storage services
CN106209445A (en) A kind of Visualized data centre by network design
US10325096B1 (en) Modifying a portion of a read-only file system

Legal Events

Date Code Title Description
C06 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: 20160518