CN105912345A - Control node as well as system and method for refreshing external plugin card drives - Google Patents

Control node as well as system and method for refreshing external plugin card drives Download PDF

Info

Publication number
CN105912345A
CN105912345A CN201610305306.7A CN201610305306A CN105912345A CN 105912345 A CN105912345 A CN 105912345A CN 201610305306 A CN201610305306 A CN 201610305306A CN 105912345 A CN105912345 A CN 105912345A
Authority
CN
China
Prior art keywords
destination node
card
peripheral hardware
outer plug
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
Application number
CN201610305306.7A
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 CN201610305306.7A priority Critical patent/CN105912345A/en
Publication of CN105912345A publication Critical patent/CN105912345A/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 control node as well as a system and method for refreshing external plugin card drives. The control node is used for determining various external plugin card drive files through a determination unit; detecting target nodes which log in peripherals and detecting the types of operation systems in the target nodes and the types and versions of external plugin cards of the peripherals through a detection unit; receiving various external plugin card drives sent by the determination unit, determining a target drive file for each external plugin card in the target node of each peripheral according to the detected type of the operation system in the target node and the type and version of the external plugin card of each peripheral, and sending the target drive files to corresponding target nodes through a transmission unit; and driving a refreshing unit to utilize the target drive file of at least one target node of the peripheral to refresh each external plugin drive in the at least one target node of the peripheral. According to the control node as well as the system and method provided by the invention, the external plugin card driven updating efficiency can be effectively improved.

Description

