CN108733398A - A kind of processing method and processing device of software upgrading - Google Patents
A kind of processing method and processing device of software upgrading Download PDFInfo
- Publication number
- CN108733398A CN108733398A CN201810461312.0A CN201810461312A CN108733398A CN 108733398 A CN108733398 A CN 108733398A CN 201810461312 A CN201810461312 A CN 201810461312A CN 108733398 A CN108733398 A CN 108733398A
- Authority
- CN
- China
- Prior art keywords
- yum
- server
- software
- network interface
- interface card
- 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.)
- Granted
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
- G06F8/654—Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Stored Programmes (AREA)
Abstract
This application discloses a kind of processing method and processing devices of software upgrading, wherein the method includes:When having detected that network interface card is inserted into first server, the version information of predetermined software is obtained from the network interface card;When determining the predetermined software of installation targets version in the first server, points relationship is determined;Wherein, the points relationship characterization Yum tools are directed toward the position of the installation kit of the predetermined software of target version in the network interface card;Channel based on Baseboard Management Controller (BMC) between operating system, operation Yum tools are in the operating system of the predetermined software of installation targets version to first server.
Description
Technical field
The present invention relates to software technology fields, and in particular to a kind of processing method and processing device of software upgrading.
Background technology
Currently, the network interface card in server (Server) is needing upgrading driving (driver) or firmware (firmware) etc. soft
When part, it usually needs copy and installed again in corresponding installation file to operating system, can also be responsible for by what is specially developed
Software upgrading class tool is installed, and still, these software upgrading modes are required for carrying out the copy function of installation file, are unfavorable for taking
The quick upgrading for each server being engaged in device cluster.
Invention content
In view of this, present invention contemplates that provide a kind of processing method and processing device of software upgrading, simplify soft to having installed
The operation that part is upgraded, to be conducive to improve the maintainability of software.
In order to achieve the above objectives, the technical proposal of the invention is realized in this way:
The embodiment of the present application provides a kind of processing method of software upgrading, the method includes:
When having detected that network interface card is inserted into first server, the version information of predetermined software is obtained from the network interface card;
When determining the predetermined software of installation targets version in the first server, points relationship is determined;Wherein, institute
State the position that points relationship characterization Yum tools are directed toward the installation kit of the predetermined software of target version in the network interface card;
Based on Baseboard Management Controller (BMC, Baseboard Management Controller) between operating system
Channel, operation Yum tools in the operating system of the predetermined software of installation targets version to first server.
In said program, optionally, the version information that predetermined software is obtained from the network interface card, including:
The version information of predetermined software is obtained from the network interface card by BMC;Wherein, it is stored at least one in the network interface card
The version information of kind predetermined software.
In said program, optionally, when determining the predetermined software of installation targets version in the first server, really
Determine points relationship, including:
When mounted predetermined software is updated in determining to the first server, or
When determine not yet installed in the first server predetermined software and pre-install the predetermined software when, determine be directed toward
Relationship.
In said program, optionally, the determining points relationship, including:
Local Yum source profiles are configured in BMC, so as to exist for characterizing in the local Yum source profiles
Yum tools obtain the configuration information of the points relationship of the position of the installation kit of predetermined software from network interface card.
In said program, optionally, the determining points relationship, including:
The Configuration network Yum source profiles in BMC, so as to exist for characterizing in the network Yum source profiles
Yum tools from the network interface card or be inserted into the network interface card of other servers obtain predetermined software installation kit position direction close
The configuration information of system.
It is optionally, described before Configuration network Yum source profiles, to further include in BMC in said program:
Obtain the local Yum source profiles at least one other server of first server networking;
By the local of the local Yum source profiles of the first server and at least one other server
Yum source profiles synthesize network Yum source profiles.
The embodiment of the present application provides a kind of processing unit of software upgrading, and the processing unit includes:
Memory, for storing local Yum source profiles;
Processor, for when having detected that network interface card is inserted into first server, predetermined software to be obtained from the network interface card
Version information;When determining the predetermined software of installation targets version in the first server, points relationship is determined;Wherein,
The points relationship characterization Yum tools are directed toward the position of the installation kit of the predetermined software of target version in the network interface card;Based on BMC
Channel between operating system, operation Yum tools are with the operation system of the predetermined software of installation targets version to first server
In system.
In said program, optionally, the processor is additionally operable to:
The version information of predetermined software is obtained from the network interface card by BMC;Wherein, it is stored at least one in the network interface card
The version information of kind predetermined software.
In said program, optionally, the processor is additionally operable to:
When mounted predetermined software is updated in determining to the first server, or
When determine not yet installed in the first server predetermined software and pre-install the predetermined software when, determine be directed toward
Relationship.
In said program, optionally, the processor is additionally operable to:
Local Yum source profiles are configured in BMC, so as to exist for characterizing in the local Yum source profiles
Yum tools obtain the configuration information of the points relationship of the position of the installation kit of predetermined software from network interface card.
In said program, optionally, the processor is additionally operable to:
The Configuration network Yum source profiles in BMC, so as to exist for characterizing in the network Yum source profiles
Yum tools from the network interface card or be inserted into the network interface card of other servers obtain predetermined software installation kit position direction close
The configuration information of system.
In said program, optionally, the processor is additionally operable to:In BMC before Configuration network Yum source profiles,
Obtain the local Yum source profiles at least one other server of first server networking;Described first is taken
The local Yum source profiles of business device and the local Yum source profiles of at least one other server, synthesize network
Yum source profiles.
The embodiment of the present application also provides a kind of computer storage media, calculating is stored in the computer storage media
Machine executable instruction, the computer executable instructions are used to execute the processing side of the software upgrading described in the embodiment of the present application
Method.
Using the technical solution of the embodiment of the present application, when having detected that network interface card is inserted into first server, from the network interface card
The middle version information for obtaining predetermined software;When determining the predetermined software of installation targets version in the first server, really
Determine points relationship;Wherein, the points relationship characterization Yum tools are directed toward the installation of the predetermined software of target version in the network interface card
The position of packet;Based on the channel between BMC and operating system, operation Yum tools are with the predetermined software of installation targets version to the
In the operating system of one server, in this way, based on the points relationship determined, operation Yum tools are with the pre- of installation targets version
If software, the operation upgraded to having installed software is simplified, to be conducive to improve the maintainability of software.
Description of the drawings
Fig. 1 is the implementation process schematic diagram of the processing method of software upgrading provided by the embodiments of the present application;
Fig. 2 is associated with schematic diagram between operating system provided by the embodiments of the present application, BMC and adapter;
Fig. 3 is that the implementation process of the processing method of the software upgrading provided by the embodiments of the present application based on the local sources Yum is shown
It is intended to;
Fig. 4 is that the implementation process of the processing method of the software upgrading provided by the embodiments of the present application based on the sources network Yum is shown
It is intended to;
Fig. 5 is the structural schematic diagram one of the processing unit of software upgrading provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram two of the processing unit of software upgrading provided by the embodiments of the present application.
Specific implementation mode
The characteristics of in order to more fully hereinafter understand the application and technology contents, below in conjunction with the accompanying drawings to the reality of the application
It is now described in detail, appended attached drawing purposes of discussion only for reference, is not used for limiting the application.
In the following embodiment of the processing method and processing device of software upgrading provided by the present application, be applied to server or
In server cluster, the network interface card can also be the equipment that board etc. can be inserted or pull out from server.
The technical solution of the application is further elaborated in the following with reference to the drawings and specific embodiments.
Embodiment one
A kind of processing method of software upgrading is present embodiments provided, as shown in Figure 1, the processing method of the software upgrading
It mainly includes the following steps that:
Step 101:When having detected that network interface card is inserted into first server, the version of predetermined software is obtained from the network interface card
Information.
In the present embodiment, the network interface card can be understood as pluggable network interface card.
That is, the network interface card can be plugged into server online bayonet or network interface card slot, can also be extracted from server.
Here, the software relevant information of predetermined software is stored on the network interface card, wherein the software relevant information includes
Version information file, installation file, dependency relationships file etc..In general, predetermined software is stored such as in the network interface card
The rpm packets and version information file of driver/firmware.
Specifically, 2 independent files are at least stored in network interface card, one is installation file, the other is version information, example
Such as, the version information file can characterize rpm titles and the description information of version number.
It should be noted that dependency relationships file can exist in the form of unique file, can also be embedded in installation file or
In version information file.
Wherein, the dependency relationships can be understood as:To upgrade A, it is necessary to first upgrade B, this dependence is deposited
It is in the flash memory (flash) of network interface card.
Illustratively, software, will be in the software relevant information storage to network interface card of the software in manufacture.In this way, for clothes
It is engaged in for device, if wanting to be updated the software installed on the server, can come according to the information stored in this kind of network interface card
It is operated at update;If not yet installing the software on server, can complete to pacify for the first time according to the information stored in this kind of network interface card
Dress operation.
In some optional embodiments, the version information that predetermined software is obtained from the network interface card, including:
The version information of predetermined software is obtained from the network interface card by the BMC in first server;Wherein, the network interface card
In be stored with the version information of at least one predetermined software.
Here, there is usually one BMC for a server.
Illustratively, the m kind version informations of software A can be stored on the network interface card, BMC can by analyzing version information
Know the latest edition of software A in m kind versions, and can judge currently whether software A is installed and has been installed in first server
Whether software A versions are latest editions.
Step 102:When determining the predetermined software of installation targets version in the first server, determines to be directed toward and close
System;Wherein, the points relationship characterization Yum tools are directed toward the position of the installation kit of the predetermined software of target version in the network interface card
It sets.
In this way, since it is determined points relationship, is convenient for follow-up operation Yum tools with the predetermined software of installation targets version.
Here, determine in the first server whether the predetermined software of installation targets version, including:
Obtain the version information that software has been installed in the first server;
According to the version information and the acquired version letter for having installed software for obtaining predetermined software from the network interface card
Breath, determine in the first server whether the predetermined software of installation targets version.
That is, can be detected automatically to the network interface card for being inserted into first server by BMC in server, and analyze
Go out in the first server whether the decision of the predetermined software of installation targets version.
Certainly, in the case where BMC analyses obtain needs predetermined software of installation targets version in first server, also
The predetermined software of installation targets version and/or specific can be decided whether in the first server according to user instruction
The predetermined software of which version is installed.It so, it is possible that user is allowed to have more control initiatives and right to choose, rather than only by taking
Business device independently determines.
In some optional embodiments, when determining the predetermined software of installation targets version in the first server,
Determine points relationship, including:
When mounted predetermined software is updated in determining to the first server, points relationship is determined.
In some optional embodiments, when determining the predetermined software of installation targets version in the first server,
Determine points relationship, including:
When determine not yet installed in the first server predetermined software and pre-install the predetermined software when, determine be directed toward
Relationship.
In some alternative embodiments, the determining points relationship, including:
Local Yum source profiles are configured in BMC, so as to exist for characterizing in the local Yum source profiles
Yum tools obtain the configuration information of the points relationship of the position of the installation kit of predetermined software from network interface card.
In this way, the mounting means based on the local sources Yum, realizes the installation or update of predetermined software.
In some alternative embodiments, the determining points relationship, including:
The Configuration network Yum source profiles in BMC, so as to exist for characterizing in the network Yum source profiles
Yum tools from the network interface card or be inserted into the network interface card of other servers obtain predetermined software installation kit position direction close
The configuration information of system.
Optionally, described before Configuration network Yum source profiles, to further include in BMC:
Obtain the local Yum source profiles at least one other server of first server networking;
By the local of the local Yum source profiles of the first server and at least one other server
Yum source profiles synthesize network Yum source profiles.
In this way, the mounting means based on the sources network Yum, realizes the installation or update of predetermined software.
Step 103:Based on the channel between BMC and operating system, operation Yum tools are with the default soft of installation targets version
In part to the operating system of first server.
Here, Yum (full name be Yellow dog Updater, Modified) be one in Fedora and RedHat and
Shell front-end software package managers in CentOS.Reason is assured based on rpm, rpm packets can be downloaded automatically from specified server
And it installs, dependency relationships, and the software package of all dependences of once mounting can be automatically processed, again and again without cumbersome ground
It downloads, installation.
Fig. 2 shows being associated with schematic diagram between operating system, BMC and adapter, as shown in Fig. 2, in the server
BMC build local and network based on HTTP the sources Yum configuration, in network interface card store predetermined software (such as driver and
Firmware installation file (such as rpm installation kits)).The sources Yum can be directed toward driver rpm packets/firmware on network interface card
Rpm packets.Thus it is possible to which the channel based on BMC carries out the Yum of predetermined software (such as driver and firmware) in an operating system
Mode is installed.Specifically, operating system (OS, Operating System) obtains the sources Yum by the channel of BMC and OS from BMC
Configuration, due to thering is points relationship, OS to obtain rpm packets from network interface card according to points relationship in the configuration, in fact, OS is only obtained
Data flow, there is no really copies, i.e., locally downloading, there is no need to locally delete so-called copy
Rpm packets.In this way, being installed again in corresponding installation file to operating system without copying, simplifies and risen to having installed software
The operation of grade.Discovery RPM adapters in BMC, if finding there are rpm packets in the network interface card being newly inserted into, are updated for finding rpm packets
The sources Yum configuration in BMC.In an operating system, the local sources Yum can be used, BMC can also be passed through using the sources network Yum
Realize the installation of software in channel.
In the present embodiment, when having detected that network interface card is inserted into first server, predetermined software is obtained from the network interface card
Version information;When determining the predetermined software of installation targets version in the first server, points relationship is determined;Its
In, the points relationship characterization Yum tools are directed toward the position of the installation kit of the predetermined software of target version in the network interface card;It is based on
Channel between BMC and operating system, operation Yum tools are with the operation of the predetermined software of installation targets version to first server
In system, in this way, based on the points relationship determined, operation Yum tools are with the predetermined software of installation targets version, in this way, nothing
It need to copy and be installed again in corresponding installation file to operating system, simplify the operation upgraded to having installed software.In addition,
As long as a card of throwing the net has been mounted with the predetermined software of latest edition, you can realize all network interface cards in data center's same subnet
The update of the yum modes of recent software version, to be conducive to improve the maintainability of software.
Embodiment two
A kind of processing method of the software upgrading based on the local sources Yum is present embodiments provided, as shown in figure 3, the base
It is mainly included the following steps that in the processing method of the software upgrading in the local sources Yum:
Step 301:Predetermined software, using network interface card as carrier, the software relevant information of the predetermined software is deposited in manufacture
Storage is in network interface card.
That is, when predetermined software dispatches from the factory, it is put into network interface card or in flash memory.
For example, the rpm packets and dependency relationships of driver/firmware, storage is arrived in the flash memory (flash) of network interface card.
Step 302:Network interface card is inserted into server, and the BMC in server automatically identifies default soft in the network interface card
The version information of part.
That is, can the BMC in server detect whether network interface card insertion, and can recognize that pre- in the network interface card
If the version information of software.
Step 303:Local Yum source profiles are configured in BMC, so that the local Yum source profiles in BMC are directed toward
Rpm packets in network interface card.
It is obtained in advance from network interface card that is, configuring in good local Yum source profiles and existing for characterizing Yum tools
If the configuration information of the points relationship of the position of the installation kit of software.
Specifically, acquiescence starts http services in BMC, and the sources Yum are configured in BMC.It is local source to give tacit consent to the sources Yum, is referred to
To the network interface card default version storage location to be detected in net slot (pcie slot);
In some optional embodiments, before step 303, the method further includes:
Determine in the server whether the predetermined software of installation targets version.
Step 304:In an operating system, by the channels BMC run Yum tools with install predetermined software to server behaviour
Make in system.
Here, the channels BMC refer to the channel between BMC and operating system.
For example, it has detected network interface card insertion in server 1, driver/ is obtained from the network interface card by BMC
The version information of firmware, and based on the version information of mounted driver/firmware on known current server,
The driver/firmware that the target version in the network interface card whether is installed in the server determined, when determining the installation,
Local Yum source profiles are configured in BMC, so that the local Yum source profiles in BMC are directed toward driver/ in network interface card
The rpm packets of firmware run Yum tools with the driver/firmware of installation targets version to server by the channels BMC
Operating system in.
In this way, the mounting means based on the local sources Yum, realizes the installation or update of predetermined software.In this way, without copy pair
It is installed again in the installation file to operating system answered, simplifies the operation upgraded to having installed software.
Embodiment three
A kind of processing method of the software upgrading based on the sources network Yum is present embodiments provided, as shown in figure 4, the base
It is mainly included the following steps that in the processing method of the software upgrading in the sources network Yum:
Step 401:Predetermined software, using network interface card as carrier, the software relevant information of the predetermined software is deposited in manufacture
Storage is in network interface card.
That is, when predetermined software dispatches from the factory, it is put into network interface card or in flash memory.
For example, the rpm packets and dependence of driver/firmware, storage is arrived in the flash memory (flash) of network interface card.
Step 402:Network interface card is inserted into first server, and the BMC in first server is automatically identified in the network interface card
Predetermined software version information.
That is, can the BMC in first server detect whether network interface card insertion, and can recognize that in the network interface card
Predetermined software version information.
Step 403:BMC in first server judges whether the mounting means using the sources network Yum, if so, executing
Step 404;(not shown in FIG.) if not terminates flow.
Here, the sources network Yum are not used, in two kinds of situation, first, can be used either with or without this resource;Second is that other service
Device has new resource, but first server is not desired to use.
Step 404:Entoilage Yum source profiles are configured in BMC, so that the entoilage Yum source profiles in BMC are directed toward
Then rpm packets in network interface card execute step 405.
Wherein, the configuration entoilage Yum source profiles in BMC, including:
Obtain the local Yum source profiles at least one other server of first server networking;
By the local of the local Yum source profiles of the first server and at least one other server
Yum source profiles synthesize network Yum source profiles.
That is, a server can add or BMC configurations on automatic identification same subnet other servers
The sources Yum, and the sources Yum on other servers are for book server, are network source.
In this way, each version by analyzing the predetermined software in network Yum source profiles, can determine that out latest edition
This, to help to upgrade predetermined software based on the latest edition.
Here, exist in the network Yum source profiles configured obtains for characterizing Yum tools from network interface card preset it is soft
The configuration information of the points relationship of the position of the installation kit of part.
Step 405:In an operating system, Yum tools are run to install predetermined software to first server by the channels BMC
Operating system in.
Here, the channels BMC refer to the channel between BMC and operating system.
For example, the network interface card for being stored with the version (GA, General Availability) formally issued is inserted into clothes
It is engaged in device 2, the BMC of server 1 obtains the version information of driver/firmware in configuration file, i.e. table from server 2,3,4
The rpm titles and this category information of version number for levying driver/firmware, synthesize network Yum source profiles, the sources network Yum
Configuration file includes at least the version number of this 4 servers, is latest edition so as to which whom is analyzed, that is, knows insertion server
There is latest edition in network interface card in 2, when the BMC of server 1 determines the mounting means using the sources network Yum, in server 1
The rpm packets of driver/firmware matches confidence in network Yum source profiles configuration direction 2 network interface card of server of BMC synthesis
Breath runs Yum tools with the driver/firmware of installation targets version to server 1 by the channels BMC of server 1
In operating system.
That is, it is assumed that server to be upgraded has 4, and server 1,2,3,4 is networked, when network interface card G (contains newest rpm
The configuration file G of packet) when being inserted into server 1, configuration file G is got local by server 2,3,4, can know that server 1
In there is new network interface card to be inserted into.
As it can be seen that latest firmware version is put into the network interface card that can be inserted into and can extract, it is inserted into when can be inserted into the network interface card that can be extracted
In server, can use Yum tools, Yum tools belong in operating system carry.In this way, being at least with following advantages:
One, do not have to copy RPM files;Two, do not have to onecli of the tool such as association of exploitation firmware updating.
In this way, the mounting means based on the sources network Yum, realizes the installation or update of predetermined software.In this way, without copy pair
It is installed again in the installation file to operating system answered, simplifies the operation upgraded to having installed software.
The processing method of software upgrading described herein can realize software version storage and Yum/HTTP service separation.
Wherein network interface card need do be only storage driver and firmware can installation file (such as .rpm packets), the configuration in the sources Yum
It is realized inside BMC with HTTP service.Because HTTP service usually can give tacit consent to unlatching in BMC.The application needs are done only
For the sources configuration Yum.Throw the net card in this way, often selling one, later no matter who, toward server on it is one slotting, so that it may with.Server only needs
Two operations, update Yum configuration files in network interface card, increase in BMC and find upgrade function;Emphasis is that rpm versions are put
It has arrived on network interface card, moreover it is possible to which realization passes through Yum mode installation files.
In addition, local source and network source are supported in the sources Yum.Wherein local source is default configuration, and having version just in network interface card has this
Ground source.The local source is configured to, as long as scanning discovery has the network interface card for supporting the function when powering on, that is, adds the sources RPM to originally
It is used for follow-up in ground source.For network source, then by finding the local source configuration in other BMC in subnet, this is copied to
In the Yum configuration files of the BMC of server, then the configuration of network source may be implemented.
Because having used Yum modes, it is possible to which the advantage for utilizing Yum, the update for carrying out particular version (is usually most
Newly);And the addressing of dependency relationships can be realized automatically.
Example IV
The embodiment of the present application provides a kind of processing unit of software upgrading, as shown in figure 5, the processing unit includes:
Memory 10, for storing local Yum source profiles;
Processor 20, for when having detected that network interface card is inserted into first server, predetermined software to be obtained from the network interface card
Version information;When determining the predetermined software of installation targets version in the first server, points relationship is determined;Its
In, the points relationship characterization Yum tools are directed toward the position of the installation kit of the predetermined software of target version in the network interface card;It is based on
Channel between Baseboard Management Controller BMC and operating system, operation Yum tools are with the predetermined software of installation targets version to the
In the operating system of one server.
As an implementation, the processor 20, is additionally operable to:
The version information of predetermined software is obtained from the network interface card by BMC;Wherein, it is stored at least one in the network interface card
The version information of kind predetermined software.
As an implementation, the processor 20, is additionally operable to:
When mounted predetermined software is updated in determining to the first server, or
When determine not yet installed in the first server predetermined software and pre-install the predetermined software when, determine be directed toward
Relationship.
As an implementation, the processor 20, is additionally operable to:
Local Yum source profiles are configured in BMC, so as to exist for characterizing in the local Yum source profiles
Yum tools obtain the configuration information of the points relationship of the position of the installation kit of predetermined software from network interface card.
As an implementation, the processor 20, is additionally operable to:
The Configuration network Yum source profiles in BMC, so as to exist for characterizing in the network Yum source profiles
Yum tools from the network interface card or be inserted into the network interface card of other servers obtain predetermined software installation kit position direction close
The configuration information of system.
As an implementation, the processor 20, is additionally operable to:In BMC Configuration network Yum source profiles it
Before, obtain the local Yum source profiles at least one other server of first server networking;By described first
The local Yum source profiles of server and the local Yum source profiles of at least one other server, polymer fabric
Network Yum source profiles.
It should be noted that:It will be appreciated by those skilled in the art that each in the processing unit of the software upgrading of the present embodiment
The function of device can refer to the associated description of the processing method of the software upgrading applied to server side described in embodiment and manage
Solution, which is not described herein again.
The processing unit of software upgrading described in the present embodiment, based on the points relationship determined, operation Yum tools are to install
The predetermined software of target version simplifies in this way, being installed again in corresponding installation file to operating system without copying to having pacified
The operation that dress software is upgraded.As long as in addition, a card of throwing the net has been mounted with the predetermined software of latest edition, you can realize number
According to the update of the Yum modes of the recent software version of all network interface cards in the same subnet of center, to be conducive to improve software can
Maintainability.
Embodiment five
A kind of processing unit of software upgrading is present embodiments provided, as shown in fig. 6, described device includes:
Acquiring unit 61, it is default soft for when having detected that network interface card is inserted into first server, being obtained from the network interface card
The version information of part;
Determination unit 62, for when determining the predetermined software of installation targets version in the first server, determining
Points relationship;Wherein, the points relationship characterization Yum tools are directed toward the installation kit of the predetermined software of target version in the network interface card
Position;
Processing unit 63, for based on the channel between Baseboard Management Controller BMC and operating system, running Yum tools
With in the operating system of the predetermined software of installation targets version to first server.
As an implementation, the acquiring unit 61, is additionally operable to:
The version information of predetermined software is obtained from the network interface card by BMC;Wherein, it is stored at least one in the network interface card
The version information of kind predetermined software.
As an implementation, the determination unit 62, is additionally operable to:
When mounted predetermined software is updated in determining to the first server, or
When determine not yet installed in the first server predetermined software and pre-install the predetermined software when, determine be directed toward
Relationship.
As an implementation, the determination unit 62, is additionally operable to:
Local Yum source profiles are configured in BMC, so as to exist for characterizing in the local Yum source profiles
Yum tools obtain the configuration information of the points relationship of the position of the installation kit of predetermined software from network interface card.
As an implementation, the determination unit 62, is additionally operable to:
The Configuration network Yum source profiles in BMC, so as to exist for characterizing in the network Yum source profiles
Yum tools from the network interface card or be inserted into the network interface card of other servers obtain predetermined software installation kit position direction close
The configuration information of system.
As an implementation, the determination unit 62, is additionally operable to:In BMC Configuration network Yum source profiles it
Before, obtain the local Yum source profiles at least one other server of first server networking;By described first
The local Yum source profiles of server and the local Yum source profiles of at least one other server, polymer fabric
Network Yum source profiles.
It should be noted that:The processing unit for the software upgrading that above-described embodiment provides is in the processing for carrying out software upgrading
When, only above-mentioned processing can be divided as needed for example, in practical application with the division progress of above-mentioned each program module
With by different program module completions, i.e., the internal structure of server is divided into different program modules, to complete above retouch
The all or part of processing stated.In addition, the processing of the processing unit and software upgrading for the software upgrading that above-described embodiment provides
Embodiment of the method belongs to same design, and specific implementation process refers to embodiment of the method, and which is not described herein again.
In the present embodiment, the acquiring unit 61, determination unit 62 in the processing unit of the software upgrading and processing unit
63, it in practical applications can be by the processing unit of the software upgrading or the processing unit place server of the software upgrading
In central processing unit (CPU, Central Processing Unit), digital signal processor (DSP, Digital Signal
Processor), micro-control unit (MCU, Microcontroller Unit) or programmable gate array (FPGA, Field-
Programmable Gate Array) it realizes.
The processing unit of software upgrading described in the present embodiment, based on the points relationship determined, operation Yum tools are to install
The predetermined software of target version simplifies in this way, being installed again in corresponding installation file to operating system without copying to having pacified
The operation that dress software is upgraded.As long as in addition, a card of throwing the net has been mounted with the predetermined software of latest edition, you can realize number
According to the update of the yum modes of the recent software version of all network interface cards in the same subnet of center, to be conducive to improve software can
Maintainability.
Embodiment eight
A kind of computer storage media is present embodiments provided, computer instruction, above computer instruction are stored thereon with
It can be executed by the processor of server, to complete aforementioned applications step described in the method for server side.
Computer storage media provided in this embodiment, is stored thereon with computer instruction, which is executed by processor
Shi Shixian:When having detected that network interface card is inserted into first server, the version information of predetermined software is obtained from the network interface card;When true
When being scheduled on the predetermined software of installation targets version in the first server, points relationship is determined;Wherein, the points relationship table
Sign Yum tools are directed toward the position of the installation kit of the predetermined software of target version in the network interface card;Based between BMC and operating system
Channel, operation Yum tools in the operating system of the predetermined software of installation targets version to first server.
It will be appreciated by those skilled in the art that in the computer storage media of the present embodiment each program function, can refer to
The associated description of the processing method of software upgrading described in foregoing embodiments and understand, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed server and method can pass through
Other modes are realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only
For a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as:Multiple units or component can combine,
Or it is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition
Partly mutual coupling or direct-coupling or communication connection can be the indirect couplings by some interfaces, equipment or unit
It closes or communicates to connect, can be electrical, mechanical or other forms.
The above-mentioned unit illustrated as separating component can be or may not be and be physically separated, aobvious as unit
The component shown can be or may not be physical unit, you can be located at a place, may be distributed over multiple network lists
In member;Some or all of wherein unit can be selected according to the actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the application can be fully integrated into a processing unit, also may be used
It, can also be during two or more units be integrated in one unit to be each unit individually as a unit;It is above-mentioned
The form that hardware had both may be used in integrated unit is realized, can also be realized in the form of hardware adds SFU software functional unit.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer read/write memory medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:It is movable storage device, read-only
Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or
The various media that can store program code such as person's CD.
If alternatively, the above-mentioned integrated unit of the application is realized in the form of software function module and as independent product
Sale in use, can also be stored in a computer read/write memory medium.Based on this understanding, the application is implemented
Substantially the part that contributes to existing technology can be expressed in the form of software products the technical solution of example in other words,
The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be with
Personal computer, server or network equipment etc.) execute each embodiment the method for the application all or part.
And storage medium above-mentioned includes:Movable storage device, ROM, RAM, magnetic disc or CD etc. are various can to store program code
Medium.
The above, the only specific implementation mode of the application, but the protection domain of the application is not limited thereto, it is any
Those familiar with the art can easily think of the change or the replacement in the technical scope that the application discloses, and should all contain
It covers within the protection domain of the application.Therefore, the protection domain of the application should be based on the protection scope of the described claims.
Claims (10)
1. a kind of processing method of software upgrading, which is characterized in that the method includes:
When having detected that network interface card is inserted into first server, the version information of predetermined software is obtained from the network interface card;
When determining the predetermined software of installation targets version in the first server, points relationship is determined;Wherein, the finger
The position of the installation kit of the predetermined software of target version in the network interface card is directed toward to relationship characterization Yum tools;
Based on the channel between Baseboard Management Controller BMC and operating system, operation Yum tools are with the default of installation targets version
In software to the operating system of first server.
2. the processing method of software upgrading according to claim 1, which is characterized in that described to be obtained in advance from the network interface card
If the version information of software, including:
The version information of predetermined software is obtained from the network interface card by BMC;Wherein, it is stored in the network interface card at least one pre-
If the version information of software.
3. the processing method of software upgrading according to claim 1, which is characterized in that when determining in the first server
When the predetermined software of middle installation targets version, points relationship is determined, including:
When mounted predetermined software is updated in determining to the first server, or
When determine not yet installed in the first server predetermined software and pre-install the predetermined software when, determine be directed toward close
System.
4. the processing method of software upgrading according to claim 1 or 3, which is characterized in that the determining points relationship, packet
It includes:
Local Yum source profiles are configured in BMC, so as to exist for characterizing Yum works in the local Yum source profiles
Has the configuration information of the points relationship of the position for the installation kit that predetermined software is obtained from network interface card.
5. the processing method of software upgrading according to claim 1 or 3, which is characterized in that the determining points relationship, packet
It includes:
The Configuration network Yum source profiles in BMC, so as to exist for characterizing Yum works in the network Yum source profiles
Have from the network interface card or be inserted into the network interface card of other servers the installation kit for obtaining predetermined software position points relationship
Configuration information.
6. the processing method of software upgrading according to claim 5, which is characterized in that the Configuration network Yum in BMC
Before source profile, further include:
Obtain the local Yum source profiles at least one other server of first server networking;
By the local sources Yum of the local Yum source profiles of the first server and at least one other server
Configuration file synthesizes network Yum source profiles.
7. a kind of processing unit of software upgrading, which is characterized in that the processing unit includes:
Memory, for storing local Yum source profiles;
Processor, for when having detected that network interface card is inserted into first server, the version of predetermined software to be obtained from the network interface card
Information;When determining the predetermined software of installation targets version in the first server, points relationship is determined;Wherein, described
Points relationship characterization Yum tools are directed toward the position of the installation kit of the predetermined software of target version in the network interface card;Based on mainboard pipe
The channel between controller BMC and operating system is managed, operation Yum tools are with the predetermined software of installation targets version to first service
In the operating system of device.
8. the processing unit of software upgrading according to claim 7, which is characterized in that the processor is additionally operable to:
When mounted predetermined software is updated in determining to the first server, or
When determine not yet installed in the first server predetermined software and pre-install the predetermined software when, determine be directed toward close
System.
9. the processing unit of software upgrading according to claim 7 or 8, which is characterized in that the processor is additionally operable to:
Local Yum source profiles are configured in BMC, so as to exist for characterizing Yum works in the local Yum source profiles
Has the configuration information of the points relationship of the position for the installation kit that predetermined software is obtained from network interface card.
10. the processing unit of software upgrading according to claim 7 or 8, which is characterized in that the processor is additionally operable to:
The Configuration network Yum source profiles in BMC, so as to exist for characterizing Yum works in the network Yum source profiles
Have from the network interface card or be inserted into the network interface card of other servers the installation kit for obtaining predetermined software position points relationship
Configuration information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810461312.0A CN108733398B (en) | 2018-05-15 | 2018-05-15 | Software upgrading processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810461312.0A CN108733398B (en) | 2018-05-15 | 2018-05-15 | Software upgrading processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108733398A true CN108733398A (en) | 2018-11-02 |
CN108733398B CN108733398B (en) | 2021-06-15 |
Family
ID=63937553
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810461312.0A Active CN108733398B (en) | 2018-05-15 | 2018-05-15 | Software upgrading processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108733398B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542467A (en) * | 2018-11-20 | 2019-03-29 | 郑州云海信息技术有限公司 | The configuration method in the source yum under a kind of linux system |
CN110286860A (en) * | 2019-06-28 | 2019-09-27 | 联想(北京)有限公司 | Information processing method, information processing system and electronic equipment |
TWI799035B (en) * | 2021-12-29 | 2023-04-11 | 威聯通科技股份有限公司 | System updating method and electronic apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102789388A (en) * | 2012-06-14 | 2012-11-21 | 曙光信息产业(北京)有限公司 | Method and system for adding network card function to MIPS frame server based on BMC |
CN103713924A (en) * | 2013-12-24 | 2014-04-09 | 汉柏科技有限公司 | Upgrading method and system of cloud computing platform services |
CN105183528A (en) * | 2015-10-29 | 2015-12-23 | 浪潮(北京)电子信息产业有限公司 | Server bios upgrading method and system |
CN106130750A (en) * | 2016-09-29 | 2016-11-16 | 安徽四创电子股份有限公司 | A kind of big data platform upgrade method based on privately owned Yum storehouse |
-
2018
- 2018-05-15 CN CN201810461312.0A patent/CN108733398B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102789388A (en) * | 2012-06-14 | 2012-11-21 | 曙光信息产业(北京)有限公司 | Method and system for adding network card function to MIPS frame server based on BMC |
CN103713924A (en) * | 2013-12-24 | 2014-04-09 | 汉柏科技有限公司 | Upgrading method and system of cloud computing platform services |
CN105183528A (en) * | 2015-10-29 | 2015-12-23 | 浪潮(北京)电子信息产业有限公司 | Server bios upgrading method and system |
CN106130750A (en) * | 2016-09-29 | 2016-11-16 | 安徽四创电子股份有限公司 | A kind of big data platform upgrade method based on privately owned Yum storehouse |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542467A (en) * | 2018-11-20 | 2019-03-29 | 郑州云海信息技术有限公司 | The configuration method in the source yum under a kind of linux system |
CN110286860A (en) * | 2019-06-28 | 2019-09-27 | 联想(北京)有限公司 | Information processing method, information processing system and electronic equipment |
CN110286860B (en) * | 2019-06-28 | 2021-06-15 | 联想(北京)有限公司 | Information processing method, information processing system and electronic device |
TWI799035B (en) * | 2021-12-29 | 2023-04-11 | 威聯通科技股份有限公司 | System updating method and electronic apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN108733398B (en) | 2021-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3317762B1 (en) | Methods and apparatus for software lifecycle management of a virtual computing environment | |
CN101393524A (en) | Firmware update method and system using the same | |
US10007499B2 (en) | Decoupled installation of data management systems | |
US7743242B2 (en) | Method and system for automatic generation of operating system boot images | |
EP2333661B1 (en) | Firmware update apparatus and program | |
EP2904739B1 (en) | Discovering, validating, and configuring hardware-inventory components | |
US9081747B1 (en) | Computer program deployment to one or more target devices | |
TWI411958B (en) | Creating templates of offline resources | |
TWI384399B (en) | Apparatus and methods for updating firmware | |
CN108733398A (en) | A kind of processing method and processing device of software upgrading | |
US8291402B2 (en) | Using system fingerprints to accelerate package dependency resolution | |
US8640118B2 (en) | Managing firmware on a system board | |
CN110096424B (en) | Test processing method and device, electronic equipment and storage medium | |
CN106911729A (en) | A kind of operating system remote installation method suitable for domestic processor | |
CN109766105A (en) | Drive programe installation method, device, server and computer readable storage medium | |
US20170337457A1 (en) | Asset tag template creation from readable elements | |
CN104394223A (en) | Automatic rapid deployment method of large-scale computer cluster system nodes | |
JP3874593B2 (en) | Computer identification device | |
CN101763277A (en) | Method for automatically mounting operating system | |
US20150089472A1 (en) | Software discovery by an installer controller | |
CN104899116B (en) | Method, source server, destination server and the system of data backup | |
CN107980119A (en) | A kind of server management method and server | |
CN102662647A (en) | Lunix operating system and security update method of same | |
CN107566518A (en) | The method and apparatus of management equipment information during installation file | |
CN106528226B (en) | Installation method and device of operating 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |