CN107943498A - A kind of method of JBOD node firmwares in batch refresh SR whole machine cabinets - Google Patents

A kind of method of JBOD node firmwares in batch refresh SR whole machine cabinets Download PDF

Info

Publication number
CN107943498A
CN107943498A CN201711205072.XA CN201711205072A CN107943498A CN 107943498 A CN107943498 A CN 107943498A CN 201711205072 A CN201711205072 A CN 201711205072A CN 107943498 A CN107943498 A CN 107943498A
Authority
CN
China
Prior art keywords
jbod
node
firmwares
whole machine
refresh
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
CN201711205072.XA
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 CN201711205072.XA priority Critical patent/CN107943498A/en
Publication of CN107943498A publication Critical patent/CN107943498A/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

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 discloses a kind of method of JBOD node firmwares in batch refresh SR whole machine cabinets, belong to computer memory technical field.The method of JBOD node firmwares in the batch refresh SR whole machine cabinets of the present invention, call what is integrated in JBOD node firmwares using CURL instruments by managing network, refresh the RESTful api commands of JBOD node firmwares, JBOD node firmwares are refreshed, and use the circulation script write under linux system, by traveling through the management network port IP address of whole JBOD nodes in SR whole machine cabinet servers, refreshing while to JBOD node firmwares progress batch is realized.The method of JBOD node firmwares can improve testing efficiency in the batch refresh SR whole machine cabinets of the invention, save the input of test manpower, and improving work efficiency reduces human cost, has good application value.

Description

