Method and device for automatically upgrading equipment patch, equipment and storage medium

By customizing the device patch upgrade platform, efficient and automatic upgrade of device patches is achieved, solving the problems of untimely and inefficient upgrades in the existing technology.

CN120029646APending Publication Date: 2025-05-23ZIGUANG HENGYUE TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510503109.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-22
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

The upgrade process of existing equipment patches requires manual selection and upload by users, resulting in untimely and inefficient upgrades.

Method used

By customizing the patch upgrade platform, the upgrade patches, query scripts and private protocols of storage devices are queried regularly for new patches, and automatically upgraded when the target device discovers upgrade patches.

Benefits of technology

It realizes efficient automatic upgrade of device patches, avoids manual operations, improves upgrade efficiency, and promptly discovers and issues upgrade patches.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120029646A_ABST
    Figure CN120029646A_ABST
Patent Text Reader

Abstract

The invention relates to the field of equipment upgrading, and particularly provides a method and device for automatically upgrading equipment patches, equipment and a storage medium, the method comprises the steps that a patch upgrading platform is set in a user-defined mode, and upgrading patches of multiple pieces of equipment, an equipment upgrading query script and a preset private protocol are stored in the patch upgrading platform; the private protocol comprises a protocol mode of adding an attribute field; according to the private protocol, regularly querying a newly added patch of the patch upgrading platform, and upgrading the patch of the target equipment through a target upgrading patch when the target upgrading patch is newly added on the patch upgrading platform; or when the patch upgrading platform newly adds the target upgrading patch, the target device needing to be upgraded is queried through the device upgrading query script, and the target upgrading patch is sent to the target device so that the target device can conduct patch upgrading according to the target upgrading patch. By means of the method, the effect of efficiently and automatically upgrading the equipment patch process can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of device upgrades, and in particular to a method, apparatus, device and storage medium for automatically upgrading device patches. Background Art

[0002] At present, with the continuous updating of device systems, device patch upgrades also appear frequently. The upgrades of existing devices including firewall device patches are completed by users manually selecting upgrades or manually downloading and uploading upgrade patches.

[0003] The above-mentioned method of completing the upgrade by the user manually selecting the upgrade or manually downloading and uploading the upgrade patch has great limitations, and the upgrade package is often not found in time, resulting in delayed upgrade and low efficiency.

[0004] Therefore, how to achieve an efficient automatic upgrade device patch process is a technical problem that needs to be solved. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a method for automatically upgrading device patches. The technical solution of the embodiments of the present application can achieve an efficient automatic upgrade process for device patches.

[0006] In a first aspect, an embodiment of the present application provides a method for automatically upgrading device patches, which is applied to a device upgrade system including a patch upgrade platform and multiple devices, including: customizing the patch upgrade platform, wherein the patch upgrade platform stores upgrade patches for the multiple devices, device upgrade query scripts, and a preset private protocol, wherein the private protocol includes a protocol method for adding attribute fields; according to the private protocol, periodically querying the patch upgrade platform for new patches, and when the patch upgrade platform adds a new target upgrade patch, upgrading the patch of the target device through the target upgrade patch; or when the patch upgrade platform adds the target upgrade patch, querying the target device that needs to be upgraded through the device upgrade query script, and sending the target upgrade patch to the target device, so that the target device can perform a patch upgrade according to the target upgrade patch.

[0007] In the above embodiments of the present application, by customizing a patch upgrade platform in advance, the upgrade patch can be obtained through the patch upgrade platform or the platform can automatically send the patch to the device for automatic upgrade, thereby avoiding manual operation to improve efficiency and timely discovering the upgrade patch and sending it to the device, thereby achieving the effect of an efficient automatic upgrade device patch process.

[0008] In some embodiments, according to a private protocol, the patch upgrade platform is periodically queried for new patches, and when a target upgrade patch is added to the patch upgrade platform, the patch of the target device is upgraded through the target upgrade patch, including: when the target upgrade patch is uploaded to the patch upgrade platform, a preset attribute field is added to the target upgrade patch according to the private protocol; querying whether there is a patch with the preset attribute field among all patches of the patch upgrade platform; when a target upgrade patch with the preset attribute field exists among all patches of the patch upgrade platform, downloading the upgrade package to the target device, and upgrading the patch of the target device.

