CN109542489A - Upgrade method, device and server - Google Patents
Upgrade method, device and server Download PDFInfo
- Publication number
- CN109542489A CN109542489A CN201811548123.3A CN201811548123A CN109542489A CN 109542489 A CN109542489 A CN 109542489A CN 201811548123 A CN201811548123 A CN 201811548123A CN 109542489 A CN109542489 A CN 109542489A
- Authority
- CN
- China
- Prior art keywords
- server
- upgrade
- data packet
- upgrading data
- servers
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0866—Checking the configuration
- H04L41/0869—Validating the configuration within one network element
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the present disclosure provides a kind of upgrade method, device and server, wherein, it include access manager and at least two servers in upgrade-system, this method comprises: server receives the upgrading data packet that other in upgrade-system are in the server of admin state or access manager is sent, and upgraded according to the upgrading data packet;Itself is converted into admin state, the upgrading data packet is pushed to other servers not upgraded in the upgrade-system, so that other described servers are upgraded according to the upgrading data packet.Pass through the upgrading scheme, after server can receive upgrading data packet, the upgrade service of other servers not upgraded in upgrade-system is managed, avoid the software of server in the prior art, firmware upgrade must place one's entire reliance upon manage manpower brought by platform waste and time restriction defect, effectively save upgrading manpower and temporal cost.
Description
Technical field
This disclosure relates to field of communication technology, in particular to a kind of upgrade method, device and server.
Background technique
The software of server, the version updating of firmware are essential links in maintenance management server, at present for
The most common mode of update of the software, firmware of server is to carry out batch to server using server software management platform to add
Add management, to carry out software, the firmware upgrade of batch to server.Although this mode can save certain manpower and when
Between, but since management platform intergration is more multi-functional, need to pass through human-computer interaction when carrying out server addition, management
To trigger management, this means that single upgrading need to limit within a certain period of time, if server not can be carried out upgrading currently, or
It is missed when being addition, then needs to be upgraded in the subsequent updating and management of triggering again.
Summary of the invention
In view of this, the purpose of the present disclosure is to provide a kind of upgrade method, device and servers to avoid due to needing
The problem that upgrading must be limited in fixed time period caused by human-computer interaction triggering management.
To achieve the goals above, the embodiment of the present disclosure the technical solution adopted is as follows:
In a first aspect, the embodiment of the present disclosure provides a kind of upgrade method, and applied to the server in upgrade-system, the liter
It include access manager and at least two servers in grade system, the server in the upgrade-system is in communication with each other connection, institute
Access manager is stated to connect with each server communication, which comprises
The server receives upgrading data packet transmitted by the server in the upgrade-system in admin state,
Or the server receives upgrading data packet transmitted by the access manager, and is risen according to the upgrading data packet
Grade, wherein the server in admin state is the server for having received upgrading data packet;
Oneself state is converted into admin state, by the upgrading data packet be pushed in the upgrade-system not into
Other servers of row upgrading, so that other described servers are upgraded according to the upgrading data packet.
Second aspect, the embodiment of the present disclosure provide a kind of update device, applied to the server in upgrade-system, the liter
It include access manager and at least two servers in grade system, the server in the upgrade-system is in communication with each other connection, institute
It states access manager to connect with each server communication, described device includes:
Upgrading data packet receiving module, for receiving liter transmitted by the server during upgrading in admin state
Grade data packet, or upgrading data packet transmitted by the access manager is received, and upgraded according to the upgrading data packet,
Wherein, the server in admin state is the server for having received upgrading data packet;
Upgrading data packet pushing module pushes away the upgrading data packet for oneself state to be converted to admin state
Other servers not upgraded in the upgrade-system are given, so that other described servers are according to the upgrading data
Packet is upgraded.
The third aspect, the embodiment of the present disclosure provide a kind of server, including memory, processor and are stored in the storage
On device and the computer program that can run on the processor, the processor realize above-mentioned method when executing described program
Step.
Fourth aspect, the embodiment of the present disclosure provide a kind of readable storage medium storing program for executing, and calculating is stored on the readable storage medium storing program for executing
The step of machine program, which executes above-mentioned upgrade method when being run by processor.
A kind of upgrade method, device and the server that the embodiment of the present disclosure provides, by after receiving upgrading data packet
Upgraded and be converted into admin state according to upgrading data packet, and the upgrading data packet is pushed in upgrade-system
Other servers not upgraded, so that other servers not upgraded are risen according to the upgrading data packet received
Grade.By the upgrading scheme, server can be after receiving upgrading data packet and being converted to admin state, in upgrade-system
The upgrade services of other servers not upgraded be managed, avoid the software, solid of server in the prior art
Part upgrading, which must place one's entire reliance upon, manages the defect of the waste of manpower brought by platform and time restriction, effectively saves the people of upgrading
Power and temporal cost.
To enable the above objects, features, and advantages of the disclosure to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to needed in the embodiment attached in order to illustrate more clearly of the technical solution of the embodiment of the present disclosure
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the disclosure, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the application scenarios schematic diagram for the upgrade method that the embodiment of the present disclosure provides.
Fig. 2 is the flow chart for the upgrade method that the embodiment of the present disclosure provides.
Fig. 3 is the flow chart of the sub-step of step S120 in Fig. 2.
Fig. 4 is the flow chart of the sub-step of step S110 in Fig. 2.
Fig. 5 is the networking schematic diagram for the upgrade-system that the embodiment of the present disclosure provides.
Fig. 6 is the functional block diagram for the update device that the embodiment of the present disclosure provides.
Fig. 7 is the functional block diagram for the upgrading data packet pushing module that the embodiment of the present disclosure provides.
Fig. 8 is the functional block diagram for the upgrading data packet receiving module that the embodiment of the present disclosure provides.
Fig. 9 is another functional block diagram for the update device that the embodiment of the present disclosure provides.
Figure 10 is the block diagram for the server that the embodiment of the present disclosure provides.
Icon: 110- update device;111- upgrading data packet receiving module;1111- first information transmission unit;1112-
Second information transmitting unit;1113- connection establishment unit;1114- upgrading data packet receiving unit;The push of 112- upgrading data packet
Module;The first packet sending unit of 1121-;The second packet sending unit of 1122-;1123- upgrading data packet transmission unit;113-
Setup module;114- refuses module;115- conversion module;120- memory;130- processor;140- communication unit.
Specific embodiment
In the prior art, the software of the server in upgrade-system, firmware upgrade depend on safely management platform, by
It is more multi-functional in management platform intergration, therefore must just can be to upgrading under the triggering of human-computer interaction when carrying out upgrade service management
Server in system is added to be managed with the upgrade service to each server.Due to managing this characteristic of platform,
Artificial triggering command is required in the batch addition and management for carrying out server each time, if current certain server is adding
When be missed or certain server does not have upgrading update condition (when following electricity or upgrading service can not pause), then these
Server will be unable to complete upgrading in the secondary updating operation.It is subsequent have upgrading update condition when, it is understood that there may be can not
Obtain timely updating the situation of upgrading, or personnel need to be arranged to carry out the addition management of server to carry out to its escalation process
Control.This mode will expend a lot of manpower and time resource, and be likely present the defect updated not in time.
Found based on the studies above, the disclosure a kind of upgrading scheme is provided with the upgrading data packet that is received in server it
Afterwards, manager node is converted to, upgrading data packet is pushed into other servers not upgraded in system, due to clothes
Business device can execute search after starting every time automatically and establish the functions such as connection, big there is no need to put into without human intervention
Human resources are measured so unrestricted in time.The upgrading of server in such system will no longer place one's entire reliance upon manage it is flat
Platform is effectively saved in manpower and temporal cost, and can realize timely updating for server.
Below in conjunction with attached drawing in the embodiment of the present disclosure, the technical solution in the embodiment of the present disclosure is carried out clear, complete
Ground description, it is clear that described embodiment is only disclosure a part of the embodiment, instead of all the embodiments.Usually exist
The component of the embodiment of the present disclosure described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause
This, is not intended to limit the claimed disclosure to the detailed description of the embodiment of the disclosure provided in the accompanying drawings below
Range, but it is merely representative of the selected embodiment of the disclosure.Based on embodiment of the disclosure, those skilled in the art are not being done
Every other embodiment obtained under the premise of creative work out belongs to the range of disclosure protection.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Meanwhile in the disclosure
In description unless specifically defined or limited otherwise, term " installation ", " setting ", " connection " shall be understood in a broad sense, for example, can
To be to be fixedly connected, may be a detachable connection, or be integrally connected;It can be mechanical connection, be also possible to be electrically connected;It can
To be to be connected directly, the connection inside two elements can also be can be indirectly connected through an intermediary.For this field
For those of ordinary skill, the concrete meaning of above-mentioned term in the disclosure can be understood with concrete condition.
Referring to Fig. 1, Fig. 1 is the application scenarios schematic diagram for the upgrade method that the embodiment of the present disclosure provides.It is wrapped in the scene
Upgrade-system is included, which includes access manager and at least two servers, wherein the access manager can divide
It is not communicatively coupled with each server, connection can be in communication with each other between the server in the upgrade-system.Wherein, institute
It states and server management software is installed in access manager, such as FIST (Fast Intelligent Scalable
Toolkit, fast integration the extensible tool collection), the access manager can be used for the server in the upgrade-system
Upgrade service is managed.
In the present embodiment, the upgrade-system can be applied to local net network, and the server that can be communicated is identical office
Server in the net of domain.Or the upgrade-system is also possible to the system across Different LANs, the server that can be communicated
For the server in the local area network that can communicate.
Referring to figure 2., Fig. 2 is a kind of process of upgrade method applied to the server in upgrade-system shown in FIG. 1
Figure, below by the method includes each step be described in detail.
Step S110, the server receive liter transmitted by the server in the upgrade-system in admin state
Grade data packet or the server receive upgrading data packet transmitted by the access manager, and according to the ascending series
Upgraded according to packet.
Oneself state is converted to admin state by step S120, and the upgrading data packet is pushed to the upgrading and is
Other servers not upgraded in system, so that other described servers are upgraded according to the upgrading data packet.
It in the present embodiment, can be configured on access manager in advance, the equipment class including the server to be managed
The configuration of the network segment of local area network and place where the configuration of type, and the server to be managed etc..For example, if desired to certain
When the server of kind device type carries out upgrade service management, need to configure setting for server to be managed on access manager
Standby information.Also, the local area network where the server for currently needing to carry out upgrade service management carries out LAN Information
Configuration, so that access manager can realize the management of the upgrade service to the server in the local area network.
Under human-computer interaction triggering, access manager can scan for find out the server in the upgrade-system
Currently has the server of upgrading update condition in upgrade-system, such as access manager can each server into upgrade-system
Sending device information request message, each server can send out the facility information of itself after receiving facility information request message
It send to access manager.Access manager can verify that whether the facility information of each server received sets with what is configured in advance
Standby information is consistent.The consistent server of facility information of facility information and configuration for feedback, can be sent to it version information
Request message.Facility information for the feedback server inconsistent with the facility information that is configured, then can stop subsequent packet
It sends.
The server for receiving the version information request message of access manager transmission can feed back itself to access manager
Software and/or firmware, such as server baseboard management controller (Baseboard Management Controller,
BMC), version information and itself current upgrade status information.Access manager can be from the version information and liter received
The version number that the version number in version information is lower than the current upgrading data packet to be issued is selected in grade status information, and is worked as
Preceding upgrade status information is the server of state to be upgraded, i.e., its software and/or firmware upgrade and currently can be with
The server of upgrading.
In the present embodiment, access manager produces a upgrading list, and can will meet the Servers-all of above-mentioned condition
Information be added in the upgrading list, alternatively, access manager can also be selected from the Servers-all for meet above-mentioned condition
One or multiple servers out, and the information for the server selected is added to the upgrading list.Access manager can
Subsequent upgrade service management is carried out to the server in upgrading list.
In the present embodiment, access manager can be only managed the server in the upgrading list, can will be upgraded
Data packet is sent to server corresponding to the information in upgrading list, and supervises to the escalation process of these servers.
These servers feed back upgrading to access manager and complete information, access manager is in these servers after completing upgrading
After completing upgrading, the connection between these servers can be disconnected.
As any one server in the upgrade-system, which can be after receiving upgrading data packet, root
Upgraded according to the upgrading data packet.The server can be exchanged into admin state, can to other in upgrade-system not into
The server of row upgrading carries out upgrade service management.The upgrading data packet can be pushed in the upgrade-system by the server
Other servers not upgraded so that other described servers are upgraded according to the upgrading data packet.
Optionally, server can then be upgraded simultaneously according to the upgrading data packet after receiving upgrading data packet
Admin state is converted to, while upgrading data packet being pushed to other servers in upgrade-system.It is also possible to servicing
Device is completed to be converted to admin state after upgrading according to the upgrading data packet, and the upgrading data packet is pushed to upgrading system
Other servers in system.
Referring to Fig. 3, in the present embodiment, server upgrading data packet is pushed in upgrade-system other do not carry out
The process of the server of upgrading can be realized by following steps:
Other server sending device information request messages in step S121, Xiang Suoshu upgrade-system.
Step S122 receives the first equipment letter that other described servers are fed back based on the facility information request message
Breath sends version information request to other described servers if first facility information is consistent with the facility information of itself
Message.
Step S123 receives the first version letter that other described servers are fed back based on the version information request message
Breath and the first upgrade status information, if the version number in the first version information is lower than the version of the upgrading data packet of itself storage
This number and the first upgrade status information are state to be upgraded, then after establishing connection with other described servers, by the liter
Grade data packet is sent to other described servers.
In the present embodiment, for any one server in the upgrade-system, an address is stored in the server
Library, the address base can be realized in the form of address list.It include that can establish communication connection with the server in the address list
The address of other servers.Wherein, can with the server establish communication connection other servers can be at the server
In same local area network and with the server of phase same network segment.In this way, the server in the phase same network segment can realize it is mutual
Direct communication.Or other servers that can establish communication connection from the server are also possible to be in different offices with the server
Other servers in the net of domain, it is specific unlimited, as long as being that by the server communicated between each other.
It, can be according to the address in the address list of storage to other corresponding servers after the server completes upgrading
Sending device information request message.Other servers in upgrade-system can incite somebody to action oneself after receiving facility information request message
First facility information of body is sent to the server.The server is in the first facility information for receiving the transmission of other servers
Afterwards, the first facility information received is compared with the facility information of itself, if the first facility information received with from
The facility information of body is consistent, shows the device type of other servers its device type and itself for feeding back first facility information
Identical, the upgrading data packet of itself is applicable to feed back other servers of first facility information.
And if the first facility information received is inconsistent with itself facility information, shows to feed back first facility information
Its device type of other servers it is inconsistent with itself device type, the upgrading data packet of itself may be not particularly suited for instead
Present other servers of first facility information.
Wherein, other servers of the first facility information of feedback may be multiple, which can be to first fed back to
Facility information and other consistent servers of the facility information of itself send version information request message.And for feeding back to
One facility information other servers inconsistent with the facility information of itself, then no longer carry out subsequent message transmission.
Other servers for receiving the version information request message of server transmission, are asked receiving the version information
After seeking message, the first version information and itself the first current upgrade status information of the software of itself and/or firmware are sent out
It send to the server.The upgrading data packet that the server stores the version number in the first version information received with itself
Version number is compared, if the version number in the first version information that other servers are fed back is lower than the liter of server storage
When the version number of grade data packet, then confirm whether the current upgrade status of other servers is state to be upgraded.Wherein, for
Each server, the upgrade status information of server may include state to be upgraded, upgrade status, not upgradeable state and just
In upgrade status etc..
If the version number fed back in its first version information of other servers of first version information stores lower than itself
Upgrading data packet version number, and when the first current upgrade status information of other servers is state to be upgraded, then
Connection request can be transmitted to other servers.Based on connection request, the server can establish connection with other servers,
It establishes after connection, which can be sent to the upgrading data packet of storage other servers, so that other servers
Upgraded according to the upgrading data packet received.
In the present embodiment, due to the server in upgrade-system receive upgrading data packet or complete upgrading after
It can be exchanged into admin state, it is therefore, right to carry out updating and management to other servers not upgraded in upgrade-system
For server in upgrade-system, the upgrading data which receives may be from access manager, i.e. access tube
Reason device chooses the server to be directly managed to the server, it is also possible to which the upgrading data packet received is from upgrading
Other in system are in the server of admin state.
In the case of the upgrading data packet transmitted by server receives the access manager, process may is that this
Server receives the facility information request message that access manager is sent, and the facility information of itself is sent to access manager.
To the clothes when facility information configured in the facility information and access manager that access manager verifies the server is consistent
Business device sends version information request message.The server when receiving version information request message, by the software of itself and/or
The version information and upgrade status information of firmware feed back to access manager.Access manager is in the version letter for determining the server
Version number in breath is lower than the version number of the upgrading data packet to be issued of access manager and the upgrade status letter of the server
When breath is state to be upgraded, and when the server is chosen by access manager, access manager is sent to the server to be connected
Request is connect, the server and access manager establish connection.And upon establishment of a connection, upgrading transmitted by access manager is received
Data packet is upgraded according to the upgrading data packet received.
In addition, server receive other in the upgrade-system be in liter transmitted by the server of admin state
In the case of grade data packet, which can be realized by following procedure, please refer to Fig. 4:
Step S111, first server of the server in receiving the upgrade-system in admin state are sent out
When the facility information request message sent, the second facility information of itself is sent to the first server.
Step S112 receives version information request message transmitted by the first server, by the second of itself storage
Version information and the second upgrade status information are sent to the first server.
Step S113 receives connection request transmitted by the first server, based on the connection request and described the
One server establishes connection, wherein the connection request is the first server in verifying the second edition information
Version number lower than the upgrading data packet stored in the first server version number and the second upgrade status information be to
It is sent after upgrade status.
Step S114 receives upgrading data packet transmitted by the first server.
It can be seen from the above, the server in upgrade-system is after receiving upgrading data packet, or complete upgrading
After be converted into admin state, can other servers to not upgraded in upgrade-system carry out upgrade service management.
Therefore, for the server in upgrade-system, upgrading data packet received by the server is i.e. possibly from liter
The first server of admin state is in grade system, wherein the first server refers to arbitrary in upgrade-system
It currently has received the server of upgrading data packet or has received upgrading data packet and complete the server of upgrading.
In this case, which, will be certainly after the facility information request message for receiving first server transmission
Second facility information of body is sent to the first server.It can be seen from the above, for each server in upgrade-system, service
The address that can establish other Servers-alls of communication is stored in device.Therefore, first server in upgrade-system
When quantity more than one, the equipment letter request message which receives then may be from multiple first servers.This
Under situation, which can feed back to the second equipment letter of itself to the first server of sending device information request message
Breath.
The first server for receiving the second facility information of the server can set second facility information with itself
Standby information is compared, if unanimously, sending version information request message to the server.The server is receiving the version
After information request message, by the second edition information and itself the second current upgrade status of the software of itself and/or firmware
Information feeds back to first server.First server can check the version information of the server, check that its version number is
The version number of the no upgrading data packet lower than itself storage, and whether the current upgrade status information of the server is to be upgraded
State.If the version number in the second edition information of the server is lower than the version number of the upgrading data packet of itself storage, and works as
Preceding upgrade status information is state to be upgraded, then can send connection request to the server.
The server can establish connection with the first server for sending the connection request after receiving connection request.And
Receive upgrading data packet transmitted by the first server.
In the present embodiment, after the server is once establish connection with some first server, then by the connection of itself
State is set as connected status.Also, under connected status, if receiving except the current connected first server
Except other servers transmitted by connection request when, refuse the connection request.
The server can keep the connection status between the first server established a connection, and according to the first service
Upgrading data packet transmitted by device is upgraded.The server can be fed back to after completing upgrading to the first server
The information of upgrading is completed, and disconnects the connection between the first server, and the upgrade status information of itself is converted
For upgrade status.
The first server after being disconnected with the server, can continue searching in upgrade-system other not into
The server of row upgrading, and connection is established with the server for meeting promotion condition to be managed to its upgrade service.Until
The upgrading data packet that the version information for other servers in upgrade-system that first server is searched is maintained with itself
When version information is consistent, i.e., the server in upgrade-system is completed to upgrade, and there is no when the server not upgraded, then rises
Grade system reaches stable state, and epicycle upgrading process can terminate.I.e. first server can detect other services in the upgrade-system
The state of device stops executing above-mentioned general if the state of other servers in the upgrade-system is admin state
Upgrading data packet is pushed to the step of other servers not upgraded in upgrade-system.
By above procedure, the access manager in upgrade-system, can be to current upgrade-system under human-computer interaction triggering
In all servers for meeting promotion condition either selected from all servers for meeting promotion condition it is one or more
Batch addition is carried out to be managed with the upgrade service to its software and/or firmware.It is received under the management of access manager
The server of upgrading data packet or receive upgrading data packet and complete upgrading after server can be exchanged into admin state,
To search for other servers not upgraded in current upgrade-system, and established with the server for wherein having promotion condition
Connection is to be managed its upgrade service so that the achievable upgrading of the server.
And the server upgraded under the management for the server that upgrading is completed, it itself can also after completing upgrading
Admin state is converted to, and continues the server not upgraded to other of upgrade-system and carries out upgrade service management.It presses
This logic, the server in upgrade-system can be exchanged into administrator once received upgrading data packet and either completed upgrading
State is converted to the server of admin state so with the increase of the quantity for the server for completing upgrading in upgrade-system
Quantity be also continuously increased, it is also stronger to the parallel processing capability of the upgrade service of other servers not upgraded.
In the present embodiment, access manager only need to one in the server for meeting promotion condition in upgrade-system or
Multiple to be managed, the server that subsequent server can not upgrade other after completing upgrading is managed,
Finally upgrade-system is made to reach stable state.In this way, it is only necessary to which the human-computer interaction triggering of primary either fewer number connects
Enter manager and carries out updating and management.In the prior art, subsequent to meet for being currently unsatisfactory for the server of promotion condition
Also need human-computer interaction triggering access manager that the upgrade service management to it just can be achieved after promotion condition, and very likely
Have the defects that in time upgrade it after it meets promotion condition.
And in the disclosure, due to server starting can realize automatically search to the server in upgrade-system and
Therefore management function for this kind of server for failing to be upgraded under the management of access manager, can be upgraded in system
The server that is upgrading or having received upgrading data packet that is completed be managed, with realize upgrading.Avoid existing skill
Need to expend a large amount of manpowers and time resource in art, and there is also update the defect of upgrading not in time.
Below in conjunction with networking schematic diagram shown in Fig. 5, to do the upgrade method that the embodiment of the present disclosure provides into one
Step description.As shown in Fig. 5 (a), wherein access manager can determine that one or more current satisfactions rise from multiple servers
The server of grade condition is to carry out upgrade service management to it, such as server A and server B are under the management of access manager
Complete upgrading.Server A and server B will search for other clothes not upgraded in upgrade-system after completing upgrading
Business device is simultaneously established a connection so that upgrading data packet is sent to these servers, keeps these servers complete according to upgrading data packet
At upgrading.Please refer to 5 (b), for example, server A can scan for and with the current server C that is not upgraded in upgrade-system
Connection is established, upgrading data packet is sent to server C, server C is made to complete upgrading.And server B can scan for simultaneously
Connection successively is established with the server D and server E not upgraded currently in upgrade-system, upgrading data packet is sent
To server D and server E, server D and server E is made to complete upgrading.
Server C, server D and server E are also converted into admin state after completing upgrading, can be to upgrade-system
In other servers not upgraded carry out upgrade service management.Fig. 5 (c) is please referred to, for example, in current upgrade-system also
Presence server F is not upgraded.Wherein, server A, server B, server C, server D and server E can be searched
Rope, server F can establish connection with above-mentioned wherein any one server, such as server F can be established with server E and be connected
It connects, upgrading data packet can be sent to server F by server E, and server F completes to upgrade according to upgrading data packet.
In the software for other servers that each of upgrade-system server can search and/or the version of firmware
When consistent with the version of data packet that itself is maintained, as shown in Fig. 5 (d), i.e., the server in upgrade-system all turns
It is changed to admin state, then upgrade-system reaches stable state, that is, completes the upgrading of entire upgrade-system.
Referring to Fig. 6, the embodiment of the present disclosure also provides a kind of update device 110 applied to above-mentioned server, the liter
Stage arrangement 110 includes upgrading data packet receiving module 111 and upgrading data packet pushing module 112.
The upgrading data packet receiving module 111, for receiving the service for being in admin state in the upgrade-system
Upgrading data packet transmitted by device, or upgrading data packet transmitted by the access manager is received, and according to the ascending series
Upgraded according to packet.
In the present embodiment, the description as described in upgrading data packet receiving module 111 is specifically referred to step shown in Fig. 2
The detailed description of S110, i.e. step S110 can be executed by upgrading data packet receiving module 111.
The upgrading data packet pushing module 112, for oneself state to be converted to admin state, by the ascending series
According to other servers not upgraded that packet is pushed in the upgrade-system, so that other described servers are according to the liter
Grade data packet is upgraded.
In the present embodiment, the description as described in upgrading data packet pushing module 112 is specifically referred to step shown in Fig. 2
The detailed description of S120, i.e. step S120 can be executed by upgrading data packet pushing module 112.
Specifically, the upgrading data packet pushing module 112 can be used for after completing upgrading, by the upgrading data packet
Other servers not upgraded being pushed in the upgrade-system.The upgrading data packet receiving module 111 can be used for
Receive the server institute in admin state for completing upgrading in the upgrade-system according to the upgrading data packet received
The upgrading data packet of transmission.
Referring to Fig. 7, in the present embodiment, the upgrading data packet pushing module 112 includes the first packet sending unit
1121, the second packet sending unit 1122 and upgrading data packet transmission unit 1123.
First packet sending unit 1121, for other server sending device information into the upgrade-system
Request message.
In the present embodiment, the description as described in the first packet sending unit 1121 is specifically referred to step shown in Fig. 3
The detailed description of S121, i.e. step S121 can be executed by the first packet sending unit 1121.
Second packet sending unit 1122 is based on facility information request report for receiving other described servers
The first facility information that text is fed back, if first facility information is consistent with the facility information of itself, to other described clothes
Business device sends version information request message.
In the present embodiment, the description as described in the second packet sending unit 1122 is specifically referred to step shown in Fig. 3
The detailed description of S122, i.e. step S122 can be executed by the second packet sending unit 1122.
The upgrading data packet transmission unit 1123 is requested for receiving other described servers based on the version information
The first version information and the first upgrade status information that message is fed back, if the version number in the first version information is lower than certainly
Body storage upgrading data packet version number and the first upgrade status information be state to be upgraded, then with it is described other service
After device establishes connection, the upgrading data packet is sent to other described servers.
In the present embodiment, the description as described in upgrading data packet transmission unit 1123 is specifically referred to step shown in Fig. 3
The detailed description of rapid S123, i.e. step S123 can be executed by upgrading data packet transmission unit 1123.
Referring to Fig. 8, in the present embodiment, the upgrading data packet receiving module 111 includes first information transmission unit
1111, the second information transmitting unit 1112, connection establishment unit 1113 and upgrading data packet receiving unit 1114.
The first information transmission unit 1111, for being in the of admin state in receiving the upgrade-system
When the facility information request message that one server is sent, the second facility information of itself is sent to the first server.
In the present embodiment, the description as described in first information transmission unit 1111 is specifically referred to step shown in Fig. 4
The detailed description of S111, i.e. step S111 can be executed by first information transmission unit 1111.
Second information transmitting unit 1112, for receiving the request report of version information transmitted by the first server
The second edition information of itself storage and the second upgrade status information are sent to the first server by text.
In the present embodiment, the description as described in the second information transmitting unit 1112 is specifically referred to step shown in Fig. 4
The detailed description of S112, i.e. step S112 can be executed by the second information transmitting unit 1112.
The connection establishment unit 1113, for receiving connection request transmitted by the first server, based on described
Connection request and the first server establish connection, wherein the connection request is the first server described in the verifying
Version number in second edition information is lower than the version number and described second of the upgrading data packet stored in the first server
It is sent after upgrade status information state to be upgraded.
In the present embodiment, the description as described in connection establishment unit 1113 is specifically referred to step S113 shown in Fig. 4
Detailed description, i.e. step S113 can execute by connection establishment unit 1113.
The upgrading data packet receiving unit 1114, for receiving upgrading data packet transmitted by the first server.
In the present embodiment, the description as described in upgrading data packet receiving unit 1114 is specifically referred to step shown in Fig. 4
The detailed description of rapid S114, i.e. step S114 can be executed by upgrading data packet receiving unit 1114.
Referring to Fig. 9, in the present embodiment, the update device 110 further includes setup module 113 and refusal module 114.
The setup module 113 is used to establish after connection based on the connection request and the first server, will be certainly
The connection status of body is set as connected status.
The refusal module 114, under connected status, if receive except current connected first server it
When outer other are in connection request transmitted by the server of admin state, refuse the connection request.
In the present embodiment, the update device 110 further includes conversion module 115, and the conversion module 115 is used for complete
After upgrading, the connection between the first server is disconnected, and the upgrade status information of itself is converted to and has been upgraded
State.
As shown in Figure 10, the embodiment of the present disclosure also provides a kind of server, and the server includes update device 110, deposits
Reservoir 120, processor 130 and communication unit 140.
The memory 120, processor 130 and each element of communication unit 140 are directly or indirectly electrical between each other
Connection, to realize the transmission or interaction of information.For example, these elements can pass through one or more communication bus or letter between each other
Number line, which is realized, to be electrically connected.It is stored in memory 120 and is stored in the storage in the form of software or firmware (Firmware)
Software function module in device 120, the software program and mould that the processor 130 is stored in memory 120 by operation
Block, as the update device 110 in the embodiment of the present disclosure realizes this public affairs thereby executing various function application and data processing
Open the upgrade method in embodiment.
Wherein, the memory 120 may be, but not limited to, random access memory (Random Access
Memory, RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable
Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only
Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only
Memory, EEPROM) etc..Wherein, memory 120 is for storing program, the processor 130 after receiving and executing instruction,
Execute described program.The communication unit 140 is used for the communication established between network.
The processor 130 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor
130 can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit
(Network Processor, NP) etc..It can also be digital signal processor (DSP), specific integrated circuit (ASIC), scene
Programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware group
Part.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present disclosure.General processor can be with
It is that microprocessor or the processor 130 are also possible to any conventional processors etc..
The embodiment of the present disclosure also provides a kind of computer readable storage medium, is stored thereon with computer program, the meter
Calculation machine program can realize above-mentioned upgrade method when being executed by processor.
In conclusion upgrade method, device and server that the embodiment of the present disclosure provides, server is by receiving liter
Upgraded after grade data packet according to upgrading data packet, oneself state is converted into admin state, and by the upgrading data
Other servers not upgraded being pushed in upgrade-system are wrapped, so that other servers not upgraded are according to reception
To upgrading data packet upgraded.By the upgrading scheme, server can be after receiving upgrading data packet to upgrade-system
In the upgrade services of other servers not upgraded be managed, avoid server in the prior art software,
Firmware upgrade, which must place one's entire reliance upon, manages the defect of the waste of manpower brought by platform and time restriction, effectively saves upgrading
Manpower and temporal cost.
In the embodiment provided by the disclosure, it should be understood that disclosed device and method, it can also be by other
Mode realize.The apparatus embodiments described above are merely exemplary, for example, the flow chart and block diagram in attached drawing are shown
Architectural framework in the cards, function and the behaviour of device according to an embodiment of the present disclosure, method and computer program product
Make.In this regard, each box in flowchart or block diagram can represent a part of a module, section or code, institute
The a part for stating module, section or code includes one or more executable instructions for implementing the specified logical function.
It should also be noted that function marked in the box can also be to be different from attached drawing in some implementations as replacement
The sequence marked occurs.For example, two continuous boxes can actually be basically executed in parallel, they sometimes can also be by
Opposite sequence executes, and this depends on the function involved.It is also noted that each box in block diagram and or flow chart,
And the combination of the box in block diagram and or flow chart, hardware can be based on the defined function of execution or the dedicated of movement
System realize, or can realize using a combination of dedicated hardware and computer instructions.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or equipment for including a series of elements not only includes those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or equipment institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including institute
State in the process, method, article or equipment of element that there is also other identical elements.
The foregoing is merely preferred embodiment of the present disclosure, are not limited to the disclosure, for the skill of this field
For art personnel, the disclosure can have various modifications and variations.It is all within the spirit and principle of the disclosure, it is made any to repair
Change, equivalent replacement, improvement etc., should be included within the protection scope of the disclosure.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
Claims (11)
1. a kind of upgrade method, which is characterized in that include access in the upgrade-system applied to the server in upgrade-system
Manager and at least two servers, the server in the upgrade-system are in communication with each other connection, the access manager and each
The server communication connection, which comprises
The server receives upgrading data packet transmitted by the server in the upgrade-system in admin state, or
The server receives upgrading data packet transmitted by the access manager, and is upgraded according to the upgrading data packet,
Wherein, the server in admin state is the server for having received upgrading data packet;
Oneself state is converted into admin state, the upgrading data packet is pushed to not rising in the upgrade-system
Other servers of grade, so that other described servers are upgraded according to the upgrading data packet.
2. upgrade method according to claim 1, which is characterized in that described that the upgrading data packet is pushed to the liter
Grade system in other servers not upgraded the step of, comprising:
Other server sending device information request messages into the upgrade-system;
The first facility information that other described servers are fed back based on the facility information request message is received, if described first
Facility information is consistent with the facility information of itself, then sends version information request message to other described servers;
Receive first version information and the first upgrading that other described servers are fed back based on the version information request message
Status information, if version number in the first version information is lower than the version number of the upgrading data packet of itself storage and described the
One upgrade status information is that state to be upgraded sends the upgrading data packet after then establishing connection with other described servers
To other described servers.
3. upgrade method according to claim 1, which is characterized in that described that oneself state is converted to admin state
After step, the method also includes:
The state of other servers in the upgrade-system is detected, if the state of other servers in the upgrade-system is equal
For admin state, then stop executing described the upgrading data packet is pushed to not upgrading in the upgrade-system
The step of other servers.
4. upgrade method according to claim 1, which is characterized in that the server receives the place in the upgrade-system
The step of upgrading data packet transmitted by the server of admin state, comprising:
The facility information that first server of the server in receiving the upgrade-system in admin state is sent
When request message, the second facility information of itself is sent to the first server;
Version information request message transmitted by the first server is received, the second edition information and second that itself is stored
Upgrade status information is sent to the first server;
Connection request transmitted by the first server is received, is established and is connected based on the connection request and the first server
It connects, wherein the connection request is that the first server is verifying the version number in the second edition information lower than described
The version number of the upgrading data packet stored in first server and the second upgrade status information are to send after state to be upgraded
's;
Receive upgrading data packet transmitted by the first server.
5. upgrade method according to claim 1, which is characterized in that described that the upgrading data packet is pushed to the liter
Grade system in other servers not upgraded the step of before, the method also includes:
It completes to upgrade according to the upgrading data packet;
The server receives the step of upgrading data packet transmitted by the server in the upgrade-system in admin state
Suddenly, comprising:
The server receives in the upgrade-system and is in administrator according to what the upgrading data packet received was completed to upgrade
Upgrading data packet transmitted by the server of state.
6. upgrade method according to claim 4, which is characterized in that described to be taken based on the connection request with described first
After the step of business device establishes connection, the method also includes:
Connected status is set by the connection status of itself;
Under connected status, if other for receiving in addition to the current connected first server are in administrator's shape
When connection request transmitted by the server of state, refuse the connection request.
7. upgrade method according to claim 4, which is characterized in that described to be upgraded according to the upgrading data packet
After step, the method also includes:
After completing upgrading, the connection between the first server is disconnected, and the upgrade status information of itself is converted
For upgrade status.
8. upgrade method described in -7 any one according to claim 1, which is characterized in that be in communication with each other in the upgrade-system
The server of connection is the server in same local network;Or
The server for being in communication with each other connection in the upgrade-system is the server in the Different LANs that can be communicated.
9. a kind of update device, which is characterized in that include access in the upgrade-system applied to the server in upgrade-system
Manager and at least two servers, the server in the upgrade-system are in communication with each other connection, the access manager and each
The server communication connection, described device include:
Upgrading data packet receiving module, for receiving liter transmitted by the server in the upgrade-system in admin state
Grade data packet, or upgrading data packet transmitted by the access manager is received, and upgraded according to the upgrading data packet,
Wherein, the server in admin state is the server for having received upgrading data packet;
The upgrading data packet is pushed to by upgrading data packet pushing module for oneself state to be converted to admin state
Other servers not upgraded in the upgrade-system so that other described servers according to the upgrading data packet into
Row upgrading.
10. a kind of server, including memory, processor and it is stored on the memory and can runs on the processor
Computer program, which is characterized in that the processor is realized described in claim 1-8 any one when executing described program
Method and step.
11. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program on the readable storage medium storing program for executing, the computer
The step of upgrade method as described in any one of claim 1-8 is executed when program is run by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811548123.3A CN109542489A (en) | 2018-12-18 | 2018-12-18 | Upgrade method, device and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811548123.3A CN109542489A (en) | 2018-12-18 | 2018-12-18 | Upgrade method, device and server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109542489A true CN109542489A (en) | 2019-03-29 |
Family
ID=65855398
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811548123.3A Pending CN109542489A (en) | 2018-12-18 | 2018-12-18 | Upgrade method, device and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109542489A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111488163A (en) * | 2020-04-08 | 2020-08-04 | 苏州浪潮智能科技有限公司 | Firmware updating method and device, electronic equipment and storage medium |
CN118210525A (en) * | 2024-03-13 | 2024-06-18 | 广州度岭科技有限公司 | System updating method, device, equipment and storage medium for cloud terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101170442A (en) * | 2007-11-29 | 2008-04-30 | 中国网络通信集团公司 | Software online upgrade method and system |
CN101795203A (en) * | 2009-02-03 | 2010-08-04 | 华为软件技术有限公司 | Method and device for downloading software upgrading data packet |
CN103152206A (en) * | 2013-03-25 | 2013-06-12 | 安科智慧城市技术(中国)有限公司 | Method and system for updating multiple devices |
CN105812435A (en) * | 2014-12-30 | 2016-07-27 | 腾讯科技(深圳)有限公司 | Application upgrading data package processing method and device, electronic equipment, and system |
CN107770279A (en) * | 2017-10-31 | 2018-03-06 | 深圳市银河风云网络系统股份有限公司 | Remote upgrade method and system |
-
2018
- 2018-12-18 CN CN201811548123.3A patent/CN109542489A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101170442A (en) * | 2007-11-29 | 2008-04-30 | 中国网络通信集团公司 | Software online upgrade method and system |
CN101795203A (en) * | 2009-02-03 | 2010-08-04 | 华为软件技术有限公司 | Method and device for downloading software upgrading data packet |
CN103152206A (en) * | 2013-03-25 | 2013-06-12 | 安科智慧城市技术(中国)有限公司 | Method and system for updating multiple devices |
CN105812435A (en) * | 2014-12-30 | 2016-07-27 | 腾讯科技(深圳)有限公司 | Application upgrading data package processing method and device, electronic equipment, and system |
CN107770279A (en) * | 2017-10-31 | 2018-03-06 | 深圳市银河风云网络系统股份有限公司 | Remote upgrade method and system |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111488163A (en) * | 2020-04-08 | 2020-08-04 | 苏州浪潮智能科技有限公司 | Firmware updating method and device, electronic equipment and storage medium |
CN111488163B (en) * | 2020-04-08 | 2022-11-08 | 苏州浪潮智能科技有限公司 | Firmware updating method and device, electronic equipment and storage medium |
CN118210525A (en) * | 2024-03-13 | 2024-06-18 | 广州度岭科技有限公司 | System updating method, device, equipment and storage medium for cloud terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10680874B2 (en) | Network service fault handling method, service management system, and system management module | |
CN105429839B (en) | Virtualize network function VNF optimization method, apparatus and system | |
CN113742031B (en) | Node state information acquisition method and device, electronic equipment and readable storage medium | |
CN107800565B (en) | Inspection method, inspection device, inspection system, computer equipment and storage medium | |
US10587475B2 (en) | Network discovery optimization using supplemental information published by devices | |
US20140122140A1 (en) | Advanced managed service customer edge router | |
RU2636112C1 (en) | Object of interface management service, function service object and method of control of elements | |
CN111083576B (en) | Equipment control method and device and storage medium | |
US20170279688A1 (en) | Method, device and system for providing device application software management service in internet of things | |
CN102801585A (en) | Information monitoring system and method based on cloud computing network environment | |
CN110830324B (en) | Method and device for detecting network connectivity of data center and electronic equipment | |
CN101789980A (en) | Batch upgrading method based on cluster network | |
CN105049502A (en) | Method of upgrading equipment software in cloud network management system and device | |
CN112771754B (en) | System and method for providing network connection flexibility in power supply device | |
CN109542489A (en) | Upgrade method, device and server | |
CN110365524B (en) | Mirror image upgrading method and system for server node firmware | |
CN103905226B (en) | The automatic deployment method and device of a kind of business platform | |
WO2020010906A1 (en) | Method and device for operating system (os) batch installation, and network device | |
CN102819455B (en) | A kind of method process being managed in application layer and management system | |
CN115473780B (en) | Network target range distributed flow generation method and device | |
CN115225464B (en) | Network switching method, device, equipment and storage medium | |
CN104348646A (en) | Configuration data processing method, device and system | |
US20170208457A1 (en) | Terminal Configuration Service Method, Device, and System for Internet of Things | |
CN112437146A (en) | Equipment state synchronization method, device and system | |
CN111464357A (en) | Resource allocation method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190329 |