A kind of control node, refresh outer plug-in card drive system and method
Technical field
The present invention relates to field of computer technology, control node particularly to one, refresh outer plug-in card driving System and method.
Background technology
Along with people are increasing to the use demand of computer techno-stress, in order to rationally apply the sky of machine room Between, server cabinet (being usually mounted with 20 to 80 servers) arises at the historic moment.To server cabinet Carry out in routine maintenance procedure, it is often necessary to various outer plug-in cards in these 20 to 80 servers (network interface card, RAID card, HBA card etc.) driving carry out upgrading refresh.
At present, each driving mainly, is manually copied to by the mode that various outer plug-in card driver upgrades refresh In server, and it is driven manually installing updating, and for the service of system kernel amendment For device, then need professional and technical personnel first manually to compile driving, then the driving after more newly compiled be installed, If updating one to drive needs about 10 to 15 minutes, to outer plug-in card in server each in rack Drive and refresh one by one, by the time longer for waste, cause the outer plug-in card of server in rack to drive more The most inefficient.
Summary of the invention
Embodiments provide a kind of control node, refresh outer plug-in card drive system and method, have Improve to effect outer plug-in card and drive renewal efficiency.
A kind of control node, is connected with at least one destination node of peripheral hardware, comprises determining that unit, inspection Survey unit, transmission unit and drive refresh unit, wherein,
Described determine unit, be used for determining that various outer plug-in card drives file, and described various outer plug-in cards are driven Dynamic file is sent to described transmission unit;
Described detector unit, for logging at least one destination node of described peripheral hardware, detects described peripheral hardware At least one destination node in OS Type and outer plug-in card type and version;
Described transmission unit, drives, according to institute for receiving the described various outer plug-in cards determining that unit sends Various OS Types and outer plug-in card type in the destination node of each peripheral hardware stating detector unit detection And version, determine target drives file for each outer plug-in card in the destination node of each peripheral hardware, will Described target drives file is sent to the destination node of correspondence, and triggers driving refresh unit;
Described driving refresh unit, for when receiving the triggering of described transmission unit, utilize described outside If the target drives file that receives of at least one destination node, refresh at least one mesh of described peripheral hardware Each outer plug-in card in mark node drives.
Preferably, above-mentioned control node, farther include: compilation unit, wherein,
Described compilation unit, at least one target joint of the peripheral hardware for detecting according to described detector unit OS Type in point, generates corresponding compiling information;
Described transmission unit, the compiling information being further used for generating described compilation unit is sent to correspondence The destination node of peripheral hardware;
Described driving refresh unit, is further used for the compiling information transmitted according to described transmission unit, repaiies Change the target drives file that the destination node of correspondence receives, utilize amended target drives file to refresh Each outer plug-in card at least one destination node of described peripheral hardware drives.
Preferably, above-mentioned control node, farther include: dispensing unit, wherein,
Described dispensing unit, is used for as each destination node at least one destination node of described peripheral hardware The IP that configuration is corresponding, and IP corresponding for the configuration of each destination node is sent to described detector unit;
Described detector unit, is further used for receiving each destination node pair that described dispensing unit sends The IP answered, and by automatically entering Target IP in following logon script, sign in this Target IP corresponding Destination node;
Logon script:
#!/bin/bash
function logon()
{ssh$i}
For i in{1, N}
do
echo"-----------$i--------"
logon$i"$1"&
done
Wherein, logon () characterizes the main body program logged in;$ i characterizes the IP of i-th destination node;N table Levy destination node sum;" $ 1 " sign order performs next step program;& characterizes and proceeds to background loop execution Script.
Preferably, described detector unit, it is further used for, by following sense command, lighting outside each If destination node in the identification LEDs of BMC, determine and communicate between the destination node of each peripheral hardware Unimpeded;
Sense command:
For i in{1, N}
do ssh cu$i ipmitool chassis identify
Wherein, N characterizes destination node sum;$ i characterizes the IP of i-th destination node.
Preferably, described transmission unit, it is used for utilizing following transmission script, by target drives file and volume The information of translating is transferred to the peripheral hardware destination node of correspondence;
Transmission script:
#!/bin/bash
function scopy()
{scp$1$2$3}
scopy afulnx rom 192.168.1.$i:/root/Drive/
done
Wherein, scopy () procedure subject is telecopy scp;$ 1 characterizes target drives file;$ 2 characterizes Compiling information;$ 3 characterizes the target drives file storage catalogue at destination node.
Preferably, above-mentioned control node, farther include:
Authentication unit, for utilize following crawl script capture peripheral hardware at least one destination node in each Outer plug-in card drives version information, and is that described version information generates driving release documentation, verifies described version The version information one of the target drives file that the version information in document receives with described driving updating block Cause;
Crawl script:
For i in{1, N}
do echo“cu$i”>>check.txt
The title of current target node is write check.txt document
ssh 192.168.1.$i dmesg|grep aac>>check.txt
In dmesg, capture various outer plug-in card drive version number information, write check.txt
Done。
A kind of system refreshing outer plug-in card driving, including: any of the above-described described control node and at least Individual destination node, wherein,
In at least one destination node described, each destination node, it is used for receiving described control node and sends out The outer plug-in card sent drives file, and under the control of described control node, utilizes described outer plug-in card to drive literary composition Part refreshes corresponding outer plug-in card and drives.
A kind of method utilizing any one refreshing outer plug-in card controlling node realization above-mentioned to drive, determines control Node processed, and set up the connection between described control node and at least one destination node, also include:
Control node is utilized to determine that various outer plug-in card drives file;
Log at least one destination node of described peripheral hardware, detect at least one destination node of described peripheral hardware Middle OS Type and outer plug-in card type and version;
According to OS Types various in the destination node of each peripheral hardware and outer plug-in card type and version, Target drives file is determined for each outer plug-in card in the destination node of each peripheral hardware;
Described target drives file is sent to the destination node of correspondence;
The target drives file utilizing at least one destination node of described peripheral hardware to receive, refresh described outside If at least one destination node in each outer plug-in card drive.
Preferably, said method farther includes: according to operation system at least one destination node of peripheral hardware System type, generates corresponding compiling information;
The described destination node that described target drives is sent to correspondence, including: utilize following transmission script, Target drives file and compiling information are transferred to the peripheral hardware destination node of correspondence;
Transmission script:
#!/bin/bash
function scopy()
{scp$1$2$3}
scopy afulnx rom 192.168.1.$i:/root/Drive/
done
Wherein, scopy () procedure subject is telecopy scp;$ 1 characterizes target drives file;$ 2 characterizes Compiling information;$ 3 characterizes the target drives file storage catalogue at destination node;
Each outer plug-in card at least one destination node of the described peripheral hardware of described refreshing drives, including: According to described compiling information, the target drives file that the destination node of amendment correspondence receives, utilize amendment After target drives file refresh described peripheral hardware at least one destination node in each outer plug-in card drive.
Preferably, said method farther includes:
For the IP that each destination node configuration at least one destination node described is corresponding;
At least one destination node of the described peripheral hardware of described login, including: by following logon script Automatically enter Target IP, sign in the destination node that this Target IP is corresponding;
Logon script:
#!/bin/bash
function logon()
{ssh$i}
For i in{1, N}
do
echo"-----------$i--------"
logon$i"$1"&
done
Wherein, logon () characterizes the main body program logged in;$ i characterizes the IP of i-th destination node;N table Levy destination node sum;" $ 1 " sign order performs next step program;& characterizes and proceeds to background loop execution Script.
Preferably, said method farther includes:
By following sense command, light the identification LEDs of BMC in the destination node of each peripheral hardware, Determine communicate between the destination node of each peripheral hardware unimpeded;
Sense command:
For i in{1, N}
do ssh cu$i ipmitool chassis identify
Wherein, N characterizes destination node sum;$ i characterizes the IP of i-th destination node.
Preferably, said method farther includes:
Utilize following crawl script to capture each outer plug-in card at least one destination node of peripheral hardware and drive version Information, and be that described version information generates driving release documentation, verify the version letter in described release documentation Cease consistent with the version information of target drives file;
Crawl script:
For i in{1, N}
do echo“cu$i”>>check.txt
The title of current target node is write check.txt document
ssh 192.168.1.$i dmesg|grep aac>>check.txt
In dmesg, capture various outer plug-in card drive version number information, write check.txt
Done。
Embodiments provide a kind of control node, refresh outer plug-in card drive system and method, should Control node to be connected with at least one destination node of peripheral hardware, be determined by unit and determine that various outer plug-in card drives Dynamic file, and various outer plug-in cards driving file is sent to described transmission unit;Incorporated by this unit Various outer plug-in cards driving file is to meet different target node and the demand of different outer plug-in cards, single by detection Unit logs at least one destination node of peripheral hardware, i.e. this control node can sign in each destination node, So, determine that target is driven by each outer plug-in card in destination node that transmission unit is each peripheral hardware Dynamic file, is sent to the destination node of correspondence by target drives, by driving refresh unit to utilize target to drive Dynamic file, refreshes each outer plug-in card at least one destination node of peripheral hardware and drives, this whole process In, control node and can be simultaneously logged to multiple destination node, it is achieved update for multiple outer plug-in cards simultaneously and drive Dynamic, it is effectively improved outer plug-in card and drives renewal efficiency.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below, Accompanying drawing in description is some embodiments of the present invention, for those of ordinary skill in the art, not On the premise of paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a kind of structural representation controlling node that one embodiment of the invention provides;
Fig. 2 is a kind of structural representation controlling node that another embodiment of the present invention provides;
Fig. 3 is a kind of structural representation controlling node that another embodiment of the present invention provides;
Fig. 4 is a kind of structural representation controlling node that another embodiment of the present invention provides;
Fig. 5 is the structural representation refreshing the system that outer plug-in card drives that one embodiment of the invention provides;
Fig. 6 is a kind of flow chart refreshing the method that outer plug-in card drives that one embodiment of the invention provides;
Fig. 7 is a kind of flow chart refreshing the method that outer plug-in card drives that another embodiment of the present invention provides.
Detailed description of the invention
For making the purpose of the embodiment of the present invention, technical scheme and advantage clearer, below in conjunction with this Accompanying drawing in bright embodiment, is clearly and completely described the technical scheme in the embodiment of the present invention, Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiments, based on Embodiment in the present invention, those of ordinary skill in the art are institute on the premise of not making creative work The every other embodiment obtained, broadly falls into the scope of protection of the invention.
As it is shown in figure 1, the embodiment of the present invention provides one to control node, with at least one target of peripheral hardware Node is connected, and comprises determining that unit 101, detector unit 102, transmission unit 103 and drives refreshing single Unit 104, wherein,
Determine unit 101, be used for determining that various outer plug-in card drives file, and various outer plug-in cards are driven literary composition Part is sent to transmission unit 103;
Detector unit 102, for logging at least one destination node of peripheral hardware, at least the one of detection peripheral hardware OS Type and outer plug-in card type and version in individual destination node;
For receiving, transmission unit 103, determines that the various outer plug-in cards that unit 101 sends drive, according to inspection Various OS Types and outer plug-in card type in the destination node of each peripheral hardware surveying unit 102 detection And version, determine target drives file for each outer plug-in card in the destination node of each peripheral hardware, will Target drives file is sent to the destination node of correspondence, and trigger control unit 104;
Drive refresh unit 104, for when receiving the triggering of transmission unit 103, utilize peripheral hardware The target drives file that at least one destination node receives, refreshes at least one destination node of peripheral hardware Each outer plug-in card drive.
In the embodiment shown in fig. 1, it is determined by unit and determines that various outer plug-in card drives file, and will Various outer plug-in cards drive file to be sent to described transmission unit;Incorporate various outer plug-in card by this unit to drive Dynamic file, to meet different target node and the demand of different outer plug-in card, logs in peripheral hardware by detector unit At least one destination node, i.e. this control node can sign in each destination node, then, by passing Defeated unit is that each outer plug-in card in the destination node of each peripheral hardware determines target drives file, by mesh Mark drives the destination node being sent to correspondence, by driving refresh unit to utilize target drives file, refreshes Each outer plug-in card at least one destination node of peripheral hardware drives, and during this is whole, controls node Multiple destination node can be simultaneously logged to, it is achieved be that multiple outer plug-in card updates driving simultaneously, effectively carry In high rack, the outer plug-in card of server drives and updates efficiency.
As in figure 2 it is shown, in an alternative embodiment of the invention, above-mentioned control node, farther include: compile Translate unit 201, wherein,
Compilation unit 201, at least one target joint of the peripheral hardware for detecting according to detector unit 102 OS Type in point, generates corresponding compiling information;
Transmission unit 103, the compiling information being further used for generating compilation unit 201 is sent to correspondence The destination node of peripheral hardware;
Drive refresh unit 104, be further used for the compiling information according to transmission unit 103 transmission, repair Change the target drives file that the destination node of correspondence receives, utilize amended target drives file to refresh Each outer plug-in card at least one destination node of peripheral hardware drives.
As it is shown on figure 3, in still another embodiment of the process, above-mentioned control node, farther include: join Put unit 301, wherein,
Dispensing unit 301, for configuring for each destination node at least one destination node of peripheral hardware Corresponding IP, and IP corresponding for the configuration of each destination node is sent to detector unit 102;
Detector unit 102, is further used for receiving each destination node pair that dispensing unit 301 sends The IP answered, and by automatically entering Target IP in following logon script, sign in this Target IP corresponding Destination node;
Logon script:
#!/bin/bash
function logon()
{ssh$i}
For i in{1, N}
do
echo"-----------$i--------"
logon$i"$1"&
done
Wherein, logon () characterizes the main body program logged in;$ i characterizes the IP of i-th destination node;N table Levy destination node sum;" $ 1 " sign order performs next step program;& characterizes and proceeds to background loop execution Script.
In an alternative embodiment of the invention, detector unit 102, it is further used for by following sense command, Light the identification LEDs of BMC in the destination node of each peripheral hardware, determine the target with each peripheral hardware Communicate between node unimpeded;
Sense command:
For i in{1, N}
do ssh cu$i ipmitool chassis identify
Wherein, N characterizes destination node sum;$ i characterizes the IP of i-th destination node.
In still another embodiment of the process, transmission unit 103, it is used for utilizing following transmission script, by mesh Mark drives file and compiling information to be transferred to the peripheral hardware destination node of correspondence;
Transmission script:
#!/bin/bash
function scopy()
{scp$1$2$3}
scopy afulnx rom 192.168.1.$i:/root/Drive/
done
Wherein, scopy () procedure subject is telecopy scp;$ 1 characterizes target drives file;$ 2 characterizes Compiling information;$ 3 characterizes the target drives file storage catalogue at destination node.
As shown in Figure 4, in an alternative embodiment of the invention, above-mentioned control node, farther include:
Authentication unit 401, for utilizing following crawl script to capture at least one destination node of peripheral hardware Each outer plug-in card drives version information, and generates driving release documentation for version information, verifies release documentation In version information consistent with the version information of target drives file driving updating block 104 to receive;
Crawl script:
For i in{1, N}
do echo“cu$i”>>check.txt
The title of current target node is write check.txt document
ssh 192.168.1.$i dmesg|grep aac>>check.txt
In dmesg, capture various outer plug-in card drive version number information, write check.txt
Done。
As it is shown in figure 5, the embodiment of the present invention provides a kind of refreshes the system that outer plug-in card drives, including: on State any one and control node 501 and at least one destination node 502, wherein,
In at least one destination node, each destination node 502, it is used for receiving control node 501 The outer plug-in card sent drives file, and under the control controlling node 501, utilizes outer plug-in card to drive file brush New corresponding outer plug-in card drives.
The contents such as the information between said apparatus/intrasystem each unit/node is mutual, execution process, by In with the inventive method embodiment based on same design, particular content can be found in the inventive method embodiment Narration, here is omitted.
As shown in Figure 6, embodiments providing one utilizes above-mentioned any one to control node realization Refresh outer plug-in card drive method, the method may comprise steps of:
Step 601: determine control node, and set up between control node and at least one destination node Connect;
Step 602: utilize control node to determine that various outer plug-in card drives file;
Step 603: log at least one destination node of peripheral hardware, at least one target joint of detection peripheral hardware OS Type and outer plug-in card type and version in point;
Step 604: according to OS Types various in the destination node of each peripheral hardware and outer plug-in card class Type and version, determine target drives file for each outer plug-in card in the destination node of each peripheral hardware;
Step 605: target drives file is sent to the destination node of correspondence;
Step 606: utilize the target drives file that at least one destination node of peripheral hardware receives, refreshes Each outer plug-in card at least one destination node of peripheral hardware drives.
In an embodiment of the invention, drive to meet outer plug-in card in the operating system of personalized customization The demand updated, said method farther includes: according to operation system at least one destination node of peripheral hardware System type, generates corresponding compiling information;The detailed description of the invention of step 605, including: utilize following Transmission script, is transferred to the peripheral hardware destination node of correspondence by target drives file and compiling information;
Transmission script:
#!/bin/bash
function scopy()
{scp$1$2$3}
scopy afulnx rom 192.168.1.$i:/root/Drive/
done
Wherein, scopy () procedure subject is telecopy scp;$ 1 characterizes target drives file;$ 2 characterizes Compiling information;$ 3 characterizes the target drives file storage catalogue at destination node;
The detailed description of the invention of step 606, including: according to compiling information, the destination node that amendment is corresponding The target drives file received, utilizes amended target drives file to refresh at least the one of described peripheral hardware Each outer plug-in card in individual destination node drives.
In an embodiment of the invention, more convenient in order to realize control Node registers destination node, on The method of stating farther includes: for the IP that each destination node configuration at least one destination node is corresponding; The detailed description of the invention of step 603, including: by automatically entering Target IP in following logon script, Sign in the destination node that this Target IP is corresponding;
Logon script:
#!/bin/bash
function logon()
{ssh$i}
For i in{1, N}
do
echo"-----------$i--------"
logon$i"$1"&
done
Wherein, logon () characterizes the main body program logged in;$ i characterizes the IP of i-th destination node;N table Levy destination node sum;" $ 1 " sign order performs next step program;& characterizes and proceeds to background loop execution Script.
In an embodiment of the invention, in order to ensure the connection controlled between node and destination node, on The method of stating farther includes: by following sense command, light BMC in the destination node of each peripheral hardware Identification LEDs, determine communicate between the destination node of each peripheral hardware unimpeded;
Sense command:
For i in{1, N}
do ssh cu$i ipmitool chassis identify
Wherein, N characterizes destination node sum;$ i characterizes the IP of i-th destination node.
In an embodiment of the invention, being updated successfully to ensure that outer plug-in card drives, said method enters one Step includes: utilizes following crawl script to capture each outer plug-in card at least one destination node of peripheral hardware and drives Version information, and for version information generate drive release documentation, checking release documentation in version information with The version information of the target drives file that driving updating block receives is consistent;
Crawl script:
For i in{1, N}
do echo“cu$i”>>check.txt
The title of current target node is write check.txt document
ssh 192.168.1.$i dmesg|grep aac>>check.txt
In dmesg, capture various outer plug-in card drive version number information, write check.txt
Done。
For making the object, technical solutions and advantages of the present invention clearer, think in a rack 40 below Outer plug-in card in individual server (destination node) updates as a example by driving, and launches explanation and refreshes what outer plug-in card drove Method, as it is shown in fig. 7, the method may comprise steps of:
Step 701: determine control node, and be each target joint in 40 destination nodes in rack The IP that some configuration is corresponding;
In this step, can be the most suitable according to physical location by 40 destination nodes in rack Sequence arranges each destination node title and configures the IP address of correspondence, such as cu1/192.168.1.1; cu2/192.168.1.2;……;cu40/192.168.1.40.
Step 702: set up the connection between 40 destination nodes in control node and rack;
In order to ensure that control node connects with in rack 40 destination nodes, in this step, by following Sense command, lights the identification LEDs of BMC in each destination node, as BMC in destination node Identification LEDs light, then may determine that control node and each destination node between communicate unimpeded;
Sense command:
For i in{1,40}
do ssh cu$i ipmitool chassis identify
Wherein, N characterizes destination node sum;$ i characterizes the IP of i-th destination node.
Step 703: utilize control node to determine that various outer plug-in card drives file;
Due to OS Type difference in the type of outer plug-in card and destination node in destination node, Its driving file needed is the most different, and this step drives file primarily to integrate various outer plug-in card, Thus meet different target node, the demand of different outer plug-in cards.
Step 704: control node, by automatically entering Target IP, signs in the target that this Target IP is corresponding Node;
In this step, it is achieved the logon script of automated log on:
#!/bin/bash
function logon()
{ssh$i}
For i in{1,40}
do
echo"-----------$i--------"
logon$i"$1"&
done
Wherein, logon () characterizes the main body program logged in;$ i characterizes the IP of i-th destination node;N table Levy destination node sum;" $ 1 " sign order performs next step program;& characterizes and proceeds to background loop execution Script.
Perform above-mentioned logon script by circulation and sign in cu1/192.168.1.1 successively; cu2/192.168.1.2;……;The destination node that cu40/192.168.1.40 is corresponding.
Step 705: detect OS Type and outer plug-in card type and version in each destination node;
In this step, detection OS Type and outer plug-in card type and version are primarily to follow-up Update during driving, it is possible to update for outer plug-in card accurately and drive.
Step 706: according to OS Type in destination node, generate corresponding compiling information;
For this step is primarily directed to specific operating system, official standard version drive is not particularly suited for Specific operating system, the compiling information that this step generates is that the OS Type according to destination node is raw Become, ensure that driving can be updated successfully.
Step 707: according to OS Types various in each destination node and outer plug-in card type and version This, determine target drives file for each outer plug-in card in each destination node;
Step 708: target drives file and compiling information are transferred to the destination node of correspondence;
In this step, it is possible to use following transmission script, by target drives file and compiling information transmission Give corresponding peripheral hardware destination node;
Transmission script:
#!/bin/bash
function scopy()
{scp$1$2$3}
scopy afulnx rom 192.168.1.$i:/root/Drive/
done
Wherein, scopy () procedure subject is telecopy scp;$ 1 characterizes target drives file;$ 2 characterizes Compiling information;$ 3 characterizes the target drives file storage catalogue at destination node.
Step 709: according to compiling information, the target drives file that the destination node of amendment correspondence receives;
Step 710: utilize amended target drives file to refresh each in the destination node of peripheral hardware Outer plug-in card drives;
Step 711: capture each outer plug-in card in each destination node and drive version information, believe for version Breath generates and drives release documentation;
In this step, capturing each outer plug-in card in each destination node drives version information to pass through Following crawl script realizes.
Crawl script:
For i in{1,40}
do echo“cu$i”>>check.txt
The title of current target node is write check.txt document
ssh 192.168.1.$i dmesg|grep aac>>check.txt
In dmesg, capture various outer plug-in card drive version number information, write check.txt
Done。
In this script, the title of destination node, for driving release documentation, is write check.txt by check.txt The process of document is according in destination node name order write check.txt document.Judge in following step Drive and whether be updated successfully, can be by checking the various of all destination nodes in check.txt intuitively Outer plug-in card drives version number.
Step 712: whether judge the version information of version information in release documentation and target drives file Unanimously, if it is, perform step 713;Otherwise, step 714 is performed;
Step 713: determine that in destination node, outer plug-in card driving is updated successfully, and terminate current process;
Step 714: determine the outer plug-in card not being updated successfully, and be again updated.
According to such scheme, various embodiments of the present invention, at least have the advantages that
1. it is determined by unit and determines that various outer plug-in card drives file, and various outer plug-in cards driving file is sent out Give described transmission unit;Incorporating various outer plug-in card by this unit drives file to meet different target Node and the demand of different outer plug-in card, log at least one destination node of peripheral hardware, i.e. by detector unit This control node can sign in each destination node, then, it is each peripheral hardware by transmission unit Each outer plug-in card in destination node determines target drives file, and target drives is sent to the mesh of correspondence Mark node, by driving refresh unit to utilize target drives file, refreshes at least one target joint of peripheral hardware Each outer plug-in card in point drives, and during this is whole, controls node and can be simultaneously logged to multiple mesh Mark node, it is achieved be simultaneously that multiple outer plug-in card updates driving, is effectively improved outer plug-in card and drives renewal effect Rate.
2. the embodiment of the present invention is remotely logged into destination node by controlling node, and transmission drives file to mesh Mark node, and by driving file to refresh the driving of outer plug-in card in destination node, whole process is without manually Participation, control node achieve drive update automation.
3., by compilation unit according to OS Type at least one destination node of peripheral hardware, it is right to generate The compiling information answered;By driving refresh unit to receive according to compiling information, the destination node of amendment correspondence The target drives file arrived, utilizes amended target drives file to refresh at least one target joint of peripheral hardware Each outer plug-in card in point drives, and can be the operating system of specific customization by the compiling information generated Renewal outer plug-in card drives, and effectively extends the range of application controlling node.
4. by capturing each outer plug-in card driving version information in destination node, and drive for version information generation Dynamic release documentation, the version information in checking release documentation is consistent with the version information of target drives file, Driven the accuracy updated by this Process Assurance.
5. by the IP corresponding for the configuration of each destination node, and by the most defeated in logon script Enter Target IP, sign in the destination node that this Target IP is corresponding, it is possible to make control node automated log on mesh Mark node, further increases and drives the automation updated.
It should be noted that in this article, the relational terms of such as first and second etc be used merely to by One entity or operation separate with another entity or operating space, and not necessarily require or imply this Relation or the order of any this reality is there is between a little entities or operation.And, term " includes ", " comprise " or its any other variant is intended to comprising of nonexcludability, so that include that one is The process of row key element, method, article or equipment not only include those key elements, but also include the brightest Other key elements really listed, or also include intrinsic for this process, method, article or equipment Key element.In the case of there is no more restriction, statement " include a 〃 " and limit Key element, it is not excluded that there is also another in including the process of described key element, method, article or equipment Outer identical factor.
One of ordinary skill in the art will appreciate that: realize all or part of step of said method embodiment Can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in embodied on computer readable Storage medium in, this program upon execution, performs to include the step of said method embodiment;And it is aforementioned Storage medium include: various Jie that can store program code such as ROM, RAM, magnetic disc or CD In matter.
Last it should be understood that the foregoing is only presently preferred embodiments of the present invention, it is merely to illustrate this The technical scheme of invention, is not intended to limit protection scope of the present invention.All spirit in the present invention and former Any modification, equivalent substitution and improvement etc. done within then, are all contained in protection scope of the present invention.