A kind of method of JBOD node firmwares in batch refresh SR whole machine cabinets
Technical field
The present invention relates to computer memory technical field, specifically provides JBOD nodes in a kind of batch refresh SR whole machine cabinets and consolidates The method of part.
Background technology
JBOD(Just a Bunch Of Disks)That is disk cluster, be installed on a bottom plate carry multiple disks The storage device of driver, also commonly known as Span.For JBOD compared with RAID, JBOD does not have front end logic to come on hyperdisk Data distribution, on the contrary, each disk is individually addressed, one as separated storage resource, or Intrusion Detection based on host software Point.Advantages of the JBOD compared with RAID is its low cost, multiple disks can be merged into shared power supply and blower In box.
JBOD is successfully fabricated to the 1U sections for meeting scorpio standard by Inspur in SF-S1 type SR whole machine cabinet servers Point, provides powerful storage for the calculate node in traditional SR whole machine cabinets and supports.The core control portions of JBOD, i.e. JBOD Firmware, usually using UART serial ports or by management network port to single JBOD carry out firmware upgrade.But in SR whole machine cabinets In server, it will usually have the JBOD nodes of up to more than 10, in this case, refreshed one by one just to JBOD firmwares Seem very complicated.And when carrying out this operation to SR cabinets in batches, it is just more infeasible.
The content of the invention
The technical assignment of the present invention is to be directed to above-mentioned problem, there is provided one kind can improve testing efficiency, save and survey The input of manpower is tried, reaches JBOD node firmwares in the batch refresh SR whole machine cabinets for improving work efficiency reduction human cost purpose Method.
To achieve the above object, the present invention provides following technical solution:
A kind of method of JBOD node firmwares in batch refresh SR whole machine cabinets, the method utilize CURL instruments by managing network Call what is integrated in JBOD node firmwares, refresh the RESTful api commands of JBOD node firmwares, JBOD node firmwares are carried out Refresh, and using the circulation script write under linux system, by the pipe for traveling through whole JBOD nodes in SR whole machine cabinet servers Network interface IP address is managed, realizes refreshing while to JBOD node firmwares progress batch.
The RESTful API functions of being included in Inspur SR whole machine cabinet JBOD node firmwares, are every in JBOD firmwares One kind operation both provides a URL(Uniform Resource Locator)That is uniform resource locator address, and according to Corresponding command parameter is operated, wherein just containing the order for refreshing JBOD node firmwares.Pass through CURL (CommandLine Uniform Resource Locator) order line, calls the URL addresses for refreshing JBOD node firmwares, can Batch refresh is carried out to the JBOD node firmwares in SR whole machine cabinets to realize, method of the invention is to be completed based on this, can To realize large batch of automation mechanized operation.
Testing efficiency can be improved by this method, the input of test manpower is saved, it also avoid going out in repetitive operation Existing mistake, while the method can also be used in production and O&M, greatly improve work efficiency and reduce manpower into This.
Preferably, this method specifically includes following steps:
S1:Default JBOD node administration networks;
S2:Cyclic program is started according to JBOD node administration network interfaces IP address;
S3:To current JBOD node administrations network interface IP address, refresh corresponding JBOD node firmwares;
S4:Start and be transferred to backstage after refreshing JBOD node firmwares, continue cycling through the brush that program starts next JBOD node firmwares Newly.
In step S3, the main script for refreshing corresponding JBOD node firmwares is:
#!/bin/sh
functionfwflash()
Naming program is fwflash
for k in {1..10}
Defined parameters " k " are recycled to 10 from 1
do
Perform following operation
echo "-----------JBOD$k--------"
Display is recycled to the value of current " k ", i.e., currently performs the JBOD numberings that firmware refreshes.
curl http://192.168.1.$k/rest/v1/jbod/firmware-F"firmware_file=@ jbodfw.bin;type=application/octet-stream" -u username:password&
By curl instruments to URL addresses http:// 192.168.1. $ k/rest/v1/jbod/firmware are operated, this URL is the part for being responsible for operating firmware in RESTful API.- F represents to perform firmware refresh operation, " firmware_ file=@jbodfw.bin;Type=application/octet-stream " represents that the firmware file of refreshing is Jbodfw.bin, may be otherwise the fullpath address write after@where firmware file, application/octet- Stream, what this section of order represented transmission is a file rather than a single order ,-u username:Password is Refer to JBOD user names and password.Last & symbols are the common order for being transferred to backstage under Linux, and so there is no need in grade One JBOD performs next again after the completion of refreshing, but the firmware that next JBOD is directly transferred to after performing order refreshes, can Save the plenty of time.
done
EP (end of program).
Preferably, further include following step:
S5:Refreshing terminates, and the version information of whole JBOD nodes is checked by CURL instruments, it is ensured that Flushing success.
Mainly script is:
for k in {1..10}
Defined parameters " k " are recycled to 10 from 1
do
Perform following operation
echo "-----------JBOD$k--------"
Display is recycled to the value of current " k ", i.e., currently performs the JBOD numberings that firmware information is checked.
curl http://$ip/rest/v1/jbod/info -u username:password
By curl instruments to URL addresses http:// $ ip/rest/v1/jbod/info are operated, this URL is RESTful It is responsible for checking the part of firmware information in API.-u username:Password refers to JBOD user names and password.
done
EP (end of program).
Preferably, in step S1, according to the order of physical location from top to bottom, JBOD node administration networks are set JBOD node administration network interface IP address, such as JBOD1/192.168.1.1;JBOD2/192.168.1.2;……;JBOD10/ 192.168.1.10。
Preferably, in step S2, detect each JBOD node administrations network it is unobstructed after, start cyclic program.
Preferably, the circulation script is bash scripts.
Compared with prior art, the method for JBOD node firmwares has following dash forward in batch refresh SR whole machine cabinets of the invention The beneficial effect gone out:The method of JBOD node firmwares can be quickly concisely and efficiently whole to SR in the batch refresh SR whole machine cabinets The JBOD nodes of cabinet, carry out batch firmware refresh operation, improve testing efficiency, save the input of test manpower, also avoid The mistake occurred in repetitive operation, while the method can also be used in production and O&M, greatly improve work effect Rate simultaneously reduces human cost, has good application value.
Brief description of the drawings
Fig. 1 is the flow chart of the method for JBOD node firmwares in batch refresh SR whole machine cabinets of the present invention.
Embodiment
Below in conjunction with drawings and examples, to the method for JBOD node firmwares in the batch refresh SR whole machine cabinets of the present invention It is described in further detail.
Embodiment
As shown in Figure 1, the present invention batch refresh SR whole machine cabinets in JBOD node firmwares method, by manage network profit Call what is integrated in JBOD node firmwares with CURL instruments, refresh the RESTful api commands of JBOD node firmwares, JBOD is saved Point firmware is refreshed, and circulates script using the bash write under linux system, complete in SR whole machine cabinet servers by traveling through The management network port IP address of portion's JBOD nodes, realizes refreshing while to JBOD node firmwares progress batch.
This method specifically includes following steps:
S1:Default JBOD node administration networks.
According to the order of physical location from top to bottom, the JBOD node administration network interfaces IP of JBOD node administration networks is set Location.
S2:Cyclic program is started according to JBOD node administration network interfaces IP address.
Default JBOD node administration networks, detect each JBOD node administrations network it is unobstructed after, start cyclic program.
S3:To current JBOD node administrations network interface IP address, refresh corresponding JBOD node firmwares.
Mainly script is:
#!/bin/sh
functionfwflash()
Naming program is fwflash
for k in {1..10}
Defined parameters " k " are recycled to 10 from 1
do
Perform following operation
echo "-----------JBOD$k--------"
Display is recycled to the value of current " k ", i.e., currently performs the JBOD numberings that firmware refreshes.
curl http://192.168.1.$k/rest/v1/jbod/firmware-F"firmware_file=@ jbodfw.bin;type=application/octet-stream" -u username:password&
By curl instruments to URL addresses http:// 192.168.1. $ k/rest/v1/jbod/firmware are operated, this URL is the part for being responsible for operating firmware in RESTful API.- F represents to perform firmware refresh operation, " firmware_ file=@jbodfw.bin;Type=application/octet-stream " represents that the firmware file of refreshing is Jbodfw.bin, may be otherwise the fullpath address write after@where firmware file, application/octet- Stream, what this section of order represented transmission is a file rather than a single order ,-u username:Password is Refer to JBOD user names and password.Last & symbols are the common order for being transferred to backstage under Linux, and so there is no need in grade One JBOD performs next again after the completion of refreshing, but the firmware that next JBOD is directly transferred to after performing order refreshes, can Save the plenty of time.
done
EP (end of program).
S4:Start and be transferred to backstage after refreshing JBOD node firmwares, continue cycling through program and start next JBOD node firmwares Refreshing.
S5:Refreshing terminates, and the version information of whole JBOD nodes is checked by CURL instruments, it is ensured that Flushing success.
Mainly script is:
for k in {1..10}
Defined parameters " k " are recycled to 10 from 1
do
Perform following operation
echo "-----------JBOD$k--------"
Display is recycled to the value of current " k ", i.e., currently performs the JBOD numberings that firmware information is checked.
curl http://$ip/rest/v1/jbod/info -u username:password
By curl instruments to URL addresses http:// $ ip/rest/v1/jbod/info are operated, this URL is RESTful It is responsible for checking the part of firmware information in API.-u username:Password refers to JBOD user names and password.
done
EP (end of program).
Embodiment described above, is the present invention more preferably embodiment, those skilled in the art is at this The usual variations and alternatives carried out in the range of inventive technique scheme should all include within the scope of the present invention.