[0009] In the above embodiments of the present application, an attribute field may be added to the target upgrade patch according to a set private protocol, and the target upgrade patch may be identified according to the attribute field to realize automatic patch upgrade of the target device.

[0010] In some embodiments, according to a private protocol, the patch upgrade platform is periodically queried for new patches, and when a target upgrade patch is added to the patch upgrade platform, the patch of the target device is upgraded through the target upgrade patch, including: according to a private protocol, the patch upgrade platform is periodically queried for new patches, and when multiple upgrade patches are added to the patch upgrade platform, the priorities of multiple upgrade patches are determined, wherein the multiple upgrade patches include the target upgrade patch; and different devices are patched according to the priorities of the multiple patches.

[0011] In the above-mentioned embodiment, the present application performs a self-defined upgrade of the device patch in a timely manner according to the priority of the new patch by regularly querying the new patch of the patch upgrade platform, which is more timely.

[0012] In some embodiments, when adding a target upgrade patch, the patch upgrade platform queries the target device that needs to be upgraded through a device upgrade query script, and sends the target upgrade patch to the target device, so that the target device can perform a patch upgrade according to the target upgrade patch, including: when adding multiple upgrade patches, the patch upgrade platform queries at least one device that needs to be upgraded through a device upgrade query script, wherein the multiple upgrade patches include the target upgrade patch, and at least one device includes the target device; sending the multiple upgrade patches to the corresponding devices according to the priority of the multiple upgrade patches or sending the multiple upgrade patches to the corresponding devices at the same time; and performing a patch upgrade on at least one device.

[0013] In the above embodiments, when a new patch is transmitted to the patch upgrade platform, the present application can query the device that needs to upgrade the patch according to the new patch to achieve automatic upgrade of the device.

[0014] In a second aspect, an embodiment of the present application provides a device for automatically upgrading a device patch, including: A setting module, used for customizing a patch upgrade platform, wherein the patch upgrade platform stores upgrade patches for multiple devices, device upgrade query scripts, and preset private protocols, wherein the private protocol includes a protocol method for adding attribute fields; A first upgrade module is used to query the patch upgrade platform for new patches at regular intervals according to a private protocol, and when a target upgrade patch is added to the patch upgrade platform, upgrade the patch of the target device through the target upgrade patch; or The second upgrade module is used for the patch upgrade platform to query the target device that needs to be upgraded through the device upgrade query script when adding a new target upgrade patch, and send the target upgrade patch to the target device so that the target device can perform patch upgrade according to the target upgrade patch.

[0015] Optionally, the first upgrade module is specifically used for: When the target upgrade patch is uploaded to the patch upgrade platform, a preset attribute field is added to the target upgrade patch according to a private protocol; Query whether there is a patch with a preset attribute field among all patches on the patch upgrade platform; When a target upgrade patch with a preset attribute field exists among all patches of the patch upgrade platform, an upgrade package is downloaded to a target device, and the patch of the target device is upgraded.

[0016] Optionally, the first upgrade module is specifically used for: According to a private protocol, the patch upgrade platform is periodically queried for newly added patches, and when multiple upgrade patches are added to the patch upgrade platform, the priorities of the multiple upgrade patches are determined, wherein the multiple upgrade patches include a target upgrade patch; Patches are upgraded for different devices according to the priority of multiple patches.

[0017] Optionally, the second upgrade module is specifically used for: When adding multiple upgrade patches, the patch upgrade platform queries at least one device that needs to be upgraded through a device upgrade query script, wherein the multiple upgrade patches include a target upgrade patch and the at least one device includes a target device; Sending multiple upgrade patches to corresponding devices according to their priorities or sending multiple upgrade patches to corresponding devices at the same time; Upgrade the patch for at least one device.