Claims (10)

1. one kind controls node, it is characterised in that be connected with at least one destination node of peripheral hardware, including: Determine unit, detector unit, transmission unit and drive refresh unit, wherein,
Described determine unit, be used for determining that various outer plug-in card drives file, and described various outer plug-in cards are driven Dynamic file is sent to described transmission unit;
Described detector unit, for logging at least one destination node of described peripheral hardware, detects described peripheral hardware At least one destination node in OS Type and outer plug-in card type and version;
Described transmission unit, drives, according to institute for receiving the described various outer plug-in cards determining that unit sends Various OS Types and outer plug-in card type in the destination node of each peripheral hardware stating detector unit detection And version, determine target drives file for each outer plug-in card in the destination node of each peripheral hardware, will Described target drives file is sent to the destination node of correspondence, and triggers driving refresh unit;
Described driving refresh unit, for when receiving the triggering of described transmission unit, utilize described outside If the target drives file that receives of at least one destination node, refresh at least one mesh of described peripheral hardware Each outer plug-in card in mark node drives.
Control node the most according to claim 1, it is characterised in that farther include: compiling is single Unit, wherein,
Described compilation unit, at least one target joint of the peripheral hardware for detecting according to described detector unit OS Type in point, generates corresponding compiling information;
Described transmission unit, the compiling information being further used for generating described compilation unit is sent to correspondence The destination node of peripheral hardware;
Described driving refresh unit, is further used for the compiling information transmitted according to described transmission unit, repaiies Change the target drives file that the destination node of correspondence receives, utilize amended target drives file to refresh Each outer plug-in card at least one destination node of described peripheral hardware drives.
Control node the most according to claim 1, it is characterised in that farther include: configuration is single Unit, wherein,
Described dispensing unit, is used for as each destination node at least one destination node of described peripheral hardware The IP that configuration is corresponding, and IP corresponding for the configuration of each destination node is sent to described detector unit;
Described detector unit, is further used for receiving each destination node pair that described dispensing unit sends The IP answered, and by automatically entering Target IP in following logon script, sign in this Target IP corresponding Destination node;
Logon script:
#!/bin/bash
function logon()
{ssh $i}
For i in{1, N}
do
echo"-----------$i--------"
logon$i"$1"&
done
Wherein, logon () characterizes the main body program logged in;$ i characterizes the IP of i-th destination node;N table Levy destination node sum;" $ 1 " sign order performs next step program;& characterizes and proceeds to background loop execution Script.
Control node the most according to claim 3, it is characterised in that described detector unit, enters one Step is used for:
By following sense command, light the identification LEDs of BMC in the destination node of each peripheral hardware, Determine communicate between the destination node of each peripheral hardware unimpeded;
Sense command:
For i in{1, N}
do ssh cu$i ipmitool chassis identify
Wherein, N characterizes destination node sum;$ i characterizes the IP of i-th destination node.
Control node the most according to claim 2, it is characterised in that
Described transmission unit, is used for utilizing following transmission script, target drives file and compiling information is passed It is defeated by the peripheral hardware destination node of correspondence;
Transmission script:
#!/bin/bash
function scopy()
{scp$1$2$3}
scopy afulnx rom 192.168.1.$i:/root/Drive/
done
Wherein, scopy () procedure subject is telecopy scp;$ 1 characterizes target drives file;$ 2 characterizes Compiling information;$ 3 characterizes the target drives file storage catalogue at destination node.
6. according to the arbitrary described control node of Claims 1-4, it is characterised in that farther include:
Authentication unit, for utilize following crawl script capture peripheral hardware at least one destination node in each Outer plug-in card drives version information, and is that described version information generates driving release documentation, verifies described version The version information one of the target drives file that the version information in document receives with described driving updating block Cause;
Crawl script:
For i in{1, N}
do echo“cu$i”>>check.txt
The title of current target node is write check.txt document
ssh 192.168.1.$i dmesg|grep aac>>check.txt
In dmesg, capture various outer plug-in card drive version number information, write check.txt
Done。
7. one kind is refreshed the system that outer plug-in card drives, it is characterised in that including: claim 1 to 6 Arbitrary described control node and at least one destination node, wherein,
In at least one destination node described, each destination node, it is used for receiving described control node and sends out The outer plug-in card sent drives file, and under the control of described control node, utilizes described outer plug-in card to drive literary composition Part refreshes corresponding outer plug-in card and drives.
8. one kind utilizes the arbitrary described refreshing outer plug-in card controlling node realization of claim 1 to 6 to drive Method, it is characterised in that determine control node, and set up described control node and at least one target Connection between node, also includes:
Control node is utilized to determine that various outer plug-in card drives file;
Log at least one destination node of described peripheral hardware, detect at least one destination node of described peripheral hardware Middle OS Type and outer plug-in card type and version;
According to OS Types various in the destination node of each peripheral hardware and outer plug-in card type and version, Target drives file is determined for each outer plug-in card in the destination node of each peripheral hardware;
Described target drives file is sent to the destination node of correspondence;
The target drives file utilizing at least one destination node of described peripheral hardware to receive, refresh described outside If at least one destination node in each outer plug-in card drive.
Method the most according to claim 8, it is characterised in that
Farther include: according to OS Type at least one destination node of peripheral hardware, generate correspondence Compiling information;
The described destination node that described target drives is sent to correspondence, including: utilize following transmission script, Target drives file and compiling information are transferred to the peripheral hardware destination node of correspondence;
Transmission script:
#!/bin/bash
function scopy()
{scp$1$2$3}
scopy afulnx rom 192.168.1.$i:/root/Drive/
done
Wherein, scopy () procedure subject is telecopy scp;$ 1 characterizes target drives file;$ 2 characterizes Compiling information;$ 3 characterizes the target drives file storage catalogue at destination node;
Each outer plug-in card at least one destination node of the described peripheral hardware of described refreshing drives, including: According to described compiling information, the target drives file that the destination node of amendment correspondence receives, utilize amendment After target drives file refresh described peripheral hardware at least one destination node in each outer plug-in card drive;
And/or,
Farther include:
For the IP that each destination node configuration at least one destination node described is corresponding;
At least one destination node of the described peripheral hardware of described login, including: by following logon script Automatically enter Target IP, sign in the destination node that this Target IP is corresponding;
Logon script:
#!/bin/bash
function logon()
{ssh $i}
For i in{1, N}
do
echo"-----------$i--------"
logon$i"$1"&
done
Wherein, logon () characterizes the main body program logged in;$ i characterizes the IP of i-th destination node;N table Levy destination node sum;" $ 1 " sign order performs next step program;& characterizes and proceeds to background loop execution Script.
Method the most according to claim 8 or claim 9, it is characterised in that
Farther include:
By following sense command, light the identification LEDs of BMC in the destination node of each peripheral hardware, Determine communicate between the destination node of each peripheral hardware unimpeded;
Sense command:
For i in{1, N}
do ssh cu$i ipmitool chassis identify
Wherein, N characterizes destination node sum;$ i characterizes the IP of i-th destination node;
And/or,
Farther include:
Utilize following crawl script to capture each outer plug-in card at least one destination node of peripheral hardware and drive version Information, and be that described version information generates driving release documentation, verify the version letter in described release documentation Cease consistent with the version information of target drives file;
Crawl script:
For i in{1, N}
do echo“cu$i”>>check.txt
The title of current target node is write check.txt document
ssh 192.168.1.$i dmesg|grep aac>>check.txt
In dmesg, capture various outer plug-in card drive version number information, write check.txt
Done。
CN201610305306.7A 2016-05-09 2016-05-09 Control node as well as system and method for refreshing external plugin card drives Pending CN105912345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610305306.7A CN105912345A (en) 2016-05-09 2016-05-09 Control node as well as system and method for refreshing external plugin card drives

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610305306.7A CN105912345A (en) 2016-05-09 2016-05-09 Control node as well as system and method for refreshing external plugin card drives