Claims (6)

1. a kind of method of JBOD node firmwares in batch refresh SR whole machine cabinets, it is characterised in that:The method is by managing net Network calls what is integrated in JBOD node firmwares using CURL instruments, refreshes the RESTful api commands of JBOD node firmwares, right JBOD node firmwares are refreshed, and using the circulation script write under linux system, by traveling through in SR whole machine cabinet servers The management network port IP address of whole JBOD nodes, realizes refreshing while to JBOD node firmwares progress batch.
2. the method for JBOD node firmwares in batch refresh SR whole machine cabinets according to claim 1, it is characterised in that:The party Method specifically includes following steps:
S1:Default JBOD node administration networks;
S2:Cyclic program is started according to JBOD node administration network interfaces IP address;
S3:To current JBOD node administrations network interface IP address, refresh corresponding JBOD node firmwares;
S4:Start and be transferred to backstage after refreshing JBOD node firmwares, continue cycling through the brush that program starts next JBOD node firmwares Newly.
3. the method for JBOD node firmwares in batch refresh SR whole machine cabinets according to claim 2, it is characterised in that:Also wrap Include following step:
S5:Refreshing terminates, and the version information of whole JBOD nodes is checked by CURL instruments, it is ensured that Flushing success.
4. the method for JBOD node firmwares in batch refresh SR whole machine cabinets according to claim 3, it is characterised in that:Step In S1, according to the order of physical location from top to bottom, the JBOD node administration network interface IP address of setting JBOD node administration networks.
5. the method for JBOD node firmwares in batch refresh SR whole machine cabinets according to claim 4, it is characterised in that:Step In S2, detect each JBOD node administrations network it is unobstructed after, start cyclic program.
6. the method for JBOD node firmwares, its feature in the batch refresh SR whole machine cabinets according to claim 1,2,3,4 or 5 It is:The circulation script is bash scripts.
CN201711205072.XA 2017-11-27 2017-11-27 A kind of method of JBOD node firmwares in batch refresh SR whole machine cabinets Pending CN107943498A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711205072.XA CN107943498A (en) 2017-11-27 2017-11-27 A kind of method of JBOD node firmwares in batch refresh SR whole machine cabinets

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711205072.XA CN107943498A (en) 2017-11-27 2017-11-27 A kind of method of JBOD node firmwares in batch refresh SR whole machine cabinets