[0018] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method provided in the first aspect are performed.

[0019] In a fourth aspect, an embodiment of the present application provides a readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the method provided in the first aspect are performed.

[0020] Other features and advantages of the present application will be described in the subsequent description, and in part will become apparent from the description, or will be understood by implementing the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 A flowchart of a method for automatically upgrading device patches provided in an embodiment of the present application; Figure 2 A flowchart of an implementation method for automatically upgrading device patches provided in an embodiment of the present application; Figure 3 A schematic block diagram of an apparatus for automatically upgrading device patches provided in an embodiment of the present application; Figure 4 A schematic block diagram of the structure of an apparatus for automatically upgrading device patches provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0024] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0025] This application is applied to the scenario of device patch upgrade. The specific scenario is that by setting up a patch upgrade platform, patches can be put into the platform, patches can be obtained from the platform, or the platform can automatically send patches to the device for timely automatic upgrade.

[0026] At present, with the continuous updating of device systems, device patch upgrades also occur frequently. The upgrades of existing devices including firewall device patches are completed by users manually selecting upgrades or manually downloading and uploading upgrade patches. The above-mentioned upgrades based on users manually selecting upgrades or manually downloading and uploading upgrade patches have great limitations, and often fail to find upgrade packages in time, resulting in delayed upgrades and low efficiency.

[0027] To this end, the present application customizes the patch upgrade platform, wherein the patch upgrade platform stores the upgrade patches of the multiple devices, the device upgrade query script and the preset private protocol, and the private protocol includes a protocol method for adding attribute fields; according to the private protocol, the patch upgrade platform is regularly queried for new patches, and when the patch upgrade platform adds a new target upgrade patch, the patch of the target device is upgraded through the target upgrade patch; or when the patch upgrade platform adds the new target upgrade patch, the target device that needs to be upgraded is queried through the device upgrade query script, and the target upgrade patch is sent to the target device, so that the target device can perform a patch upgrade according to the target upgrade patch. By customizing a patch upgrade platform in advance, the upgrade patch can be obtained through the patch upgrade platform or the platform can automatically send the patch to the device for automatic upgrade, avoiding manual operation to improve efficiency while timely discovering the upgrade patch and sending it to the device, achieving the effect of efficient automatic upgrade of the device patch process.

[0028] In the embodiment of the present application, the execution subject may be an automatic upgrade device patch device in an automatic upgrade device patch system. In actual applications, the automatic upgrade device patch device may be an electronic device such as a terminal device and a server, which is not limited here.

[0029] Combine the following Figure 1 The method for automatically upgrading device patches in an embodiment of the present application is described in detail.

[0030] Please see Figure 1 , Figure 1 A flowchart of a method for automatically upgrading device patches provided in an embodiment of the present application is applied to a device upgrade system including a patch upgrade platform and multiple devices, such as Figure 1 The method for automatically upgrading device patches shown includes: Step 110: Customize the patch upgrade platform.

[0031] The patch upgrade platform stores upgrade patches for multiple devices, device upgrade query scripts, and preset private protocols, including protocol methods for adding attribute fields. The patch upgrade platform may also include addresses, IDs, and automatic device patch upgrade algorithms for multiple devices.

[0032] Optionally, a custom patch upgrade platform can be set up to combine the patch upgrade platform and multiple devices into a device upgrade system, and the system controls the patch upgrade platform to send new patches to corresponding devices for automatic patch upgrade.

[0033] Specifically, corresponding patch upgrade platforms may be set according to the attributes of multiple devices, and corresponding patch upgrade platforms may be set according to different attribute uses. Among them, the patch upgrade platform may be set according to the application sites, device types or user requirements of multiple devices.

[0034] Step 120: According to the private protocol, the patch upgrade platform is periodically queried for new patches, and when the patch upgrade platform adds a new target upgrade patch, the patch of the target device is upgraded through the target upgrade patch.