Publications (1)

Publication Number Publication Date
CN105912345A true CN105912345A (en) 2016-08-31

Family

ID=56747924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610305306.7A Pending CN105912345A (en) 2016-05-09 2016-05-09 Control node as well as system and method for refreshing external plugin card drives

Country Status (1)

Country Link
CN (1) CN105912345A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107153561A (en) * 2017-05-25 2017-09-12 郑州云海信息技术有限公司 The method of firmware, apparatus and system in a kind of renewal expansion card
CN107315618A (en) * 2017-07-03 2017-11-03 郑州云海信息技术有限公司 A kind of software refreshing method for server power block
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
CN107517223A (en) * 2017-09-29 2017-12-26 郑州云海信息技术有限公司 A kind of method and system of long-range renewal mellanox network card softwares
CN109714413A (en) * 2018-12-26 2019-05-03 郑州云海信息技术有限公司 Site file based on driving type changes the method and device of pushed information
CN111399871A (en) * 2020-02-28 2020-07-10 苏州浪潮智能科技有限公司 System updating method, device, equipment and medium for HBA card

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101008893A (en) * 2007-01-29 2007-08-01 南京邮电大学 Development method of wireless sensor networks mobile agent platform based on Mandis
CN104156221A (en) * 2014-08-29 2014-11-19 上海艾为电子技术有限公司 Chip and method and device for modifying chip configuration
CN105260208A (en) * 2015-10-10 2016-01-20 浪潮电子信息产业股份有限公司 Method for automatically refreshing RAID card drive in batches by server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101008893A (en) * 2007-01-29 2007-08-01 南京邮电大学 Development method of wireless sensor networks mobile agent platform based on Mandis
CN104156221A (en) * 2014-08-29 2014-11-19 上海艾为电子技术有限公司 Chip and method and device for modifying chip configuration
CN105260208A (en) * 2015-10-10 2016-01-20 浪潮电子信息产业股份有限公司 Method for automatically refreshing RAID card drive in batches by server

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107153561A (en) * 2017-05-25 2017-09-12 郑州云海信息技术有限公司 The method of firmware, apparatus and system in a kind of renewal expansion card
CN107315618A (en) * 2017-07-03 2017-11-03 郑州云海信息技术有限公司 A kind of software refreshing method for server power block
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
CN107517223A (en) * 2017-09-29 2017-12-26 郑州云海信息技术有限公司 A kind of method and system of long-range renewal mellanox network card softwares
CN109714413A (en) * 2018-12-26 2019-05-03 郑州云海信息技术有限公司 Site file based on driving type changes the method and device of pushed information
CN109714413B (en) * 2018-12-26 2021-07-27 郑州云海信息技术有限公司 Method and device for pushing information through website file change based on drive type
CN111399871A (en) * 2020-02-28 2020-07-10 苏州浪潮智能科技有限公司 System updating method, device, equipment and medium for HBA card
CN111399871B (en) * 2020-02-28 2024-02-09 苏州浪潮智能科技有限公司 System updating method, device, equipment and medium of HBA card

