CN110083379A - A kind of server component upgrade method and relevant apparatus - Google Patents
A kind of server component upgrade method and relevant apparatus Download PDFInfo
- Publication number
- CN110083379A CN110083379A CN201910389183.3A CN201910389183A CN110083379A CN 110083379 A CN110083379 A CN 110083379A CN 201910389183 A CN201910389183 A CN 201910389183A CN 110083379 A CN110083379 A CN 110083379A
- Authority
- CN
- China
- Prior art keywords
- component
- data file
- upgrading data
- upgrading
- upgrade procedure
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
This application discloses a kind of server component upgrade methods, comprising: BMC gets upgrading data file by preset interface;Corresponding upgrade procedure is extracted from the upgrading data file according to the component information of component to be upgraded;Updating operation is executed to the component to be upgraded according to the firmware code in the upgrading data file using the upgrade procedure.By getting upgrade procedure from upgrading data file, rather than upgrade procedure is saved in BMC firmware, avoids carrying out refresh operation to BMC, improve the efficiency of component updating operation.Disclosed herein as well is a kind of BMC device, server and computer readable storage mediums, have the above beneficial effect.
Description
Technical field
This application involves field of computer technology, in particular to a kind of server component upgrade method, BMC device, service
Device and computer readable storage medium.
Background technique
As information technology continues to develop, the surrounding hardware designed capacity of information technology is also constantly changing.Especially take
The designed capacity of business device constantly changes with the demand of data processing, and hardware configuration is also constantly changing.
Currently, generalling use BMC (Baseboard Management Controller base in server in the prior art
Board management controller) all parts in server are managed, or carry out updating operation.Usual BMC to all parts into
Capable updating operation is that the information such as code required for upgrading write in the firmware of BMC.Namely by performed upgrading journey
Sequence writes in BMC, and when needing the component connected to one to upgrade, BMC is by finding correspondence in its firmware information
Upgrade procedure, updating operation is carried out to the component using the upgrade procedure and corresponding firmware code.Due to different components
Corresponding upgrade procedure is not identical, and during upgrading to new component, the liter of the component may be not present in BMC
Grade program.It then needs to develop BMC again at this time and new code is written, to be compatible with new component.It will be apparent that working as server count
When measuring more, then the quantity for the BMC for needing to safeguard is equally very much, and the workload developed again to BMC is high, delays service
Device reduces updating speed to the support efficiency of new component.
Therefore, how to improve using updating speed of the BMC to component be those skilled in the art concern Important Problems.
Summary of the invention
The purpose of the application is to provide a kind of server component upgrade method, BMC device, server and computer-readable
Storage medium by getting upgrade procedure from upgrading data file, rather than saves upgrade procedure in BMC firmware, keeps away
Exempt to carry out refresh operation to BMC, improves the efficiency of component updating operation.
In order to solve the above technical problems, the application provides a kind of server component upgrade method, comprising:
BMC gets upgrading data file by preset interface;
Corresponding upgrade procedure is extracted from the upgrading data file according to the component information of component to be upgraded;
The component to be upgraded is executed according to the firmware code in the upgrading data file using the upgrade procedure
Updating operation.
Optionally, corresponding upgrading journey is extracted from the upgrading data file according to the component information of component to be upgraded
Sequence, comprising:
Judged in the upgrading data file according to the component information of the component to be upgraded with the presence or absence of corresponding component
Information;
If so, extracting the upgrade procedure from the upgrading data file;
If it is not, then obtaining new upgrading data file.
Optionally, further includes:
When getting the upgrading data file by the preset interface, according to the verification of the upgrading data file
Information carries out completeness check to the upgrading data file;
When the completeness check passes through, execute according to the component information of component to be upgraded from the upgrading data file
The step of extracting corresponding upgrade procedure.
Optionally, using the upgrade procedure according to it is described upgrading data file in firmware code to the portion to be upgraded
Part executes updating operation, comprising:
Determine the upgrading path of the component to be upgraded;
Corresponding firmware code is extracted from the upgrading data file;
The component to be upgraded is executed according to the upgrading path according to the firmware code using the upgrade procedure
Updating operation.
The application also provides a kind of BMC device, comprising:
Upgrade data acquisition module, for getting upgrading data file by preset interface;
Upgrade procedure obtains module, for being extracted according to the component information of component to be upgraded from the upgrading data file
Corresponding upgrade procedure;
Updating operation execution module, for using the upgrade procedure according to the firmware code in the upgrading data file
Updating operation is executed to the component to be upgraded.
Optionally, the upgrade procedure obtains module, comprising:
Component information judging unit, for judging the upgrading data file according to the component information of the component to be upgraded
In whether there is corresponding component information;
Upgrade procedure extraction unit, for when in the upgrading data file there are when corresponding component information, from described
The upgrade procedure is extracted in upgrading data file;
Upgrading data retrieval takes unit, for obtaining when corresponding component information is not present in the upgrading data file
Take new upgrading data file.
Optionally, further includes:
Completeness check module, for when getting the upgrading data file by the preset interface, according to institute
The check information for stating upgrading data file carries out completeness check to the upgrading data file;
Verification is by execution module, for executing the component according to component to be upgraded when the completeness check passes through
The step of information extracts corresponding upgrade procedure from the upgrading data file.
Optionally, the updating operation execution module, comprising:
Upgrading path unit, for determining the upgrading path of the component to be upgraded;
Firmware code extraction unit, for extracting corresponding firmware code from the upgrading data file;
Upgrade procedure execution unit, for using the upgrade procedure according to the firmware code according to the upgrading path
Updating operation is executed to the component to be upgraded.
The application also provides a kind of server, comprising:
Memory, for storing computer program;
Processor realizes the step of server component upgrade method as described above when for executing the computer program
Suddenly.
The application also provides a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium
The step of machine program, the computer program realizes server component upgrade method as described above when being executed by processor.
A kind of server component upgrade method provided herein, comprising: BMC gets ascending series by preset interface
According to file;Corresponding upgrade procedure is extracted from the upgrading data file according to the component information of component to be upgraded;Using institute
It states upgrade procedure and updating operation is executed to the component to be upgraded according to the firmware code in the upgrading data file.
As it can be seen that the application first by preset interface is got include upgrade procedure and firmware code upgrading data
File, that is to say, that the upgrade procedure used during upgrading to component is not the upgrading being built in inside BMC
Program, but the upgrade procedure obtained from upgrading data file, improve the convenience of replacement upgrade procedure.Finally, from upgrading
Upgrade procedure is extracted in data file, updating operation is executed to the firmware code in upgrading data file, realize and component is carried out
Updating operation.As it can be seen that wherein the effect of BMC is only to execute upgrade procedure to component, and upgrade procedure is not to be in the code of BMC
Included, but from upgrading data file.It will be apparent that only being needed when needing using new upgrade procedure when component changes
Upgrade procedure in upgrading data file is modified, without carrying out refresh operation to BMC.It reduces and occurs newly
Maintenance upgrade difficulty is carried out when component, promotes the efficiency of maintenance upgrade.
The application also provides a kind of BMC device, server and computer readable storage medium, has above beneficial to effect
Fruit, this will not be repeated here.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis
The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of server component upgrade method provided by the embodiment of the present application;
Fig. 2 is the flow chart of another kind server component upgrade method provided by the embodiment of the present application;
Fig. 3 is the flow chart of another server component upgrade method provided by the embodiment of the present application;
Fig. 4 is a kind of structural schematic diagram of BMC device provided by the embodiment of the present application;
Fig. 5 is a kind of structural schematic diagram of server provided herein.
Specific embodiment
The core of the application is to provide a kind of server component upgrade method, BMC device, server and computer-readable
Storage medium by getting upgrade procedure from upgrading data file, rather than saves upgrade procedure in BMC firmware, keeps away
Exempt to carry out refresh operation to BMC, improves the efficiency of component updating operation.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
BMC is generallyd use in server in the prior art to be managed all parts in server, or is upgraded
Operation.The updating operation that usual BMC carries out all parts is the firmware that the information such as code required for upgrading write on BMC
In.Namely performed upgrade procedure is write in BMC, when needing the component connected to one to upgrade, BMC passes through
Corresponding upgrade procedure is found in its firmware information, and the component is carried out using the upgrade procedure and corresponding firmware code
Updating operation.Since the different corresponding upgrade procedure of component is not identical, during upgrading to new component,
The upgrade procedure of the component may be not present in BMC.It then needs to develop BMC again at this time and new code is written, to be compatible with
New component.It will be apparent that the quantity for the BMC for then needing to safeguard is equally many when number of servers is more, weight is carried out to BMC
Workload newly developed is high, delays server to the support efficiency of new component, reduces updating speed.
Therefore, the application provides a kind of server component upgrade method, includes by getting preset interface first
The upgrading data file of upgrade procedure and firmware code, that is to say, that the upgrading journey used during upgrading to component
Sequence is not the upgrade procedure being built in inside BMC, but the upgrade procedure obtained from upgrading data file, improves replacement and rises
The convenience of grade program.Finally, with upgrade procedure is extracted in upgrading data file to the firmware code in upgrading data file
Updating operation is executed, realizes and updating operation is carried out to component.As it can be seen that wherein the effect of BMC is only to execute upgrade procedure to component,
And it is to carry in the code of BMC, but come from upgrading data file that upgrade procedure, which is not,.It will be apparent that when component changes,
It only needs to be modified the upgrade procedure in upgrading data file when needing using new upgrade procedure, without right
BMC carries out refresh operation.Maintenance upgrade difficulty when there is new component is reduced, the efficiency of maintenance upgrade is promoted.
Referring to FIG. 1, Fig. 1 is a kind of flow chart of server component upgrade method provided by the embodiment of the present application.
In the present embodiment, this method may include:
S101, BMC get upgrading data file by preset interface;
This step is intended to BMC and gets upgrading data file.Specifically, this step can be got from different interfaces
Upgrade data file.That is there is multiple and different preset interfaces, can be Resful (interface name) interface, it can be with
It is Redfish (interface name) interface, corresponding interface can also be selected according to the configuration parameter of acquisition.As it can be seen that in this step
Preset interface it is not unique, can according to suitable applications scene select preset interface, be not specifically limited herein.
It should be noted that the upgrading data file in this step is the data file for being upgraded to component.?
The upgrading data file includes upgrade procedure and firmware code in the present embodiment.Wherein, upgrade procedure is that each component is corresponding,
Program for being upgraded to each component, and the upgrade procedure of each component is possible and incompatible, therefore each component needs
Want respective upgrades program.Firmware code refers to the firmware content that each component needs to update.
And in general upgrade method, the mainly firmware code being passed to BMC, and upgrade procedure is to be solidificated in BMC
Code in.When needing to operate to new component or the upgrade procedure of component is changed, require to BMC's
Code, which is refreshed, can just be updated the upgrade procedure of component.As it can be seen that replacing or increasing in general upgrade method
The difficulty of upgrade procedure is larger, can reduce component upgrading efficiency.
It will be apparent that when needing replacing upgrade procedure in the present embodiment, it is only necessary to which replacing the upgrade procedure upgraded in data is
Can, it reduces replacement or increases the difficulty of upgrade procedure, improve upgrading efficiency.
S102 extracts corresponding upgrade procedure from upgrading data file according to the component information of component to be upgraded;
On the basis of S101, this step is intended to extract corresponding upgrade procedure from upgrading data file.Due to rising
There may be multiple upgrade procedure in grade data file, therefore, when carrying out updating operation to one of component, then need to mention
Corresponding upgrade procedure is taken out, so as to carry out accurate updating operation to the component.
Wherein, the mode for executing extraction is mainly to be executed by the component information of component to be upgraded.That is, upgrading
It is also to be distinguished by the corresponding component information of each upgrade procedure between different upgrade procedure in data file.Therefore,
Corresponding upgrade procedure is extracted according to the component information of component to be upgraded in this step.
Further, due to being to extract corresponding upgrade procedure from upgrading data file, the prior art can be used
Any one data extraction method provided;Corresponding data can also be selected to extract according to the file format of upgrading data file
Method, for example, the upgrading data file in the present embodiment can be the form of image file, then extracting from upgrading data file
The mode of upgrade procedure is exactly to be extracted in a manner of decompression.
S103 treats upgrade of parts according to the firmware code in upgrading data file using upgrade procedure and executes upgrading behaviour
Make.
On the basis of S102, this step is intended to execute updating operation, realization pair to component according to the upgrade procedure of extraction
Component is upgraded.Namely BMC executes upgrade procedure, and upgrade procedure is treated upgrade of parts according to firmware code and upgraded.
Wherein, upgrade procedure can be provided any according to the mode that firmware code carries out updating operation using the prior art
A kind of upgrading mode, the upgrading mode that can also be provided using following embodiment, it is seen then that the mode upgraded in the present embodiment
It is not unique, it is not specifically limited herein.
Optionally, the present embodiment can also include:
Step 1, when getting the upgrading data file by the preset interface, according to the upgrading data text
The check information of part carries out completeness check to the upgrading data file;
Step 2 is executed according to the component information of component to be upgraded when the completeness check passes through from the upgrading
Data file extracts the step of corresponding upgrade procedure.
As it can be seen that in this optinal plan integrality school can also be carried out to it according to the check information in upgrading data file
It tests, to judge whether the upgrading data received are complete.When complete, subsequent step is directly executed, when imperfect, weight
It is new to obtain upgrading data file.
It is envisioned that further include the information such as check information, component information in upgrading data file in the present embodiment,
To improve the reliability of component upgrading.
Assuming that upgrading data file is saved in the form of image file, then the image file may include in following
Hold:
Mirror image header information: the component informations such as unit type, number of element types carry out image file for BMC anti-raw wrong
Matching;
The firmware code of the component firmware code component;
Component upgrade code Lib library file, i.e. upgrade procedure, Lib library file must be designed according to treaty rule;It will
The upgrade code of each component is packaged in image file, after introducing new component, it is only necessary to encapsulate the upgrade code of the component
It is placed in image file at Lib library file, without carrying out BMC code development, upgrading.
Digital signature is verified for mirror image overall integrity.
Wherein, treaty rule refers to the upgrade interface function of definition, the input parameter of the interface function and mirror image road
Diameter, the physical channel parameters of access component, including channel type, bus address etc..
To sum up, the present embodiment first by preset interface is got include upgrade procedure and firmware code ascending series
According to file, that is to say, that the upgrade procedure used during upgrading to component is not the liter being built in inside BMC
Grade program, but the upgrade procedure obtained from upgrading data file, improve the convenience of replacement upgrade procedure.Finally, with rising
Grade data file in extract upgrade procedure to upgrading data file in firmware code execute updating operation, realize to component into
Row updating operation.As it can be seen that wherein the effect of BMC is only to execute upgrade procedure to component, and upgrade procedure is not the code for being BMC
In carry, but from upgrading data file.It will be apparent that needing when component changes using when new upgrade procedure
It needs to be modified the upgrade procedure in upgrading data file, without carrying out refresh operation to BMC.It reduces and occurs
Maintenance upgrade difficulty when new component, promotes the efficiency of maintenance upgrade.
Below by way of one embodiment, explained to how to extract upgrade procedure from upgrading data file.
Referring to FIG. 2, Fig. 2 is the flow chart of another kind server component upgrade method provided by the embodiment of the present application.
In the present embodiment, this method may include:
S201, BMC get upgrading data file by preset interface;
S202 judges to believe in upgrading data file with the presence or absence of corresponding component according to the component information of component to be upgraded
Breath;If so, executing S203;If it is not, then executing S204;
This step is intended to be judged in upgrading data file according to the component information of component to be upgraded with the presence or absence of corresponding liter
Grade program.That is, by the portion of the corresponding component to be upgraded of each upgrade procedure during generating upgrading data file
Part information is write in upgrading data file, so as to be judged by component information, and then determines whether from ascending series
According to extracting upgrade procedure in file.
S203 extracts upgrade procedure from upgrading data file;
On the basis of S202, this step is intended to extract upgrade procedure from upgrading data file.Specifically, this step
In can using the prior art provide any one upgrade procedure extracting method, be not specifically limited herein.
S204 obtains new upgrading data file, executes S201;
On the basis of S202, this step is intended to reacquire to new upgrading data file, that is to say, that the present embodiment
There may be problems for the upgrading data file of middle operation, mismatch with current upgrading task, then need to reacquire to upgrading
Data file.At this point, the server of the other end can regenerate upgrading data file according to corresponding acquisition instruction, finally again
BMC is sent to by preset interface.Specifically, upgrading data file can be generated according to the component information of the component to be upgraded.
S205 treats upgrade of parts according to the firmware code in upgrading data file using upgrade procedure and executes upgrading behaviour
Make.
Specific implementation process about above-mentioned steps S201 and S205 can refer to the content of previous embodiment, herein no longer into
Row repeats.
Below by way of one embodiment, said to how to treat upgrade of parts execution updating operation using upgrade procedure
It is bright.
Referring to FIG. 3, Fig. 3 is the flow chart of another server component upgrade method provided by the embodiment of the present application.
In the present embodiment, this method may include:
S301, BMC get upgrading data file by preset interface;
S302 extracts corresponding upgrade procedure from upgrading data file according to the component information of component to be upgraded;
S303 determines the upgrading path of component to be upgraded;
This step, which is intended to determine, treats the upgrading path that upgrade of parts executes updating operation.
It is primarily due in server internal, BMC is connected to different server components, what every kind of component was connect with BMC
Mode, that is, the path connected be not identical.It needs to be determined that the upgrading path of component to be upgraded, avoids trying upgrading path
Mistake improves and treats the efficiency that upgrade of parts carries out updating operation.
For example, BMC is attached by the components such as the buses such as I2C, SPI, PCIE and PSU, network interface card, RAID.When PSU is carried out
When upgrading, determine the connection type of PSU and BMC, it is assumed that BMC is attached by I2C and PSU, it is determined that after upgrading path
As I2C.It is all made of I2C in the next steps, updating operation is carried out to PSU.
S304 extracts corresponding firmware code from upgrading data file;
On the basis of S303, this step is intended to extract corresponding firmware code from upgrading data file.Wherein, firmware
Code is just included in ascending series according in file, for carrying out the code data of updating operation to component.
S305 treats upgrade of parts according to upgrading path according to firmware code using upgrade procedure and executes updating operation.
On the basis of S304, this step be intended to using upgrade procedure according to firmware code according to upgrading path to be upgraded
Component executes updating operation.
Specific implementation process about above-mentioned steps S301 and S302 can refer to the content of previous embodiment, herein no longer into
Row repeats.
A kind of BMC device provided by the embodiments of the present application is introduced below, a kind of BMC device described below with it is upper
A kind of server component upgrade method of text description can correspond to each other reference.
Referring to FIG. 4, Fig. 4 is a kind of structural schematic diagram of BMC device provided by the embodiment of the present application.
In the present embodiment, the apparatus may include:
Upgrade data acquisition module 100, for getting upgrading data file by preset interface;
Upgrade procedure obtains module 200, for being extracted according to the component information of component to be upgraded from upgrading data file
Corresponding upgrade procedure;
Updating operation execution module 300, for being treated using upgrade procedure according to the firmware code in upgrading data file
Upgrade of parts executes updating operation.
Optionally, which obtains module 100, may include:
Whether component information judging unit is deposited for judging to upgrade in data file according to the component information of component to be upgraded
In corresponding component information;
Upgrade procedure extraction unit, for when in upgrading data file there are when corresponding component information, from upgrading data
Upgrade procedure is extracted in file;
Upgrading data retrieval takes unit, for new there is no obtaining when corresponding component information in data file when upgrading
Upgrading data file.
Optionally, which can also include:
Completeness check module, for when by preset interface get upgrading data file when, according to upgrading data text
The check information of part carries out completeness check to upgrading data file;
Verification is by execution module, for executing the component information according to component to be upgraded when completeness check passes through
The step of extracting corresponding upgrade procedure from upgrading data file.
Optionally, the updating operation execution module 300 may include:
Upgrading path unit, for determining the upgrading path of component to be upgraded;
Firmware code extraction unit, for extracting corresponding firmware code from upgrading data file;
Upgrade procedure execution unit, for treating upgrade of parts according to upgrading path according to firmware code using upgrade procedure
Execute updating operation.
A kind of server provided by the embodiments of the present application is introduced below, a kind of server described below and above
The server component upgrade method of description can correspond to each other reference.
Referring to FIG. 5, Fig. 5 is a kind of structural schematic diagram of server provided herein, which may include:
Memory 11, for storing computer program;
Processor 12 can realize following steps when for executing the computer program of the above-mentioned storage of memory 11:
Upgrading data file is got by preset interface;According to the component information of component to be upgraded from upgrading data file
Extract corresponding upgrade procedure;Upgrade of parts is treated according to the firmware code in upgrading data file using upgrade procedure to execute
Updating operation.
In the present embodiment, processor 12 execute memory 11 in save computer subprogram when, can implement with
Lower step: judged to whether there is corresponding component information in upgrading data file according to the component information of component to be upgraded;If so,
Then upgrade procedure is extracted from upgrading data file;If it is not, then obtaining new upgrading data file.
In the present embodiment, processor 12 execute memory 11 in save computer subprogram when, can implement with
Lower step: when getting upgrading data file by preset interface, according to the check information of upgrading data file to ascending series
Completeness check is carried out according to file;When completeness check passes through, execute according to the component information of component to be upgraded from ascending series
The step of extracting corresponding upgrade procedure according to file.
In the present embodiment, processor 12 execute memory 11 in save computer subprogram when, can implement with
Lower step: the upgrading path of component to be upgraded is determined;Corresponding firmware code is extracted from upgrading data file;Using upgrading
Program treats upgrade of parts according to upgrading path according to firmware code and executes updating operation.
Above method embodiment is please referred to for the introduction of equipment provided by the present application, this will not be repeated here by the application.
Further, the embodiment of the present application also provides a kind of computer readable storage mediums, for storing computer journey
Sequence, wherein can realize following steps when computer program is executed by processor:
Upgrading data file is got by preset interface;According to the component information of component to be upgraded from upgrading data file
Extract corresponding upgrade procedure;Upgrade of parts is treated according to the firmware code in upgrading data file using upgrade procedure to execute
Updating operation.
In some specific embodiments, the computer subprogram saved in computer readable storage medium is held by processor
When row, following steps can be implemented: judge to whether there is in upgrading data file according to the component information of component to be upgraded
Corresponding component information;If so, extracting upgrade procedure from upgrading data file;If it is not, then obtaining new upgrading data
File.
In some specific embodiments, the computer subprogram saved in computer readable storage medium is held by processor
When row, following steps can be implemented: when getting upgrading data file by preset interface, according to upgrading data file
Check information to upgrading data file carry out completeness check;When completeness check passes through, execute according to component to be upgraded
Component information from upgrading data file extract corresponding upgrade procedure the step of.
In some specific embodiments, the computer subprogram saved in computer readable storage medium is held by processor
When row, following steps can be implemented: determine the upgrading path of component to be upgraded;Correspondence is extracted from upgrading data file
Firmware code;Upgrade of parts is treated according to upgrading path according to firmware code using upgrade procedure and executes updating operation.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only
Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit
Store up the medium of program code.
Above method embodiment is please referred to for the specific introduction of computer readable storage medium provided by the present application, this Shen
It please this will not be repeated here.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities
The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment
Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration
?.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure
And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and
The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
It above can to a kind of server component upgrade method, BMC device, server and computer provided herein
Storage medium is read to be described in detail.Specific case used herein explains the principle and embodiment of the application
It states, the description of the example is only used to help understand the method for the present application and its core ideas.It should be pointed out that for this skill
For the those of ordinary skill in art field, under the premise of not departing from the application principle, several change can also be carried out to the application
Into and modification, these improvement and modification also fall into the protection scope of the claim of this application.
Claims (10)
1. a kind of server component upgrade method characterized by comprising
BMC gets upgrading data file by preset interface;
Corresponding upgrade procedure is extracted from the upgrading data file according to the component information of component to be upgraded;
Upgrading is executed to the component to be upgraded according to the firmware code in the upgrading data file using the upgrade procedure
Operation.
2. server component upgrade method according to claim 1, which is characterized in that believed according to the component of component to be upgraded
Breath extracts corresponding upgrade procedure from the upgrading data file, comprising:
Judged in the upgrading data file according to the component information of the component to be upgraded with the presence or absence of corresponding component information;
If so, extracting the upgrade procedure from the upgrading data file;
If it is not, then obtaining new upgrading data file.
3. server component upgrade method according to claim 1, which is characterized in that further include:
When getting the upgrading data file by the preset interface, according to the check information of the upgrading data file
Completeness check is carried out to the upgrading data file;
When the completeness check passes through, execution is extracted according to the component information of component to be upgraded from the upgrading data file
The step of corresponding upgrade procedure out.
4. server component upgrade method according to any one of claims 1 to 3, which is characterized in that use the upgrading
Program executes updating operation to the component to be upgraded according to the firmware code in the upgrading data file, comprising:
Determine the upgrading path of the component to be upgraded;
Corresponding firmware code is extracted from the upgrading data file;
Upgrading is executed to the component to be upgraded according to the upgrading path according to the firmware code using the upgrade procedure
Operation.
5. a kind of BMC device characterized by comprising
Upgrade data acquisition module, for getting upgrading data file by preset interface;
Upgrade procedure obtains module, for extracting correspondence from the upgrading data file according to the component information of component to be upgraded
Upgrade procedure;
Updating operation execution module, for using the upgrade procedure according to the firmware code in the upgrading data file to institute
It states component to be upgraded and executes updating operation.
6. BMC device according to claim 5, which is characterized in that the upgrade procedure obtains module, comprising:
Component information judging unit is in the upgrading data file for being judged according to the component information of the component to be upgraded
It is no that there are corresponding component informations;
Upgrade procedure extraction unit, for when in the upgrading data file there are when corresponding component information, from the upgrading
The upgrade procedure is extracted in data file;
Upgrading data retrieval takes unit, new for obtaining when corresponding component information is not present in the upgrading data file
Upgrading data file.
7. BMC device according to claim 5, which is characterized in that further include:
Completeness check module, for when getting the upgrading data file by the preset interface, according to the liter
The check information of grade data file carries out completeness check to the upgrading data file;
Verification is by execution module, for executing the component information according to component to be upgraded when the completeness check passes through
The step of extracting corresponding upgrade procedure from the upgrading data file.
8. according to the described in any item BMC devices of claim 5 to 7, which is characterized in that the updating operation execution module, packet
It includes:
Upgrading path unit, for determining the upgrading path of the component to be upgraded;
Firmware code extraction unit, for extracting corresponding firmware code from the upgrading data file;
Upgrade procedure execution unit, for using the upgrade procedure according to the firmware code according to the upgrading path to institute
It states component to be upgraded and executes updating operation.
9. a kind of server characterized by comprising
Memory, for storing computer program;
Processor realizes such as Claims 1-4 described in any item server component liters when for executing the computer program
The step of grade method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program is realized when the computer program is executed by processor such as the described in any item server component upgradings of Claims 1-4
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910389183.3A CN110083379A (en) | 2019-05-10 | 2019-05-10 | A kind of server component upgrade method and relevant apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910389183.3A CN110083379A (en) | 2019-05-10 | 2019-05-10 | A kind of server component upgrade method and relevant apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110083379A true CN110083379A (en) | 2019-08-02 |
Family
ID=67419655
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910389183.3A Withdrawn CN110083379A (en) | 2019-05-10 | 2019-05-10 | A kind of server component upgrade method and relevant apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110083379A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110909394A (en) * | 2019-11-24 | 2020-03-24 | 苏州浪潮智能科技有限公司 | Configuration file monitoring method of server |
CN111104147A (en) * | 2019-12-25 | 2020-05-05 | 浪潮商用机器有限公司 | BMC upgrading method, device, terminal and storage medium |
CN113127033A (en) * | 2021-03-30 | 2021-07-16 | 山东英信计算机技术有限公司 | Server firmware version upgrading method, device and system and readable storage medium |
CN113467801A (en) * | 2021-06-11 | 2021-10-01 | 浪潮电子信息产业股份有限公司 | BMC firmware application updating method, BMC, system and storage medium |
CN113535212A (en) * | 2021-09-17 | 2021-10-22 | 苏州浪潮智能科技有限公司 | Method, system, equipment and medium for independently upgrading components |
-
2019
- 2019-05-10 CN CN201910389183.3A patent/CN110083379A/en not_active Withdrawn
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110909394A (en) * | 2019-11-24 | 2020-03-24 | 苏州浪潮智能科技有限公司 | Configuration file monitoring method of server |
CN111104147A (en) * | 2019-12-25 | 2020-05-05 | 浪潮商用机器有限公司 | BMC upgrading method, device, terminal and storage medium |
CN113127033A (en) * | 2021-03-30 | 2021-07-16 | 山东英信计算机技术有限公司 | Server firmware version upgrading method, device and system and readable storage medium |
WO2022206256A1 (en) * | 2021-03-30 | 2022-10-06 | 山东英信计算机技术有限公司 | Method, apparatus, and system for upgrading version of firmware of server, and readable storage medium |
CN113467801A (en) * | 2021-06-11 | 2021-10-01 | 浪潮电子信息产业股份有限公司 | BMC firmware application updating method, BMC, system and storage medium |
CN113467801B (en) * | 2021-06-11 | 2024-02-23 | 浪潮电子信息产业股份有限公司 | BMC firmware application updating method, BMC, system and storage medium |
CN113535212A (en) * | 2021-09-17 | 2021-10-22 | 苏州浪潮智能科技有限公司 | Method, system, equipment and medium for independently upgrading components |
WO2023040198A1 (en) * | 2021-09-17 | 2023-03-23 | 苏州浪潮智能科技有限公司 | Independent component upgrade method and system, and device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110083379A (en) | A kind of server component upgrade method and relevant apparatus | |
US9223564B2 (en) | Update systems responsive to ongoing processing at a storage system | |
CN103268201B (en) | A kind of date storage method, memory storage and read method | |
CN112083971B (en) | Component processing method, device and storage medium | |
CN103677870A (en) | System upgrading method and system upgraded by means of method | |
CN108270626A (en) | A kind of method, apparatus, equipment and the readable storage medium storing program for executing of upgrade server firmware | |
CN109189613A (en) | A kind of database data recovery method and relevant apparatus | |
CN109491685A (en) | Method, apparatus, equipment and the storage medium of CPLD version are brushed under server | |
CN110209420A (en) | A kind of method and device updating bootstrap loader | |
CN110659210A (en) | Information acquisition method and device, electronic equipment and storage medium | |
US10031764B2 (en) | Managing executable files | |
CN102880478B (en) | Oftware updating method | |
CN108694049B (en) | Method and equipment for updating software | |
CN106201584B (en) | Version upgrading method and terminal device | |
CN108182278A (en) | A kind of FRU information maintenance methods and relevant apparatus | |
CN111629200A (en) | Method and device for rapidly detecting differential packet reliability and readable storage medium | |
US10761940B2 (en) | Method, device and program product for reducing data recovery time of storage system | |
CN110119285A (en) | A kind of low side scm software upgrade method and relevant apparatus | |
CN115202589B (en) | Placement group member selection method, device and equipment and readable storage medium | |
CN110502238A (en) | A kind of method and device of front and back end joint debugging | |
JP2008112229A (en) | Update data application method for software product | |
CN115098297A (en) | Method and system for generating consistent snapshot of cloud native storage data volume | |
CN113010195B (en) | System upgrading method, storage medium and terminal equipment | |
CN113741931A (en) | Software upgrading method and device, electronic equipment and readable storage medium | |
CN112202636B (en) | Communication test method and system |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190802 |
|
WW01 | Invention patent application withdrawn after publication |