[0035] Among them, the private protocol can be set according to the demand. For example, when a new patch is uploaded, the attribute field is set at the end of the patch or the key field is marked on the patch. Scheduled query can be set according to the demand, and can also be real-time query or irregular query. The newly added patch includes multiple upgrade patches, and the multiple upgrade patches include the target upgrade patch of the target device.

[0036] In some embodiments of the present application, according to a private protocol, the patch upgrade platform is periodically queried for new patches, and when a target upgrade patch is added to the patch upgrade platform, the patch of the target device is upgraded through the target upgrade patch, including: when the target upgrade patch is uploaded to the patch upgrade platform, a preset attribute field is added to the target upgrade patch according to the private protocol; whether there is a patch with the preset attribute field among all the patches of the patch upgrade platform; when a target upgrade patch with the preset attribute field exists among all the patches of the patch upgrade platform, the upgrade package is downloaded to the target device, and the patch of the target device is upgraded.

[0037] In the above process, the present application can add an attribute field to the target upgrade patch according to a set private protocol, and identify the target upgrade patch according to the attribute field to realize automatic patch upgrade of the target device.

[0038] Among them, the patch upgrade platform stores the correspondence between multiple devices and different patches. When a new patch is added to the platform, the device corresponding to the new patch can be immediately identified.

[0039] In some embodiments of the present application, according to a private protocol, a patch upgrade platform is periodically queried for new patches, and when a target upgrade patch is added to the patch upgrade platform, the patch of the target device is upgraded through the target upgrade patch, including: according to a private protocol, a patch upgrade platform is periodically queried for new patches, and when multiple upgrade patches are added to the patch upgrade platform, the priorities of multiple upgrade patches are determined, wherein the multiple upgrade patches include a target upgrade patch; and patch upgrades are performed on different devices according to the priorities of the multiple patches.

[0040] In the above process, the present application performs a self-defined upgrade of the device patch in a timely manner according to the priority of the new patch by regularly querying the new patch of the patch upgrade platform, which is more timely.

[0041] The priority may be determined based on the time when the patch is uploaded, or based on the priority set when uploading, or based on a private field set in a private protocol.

[0042] Step 130: or when adding a new target upgrade patch, the patch upgrade platform queries the target device that needs to be upgraded through the device upgrade query script, and sends the target upgrade patch to the target device, so that the target device can perform a patch upgrade according to the target upgrade patch.

[0043] Among them, the device upgrade query script can be edited in advance by relevant personnel.

[0044] In some embodiments of the present application, when adding a target upgrade patch, the patch upgrade platform queries the target device that needs to be upgraded through a device upgrade query script, and sends the target upgrade patch to the target device, so that the target device can perform a patch upgrade according to the target upgrade patch, including: when adding multiple upgrade patches, the patch upgrade platform queries at least one device that needs to be upgraded through a device upgrade query script, wherein the multiple upgrade patches include the target upgrade patch, and at least one device includes the target device; sending the multiple upgrade patches to the corresponding devices according to the priority of the multiple upgrade patches or sending the multiple upgrade patches to the corresponding devices at the same time; and performing a patch upgrade on at least one device.

[0045] In the above process, when a new patch is transmitted to the patch upgrade platform, the present application can query the devices that need to be upgraded according to the new patch to realize automatic upgrade of the devices.

[0046] Optionally, the patch upgrade platform is periodically queried for new patches according to the private protocol, and when the patch upgrade platform adds a new target upgrade patch, the patch of the target device is upgraded through the target upgrade patch; or when the patch upgrade platform adds the target upgrade patch, it queries the target device that needs to be upgraded through the device upgrade query script, and when the target upgrade patch is sent to the target device for upgrading, the device can first compare the target upgrade patch with the patch stored in the system for consistency, and only perform the device patch upgrade and delete the old patch if they are inconsistent.

