CN109358876A - A kind of version synchronization method and device, equipment, storage medium - Google Patents

A kind of version synchronization method and device, equipment, storage medium Download PDF

Info

Publication number
CN109358876A
CN109358876A CN201811141834.9A CN201811141834A CN109358876A CN 109358876 A CN109358876 A CN 109358876A CN 201811141834 A CN201811141834 A CN 201811141834A CN 109358876 A CN109358876 A CN 109358876A
Authority
CN
China
Prior art keywords
version
update
electronic device
notification message
address
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
Application number
CN201811141834.9A
Other languages
Chinese (zh)
Inventor
夏晶莹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811141834.9A priority Critical patent/CN109358876A/en
Publication of CN109358876A publication Critical patent/CN109358876A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present application discloses a kind of version synchronization method and device, equipment, storage medium, wherein the described method includes: responding received version updating order, obtains and updates file to complete the update of version, and generate update notification message;The update notification message is broadcasted at least one of network where first electronic equipment the second electronic equipment, to notify at least one second electronic equipment to carry out version updating.

Description

Version synchronization method, version synchronization device, version synchronization equipment and version synchronization storage medium
Technical Field
The present application relates to computer technologies, and in particular, to a version synchronization method and apparatus, a device, and a storage medium.
Background
The requirement for large-scale deployment of servers in the internet era is becoming higher and higher, and the centralized operation of large-scale servers has become a very important research topic. The bug repair, new function increase, and performance improvement of the server are usually realized by upgrading files such as a Basic Input Output System (BIOS), and often we need to upgrade the server to meet actual needs for various reasons.
However, when the servers upgrade the BIOS in batches, the programmed upgrade script is run through a Baseboard Management Controller (BMC) or an Onecli to upgrade the BIOS of the servers in batches, wherein when the upgrade script is programmed, the IP of the server to be upgraded needs to be known, and the IP of the server to be upgraded is manually written into the upgrade script. When the IP of the server to be upgraded is not determined, the upgrade cannot be performed.
Disclosure of Invention
The embodiment of the application provides a version synchronization method, a version synchronization device, version synchronization equipment and a version synchronization storage medium, and the version of electronic equipment is upgraded under the condition that the address of the electronic equipment is not required to be acquired.
The version synchronization method applied to the first electronic device provided by the embodiment of the application comprises the following steps:
responding to the received version updating command, acquiring an updating file to complete updating of the version, and generating an updating notification message;
and broadcasting the update notification message to at least one second electronic device in the network where the first electronic device is located so as to notify the at least one second electronic device of version update.
The version synchronization method applied to the second electronic device provided by the embodiment of the application comprises the following steps:
receiving an update notification message broadcast by first electronic equipment in a network where the second electronic equipment is located;
and if the update notification message meets the set update condition, acquiring an update file, and updating the version according to the update file.
The version synchronization device applied to the first electronic device provided by the embodiment of the application comprises: an updating unit and a notifying unit; wherein,
the updating unit is used for responding to the received version updating command, acquiring the updating file to complete the updating of the version and generating an updating notification message;
the notification unit is configured to broadcast the update notification message to at least one second electronic device in a network where the first electronic device is located, so as to notify the at least one second electronic device of version update.
The version synchronization device applied to the second electronic device provided by the embodiment of the application comprises: a monitoring unit and a second synchronization unit; wherein,
the monitoring unit is used for receiving an update notification message broadcast by first electronic equipment in a network where the second electronic equipment is located;
and the second synchronization unit is used for acquiring the update file and updating the version according to the update file if the update notification message meets the set update condition.
The electronic equipment that this application embodiment provided includes: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the version synchronization method described above when executing the computer program.
The computer-readable storage medium provided in the embodiments of the present application stores a version synchronization program, and the version synchronization program, when executed by a processor, implements the steps of the version synchronization method described above.
In the embodiment of the application, after version updating is carried out on first electronic equipment, an updating notification message is generated and is broadcasted to second electronic equipment in a network where the first electronic equipment is located; after receiving the update notification message broadcast by the first electronic device, the second electronic device updates the version when determining that the update notification message meets the set update condition without determining the address of the second electronic device needing to update the version in advance, and notifies the second electronic device to update the version through the broadcast of the update notification message of the first electronic device, so that the synchronization of the versions of the second electronic device and the first electronic device is realized.
Drawings
Fig. 1 is a schematic network structure diagram of a version synchronization method according to an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating a method for implementing a version of the synchronization method according to an embodiment of the present application;
fig. 3 is a schematic flowchart illustrating an implementation process of a second version synchronization method according to an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating an implementation process of a third-version synchronization method according to an embodiment of the present application;
fig. 5 is a schematic flowchart illustrating an implementation process of a four-version synchronization method according to an embodiment of the present application;
fig. 6A is a first schematic structural diagram of a fifth-version synchronization apparatus according to an embodiment of the present application;
fig. 6B is a schematic structural diagram of a fifth-version synchronization apparatus according to an embodiment of the present application;
fig. 7A is a first schematic structural assembly diagram of a sixth version synchronization apparatus according to an embodiment of the present application;
fig. 7B is a schematic structural diagram of a sixth version synchronization apparatus according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a seventh electronic device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the examples provided herein are merely illustrative of the present application and are not intended to limit the present application. In addition, the following examples are provided as partial examples for implementing the present application, not all examples for implementing the present application, and the technical solutions described in the examples of the present application may be implemented in any combination without conflict.
The network structure provided by the embodiment of the present application is shown in fig. 1, and includes: the first electronic device 11 and the second electronic device 12, and the first electronic device 11 and the plurality of second electronic devices 12 are nodes of the same network 21, and perform information interaction based on data links between the nodes. The network architecture shown in fig. 1 may further include a third electronic device 13, where the third electronic device 13 may be a node in the same network, or may be connected to only the first electronic device 11, and the third electronic device 13 stores an update file. The first electronic device 11 receives the update file from the third electronic device 13, performs version update, generates an update notification message, and broadcasts the update notification message to the second electronic device 12 to notify the second electronic device 12 of the version update. After receiving the update notification message broadcast by the first electronic device 11, the second electronic device 12 acquires the update file from the first electronic device 11 or the third electronic device 13 for version update when determining that the update notification message satisfies the update condition of the device.
The network corresponding to the network structure shown in fig. 1 may be a local area network supporting broadcasting, such as a wired network, an optical network, or a wireless network.
Next, a version synchronization method provided in the embodiment of the present application is described with reference to a network structure shown in fig. 1.
Example one
The embodiment of the present application provides a version synchronization method, where the method is applied to a first electronic device, and each functional module in the first electronic device may be cooperatively implemented by hardware resources of a device (such as a terminal device, a server, or a server cluster), such as computing resources such as a processor, and communication resources (such as being used to support various communication modes such as optical cables and cells).
Of course, the embodiments of the present application are not limited to being provided as methods and hardware, and may be implemented in various ways, for example, as a storage medium (storing instructions for executing the version synchronization method provided by the embodiments of the present application).
An embodiment of the present application provides a version synchronization method, as shown in fig. 2, the version synchronization method includes:
s201, responding to the received version updating command, acquiring an updating file to complete updating of the version, and generating an updating notification message;
the first electronic device may be any electronic device with information processing capability, and in one embodiment, the first electronic device may be an intelligent terminal, for example, a mobile terminal with wireless communication capability such as a notebook. In another embodiment, the first electronic device may also be a computing-capable terminal device that is not mobile, such as a desktop computer, or the like.
The first electronic device may have a version manager installed therein, and the version manager has version update, version query, configuration management, and other functions related to version management.
The user can trigger the version updating command through the operation of the version manager to instruct the first electronic equipment to update the version. When the first electronic equipment carries out version updating, the version can be updated through the version manager. The update object may be a BIOS, that is, the version of the BIOS of the first electronic device is updated, and the update object may also be an application, that is, the application on the first electronic device is updated. When the version of the BIOS is updated, the version of the BIOS can be updated through the BMC.
And when the first electronic equipment obtains the version updating command, acquiring the updating file to complete the updating of the version. The method for acquiring the update file by the first electronic device to complete the update of the version includes: the first electronic equipment sends an update file acquisition request to the third electronic equipment and receives an update file response which is returned by the third electronic equipment and responds to the update file acquisition request; and determining an update file carried in the update file response, and updating the version according to the update file. The third electronic device may be a version server for providing a download of the update file to the first electronic device in the network.
The update file is a file required for version update. Such as: when the current version is 1.0 version and the version is updated to 2.0 version, the update file can be an incremental file required for upgrading from 1.0 version to 2.0 version, and can also be a full file of 2.0 version.
After the first electronic device obtains the update file, an update notification message indicating that the first electronic device performs version update is generated. The field identifying the message type of the update notification message may be customized according to the user's needs. Wherein the generation of the update notification message may be performed before the first electronic device completes the version update or may be performed after the version update is completed. The update notification message may carry version information of the update file, and the version information may include: the update notification message may also carry information such as Field Replaceable Unit (FRU) information of the BMC. The FRU information of the BMC is used for representing the device type of the first electronic device.
In an embodiment, the method further comprises: determining a first device address of the first electronic device; accordingly, the generating the update notification message includes: generating the update notification message based at least on the first device address and a broadcast address. At this time, the first electronic device broadcasts the update notification message to the network where the first electronic device is located according to the broadcast address carried in the update notification message, and the broadcast update notification message carries the first device address.
The first device address is an address of the first electronic device itself, and may be a device identifier used for representing an identity of the first electronic device, such as an IP address, a Media Access Control (MAC) address, and account information of the first electronic device.
The Broadcast Address (Broadcast Address) is an Address indicating that the first electronic device is simultaneously transmitting to other electronic devices, i.e., the second electronic device, in the network where the first electronic device is located. Such as: in a network using a Transmission Control Protocol/Internet Protocol (TCP/IP) Protocol, an IP address where the host identification segment is all 1 is a broadcast address to instruct to send an update notification to all computers involved in the host ID segment.
When the destination address in the update notification message is a broadcast address, sending the update notification message to the second electronic device and a third electronic device in the network, such as: the first electronic device is located in a subnet with segment 10.1.1.0 (subnet mask is 255.255.255.0), the broadcast address is 10.1.1.255(255 is 11111111 in 2), and when the first electronic device sends out an update notification message with the destination address of 10.1.1.255, the update notification message is distributed to all the second electronic devices and the third electronic devices in the subnet.
In an embodiment, the method further comprises: determining a third device address indicative of a third electronic device; the third electronic equipment comprises the update file; accordingly, the generating an update notification message includes: generating the update notification message based at least on the third device address and a broadcast address. At this time, the first electronic device broadcasts the update notification message to the network where the first electronic device is located according to the broadcast address carried in the update notification message, and the broadcasted update notification message carries the third device address.
The third device address is an address of the third electronic device, and the third device address may be an identifier used for representing an identity of the third electronic device, such as an IP address, an MAC address, and account information of the third electronic device.
S202, broadcasting the update notification message to at least one second electronic device in the network where the first electronic device is located, so as to notify the at least one second electronic device of version update.
The second electronic device is an electronic device other than the first electronic device and the third electronic device in a network in which the first electronic device is located. Such as: the network comprises a version server, a server A, a server B and a server C, wherein the version server is third electronic equipment, and when the server A is first electronic equipment, the second electronic equipment comprises the server B and the server C.
After the update notification message is generated in S201, the first electronic device broadcasts the update notification message to the second electronic device in the network. Such as: the first electronic device is a server A, the second electronic device comprises a server B and a server C, when the server A generates an update notification message, the update notification message is broadcasted, the server B and the server B receive the update notification message through monitoring the broadcast, and therefore the server A broadcasts the update notification message to the server B and the server C.
In practical applications, when the first electronic device broadcasts the update notification message, the third electronic device, which is a version server, receives the update notification message at the same time. At this time, the third electronic device may discard the received update notification message without responding to the update notification message. The third electronic device may also use the received update notification message as an indication that the first electronic device successfully acquires the update file to confirm that the first electronic device completed acquiring the update file, but does not respond to the update notification message.
In an embodiment, the method further comprises: receiving an update file acquisition message of at least one second electronic device; analyzing the update file acquisition message to obtain a second equipment address of the second electronic equipment carried by the update file acquisition message; and sending the update file to the second electronic equipment indicated by the second equipment address according to the second equipment address.
When the update notification message carries the first device address, the first electronic device sends the first device address of the first electronic device to the second electronic device, notifies the second electronic device that the first electronic device performs version update, and indicates that the first electronic device stores an update file. And when the second electronic equipment receives the update notification message and determines that the set update condition is met through analysis of the update notification message, sending an update file acquisition message to the first electronic equipment according to the first equipment address carried in the update notification message. After receiving the update file acquisition message, the first electronic device analyzes the update file acquisition message to obtain a second device address of the second electronic device, determines that the second electronic device requests to download the update file, and sends the update file to the second electronic device according to the second electronic device address, so that the second electronic device performs version update according to the downloaded update file, and version synchronization with the first electronic device is realized.
Such as: the address of the first electronic device server a is: and a.b.c.d (the address of the first device), the address of the server B of the second electronic device is a.b.c.e (the address of the second device), and the first electronic device carries the a.b.c.d in the update notification message sent to the second electronic device. And when the second electronic equipment receives the update notification message and determines to update the version according to the update notification message, sending an update file acquisition message by using the a.b.c.d as a destination address. And after receiving the update file acquisition message, the first electronic equipment sends the update file to the second electronic equipment indicated by the a.b.c.e by taking the a.b.c.e as a destination address.
In this embodiment of the application, the first electronic device may receive update file acquisition messages sent by the plurality of second electronic devices, and send the update file to the sending device of each update file acquisition message in response to the received update file acquisition messages one by one.
According to the version synchronization method provided by the embodiment of the application, after version updating is carried out on first electronic equipment, an updating notification message is generated and is broadcasted to second electronic equipment in a network where the first electronic equipment is located; the method and the device can realize the synchronization of the versions of the second electronic equipment and the first electronic equipment through the broadcast of the update notification message of the first electronic equipment under the condition that the address of the second electronic equipment needing to update the version is uncertain.
Example two
The embodiment of the present application provides a version synchronization method, where the method is applied to a second electronic device, and each functional module in the second electronic device may be cooperatively implemented by hardware resources of a device (such as a terminal device, a server, or a server cluster), such as computing resources such as a processor, and communication resources (such as being used to support various communication modes such as optical cables and cells).
Of course, the embodiments of the present application are not limited to being provided as methods and hardware, and may be implemented in various ways, for example, as a storage medium (storing instructions for executing the version synchronization method provided by the embodiments of the present application).
Fig. 3 is a schematic flow chart of an implementation of a version synchronization method according to a second embodiment of the present application, and as shown in fig. 3, the version synchronization method includes:
s501, receiving an update notification message broadcast by first electronic equipment in a network where the second electronic equipment is located;
the second electronic device may be any electronic device with information processing capability, and in one embodiment, the second electronic device may be an intelligent terminal, for example, a mobile terminal with wireless communication capability such as a notebook. In another embodiment, the second electronic device may also be a computing-capable terminal device that is not mobile, such as a desktop computer, or the like.
The second electronic device and the first electronic device are different electronic devices in the same network, and the device types of the first electronic device and the second electronic device are not limited at all. The first electronic equipment can perform information interaction with the second electronic equipment in a wireless or wired mode.
The second electronic device may have a version manager installed therein, and the version manager has version update, version query, configuration management, and other functions related to version management. The version manager in the first electronic equipment is responsible for managing the version on the first electronic equipment; the version manager in the second electronic device is responsible for version management on the second electronic device.
When the first electronic equipment broadcasts the update notification message, the second electronic equipment receives the update notification message through monitoring the broadcast, and determines that the electronic equipment exists in the network where the second electronic equipment is located currently to update the version according to the received update notification message. The second electronic device may monitor the broadcast in the network in real time, or may monitor the broadcast in the network periodically to monitor the update notification message broadcasted in the network.
And after receiving the update notification message, the second electronic device analyzes the update notification message to obtain information carried by the update notification message, wherein the information obtained by analysis at least comprises version information indicating the update file of the first electronic device.
And the second electronic equipment analyzes the update notification message to obtain the version information of the update file, and then analyzes the version information to determine whether the update notification message meets the set update condition. Here, the manner of determining whether the update notification message satisfies the set update condition includes at least one of the following two manners:
the first method is that the version information is analyzed to determine whether the update notification message meets the set update condition, and the method comprises the following steps: and comparing the version information carried by the update notification message with the version information of the second electronic device, determining that the update notification message meets the set update condition when the version corresponding to the version information of the second electronic device is lower than the version corresponding to the version information carried by the update notification message, and otherwise, determining that the update notification message does not meet the set update condition. Such as: the version corresponding to the version information of the second electronic device is the 1.0 version, the version corresponding to the version information carried in the update notification message is the 2.0 version, and the 2.0 version is higher than the 1.0 version, and it is determined that the update notification message satisfies the set update condition. Here, the update condition is set such that the version of the update file is higher than the current version of the second electronic device.
The second method is to analyze the version information and determine whether the update notification message meets the set update condition, and includes: acquiring target version information of the second electronic equipment, and comparing the version information carried by the update notification message with the target version information; and when the version information carried by the update notification message is matched with the target version information, determining that the update notification message meets the set update condition, otherwise, determining that the update notification message does not meet the set update condition. Such as: the version corresponding to the version information of the second electronic device is 1.0 version, the version corresponding to the target version information is 1.5 version, the version corresponding to the version information carried in the update notification message is 2.0 version, the 2.0 version is higher than the 1.5 version, the 1.5 version is higher than the 1.0 version, the version corresponding to the version information carried in the update notification message is higher than the version corresponding to the current version information of the second electronic device, and when the version corresponding to the target version information is not met, the update notification message is determined not to meet the set update condition. For another example: and when the version corresponding to the version information of the second electronic device is 1.0 version, the version corresponding to the target version information is 1.5 version, and the version corresponding to the version information carried by the update notification message is 1.5 version, determining that the update notification message meets the set update condition. Here, the update condition is set such that the version of the update file is the target version.
In an embodiment, the update notification message is parsed, and the obtained information further includes firmware information indicating a device type of the first electronic device. Here, the firmware information carried by the update notification is referred to as first firmware information. At this time, before determining whether the update notification message satisfies the set update condition, the version synchronization method applied to the second electronic device further includes: acquiring second firmware information indicating the type of the second electronic equipment; the first firmware information and the second firmware information are compared. And if the first firmware information and the second firmware information are matched, determining whether the update notification message meets the set update condition. The first firmware information may be FRU information of the BMC of the first electronic device, and the second firmware information may be FRU information of the BMC of the second electronic device.
When the first firmware information is matched with the second firmware information, the device type of the first electronic device is the same as that of the second electronic device, and the second electronic device support the same update file.
S502, if the update notification message meets the set update condition, acquiring an update file, and updating the version according to the update file.
When the second electronic device determines that the update notification message meets the set update condition, acquiring an update file, wherein the acquiring the update file comprises: and acquiring the update file based on the first equipment address or acquiring the update file based on the third equipment address. The first device address indicates a first electronic device that broadcasts an update notification message, and the third device address indicates a third electronic device, wherein an update file used by the first electronic device for version update is downloaded from the third electronic device. Here, the third device address may be obtained from the second electronic device, or may be obtained locally from the second electronic device.
In an embodiment, the method further comprises: determining a first device address carried by the update notification message and indicating the first electronic device; accordingly, the obtaining the update file includes: sending a first update file acquisition message to the first electronic equipment indicated by the first equipment address; and receiving the update file responding to the first update file acquisition message.
When the first electronic device generates the update notification message, the update notification message carries the first device address, and the second electronic device analyzes the update notification message to obtain the first device address. And when the second electronic equipment acquires the update file, the first equipment address is taken as a target address, the update file acquisition message is sent to the first electronic equipment indicated by the first equipment address, and the update file is requested to be downloaded. And after receiving the update file acquisition message, the first electronic equipment returns the update file to the second electronic equipment.
In an embodiment, the method further comprises: determining a third device address indicative of a third electronic device;
accordingly, the obtaining the update file includes: sending a first update file acquisition message to third electronic equipment indicated by the third equipment address; and receiving the update file responding to the first update file acquisition message.
When the first electronic device generates the update notification message, the update notification message carries the third device address, and the second electronic device analyzes the update notification message to obtain the third device address. And when the second electronic equipment acquires the update file, the third equipment address is taken as a target address, the update file acquisition message is sent to the third electronic equipment indicated by the third equipment address, and the update file is requested to be downloaded. And after receiving the update file acquisition message, the third electronic equipment returns the update file to the second electronic equipment.
The second electronic equipment can also obtain a third equipment address from local and send a first update file obtaining message to third electronic equipment indicated by the third equipment address; and receiving the update file responding to the first update file acquisition message.
Here, when the second electronic device transmits the update file acquisition message to the third electronic device, version information of the update file may be carried in the update file acquisition message to determine the acquired update file.
And the second electronic equipment receives the update file, performs version update based on the received update file, and keeps version synchronization with the first electronic equipment.
When the second electronic device updates the version, the version can be automatically updated when a restart instruction is received, or the restart instruction is triggered when no task is executed based on the received version file and the determination is made, and the second electronic device is restarted based on the restart instruction and the version is updated.
The update object of the second electronic device may be a BIOS, which is the same as the update object of the first electronic device, that is, the version of the BIOS of the second electronic device is updated, and the update object may also be an application program. When the version of the BIOS is updated, the version of the BIOS can be updated through the BMC.
In this embodiment of the application, when the second electronic device monitors an update notification message broadcast by the first electronic device in a network where the second electronic device is located, and the second electronic device determines to perform version update based on the broadcast update notification message, the update file is acquired, the version update is performed locally, and the version synchronization is performed with the first electronic device, without storing an address of the second electronic device in a script file or writing an address of the second electronic device in the first electronic device, the version update is performed through the monitored broadcast message.
EXAMPLE III
The embodiment of the present application provides a version synchronization method, which is applied to a version synchronization system including a first electronic device and a second electronic device, where each function module in the first electronic device and the second electronic device may be cooperatively implemented by a hardware resource (such as a computing resource, such as a processor, and a communication resource (such as a communication resource for supporting various modes, such as optical cable and cellular communication) of a device (such as a terminal device, a server or a server cluster).
Of course, the embodiments of the present application are not limited to being provided as methods and hardware, and may be implemented in various ways, for example, as a storage medium (storing instructions for executing the version synchronization method provided by the embodiments of the present application).
Fig. 4 is a schematic flow chart illustrating an implementation process of a version synchronization method according to a third embodiment of the present application, as shown in fig. 4, the version synchronization method includes:
s401, the first electronic device sends an update file acquisition request to the third electronic device;
when the first electronic device receives the update command, an update file acquisition request is sent to the third electronic device to request downloading of the update file from the third electronic device.
And after receiving the update file acquisition request, the third electronic equipment sends the update file to the first electronic equipment.
S402, the first electronic equipment receives the update file to complete the update of the version and generates an update notification message;
the first electronic device receives the update file sent by the third electronic device, performs version update after receiving the update file, and generates an update notification message according to the version information, the address of the first electronic device, and the broadcast address, wherein the broadcast address is the destination address of the update notification message.
S403, the first electronic equipment broadcasts an update notification message in the network;
when the first electronic equipment sends the updating notification message, the updating notification message is broadcasted in the network where the first electronic equipment is located based on the broadcast address in the updating notification message.
S404, the second electronic equipment in the network monitors the update notification message and determines whether to update the version;
the second electronic device can monitor the broadcast message in real time or periodically, and when the update notification message is monitored, the update notification message is received and analyzed to obtain version information and the first device address carried by the update notification message.
The second electronic device compares the version information carried by the update notification message with the version information of the second electronic device, and determines that the update notification message satisfies the set update condition when the version corresponding to the version information carried by the update notification message is higher than the version corresponding to the version information of the second electronic device, otherwise, determines that the update notification message does not satisfy the set update condition.
S405, if the update notification message meets the set update condition, the second electronic device sends an update file acquisition message to the first electronic device;
and when the second electronic equipment determines that the update notification message meets the set update condition, the second electronic equipment sends an update file acquisition message indicating acquisition of the update file to the first electronic equipment by taking the first equipment address as a destination address so as to download the update file from the first electronic equipment.
S406, the first electronic device receives the update file acquisition message and sends the update file to the second electronic device;
s407, the second electronic device receives the update file sent by the first electronic device, and performs version update according to the update file.
And after receiving the update file sent by the first electronic equipment, the second electronic equipment locally updates the version.
It should be noted that, when the first electronic device broadcasts the update notification message, the plurality of second electronic devices in the network where the first electronic device is located may simultaneously send the update file acquisition message to the first electronic device, to download the update file, and perform the version update.
In the embodiment of the application, after the version update of the first electronic device is completed, an update notification message indicating that the first electronic device performs the version update is broadcast in the network, after the second electronic device in the network monitors the update notification message, whether the second electronic device needs to perform the version update is judged, and when the version update is needed, the update file is acquired from the first electronic device, so that the synchronization with the version of the first electronic device is completed, the participation of a version update script is not needed, and the electronic device in the network autonomously completes the version update through the interaction of information. And, the updating of the versions can be simultaneously implemented on a plurality of second electronic devices.
Example four
The present embodiment further illustrates the version synchronization method provided in the present embodiment by using the version synchronization system shown in fig. 5.
As shown in fig. 5, the version synchronization system includes a server a, a server B, a server C, and a server D. The server A corresponds to first electronic equipment, and the server B, the server C and the server D correspond to second electronic equipment respectively.
When the server A updates the version of the BIOS through the BMC. After updating the BIOS, the BMC of the server A broadcasts an update notification message in a broadcast mode to notify other servers in the network, namely the server B, the server C and the server D, and the server A has a new BIOS updated.
After the BMC of the server B, the server C and the server D receive the notification, the BMC of the server B compares the updated BIOS version of the server A with the BIOS version of the server A.
For the server B, if the BMC of the server A and the BMC of the server B are of the same type and the version of the BIOS updated by the server A is higher than the version of the existing BIOS of the server B, the BIOS of the new version updated by the server A is obtained and stored in the BMC to replace the BIOS of the existing version in the BMC. When the server B is restarted next time, the new version of BIOS is automatically updated to the Basic Input Output system firmware (BIOS FW), so as to complete the update of the new version of BIOS. If the version of the BIOS updated by the server a is not higher than the version of the existing BIOS of the server B itself, the server B ends the flow.
And for the version synchronization process of the server C, the server D and the server A, and the version synchronization process of the server B and the server A.
EXAMPLE five
In order to implement the method of the embodiment of the present application, an embodiment of the present application provides a version synchronization apparatus, which is applied to a first electronic device, and the version synchronization apparatus includes various units that can be implemented by a processor in the electronic device; of course, the implementation can also be realized through a specific logic circuit; in the implementation process, the Processor may be a Central Processing Unit (CPU), a microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
As shown in fig. 6A, the apparatus 60 includes: an updating unit 601 and a notification unit 602; wherein,
an updating unit 601, configured to respond to the received version updating command, acquire an update file to complete updating of the version, and generate an update notification message;
a notification unit 602, configured to broadcast the update notification message to at least one second electronic device in a network where the first electronic device is located, so as to notify the at least one second electronic device of performing version update.
In one embodiment, as shown in fig. 6B, the apparatus 60 further comprises: a first address unit 603 configured to determine a first device address of the first electronic device;
accordingly, the updating unit 601: for generating the update notification message based at least on the first device address and a broadcast address.
In one embodiment, as shown in fig. 6B, the apparatus 60 further comprises: a second address unit 604 for determining a third device address indicative of a third electronic device; the third electronic equipment comprises the update file;
accordingly, the updating unit 601: for generating the update notification message based at least on the third device address and a broadcast address.
In one embodiment, as shown in fig. 6B, the apparatus 60 further comprises: a first synchronization unit 605 for:
receiving an update file acquisition message of at least one second electronic device;
analyzing the update file acquisition message to obtain a second equipment address of the second electronic equipment carried by the update file acquisition message;
and sending the update file to the second electronic equipment indicated by the second equipment address according to the second equipment address.
EXAMPLE six
In order to implement the method of the embodiment of the present application, an embodiment of the present application provides a version synchronization apparatus, which is applied to a second electronic device, and the apparatus includes various units that can be implemented by a processor in the electronic device; of course, the implementation can also be realized through a specific logic circuit; in implementation, the processor may be a CPU, MPU, DSP, FPGA, or the like.
As shown in fig. 7A, the apparatus 70 includes: a listening unit 701 and a second synchronization unit 702; wherein,
a monitoring unit 701, configured to receive an update notification message broadcast by a first electronic device in a network where the second electronic device is located;
a second synchronization unit 702, configured to obtain an update file if the update notification message meets a set update condition, and perform version update according to the update file.
In one embodiment, as shown in fig. 7B, the apparatus 70 further comprises: a third address unit 703, configured to determine a first device address, which indicates the first electronic device and is carried in the update notification message;
accordingly, the second synchronization unit 702 acquires the update file, including: sending a first update file acquisition message to the first electronic equipment indicated by the first equipment address; and receiving the update file responding to the first update file acquisition message.
In one embodiment, as shown in fig. 7B, the apparatus 70 further comprises: a fourth address unit 704 for determining a third device address indicating a third electronic device;
accordingly, the second synchronization unit 702 acquires the update file, including: sending a first update file acquisition message to third electronic equipment indicated by the third equipment address; and receiving the update file responding to the first update file acquisition message.
It should be noted that the description of the apparatus embodiment of the fifth embodiment is similar to the description of the first embodiment of the method, and has similar beneficial effects to the method embodiments. The description of the apparatus embodiment of the sixth embodiment is similar to the description of the second embodiment of the method described above, with similar advantageous effects as the method embodiment. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
EXAMPLE seven
An embodiment of the present application provides a version synchronization device, fig. 8 is a schematic diagram of a composition structure of an electronic device according to an embodiment of the present application, and as shown in fig. 8, the device 800 includes: a processor 801, at least one communication bus 802, a user interface 803, at least one external communication interface 804 and memory 805. Wherein the communication bus 802 is configured to enable connective communication between these components. The user interface 803 may include a display screen, and the external communication interface 804 may include a standard wired interface and a wireless interface, among others.
Wherein the processor 801 is configured to execute a version synchronization program stored in the memory to implement the following steps:
responding to the received version updating command, acquiring an updating file to complete updating of the version, and generating an updating notification message;
and broadcasting the update notification message to at least one second electronic device in the network where the first electronic device is located so as to notify the at least one second electronic device of version update.
The processor 801, configured to execute the version synchronization program stored in the memory, may further implement the following steps:
receiving an update notification message broadcast by first electronic equipment in a network where the second electronic equipment is located;
and if the update notification message meets the set update condition, acquiring an update file, and updating the version according to the update file.
Accordingly, an embodiment of the present application further provides a storage medium, i.e., a computer-readable storage medium, on which a version synchronization program is stored, and the version synchronization program, when executed by a processor, implements the steps of the version synchronization method described above.
The above descriptions of the version synchronization apparatus, the electronic device, and the computer-readable storage medium embodiments are similar to the description of the above method embodiments, with similar advantageous effects to the method embodiments. For technical details not disclosed in embodiments of the synchronization apparatus, the electronic device and the computer-readable storage medium of the present application version, reference is made to the description of embodiments of the method of the present application for understanding.
In the embodiment of the present application, if the version synchronization method is implemented in the form of a software functional module and is sold or used as a standalone product, the version synchronization method may also be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A version synchronization method is applied to a first electronic device, wherein the method comprises the following steps:
responding to the received version updating command, acquiring an updating file to complete updating of the version, and generating an updating notification message;
and broadcasting the update notification message to at least one second electronic device in the network where the first electronic device is located so as to notify the at least one second electronic device of version update.
2. The method of claim 1, wherein the method further comprises: determining a first device address of the first electronic device; accordingly, the generating the update notification message includes: generating the update notification message according to at least the first device address and a broadcast address;
or,
the method further comprises the following steps: determining a third device address indicative of a third electronic device; the third electronic equipment comprises the update file; accordingly, the generating an update notification message includes: generating the update notification message based at least on the third device address and a broadcast address.
3. The method of claim 1, wherein the method further comprises:
receiving an update file acquisition message of at least one second electronic device;
analyzing the update file acquisition message to obtain a second equipment address of the second electronic equipment carried by the update file acquisition message;
and sending the update file to the second electronic equipment indicated by the second equipment address according to the second equipment address.
4. A version updating method is applied to a second electronic device, wherein the method comprises the following steps:
receiving an update notification message broadcast by first electronic equipment in a network where the second electronic equipment is located;
and if the update notification message meets the set update condition, acquiring an update file, and updating the version according to the update file.
5. The method of claim 4, wherein the method further comprises:
determining a first device address carried by the update notification message and indicating the first electronic device;
accordingly, the obtaining the update file includes:
sending a first update file acquisition message to the first electronic equipment indicated by the first equipment address;
and receiving the update file responding to the first update file acquisition message.
6. The method of claim 4, wherein the method further comprises:
determining a third device address indicative of a third electronic device;
accordingly, the obtaining the update file includes:
sending a first update file acquisition message to third electronic equipment indicated by the third equipment address;
and receiving the update file responding to the first update file acquisition message.
7. A version synchronization apparatus applied to a first electronic device, the apparatus comprising: an updating unit and a notifying unit; wherein,
the updating unit is used for responding to the received version updating command, acquiring the updating file to complete the updating of the version and generating an updating notification message;
the notification unit is configured to broadcast the update notification message to at least one second electronic device in a network where the first electronic device is located, so as to notify the at least one second electronic device of version update.
8. A version synchronization apparatus applied to a second electronic device, the apparatus comprising: a monitoring unit and a second synchronization unit; wherein,
the monitoring unit is used for receiving an update notification message broadcast by first electronic equipment in a network where the second electronic equipment is located;
and the second synchronization unit is used for acquiring the update file and updating the version according to the update file if the update notification message meets the set update condition.
9. An electronic device, the electronic device comprising: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the version synchronization method of any of claims 1 to 3 or the steps of the version synchronization method of any of claims 4 to 6 when running the computer program.
10. A computer-readable storage medium having stored thereon a version synchronization program which, when executed by a processor, implements the steps of the version synchronization method of any one of claims 1 to 3, or implements the steps of the version synchronization method of any one of claims 4 to 6.
CN201811141834.9A 2018-09-28 2018-09-28 A kind of version synchronization method and device, equipment, storage medium Pending CN109358876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811141834.9A CN109358876A (en) 2018-09-28 2018-09-28 A kind of version synchronization method and device, equipment, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811141834.9A CN109358876A (en) 2018-09-28 2018-09-28 A kind of version synchronization method and device, equipment, storage medium

Publications (1)

Publication Number Publication Date
CN109358876A true CN109358876A (en) 2019-02-19

Family

ID=65348314

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811141834.9A Pending CN109358876A (en) 2018-09-28 2018-09-28 A kind of version synchronization method and device, equipment, storage medium

Country Status (1)

Country Link
CN (1) CN109358876A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026426A (en) * 2019-12-16 2020-04-17 京信通信系统(中国)有限公司 Method and device for upgrading repeater
CN111147560A (en) * 2019-12-18 2020-05-12 河北远东通信系统工程有限公司 Data synchronization method based on HTTP (hyper text transport protocol) protocol high speed, high stability and breakpoint continuous transmission
CN111414179A (en) * 2020-03-16 2020-07-14 杭州涂鸦信息技术有限公司 Data updating method and device, electronic equipment and storage medium
CN111610991A (en) * 2020-04-09 2020-09-01 西安万像电子科技有限公司 Version upgrading method and device
CN112118322A (en) * 2020-09-24 2020-12-22 杭州海康威视数字技术股份有限公司 Data synchronization method of network equipment, network equipment and system
CN112583994A (en) * 2019-09-27 2021-03-30 京瓷办公信息系统株式会社 Information processing system, information processing apparatus, recording medium, and slave system
CN116820596A (en) * 2023-04-23 2023-09-29 超聚变数字技术有限公司 FRU (field replaceable unit) management method, device and system
WO2023231836A1 (en) * 2022-05-30 2023-12-07 华为技术有限公司 File synchronization method, apparatus, device, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1584865A (en) * 2003-08-21 2005-02-23 珠海金山软件股份有限公司 Comptuer software updating method
CN103716390A (en) * 2013-12-25 2014-04-09 广西大学 Method and terminal for data sharing
US20160021157A1 (en) * 2014-07-15 2016-01-21 Maximum Media LLC Systems and methods for automated real-time internet streaming and broadcasting
CN105808268A (en) * 2014-12-29 2016-07-27 联想(北京)有限公司 Information processing method and system as well as electronic device
CN106060135A (en) * 2016-05-31 2016-10-26 杭州华三通信技术有限公司 Version updating method and device
CN106982130A (en) * 2016-01-18 2017-07-25 中兴通讯股份有限公司 A kind of device version synchronous method and device
CN107071005A (en) * 2017-03-24 2017-08-18 厦门中控生物识别信息技术有限公司 A kind of method of data synchronization and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1584865A (en) * 2003-08-21 2005-02-23 珠海金山软件股份有限公司 Comptuer software updating method
CN103716390A (en) * 2013-12-25 2014-04-09 广西大学 Method and terminal for data sharing
US20160021157A1 (en) * 2014-07-15 2016-01-21 Maximum Media LLC Systems and methods for automated real-time internet streaming and broadcasting
CN105808268A (en) * 2014-12-29 2016-07-27 联想(北京)有限公司 Information processing method and system as well as electronic device
CN106982130A (en) * 2016-01-18 2017-07-25 中兴通讯股份有限公司 A kind of device version synchronous method and device
CN106060135A (en) * 2016-05-31 2016-10-26 杭州华三通信技术有限公司 Version updating method and device
CN107071005A (en) * 2017-03-24 2017-08-18 厦门中控生物识别信息技术有限公司 A kind of method of data synchronization and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张尧学等: "《计算机网络与Internet教程》", 31 July 1999, 清华大学出版社 *
龚兵编著: "《计算机维护技术 第2版》", 31 July 2003, 华南理工大学出版社 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112583994A (en) * 2019-09-27 2021-03-30 京瓷办公信息系统株式会社 Information processing system, information processing apparatus, recording medium, and slave system
CN111026426A (en) * 2019-12-16 2020-04-17 京信通信系统(中国)有限公司 Method and device for upgrading repeater
CN111026426B (en) * 2019-12-16 2024-02-27 京信网络系统股份有限公司 Repeater upgrading method and device
CN111147560A (en) * 2019-12-18 2020-05-12 河北远东通信系统工程有限公司 Data synchronization method based on HTTP (hyper text transport protocol) protocol high speed, high stability and breakpoint continuous transmission
CN111147560B (en) * 2019-12-18 2022-05-17 河北远东通信系统工程有限公司 Data synchronization method based on HTTP (hyper text transport protocol) and breakpoint continuous transmission
CN111414179A (en) * 2020-03-16 2020-07-14 杭州涂鸦信息技术有限公司 Data updating method and device, electronic equipment and storage medium
CN111610991A (en) * 2020-04-09 2020-09-01 西安万像电子科技有限公司 Version upgrading method and device
CN112118322A (en) * 2020-09-24 2020-12-22 杭州海康威视数字技术股份有限公司 Data synchronization method of network equipment, network equipment and system
WO2023231836A1 (en) * 2022-05-30 2023-12-07 华为技术有限公司 File synchronization method, apparatus, device, and storage medium
CN117201510A (en) * 2022-05-30 2023-12-08 华为技术有限公司 File synchronization method, device, equipment and storage medium
CN116820596A (en) * 2023-04-23 2023-09-29 超聚变数字技术有限公司 FRU (field replaceable unit) management method, device and system

Similar Documents

Publication Publication Date Title
CN109358876A (en) A kind of version synchronization method and device, equipment, storage medium
CN106533753B (en) Role configuration method and device of distributed system
CN110730090B (en) Batch updating method, device, medium and electronic equipment for agent terminals in cloud environment
US20170003950A1 (en) Methods and apparatus for software lifecycle management of a virtual computing environment
US11636016B2 (en) Cloud simulation and validation system
US10404568B2 (en) Agent manager for distributed transaction monitoring system
CN108984544B (en) Method and device for modifying configuration information of distributed system
US10230820B2 (en) Analytics driven update notification
CN104572069A (en) Real-time, distributed administration of information describing dependency relationships among configuration items in a data center
CN110635944A (en) Cluster network configuration method and device, electronic equipment and storage medium
US9116808B2 (en) Method and system for determining device configuration settings
US20060080658A1 (en) Autonomic peer-to-peer computer software installation
CN110865819B (en) OS installation method, server and system
CN112527397A (en) Method and device for modifying basic input output system options and computer equipment
CN111770174A (en) Cloud platform deployment method, device, equipment and readable storage medium
CN110365524B (en) Mirror image upgrading method and system for server node firmware
CN108111496B (en) Method, device and system for exposing http service for dubbo distributed application
CN113220342A (en) Centralized configuration method and device, electronic equipment and storage medium
CN103685405B (en) Network service system and the method updating firmware thereof
US9609085B2 (en) Broadcast-based update management
WO2013161522A1 (en) Log collection server, log collection system, log collection method
CN111680245A (en) Page display method and device based on business event and electronic equipment
US9288178B2 (en) Inventory updating of an internet protocol (IP) alias within a highly available computing cluster
CN112367415B (en) Generation method and device of attribute information, electronic equipment and computer readable medium
CN103685404A (en) Network service system and method for updating firmware

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

Application publication date: 20190219

RJ01 Rejection of invention patent application after publication