Publications (1)

Publication Number Publication Date
CN107943498A true CN107943498A (en) 2018-04-20

Family

ID=61950070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711205072.XA Pending CN107943498A (en) 2017-11-27 2017-11-27 A kind of method of JBOD node firmwares in batch refresh SR whole machine cabinets

Country Status (1)

Country Link
CN (1) CN107943498A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090210631A1 (en) * 2006-09-22 2009-08-20 Bea Systems, Inc. Mobile application cache system
CN104461611A (en) * 2014-11-05 2015-03-25 浪潮电子信息产业股份有限公司 Method for refreshing node BIOS (basic input/output system) of RACK (RACK operating system) in batches
CN106775877A (en) * 2016-12-22 2017-05-31 郑州云海信息技术有限公司 A kind of firmware method for refreshing and a kind of server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090210631A1 (en) * 2006-09-22 2009-08-20 Bea Systems, Inc. Mobile application cache system
CN104461611A (en) * 2014-11-05 2015-03-25 浪潮电子信息产业股份有限公司 Method for refreshing node BIOS (basic input/output system) of RACK (RACK operating system) in batches
CN106775877A (en) * 2016-12-22 2017-05-31 郑州云海信息技术有限公司 A kind of firmware method for refreshing and a kind of server

Similar Documents

Publication Publication Date Title
CN110879712B (en) Cloud data center physical host installation method and related device
CN103593147B (en) A kind of method and device of digital independent
US20210240514A1 (en) Virtual machine client-side virtual network change
CN105335168B (en) Realize system, the method and device of operating system Remote configuration
CN105488000B (en) Realize the method and system that USB device quickly accesses
CN107666493B (en) Database configuration method and equipment thereof
US8751868B2 (en) Control server and method for switching running of test programs stored in multiple storage mediums of test server
CN109474459A (en) Domain name configuring management method, device, computer equipment and storage medium
TW201324355A (en) Method for automatic installation and setting of server and application program for the same
CN107770299A (en) A kind of MAC Address writes with a brush dipped in Chinese ink method, system, device and storage medium
WO2020151447A1 (en) Offline configuration method and apparatus for smart device
CN107301084B (en) Virtual machine migration method and device of cluster server, server and storage medium
CN106708573A (en) System and method used for automatic installation of Hadoop cluster
CN107665141A (en) A kind of configuration method for database and its equipment
CN103561089B (en) Virtual machine desktop log-in, Apparatus and system
CN103281407B (en) A kind of IP address long-distance management system based on Godson cloud terminal
CN110247801A (en) A kind of monitoring system and method for pair of cluster host
CN212137723U (en) Server management system
US10613708B2 (en) Cloning a hypervisor
CN107800802A (en) A kind of Rack whole machine cabinets write-in and the method for reading UUID
CN107943498A (en) A kind of method of JBOD node firmwares in batch refresh SR whole machine cabinets
TWI715456B (en) Method for managing the addresses of baseboard management controllers and server system
US10355919B2 (en) Mobile storage configuration
CN109039770A (en) A kind of method for refreshing, device and the relevant device of server CMC
CN105740180A (en) Virtual machine access method and apparatus for USB device

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