[0047] In the above Figure 1 In the process shown, the present application customizes the patch upgrade platform, wherein the patch upgrade platform stores the upgrade patches, device upgrade query scripts and preset private protocols of the multiple devices, and the private protocol includes a protocol method for adding attribute fields; according to the private protocol, the patch upgrade platform is regularly queried for new patches, and when the patch upgrade platform adds a new target upgrade patch, the patch of the target device is upgraded through the target upgrade patch; or when the patch upgrade platform adds the new target upgrade patch, the target device that needs to be upgraded is queried through the device upgrade query script, and the target upgrade patch is sent to the target device, so that the target device can perform a patch upgrade according to the target upgrade patch. By customizing a patch upgrade platform in advance, the upgrade patch can be obtained through the patch upgrade platform or the platform can automatically send the patch to the device for automatic upgrade, avoiding manual operation to improve efficiency while timely discovering the upgrade patch and sending it to the device, achieving the effect of efficient automatic upgrade of the device patch process.

[0048] Combine the following Figure 2 The implementation method of automatically upgrading device patches in an embodiment of the present application is described in detail.

[0049] Please see Figure 2 , Figure 2 A flowchart of an implementation method for automatically upgrading device patches provided in an embodiment of the present application, such as Figure 2 The implementation method of automatically upgrading device patches shown includes: Step 210: Set the patch upgrade platform.

[0050] Specifically: Customize the patch upgrade platform.

[0051] Step 220: The device actively obtains a new patch from the patch upgrade platform for automatic upgrade.

[0052] Specifically: according to the private protocol, the patch upgrade platform is queried regularly for new patches, and when the patch upgrade platform adds a new target upgrade patch, the patch of the target device is upgraded through the target upgrade patch.

[0053] Step 230: When the patch upgrade platform obtains a new patch, it automatically sends it to the device for patch upgrade.

[0054] Specifically: when adding the target upgrade patch, the patch upgrade platform queries the target device that needs to be upgraded through the device upgrade query script, and sends the target upgrade patch to the target device, so that the target device can perform patch upgrade according to the target upgrade patch.

[0055] also, Figure 2 The specific methods and steps shown can be found in Figure 1 The method shown will not be described in detail here.

[0056] Previous article Figure 1-Figure 2 Describes the method of automatically upgrading device patches. Figure 3-Figure 4 Describes a device for automatically upgrading device patches.

[0057] Please refer to Figure 3 , is a schematic block diagram of an apparatus 300 for automatically upgrading device patches provided in an embodiment of the present application, and the apparatus 300 may be a module, program segment or code on an electronic device. Figure 1 The method embodiment corresponds to and can be executed Figure 1 The various steps involved in the method embodiment and the specific functions of the device 300 can be found in the description below. To avoid repetition, the detailed description is appropriately omitted here.

[0058] Optionally, the device 300 includes: A setting module 310, for customizing a patch upgrade platform, wherein the patch upgrade platform stores upgrade patches for multiple devices, device upgrade query scripts, and preset private protocols, wherein the private protocol includes a protocol method for adding attribute fields; The first upgrade module 320 is used to query the patch upgrade platform for new patches regularly according to the private protocol, and when the patch upgrade platform adds a new target upgrade patch, upgrade the patch of the target device through the target upgrade patch; or The second upgrade module 330 is used for the patch upgrade platform to query the target device that needs to be upgraded through the device upgrade query script when adding a new target upgrade patch, and send the target upgrade patch to the target device so that the target device can perform patch upgrade according to the target upgrade patch.

[0059] Optionally, the first upgrade module is specifically used for: When the target upgrade patch is uploaded to the patch upgrade platform, a preset attribute field is added to the target upgrade patch according to a private protocol; the patch upgrade platform is queried to see whether there is a patch with the preset attribute field among all patches; when the target upgrade patch with the preset attribute field exists among all patches on the patch upgrade platform, the upgrade package is downloaded to the target device, and the patch of the target device is upgraded.

[0060] Optionally, the first upgrade module is specifically used for: According to a private protocol, the patch upgrade platform is queried for new patches at regular intervals, and when multiple upgrade patches are added to the patch upgrade platform, the priorities of the multiple upgrade patches are determined, wherein the multiple upgrade patches include a target upgrade patch; and different devices are patched and upgraded according to the priorities of the multiple patches.