Similar Documents

Publication Publication Date Title
CN105912345A (en) Control node as well as system and method for refreshing external plugin card drives
US8127268B2 (en) Server testing framework
CN106415480B (en) High-speed application for installation on a mobile device for enabling remote configuration of the mobile device
US9256417B2 (en) Automatic quality assurance for software installers
US20160357576A1 (en) Generating customized on-demand videos from automated test scripts
US20160162385A1 (en) Correlation of violating change sets in regression testing of computer software
CN108111364B (en) Service system testing method and device
CN105260208A (en) Method for automatically refreshing RAID card drive in batches by server
CN107402789A (en) A kind of server cluster automatic batch penetrates the method that RAID card refreshes hard disk FW
CN110427735A (en) A kind of method of calibration, device, server and storage medium
US11301221B2 (en) Rapid code compiling system
CN105786495A (en) Software issuing system, method and system
CN103019732A (en) Method and system for installation and deployment of integrated software based on province, city and county
CN107608663A (en) A kind of development approach and device of Mobile solution plug-in unit and Mobile solution
CN103929676A (en) Method for testing function of smart television board card in remote-control mode and smart television board card
US9779014B2 (en) Resilient mock object creation for unit testing
CN102722438B (en) Kernel debugging method and equipment
CN108509346B (en) Dual-system BIOS continuous integration platform and method
Bolduc Lessons learned: Using a static analysis tool within a continuous integration system
CN104317723A (en) Method and system for tracking running information of drive program
CN104021000B (en) The method that spring data sources are configured using the property file under dynamic route
US20160203040A1 (en) Error display module
US9612870B2 (en) Inversion of control for executable extensions in a run-time environment
CN109828752B (en) Project code automatic generation method, device, computer equipment and storage medium
US11144287B2 (en) Compile time validation of programming code

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20160831