Specific embodiment
In term used in this application merely for the sake of the purpose for describing specific embodiment, and unrestricted the application.This Shen
Please it is also intended to include most forms with " one kind ", " described " and " being somebody's turn to do " of the singulative used in claims, unless
Context clearly shows that other implications.It is also understood that term "and/or" used herein is referred to comprising one or more
Associated any or all possible combination for listing project.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.For example, without departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depend on linguistic context, additionally, used word " if " can be construed to " and ... when " or " when ... when "
Or " in response to determining ".
In one example, for the accessory for newly increasing, it may not be necessary to which server uses new software version, it is possible to just
Often work, it is also possible to need server using new software version, just can be with normal work.
When server need using new software version just can with normal work when, if server is still using original soft
Part version, after the accessory for newly increasing is inserted into server, just occurs the problems such as accessory is abnormal.For example, newly increased matches somebody with somebody
Part needs the radiating strategy using new software version, and server still using original software version when, due to original soft
Radiating strategy in part version, it is impossible to reach the cooling requirements of accessory, so as to accessory can be caused overheated, reduces the reliability of accessory
Property, or even accessory can be burnt.
In conventional manner, after the accessory for newly increasing is inserted into server, server is not known whether that needs make
New software version is used, the software version of itself of would not also upgrading is abnormal so as to cause accessory to occur.
A kind of software version reminding method is proposed in the embodiment of the present application, shown in Figure 1, it is the software version prompting side
The flow chart of method, the method can apply to server, and the method can include:
Step 101, when detecting accessory (accessory for newly increasing can be referred to as new accessory) and being inserted into server,
The corresponding first software version mark of the accessory is obtained, and obtains currently used the second software version mark of the server.Its
In, in order to distinguish conveniently, corresponding for accessory software version mark can be referred to as the first software version mark, server is current
The part version identifier for using is referred to as the second software version mark.
In one example, the accessory can be included but is not limited to:Internal memory, hard disk, disk cage, hard disk controlling card, PCIE
(Peripheral Component Interconnect Express, high speed peripheral component interlinkage standard) plug-in card etc..Disk cage
It is a kind of pluggable accessory of server, is the structural member for carrying hard disk support bracket, comprising hardware and electronic device
Hard disk backboard.PCIE plug-in cards can be network interface card, video card etc..
In one example, for the process of " obtaining the corresponding first software version mark of accessory ", including but not limited to
Following manner:If one accessory of mode includes processor (such as CPU (Central Processing Unit, central processing unit)
Deng), then request message can be sent to the processor of the accessory.The processor of the accessory is obtained after the request message is received
The corresponding first software version mark of this accessory is taken, and returns the response message for carrying the first software version mark.Receiving
After the response message returned to the processor of the accessory, as the response message carries the corresponding first software version mark of the accessory
Know, therefore, it can the corresponding first software version mark of the accessory is parsed from the response message.Mode two, in accessory
In memory area, the corresponding first software version mark of the accessory is prestored, based on this, can directly from the storage of the accessory
The corresponding first software version mark of the accessory is read in region.Wherein, for include processor accessory and do not include locating
The accessory of reason device, can obtain the first software version mark with employing mode two.
In one example, if being internal memory for two accessory of mode, the memory area of the accessory is specifically as follows SPD
(Serial Presence Detect, serial have detection) region.If accessory is hard disk, the memory area of the accessory is concrete
It can be LOG (daily record) region.If accessory is disk cage or hard disk controlling card or PCIE plug-in cards, the storage of the accessory
Region is specifically as follows EEPROM, and (Electrically Erasable Programmable Read-Only Memory electricity can
EPROM) region.
In one example, for the process of " obtaining currently used the second software version mark of the server ", in clothes
In the BIOS (Basic Input Output System, basic input output system) of the processor of business device, record has server
Currently used the second software version mark, therefore can get the server currently used from the BIOS of processor
Second software version is identified.Wherein, BIOS is the startup program of processor, for before operating system, to processor, interior
Deposit, peripheral interface carries out initialization action.
In one example, the software version reminding method for proposing in the embodiment of the present application, can apply to server
On BMC (Baseboard Management Controller, baseboard management controller) or processor (such as CPU etc.).If should
It is used on BMC, then the second currently used software version of the corresponding first software version mark of accessory, server is obtained by BMC
Mark.If application is on a processor, the corresponding first software version mark of accessory, server are obtained by processor currently used
The second software version mark.The process for obtaining the first software version mark and the second software version mark below to BMC is carried out
Illustrate, and the acquisition process of processor is similar with the acquisition process of BMC, subsequently it is no longer repeated.
As shown in Fig. 2 being the structural representation of the server comprising BMC, bios software is run on a processor, BMC can
So that by LPC (Low Pin Count, low pin count) bus access to processor, therefore, BMC can pass through lpc bus to place
Reason device sends request message, and processor can get currently used the second software version mark of server from BIOS, and
The second software version mark is returned to BMC by lpc bus, the second currently used software version of server is got by BMC
This mark.
In fig. 2, BMC can pass through I2C (Inter Integrated Circuit, internal integrated circuit) bus/SMI
(Serial Management Interface, serial management interface) bus directly or indirectly accesses internal memory, hard disk, hard
The accessories such as disk cage, hard disk controlling card, PCIE plug-in cards, therefore, BMC can (such as SPD be self-defined from the SPD regions of internal memory
Region) in read internal memory corresponding first software version mark, hard disk can be read from the LOG regions of hard disk corresponding
First software version is identified, and can read the corresponding first software version mark of disk cage from the EEPROM regions of disk cage
Know, hard disk controlling card corresponding first software version mark can be read from the EEPROM regions of hard disk controlling card, can be with
The corresponding first software version mark of PCIE plug-in cards is read from the EEPROM regions of PCIE plug-in cards.
Step 102, judges that first software version is identified whether higher than the second software version mark.
If it is, execution step 103;If it is not, then execution step 104.
Step 103, determines that server is needed using new software version, and the corresponding software version information of export server,
To point out user to need the upgrading for carrying out software version to server by the software version information.
Step 104, determines that server need not use new software version, and refuses the corresponding software version of export server
Information, i.e. accessory normally can be used, it is not necessary to the upgrading for carrying out software version to server.
In one example, the software version information can be included but is not limited to:Need the prompting using new software version
Information (is needed using new software version by the information alert client server), and/or, need the software version mark being upgraded to
Knowing (needs the software version being upgraded to mark, such as the first software version to identify or high by the information alert client server
Version identifier in the first software version mark).
In one example, the first software version mark includes:The minimum bios version that accessory is supported is identified, minimum BMC
Version identifier;Second software version mark includes:The processor of server currently used bios version mark, server
The currently used BMC version identifiers of BMC.If the minimum bios version mark that accessory the is supported BIOS currently used higher than processor
Version identifier, and/or, the minimum BMC version identifiers that accessory is supported higher than the currently used BMC version identifiers of BMC, then explanation the
One software version mark is identified higher than the second software version.If the minimum bios version mark that accessory is supported is not higher than processor and works as
The front bios version mark for using, the minimum BMC version identifiers that accessory is supported are not higher than the currently used BMC version identifiers of BMC,
Illustrate that the first software version mark is not higher than the second software version mark.
In one example, server can also be safeguarded in advance and support accessory list, and this has supported to remember in accessory list
The accessory name that the second software version mark supports accessory is recorded, i.e., under the current software version of server, the server can
To support that the accessory name of accessory, these accessory names can be pre-configured in the accessory list of support of server.And,
After server update to new software version, new software version can also be supported that the accessory name of accessory recorded and be propped up
Hold in accessory list.
Accessory list is supported based on this, before step 102, the corresponding accessory name of accessory can also have been obtained, and led to
Cross the corresponding accessory name of the accessory and inquire about this and support accessory list.If this has supported that accessory list includes that the accessory is corresponding
Accessory name, it is determined that server need not use new software version, and refuse export server corresponding software version letter
Breath, i.e., accessory normally can be used.If this has supported not including the corresponding accessory name of the accessory in accessory list, is judged
One software version identifies whether to identify higher than the second software version.If it is, the corresponding software version information of export server.
If it is not, then determining that server need not use new software version, and refuse the corresponding software version information of export server.
Wherein, accessory name is properly termed as board type again, and the accessory name is the unique mark of accessory.
In one example, for the process of " obtaining the corresponding accessory name of accessory ", can include but is not limited to:Mode
If an accessory includes processor, request message is sent to the processor of accessory.The processor of accessory is receiving request message
Afterwards, the corresponding accessory name of this accessory is obtained, and returns the response message for carrying the accessory name.Receiving processor return
Response message after, as the response message carries the corresponding accessory name of the accessory, therefore, it can from the response message solve
Separate out the corresponding accessory name of the accessory.Mode two, in the memory area of accessory, prestore the corresponding accessory name of the accessory
Claim, based on this, the corresponding accessory name of the accessory directly can be read from the memory area of the accessory.Wherein, for including
The accessory of processor and do not include the accessory of processor, accessory name can be obtained with employing mode two.
If being internal memory for two accessory of mode, the memory area of accessory is specifically as follows SPD regions.If accessory is hard
Disk, then the memory area of accessory be specifically as follows LOG regions.If accessory is disk cage or hard disk controlling card or PCIE inserting
Card, then the memory area of accessory is specifically as follows EEPROM regions.
Further, BMC can directly or indirectly access internal memory, hard disk, hard disk by I2C buses/SMI buses
The accessories such as cage, hard disk controlling card, PCIE plug-in cards, therefore BMC can read the corresponding accessory of internal memory from the SPD regions of internal memory
Title, can read the corresponding accessory name of hard disk from the LOG regions of hard disk, can be from the EEPROM regions of disk cage
The corresponding accessory name of disk cage is read, and hard disk controlling card can be read from the EEPROM regions of hard disk controlling card corresponding
Accessory name, the corresponding accessory name of PCIE plug-in cards can be read from the EEPROM regions of PCIE plug-in cards.
In one example, the corresponding first software version mark of accessory and accessory name can also be obtained simultaneously, is based on
This, if accessory includes processor, sends request message to processor, and the response message that receiving processor is returned disappears from the response
The corresponding first software version mark of accessory and accessory name is parsed in breath.Or, read from the memory area of accessory and match somebody with somebody
The corresponding first software version mark of part and accessory name.
In actual applications, for same accessory, it may be necessary to be inserted into multiple products, if desired for being inserted into server
A or server B or server C, therefore can configure this multiple product for the accessory and distinguish corresponding first software version mark
Know, i.e., accessory is identified to the first software version that there should be multiple names of product.Based on this, the corresponding first software version of accessory is obtained
The process of this mark, including but not limited to following manner:Mode one, the corresponding names of product of BIOS for obtaining server, if match somebody with somebody
Part includes processor, then send the request message for carrying the corresponding names of product of the BIOS to processor, and receiving processor is returned
Response message, the response message carries the first software version of corresponding corresponding with the BIOS name of product coupling of the accessory
This mark, and the corresponding first software version mark of the accessory is parsed from the response message.Mode two, obtain server
The corresponding names of product of BIOS, read the corresponding name of product corresponding with the BIOS of the accessory from the memory area of accessory
The first software version mark of coupling.Wherein, for including the accessory of processor and not including the accessory of processor, can adopt
The first software version mark that the corresponding name of product coupling corresponding with the BIOS of the accessory is obtained with mode two.
Obtain the process of the corresponding accessory name of accessory, including but not limited to following manner:Mode one, obtain server
The corresponding names of product of BIOS, if accessory includes processor, send to processor and carry the corresponding names of product of the BIOS
Request message, the response message that receiving processor is returned, the response message carry the corresponding product corresponding with the BIOS of the accessory
The accessory name of product name-matches, and the corresponding accessory name of the accessory is parsed from the response message.Mode two, acquisition clothes
The corresponding names of product of BIOS of business device, read the corresponding product corresponding with the BIOS of the accessory from the memory area of accessory
The accessory name of product name-matches.Wherein, for including the accessory of processor and not including the accessory of processor, can adopt
Mode two obtains the accessory name of the corresponding name of product coupling corresponding with the BIOS of the accessory.
In one example, the corresponding name of product coupling corresponding with the BIOS of the accessory can also be obtained simultaneously
First software version mark and accessory name, this process are similar with said process, repeat no more.
For example, accessory 1 pair should have the first software version mark A and accessory name 1 of name of product 1, the of name of product 2
One software version mark B and accessory name 1, the first software version mark C of name of product 3 and accessory name 1.It is based on this,
Accessory 1 is inserted into after server 1, it is assumed that the corresponding names of product of BIOS of server 1 are (the i.e. server 1 pair of name of product 1
The unique product identification that answers), then after name of product 1 is got, it may be determined that go out that the accessory 1 is corresponding and the ProductName
The the first software version mark and accessory name for claiming 1 coupling is respectively the first software version mark A and accessory name 1.
Above-mentioned technical proposal is based on, in the embodiment of the present application, (accessory for newly increasing can be referred to as newly matching somebody with somebody when accessory
Part) when being inserted into server, compare the corresponding first software version mark of accessory and the second currently used software version of server
This mark, if the first software version mark is identified higher than the second software version, the corresponding software version information of export server.This
Sample, when accessory is inserted into server, can know whether the currently used software version of server supports the accessory, not prop up
When holding the accessory, the corresponding software version information of export server, so as to user is known based on the software version information to need to rise
The software version of level server and the software version mark for needing to be upgraded to.Aforesaid way is based on, can be with upgrade server
Software version, reduces accessory as far as possible and abnormal number of times occurs, such as reduce the frequency of abnormity such as accessory is overheated, accessory burns.
Shown in Figure 3, it is the flow chart of software version reminding method, can apply to the BMC of server.
Step 301, BMC detect accessory and are inserted into server.
Step 302, BMC obtain the corresponding first software version mark of the accessory and accessory name.
Step 303, BMC judge to have supported to whether there is the accessory name in accessory list.
If it is, BMC execution steps 304, if it is not, then BMC execution steps 305.
Step 304, BMC determine that server need not use new software version, and refuse the corresponding software of export server
Version information, i.e. accessory normally can be used.
Step 305, BMC obtain currently used the second software version mark of the server.
Step 306, BMC judge that first software version is identified whether higher than the second software version mark.
If it is, BMC execution steps 307, if it is not, then BMC execution steps 308.
Step 307, the corresponding software version information of BMC export servers.
Step 308, BMC determine that server need not use new software version, and refuse the corresponding software of export server
Version information, i.e. accessory normally can be used.
Conceived based on the application same with said method, in the embodiment of the present application, additionally provide a kind of software version prompting dress
Put, the software version suggestion device application is on the server.Wherein, the software version suggestion device can be realized by software,
Can also be realized by way of hardware or software and hardware combining.As a example by implemented in software, as the dress on a logical meaning
Put, be the processor by its server being located, corresponding computer program instructions are formed in reading non-volatile storage
's.From for hardware view, as shown in figure 4, one kind of the server at the software version suggestion device place proposed for the application
Hardware structure diagram, in addition to the processor shown in Fig. 4, nonvolatile memory, server can also include other hardware, such as negative
The forwarding chip of duty process message, network interface, internal memory etc.;For from hardware configuration, server is also possible to be distributed setting
Standby, multiple interface cards are potentially included, so that the extension of Message processing is carried out in hardware view.
As shown in figure 5, the structure chart of the software version suggestion device proposed for the application, the device includes:
Acquisition module 11, for when detecting accessory and being inserted into server, obtaining corresponding first software of the accessory
Version identifier, and obtain currently used the second software version mark of the server;
Judge module 12, for judging that the first software version identifies whether to identify higher than the second software version;
Processing module 13, for identifying higher than the second software version mark for first software version when judged result
During knowledge, then export the corresponding software version information of the server.
In one example, the acquisition module 11, is additionally operable to obtain the corresponding accessory name of the accessory, and passes through institute
State accessory name inquiry and support accessory list;Wherein, described supported in accessory list, to have recorded second software version
Mark supports the accessory name of accessory;
The judge module 12, specifically for having supported not including the corresponding accessory of the accessory in accessory list when described
During title, judge that first software version identifies whether to identify higher than second software version;
The processing module 13, is additionally operable to support that accessory list includes the corresponding accessory name of the accessory when described
Claim, or, when judged result is that not higher than described second software version of first software version mark is identified, determine described
Server need not use new software version, and refuse to export the corresponding software version information of the server.
In one example, the acquisition module 11, specifically for obtaining corresponding first software version of the accessory
During mark, if the accessory includes processor, request message is sent to the processor, receive the processor and return
Response message, the response message carries the corresponding first software version mark of the accessory;Solve from the response message
Separate out the first software version mark;Or,
The corresponding first software version mark of the accessory is read from the memory area of the accessory;Wherein, described deposit
Storage area domain is used for storing the corresponding first software version mark of accessory.
In one example, if the accessory is identified to the first software version that should have multiple names of product, the acquisition
Module 11, specifically for, during the corresponding first software version mark of the accessory is obtained, obtaining the server
The corresponding name of product of basic input-output system BIOS;
If the accessory includes processor, send to the processor and carry asking for the corresponding names of product of the BIOS
Message is sought, and receives the response message that the processor is returned, it is corresponding and described that the response message carries the accessory
The first software version mark of the corresponding name of product couplings of BIOS;It is corresponding that the accessory is parsed from the response message
First software version is identified;Or, it is corresponding corresponding with the BIOS that the accessory is read from the memory area of the accessory
Name of product coupling the first software version mark;The memory area is used for storing the first soft of the plurality of name of product
Part version identifier.
In one example, the accessory is specifically included:Internal memory, hard disk, disk cage, hard disk controlling card, PCIE plug-in cards;If
The accessory is internal memory, then the memory area is specially SPD regions;If the accessory is hard disk, the memory area tool
Body is LOG regions;If the accessory is disk cage or hard disk controlling card or PCIE plug-in cards, the memory area is concrete
For EEPROM regions;
The accessory corresponding first software version mark that the acquisition module 11 is obtained includes the accessory support
Minimum bios version mark, lowest substrate Management Controller BMC version identifiers;The server that the acquisition module 11 is obtained
Currently used the second software version mark includes the currently used bios version mark of the processor of the server, server
The currently used BMC version identifiers of BMC.
In one example, the corresponding software version information of the server of the output of the processing module 13 includes:Need
The information of new software version is used, and/or, need the software version mark being upgraded to.
Wherein, the modules of the application device can be integrated in one, it is also possible to be deployed separately.Above-mentioned module can be closed
And be a module, it is also possible to it is further split into multiple submodule.
Through the above description of the embodiments, those skilled in the art can be understood that the application can be by
Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but the former is more in many cases
Good embodiment.Such understanding is based on, the technical scheme of the application is substantially contributed to prior art in other words
Part can be embodied in the form of software product, and the computer software product is stored in a storage medium, if including
Dry instruction is used so that a computer equipment (can be personal computer, server, or network equipment etc.) executes this Shen
Method that please be described in each embodiment.It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment,
Module or flow process in accompanying drawing is not necessarily implemented necessary to the application.
It will be appreciated by those skilled in the art that module in device in embodiment can be carried out point according to embodiment description
It is distributed in the device of embodiment, it is also possible to carry out respective change and be disposed other than in one or more devices of the present embodiment.On
The module for stating embodiment can merge into a module, can also be further split into multiple submodule.Above-mentioned the embodiment of the present application
Sequence number is for illustration only, does not represent the quality of embodiment.
Several specific embodiments of only the application disclosed above, but, the application is not limited to this, any ability
What the technical staff in domain can think change should all fall into the protection domain of the application.