[0061] Optionally, the second upgrade module is specifically used for: When adding multiple upgrade patches, the patch upgrade platform queries at least one device that needs to be upgraded through a device upgrade query script, wherein the multiple upgrade patches include a target upgrade patch, and at least one device includes a target device; sends the multiple upgrade patches to the corresponding devices according to the priorities of the multiple upgrade patches or sends the multiple upgrade patches to the corresponding devices at the same time; and performs a patch upgrade on at least one device.

[0062] Please refer to Figure 4 4 is a schematic block diagram of a structure of an apparatus for automatically upgrading device patches provided in an embodiment of the present application. The apparatus may include a memory 410 and a processor 420. Optionally, the apparatus may also include: a communication interface 430 and a communication bus 440. The apparatus is similar to the above Figure 1 The method embodiment corresponds to and can be executed Figure 1 The various steps involved in the method embodiment and the specific functions of the device can be found in the description below.

[0063] Specifically, the memory 410 is used to store computer-readable instructions.

[0064] Processor 420 is used to process the readable instructions stored in the memory and can execute Figure 1 The steps in the method.

[0065] The communication interface 430 is used for signaling or data communication with other node devices, for example, for communication with a server or a terminal, or for communication with other device nodes, but the embodiments of the present application are not limited thereto.

[0066] The communication bus 440 is used to realize direct connection and communication among the above components.

[0067] The communication interface 430 of the device in the embodiment of the present application is used to communicate with other node devices for signaling or data. The memory 410 can be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. The memory 410 can also be at least one storage device located away from the aforementioned processor. The memory 410 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 420, the electronic device executes the aforementioned Figure 1 The method process shown. The processor 420 can be used on the device 300 and used to perform the functions in the present application. Exemplarily, the above-mentioned processor 420 can be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and the embodiments of the present application are not limited thereto.

[0068] The embodiment of the present application also provides a readable storage medium, when the computer program is executed by a processor, Figure 1 The method process in the method embodiment shown is executed by the electronic device.

[0069] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method, and will not be described in detail here.

[0070] In summary, the embodiments of the present application provide a method, apparatus, device and storage medium for automatically upgrading device patches, the method comprising: customizing the patch upgrade platform, wherein the patch upgrade platform stores upgrade patches, device upgrade query scripts and preset private protocols for the multiple devices, the private protocol comprising a protocol method for adding attribute fields; according to the private protocol, regularly querying the newly added patches of the patch upgrade platform, and when the patch upgrade platform adds a new target upgrade patch, upgrading the patch of the target device through the target upgrade patch; or when the patch upgrade platform adds the new target upgrade patch, querying the target device that needs to be upgraded through the device upgrade query script, and sending the target upgrade patch to the target device, so that the target device can perform a patch upgrade according to the target upgrade patch. This method can achieve the effect of an efficient automatic device patch upgrade process.

[0071] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0072] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0073] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0074] The above description is only an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the present application. It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0075] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

[0076] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. A method for automatically upgrading device patches, characterized in that: Applicable to the device upgrade system including the patch upgrade platform and multiple devices, including: Customizing the patch upgrade platform, wherein the patch upgrade platform stores upgrade patches for the multiple devices, device upgrade query scripts, and a preset private protocol, wherein the private protocol includes a protocol method for adding an attribute field; According to the private protocol, regularly query the patch upgrade platform for new patches, and when the patch upgrade platform adds a new target upgrade patch, upgrade the patch of the target device through the target upgrade patch; or When adding the target upgrade patch, the patch upgrade platform queries the target device that needs to be upgraded through the device upgrade query script, and sends the target upgrade patch to the target device, so that the target device performs a patch upgrade according to the target upgrade patch.

2. The method according to claim 1, characterized in that The method of periodically querying the patch upgrade platform for new patches according to the private protocol, and upgrading the patch of the target device through the target upgrade patch when the patch upgrade platform adds a new target upgrade patch, includes: When the target upgrade patch is uploaded to the patch upgrade platform, a preset attribute field is added to the target upgrade patch according to the private protocol; Querying whether there is a patch with the preset attribute field among all patches of the patch upgrade platform; When the target upgrade patch with the preset attribute field exists in all patches of the patch upgrade platform, an upgrade package is downloaded to the target device to upgrade the patch of the target device.

