Summary of the invention
In view of the deficiencies of the prior art, the present invention provides a kind of method, apparatus of batch refresh server node firmware
And controlled terminal, upgrade simultaneously to multiple cabinets in the case where the whole machine cabinet batch upgrade of multimachine frame server, it is possible to reduce
The server node batch refresh time reaches the availability and stability for improving server monitoring management module, facilitates portion's early period
The purpose of administration and later maintenance work.
In a first aspect, providing a kind of method of batch refresh server node firmware, which comprises
Determine whether the network state of the CMC and BMC of cabinet are normal;
The IP information for needing to update CMC is obtained, determines a main CMC and several subordinate CMC;
Main CMC uploads firmware image and firmware image is sent to subordinate CMC, and subordinate CMC is consolidated in respective BMC
Part upgrading;
The upgrade information that subordinate CMC is sent is received in main CMC, monitors the upgrade information of subordinate CMC;
Wherein, the main CMC and several subordinate CMC accesses same local area network.
With reference to first aspect and its above-mentioned implementation, in the first possible implementation of the first aspect, described
Main CMC uploads firmware image and firmware image is sent to subordinate CMC, and subordinate CMC carries out firmware upgrade in respective BMC,
Include:
Main CMC uploads firmware image;
Firmware image is passed through all nodes and subordinate CMC of the incoming connection of LAN by main CMC;
Subordinate CMC carries out firmware upgrade in respective BMC.
With reference to first aspect, in the second possible implementation of the first aspect, subordinate is received in the main CMC
The upgrade information that CMC is sent, is uniformly processed the upgrade information of subordinate CMC, comprising:
The upgrade information that subordinate CMC is sent is received in main CMC;
Judge whether subordinate CMC upgrades successfully, if upgrading successfully, main CMC shows successfully upgrade node and corresponding subordinate CMC
Information;If upgrading is unsuccessful, main CMC uploads firmware image and upgrades again.
Second aspect provides a kind of device for batch refresh server node firmware, comprising:
Determination unit, the determination unit is for determining whether the network state of the CMC and BMC of cabinet are normal;
Acquiring unit, the acquiring unit determine main CMC and several for obtaining the IP information for needing to update CMC
Subordinate CMC;
Upgrade unit, the upgrade unit upload firmware image for main CMC and firmware image are sent to subordinate CMC,
Subordinate CMC carries out firmware upgrade in respective BMC;
Monitoring unit, the upgrade information that the monitoring unit is sent for receiving subordinate CMC in main CMC, monitors subordinate CMC
Upgrade information.
In conjunction with second aspect, in the first possible implementation of the second aspect,
The upgrade unit is specifically used for:
Main CMC uploads firmware image;
Firmware image is passed through all nodes and subordinate CMC of the incoming connection of LAN by main CMC;
Subordinate CMC carries out firmware upgrade in respective BMC.
In conjunction with second aspect, in a second possible implementation of the second aspect,
The monitoring order member is specifically used for:
The upgrade information that subordinate CMC is sent is received in main CMC;
Judge whether subordinate CMC upgrades successfully, if upgrading successfully, main CMC shows successfully upgrade node and corresponding subordinate CMC
Information;If upgrading is unsuccessful, main CMC uploads firmware image and upgrades again.
The third aspect provides a kind of controlled terminal, comprising:
Processor, memory, wherein
The memory is used to store computer program,
The processor from memory for calling and running the computer program, so that terminal device executes above-mentioned end
The method of end equipment.
Fourth aspect provides a kind of computer storage medium, instruction is stored in the computer readable storage medium,
When run on a computer, so that computer executes method described in above-mentioned various aspects.
5th aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that
Computer executes method described in above-mentioned various aspects.
Therefore, the application upgrades to multiple cabinets simultaneously in the case where the whole machine cabinet batch upgrade of multimachine frame server,
It monitors the update status of many nodes simultaneously in a CMC and is uniformly controlled, when reducing server node batch refresh
Between, the stability and controllability of equipment cabinet server are improved, facilitates company in high-end server field and forms technical barrier, protect
Advantage of the card company in high-end server.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real
The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation
Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common
Technical staff's every other embodiment obtained without making creative work, all should belong to protection of the present invention
Range.Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real
The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation
Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common
Technical staff's every other embodiment obtained without making creative work, all should belong to protection of the present invention
Range.
Fig. 1 is the schematic flow chart of the method for the application one embodiment.Wherein, Fig. 1 executing subject can be one kind
The device of batch refresh server node firmware.
As shown in Figure 1, this method 100 includes:
Step 110, determine whether the network state of the CMC and BMC of cabinet are normal;
Step 120, the IP information for needing to update CMC is obtained, determines a main CMC and several subordinate CMC;
Step 130, main CMC uploads firmware image and firmware image is sent to subordinate CMC, and subordinate CMC is in respective BMC
Interior carry out firmware upgrade;
Step 140, the upgrade information that subordinate CMC is sent is received in main CMC, monitors the upgrade information of subordinate CMC.
Optionally, as the application one embodiment, the main CMC upload firmware image and by firmware image be sent to from
Belong to CMC, subordinate CMC carries out firmware upgrade in respective BMC, comprising:
Main CMC uploads firmware image;
Firmware image is passed through all nodes and subordinate CMC of the incoming connection of LAN by main CMC;
Subordinate CMC carries out firmware upgrade in respective BMC.
Optionally, the upgrade information that subordinate CMC is sent is received as the application one embodiment, in the main CMC, it is unified
Handle the upgrade information of subordinate CMC, comprising:
The upgrade information that subordinate CMC is sent is received in main CMC;
If upgrading successfully, main CMC shows the information of successfully upgrade node and corresponding subordinate CMC;
If upgrading is unsuccessful, main CMC uploads firmware image and upgrades again.
Fig. 2 is the schematic flow chart of the method for the application one embodiment, and described method includes following steps:
S1: all cabinets are all accessed into the same network by LAN, then check the network state of all CMC and BMC
It is whether normal.
Specifically, whole machine cabinet server computing node is as shown in figure 3, whole machine cabinet server has and is not limited to 8 calculating sections
Point.The network connection relation of the calculate node of cabinet is as shown in Figure 4.CMC Web page can individually develop a function webpage, use
To increase other cabinets CMC IP, the page that other needs monitor will increase the function button of a switching IP.In the net of certain CMC
Page increases the IP information for wanting other CMC of monitoring, can check in the page of main CMC firmware update later in this way and select it
The IP information of his subordinate CMC.Information after addition can be shown in web page.
S2: the IP information for needing to update CMC is obtained, determines a main CMC and several subordinate CMC.
S3: main CMC uploads firmware image and firmware image is sent to subordinate CMC.
Firmware image is passed through all nodes and subordinate CMC of the incoming connection of LAN by S4: main CMC.
S5: subordinate CMC carries out firmware upgrade in respective BMC.
S6: after the order for receiving creation virtual machine, the virtual machine of specified configuration is created.
S7: if upgrading successfully, main CMC shows the information of successfully upgrade node and corresponding subordinate CMC;If upgrading is unsuccessful,
Then main CMC uploads firmware image and upgrades again.
Therefore, the application connects the CMC of each cabinet by LAN, then the web interface of CMC again, can be by adding not
With the IP of CMC multiple cabinets are monitored and controlled, the function of multiple cabinets is provided while upgrading, so as to improve clothes
The availability and stability for device monitoring management module of being engaged in facilitate the maintenance work of early period deployment and later period.
Fig. 5 has gone out the schematic block diagram of the device of the application one embodiment.
If Fig. 5 shows, which includes:
Determination unit 510, the determination unit 510 is for determining whether the network state of the CMC and BMC of cabinet are normal;
Acquiring unit 520, the acquiring unit 520 determine a main CMC for obtaining the IP information for needing to update CMC
With several subordinate CMC;
Upgrade unit 530, the upgrade unit 530 for main CMC upload firmware image and by firmware image be sent to from
Belong to CMC, subordinate CMC carries out firmware upgrade in respective BMC;
Monitoring unit 540, the upgrade information that the monitoring unit 540 is sent for receiving subordinate CMC in main CMC, monitoring
The upgrade information of subordinate CMC.
Optionally, as the application one embodiment, the upgrade unit 530 is specifically used for:
Main CMC uploads firmware image;
Firmware image is passed through all nodes and subordinate CMC of the incoming connection of LAN by main CMC;
Subordinate CMC carries out firmware upgrade in respective BMC.
Optionally, as the application one embodiment, the monitoring unit 540 is specifically used for:
The upgrade information that subordinate CMC is sent is received in main CMC;
Judge whether subordinate CMC upgrades successfully, if upgrading successfully, main CMC shows successfully upgrade node and corresponding subordinate CMC
Information;If upgrading is unsuccessful, main CMC uploads firmware image and upgrades again.
Fig. 6 is a kind of structural schematic diagram of controlled terminal device 600 provided in an embodiment of the present invention, the controlled terminal device
600 can be used for executing the method for schedule virtual resources provided by the embodiments of the present application.
Wherein, which may include: processor 610, memory 620 and communication unit 630.These
Component is communicated by one or more bus, it will be understood by those skilled in the art that the structure of server shown in figure
The restriction to the application is not constituted, it is also possible to hub-and-spoke configuration either busbar network, can also include than diagram
More or fewer components perhaps combine certain components or different component layouts.
Wherein, which can be used for executing instruction for storage processor 610, and memory 620 can be by any class
The volatibility or non-volatile memory device or their combination of type are realized, such as static random access memory (SRAM), electricity
Erasable Programmable Read Only Memory EPROM (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory
(PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.When executing instruction in memory 620
When being executed by processor 610, so that terminal 600 some or all of is able to carry out in following above method embodiment step.
Processor 610 is the control centre for storing equipment, utilizes each of various interfaces and the entire electronic equipment of connection
A part by running or execute the software program and/or module that are stored in memory 620, and calls and is stored in storage
Data in device, to execute the various functions and/or processing data of electronic equipment.The processor can be by integrated circuit
(Integrated Circuit, abbreviation IC) composition, such as the IC that can be encapsulated by single are formed, can also be by more of connection
The encapsulation IC of identical function or different function and form.For example, processor 610 can only include central processing unit
(Central Processing Unit, abbreviation CPU).In the application embodiment, CPU can be single operation core, can also
To include multioperation core.
Communication unit 630, for establishing communication channel, so that the storage equipment be allow to be led to other equipment
Letter.Receive the user data or send user data to other equipment that other equipment are sent.
The application also provides a kind of computer storage medium, wherein the computer storage medium can be stored with program, the journey
Sequence may include step some or all of in each embodiment provided by the present application when executing.The storage medium can for magnetic disk,
CD, read-only memory (English: read-only memory, referred to as: ROM) or random access memory (English:
Random access memory, referred to as: RAM) etc..
Therefore, the application BMC stores heat dissipation policy-related (noun) parameter by way of configuration file, can not modify
The update that heat dissipation policy configuration parameter is realized on the basis of the code of BMC, achievees the purpose that the policy update that radiates, reduces heat dissipation
Regulate and control complexity and cost, the attainable technical effect of the present embodiment institute may refer to described above, and details are not described herein again.
It is required that those skilled in the art can be understood that the technology in the embodiment of the present application can add by software
The mode of general hardware platform realize.Based on this understanding, the technical solution in the embodiment of the present application substantially or
Say that the part that contributes to existing technology can be embodied in the form of software products, which is stored in
Such as USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory in one storage medium
The various media that can store program code such as (RAM, Random Access Memory), magnetic or disk, including it is several
Instruction is used so that a computer equipment (can be personal computer, server or the second equipment, the network equipment etc.) is held
Row all or part of the steps of the method according to each embodiment of the present invention.
Same and similar part may refer to each other between each embodiment in this specification.Implement especially for terminal
For example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring in embodiment of the method
Explanation.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
Although by reference to attached drawing and combining the mode of preferred embodiment to the present invention have been described in detail, the present invention
It is not limited to this.Without departing from the spirit and substance of the premise in the present invention, those of ordinary skill in the art can be to the present invention
Embodiment carry out various equivalent modifications or substitutions, and these modifications or substitutions all should in covering scope of the invention/appoint
What those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, answer
It is included within the scope of the present invention.Therefore, protection scope of the present invention is answered described is with scope of protection of the claims
It is quasi-.