3. The method according to claim 1 or 2, characterized in that: The method of periodically querying the patch upgrade platform for new patches according to the private protocol, and upgrading the patch of the target device through the target upgrade patch when the patch upgrade platform adds a new target upgrade patch, includes: According to the private protocol, periodically query the newly added patches of the patch upgrade platform, and when multiple upgrade patches are newly added to the patch upgrade platform, determine the priorities of the multiple upgrade patches, wherein the multiple upgrade patches include the target upgrade patch; Patches are upgraded for different devices according to the priorities of the multiple patches.

4. The method according to claim 1 or 2, characterized in that: When the target upgrade patch is newly added, the patch upgrade platform queries the target device that needs to be upgraded through the device upgrade query script, and sends the target upgrade patch to the target device, so that the target device performs a patch upgrade according to the target upgrade patch, including: When adding a plurality of upgrade patches, the patch upgrade platform queries at least one device that needs to be upgraded through the device upgrade query script, wherein the plurality of upgrade patches include the target upgrade patch, and the at least one device includes the target device; Sending the multiple upgrade patches to the corresponding devices according to their priorities or sending the multiple upgrade patches to the corresponding devices at the same time; Perform a patch upgrade on the at least one device.

5. A device for automatically upgrading device patches, characterized in that: include: A setting module, used for customizing a patch upgrade platform, wherein the patch upgrade platform stores upgrade patches for multiple devices, device upgrade query scripts, and preset private protocols, wherein the private protocol includes a protocol method for adding attribute fields; A first upgrade module is used to query the patch upgrade platform for new patches at regular intervals according to the private protocol, and when a target upgrade patch is added to the patch upgrade platform, upgrade the patch of the target device through the target upgrade patch; or The second upgrade module is used for the patch upgrade platform to query the target device that needs to be upgraded through the device upgrade query script when the target upgrade patch is newly added, and send the target upgrade patch to the target device, so that the target device can perform patch upgrade according to the target upgrade patch.

6. The device according to claim 5, characterized in that The first upgrade module is specifically used for: When the target upgrade patch is uploaded to the patch upgrade platform, a preset attribute field is added to the target upgrade patch according to the private protocol; Querying whether there is a patch with the preset attribute field among all patches of the patch upgrade platform; When the target upgrade patch with the preset attribute field exists in all patches of the patch upgrade platform, an upgrade package is downloaded to the target device to upgrade the patch of the target device.

7. The device according to claim 5 or 6, characterized in that The first upgrade module is specifically used for: According to the private protocol, periodically query the newly added patches of the patch upgrade platform, and when multiple upgrade patches are newly added to the patch upgrade platform, determine the priorities of the multiple upgrade patches, wherein the multiple upgrade patches include the target upgrade patch; Patches are upgraded for different devices according to the priorities of the multiple patches.

8. The device according to claim 5 or 6, characterized in that The second upgrade module is specifically used for: When adding a plurality of upgrade patches, the patch upgrade platform queries at least one device that needs to be upgraded through the device upgrade query script, wherein the plurality of upgrade patches include the target upgrade patch, and the at least one device includes the target device; Sending the multiple upgrade patches to the corresponding devices according to their priorities or sending the multiple upgrade patches to the corresponding devices at the same time; Perform a patch upgrade on the at least one device.

9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the method according to any one of claims 1 to 4 are executed.

10. A computer-readable storage medium, characterized in that: include: A computer program, when the computer program is run on a computer, causes the computer to execute the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Flexible software-upgrading method

    CN101593118A

  • Code compilation method, device and system

    CN106933643A

  • Batch automatic upgrade method for weblogic cluster patch

    CN107634860A

  • Terminal upgrading method and device, electronic equipment and storage medium

    CN111176706A

  • Method and system for automatically upgrading operating system patch

    CN118963779A