Batch equipment management method and system, electronic equipment and storage medium
By hashing calculation and classification of devices in the device cluster, a family is formed, and the problem of low efficiency in batch equipment management in the existing technology is solved, and efficient management and simplified state version management are achieved.
Patent Information
- Application Number
- CN202510185944.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-19
- Publication Date
- 2025-06-27
AI Technical Summary
The prior art is inefficient in managing batch equipment, making it difficult to achieve efficient management.
By hashing the attribute set of each device in the device cluster, the first hash calculation result of each device is obtained, and the devices are classified based on these results to form multiple families, and the devices in each family are then managed.
Through the classification and family management of devices, repeated complex queries and operations are reduced, efficient management of batch devices is achieved, and state version management and synchronization are simplified.
Smart Images

Figure CN120216602A_ABST
Abstract
Description
Background Art
[0002] Currently, when managing a batch of devices, by querying the database and performing calculations to obtain the required status of each device and then managing them, there is a problem of low efficiency, and it is difficult to achieve efficient management of a batch of devices. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a method, system, electronic device and storage medium for managing a batch of devices in view of the deficiencies of the prior art, specifically as follows:
[0004] 1) In the first aspect, the present invention provides a method for managing a batch of devices, and the specific technical solution is as follows:
[0005] Perform a hash calculation on the attribute set of each device in the device cluster to obtain the first hash calculation result of each device;
[0006] Classify all devices in the device cluster according to all the first hash calculation results to obtain multiple families;
[0007] Manage the devices in each family.
[0008] The beneficial effects of the method for managing a batch of devices provided by the present invention are as follows:
[0009] Classify all devices to obtain multiple families. Through the abstract families, repeated complex queries and calculations are eliminated, and efficient management of a batch of devices can be achieved.
[0010] On the basis of the above solution, the method for managing a batch of devices of the present invention can also be improved as follows.
[0011] Further, it further includes:
[0012] Perform a hash calculation on the content of each family respectively to obtain the second hash processing result of each family;
[0013] Take the second hash processing result of each family as the version number of the corresponding family.
[0014] The beneficial effect of adopting the above further solution is that it can simplify status version management and synchronization.
[0015] Further, it further includes:
[0016] Judge whether the current version number of the preset device is the same as the version number of the family where the preset device is located to obtain the first judgment result;
[0017] Judge whether the running state of the preset device meets the expectation to obtain the second judgment result;
[0018] Determine whether to manage a preset device according to the first judgment result and the second judgment result, where the preset device is any device.
[0019] Furthermore, determining whether to manage a preset device according to the first judgment result and the second judgment result includes:
[0020] When the first judgment result is no and the second judgment result is yes, determine to manage the preset device;
[0021] When the first judgment result is yes and the second judgment result is yes, determine not to manage the preset device.
[0022] 2) In a second aspect, the present invention also provides a batch device management system, and the specific technical solution is as follows:
[0023] It includes a hash calculation module, a classification module, and a device management module;
[0024] The hash calculation module is used to: perform hash calculation on the attribute set of each device in the device cluster to obtain the first hash calculation result of each device;
[0025] The classification module is used to: classify all devices in the device cluster according to all the first hash calculation results to obtain multiple classes;
[0026] The device management module is used to: manage the devices in each class.
[0027] Based on the above solution, a batch device management system of the present invention can also be improved as follows.
[0028] Furthermore, it further includes a version number setting module;
[0029] The hash calculation module is further used to: perform hash calculation on the content of each class respectively to obtain the second hash processing result of each class;
[0030] The version number setting module is used to: use the second hash processing result of each class as the version number of the corresponding class.
[0031] Furthermore, it further includes a judgment module and a management determination module;
[0032] The judgment module is used to: judge whether the current version number of the preset device is the same as the version number of the class where the preset device is located to obtain the first judgment result; and judge whether the running state of the preset device meets the expectation to obtain the second judgment result;
[0033] The management determination module is used to: determine whether to manage the preset device according to the first judgment result and the second judgment result, where the preset device is any device.
[0034] Further, the management determination module is specifically configured to:
[0035] When the first judgment result is negative and the second judgment result is positive, determine to manage the preset device;
[0036] When the first judgment result is positive and the second judgment result is positive, determine not to manage the preset device.
[0037] 3) Thirdly, the present invention further provides an electronic device, which includes a processor. The processor is coupled to a memory, and at least one computer program is stored in the memory. The at least one computer program is loaded and executed by the processor so that the electronic device implements any one of the above-mentioned batch device management methods.
[0038] 4) Fourthly, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements any one of the above-mentioned batch device management methods.
[0039] It should be noted that for the beneficial effects obtained by the technical solutions of the second to fourth aspects of the present invention and the corresponding possible implementation manners, reference may be made to the technical effects of the first aspect and its corresponding possible implementation manners described above, which will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for describing the embodiments of the present invention:
[0041] Figure 1 It is a flowchart of a batch device management method according to an embodiment of the present invention;
[0042] Figure 2 It is a structural diagram of a batch device management system according to an embodiment of the present invention;
[0043] Figure 3 It is a structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0044] The principles and features of the present invention are described below. The examples given are only used to explain the present invention and are not intended to limit the scope of the present invention.
[0045] The technical solutions of the present invention and how the technical solutions of the present invention solve the above technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other. For the same or similar concepts or processes, they may not be repeated in some embodiments. The embodiments of the present invention will be described below with reference to the drawings.
[0046] AsFigure 1 As shown in Figure 1 , a method for batch device management according to an embodiment of the present invention includes the following steps:
[0047] S1. Perform a hash calculation on the attribute set of each device in the device cluster to obtain the first hash calculation result of each device;
[0048] Among them, the device cluster can be a router cluster, a computer cluster, a smartphone cluster, a drone cluster, etc., and the device can be a router, a computer, a smartphone, a drone, etc. When the device is a router, multiple attributes in the attribute set of the router include: ROM model, ROM version, gray level, and the belonging group, etc.; when the device is a computer, multiple attributes in the attribute set of the computer include ROM model, ROM version, gray level, and the belonging group, etc.; when the device is a smartphone, multiple attributes in the attribute set of the smartphone include: ROM model, ROM version, gray level, and the belonging group, etc. It should be noted that according to the different devices, the corresponding attributes will also be different, and the device and the corresponding attribute set can be set according to the actual situation.
[0049] Among them, the first hash calculation result of each device is obtained through the following method. Specifically:
[0050] 1) The first hash calculation method:
[0051] ① Arrange multiple attributes in the attribute set of each device in the same order to obtain the data combination corresponding to each device. Among them, the order can be set according to the actual situation. For example, the order can be: ROM model, ROM version, gray level, and the belonging group.
[0052] ② According to the requirements of the hash function, preprocess the data combination corresponding to each device, such as padding, grouping, etc., and group each preprocessed data combination according to the grouping length of the hash function (the grouping length can be 512 bits and can be set according to the actual situation), and fill the insufficient part with 0.
[0053] ③ Perform operations on the data in each group corresponding to each device according to the corresponding operation sequence. The operation sequence corresponding to each group includes: cyclic shift, AND, OR, NOT and other bit operations arranged in order. The sorting order of the bit operations in the operation sequence corresponding to each group can be set according to the actual situation.
[0054] ④ According to the grouping order of the data combination corresponding to any device, merge all the operation results corresponding to the device, and use the hash function to calculate the merged operation result corresponding to the device to obtain the first hash calculation result corresponding to the device, until the first hash calculation result corresponding to each device is calculated.
[0055] 2) The second hash calculation method:
[0056] ① Sort multiple attributes in the attribute set of each device in the same order to obtain the data combination corresponding to each device. Select and use all the attributes in the attribute set of any device as the standard attributes. That is to say, use the data combination corresponding to this device as the standard data combination. Among them, the order can be set according to the actual situation. For example, the order can be: ROM model, ROM version, grayscale level, and the affiliated group.
[0057] ② Calculate the similarity between each non-standard data combination and the standard data combination, where the non-standard data combination refers to: a data combination that is not the standard data combination.
[0058] ③ Use the hash function to calculate the hash calculation result of each data combination. Take the product of the Nth power of the similarity value corresponding to each data combination and the corresponding hash calculation result as the input of the hash function. Use the hash function again to calculate the hash calculation result corresponding to each data combination. Take the hash calculation result calculated again for each device as the corresponding first hash calculation result.
[0059] Among them, N is a positive integer and N≥2.
[0060] Currently, although the hash function is designed to minimize the possibility of collisions, in the case of a limited hash value space, it is still possible for different input data to produce the same hash calculation result. In the present invention, taking the product of the Nth power of the similarity value corresponding to each data combination and the corresponding hash calculation result as the input of the hash function, and using the hash function again to calculate the first hash calculation result of each device can effectively amplify the difference degree between different data combinations, and through "the Nth power value of the similarity", the difference degree between different data combinations can be further amplified, thereby ensuring the accuracy of classifying into multiple families.
[0061] Optionally, in the above technical solution, the present invention proposes the following method to reduce the hash collision probability. Specifically:
[0062] 1) The first method:
[0063] Before calculating using the hash function, randomly generate a string (salt value) and add this salt value to the data to be hashed (the data to be hashed is: the data combination corresponding to each device, the merged operation result corresponding to each device, and the product of the Nth power of the similarity value corresponding to each data combination and the corresponding hash calculation result). In this way, even if the data to be hashed is the same, due to the different salt values, the final hash calculation results will be different. Ensure that each data to be hashed uses a different salt value, which can greatly reduce the probability of collisions.
[0064] 2) The second method:
[0065] Use two hash functions. The first hash function determines the initial position, and the second hash function is used to calculate the new index position when a collision occurs. This method can reduce the collisions that may occur with a single hash function.
[0066] 3) The third method:
[0067] Divide the data to be hashed into multiple segments, and continue to perform a hash operation on the hash calculation result of each segment, using the hash calculation result of the previous segment as the input for the next segment. This method can improve the collision resistance of the hash function.
[0068] 4) The fourth method:
[0069] Control the load factor of the hash table, that is, the ratio of the filled slots in the hash table to the total number of slots. By adjusting the load factor, the collision rate can be reduced while ensuring performance. When the filling degree of the hash table reaches a certain level, perform dynamic expansion to increase the number of slots in the hash table, thereby reducing the probability of collisions.
[0070] Optionally, in the above technical solution, it further includes: determining the hash function through a selection strategy of the hash function, and the selection strategy of the hash function is as follows:
[0071] ① Define the hash function as h(k) = k mod m (the hash function can specifically be other hash functions such as folding hash, mid-square hash, etc.). Here, k represents the input data, and m should be selected as a prime number and not too close to powers of 2 or 10 to avoid conflicts caused by a certain distribution pattern of the low bits of the key values. mod represents the calculation process between k and m.
[0072] ② Let m = 2 r , then define the hash function as: h(k) = k mod m = (A × k mod 2 w )>>(w - r), where A is an odd number within the range of (2 w-1 , 2 w ), and r and w are both intermediate variables.
[0073] The advantage of the multiplication hashing method is that the hash value is actually related to each bit of the k value, so it can distribute the hash calculation results more evenly.
[0074] ③ Evaluate the performance of the hash function through experiments or simulations, including the distribution of hash values, the probability of collisions, etc. Different input data sets can be used to test the stability and uniformity of the hash function.
[0075] ④Adjust the parameters of the hash function (such as the value of m and the value of A, etc.) according to the evaluation results to optimize the performance of the hash function. Specifically:
[0076] a. Statistically analyze the distribution of hash values, check whether there are obvious aggregation or sparse regions, and calculate the collision rate of hash values, that is, the proportion of different inputs generating the same hash value.
[0077] b. Use a hash table for lookup operations, record the average time complexity of successful and failed lookups, and analyze the relationship between lookup efficiency and hash value distribution.
[0078] c. If the collision rate is high, it indicates that there is non-uniformity in the hash function when mapping input data to the hash value space. Adjust the parameters of the hash function to reduce the collision rate and improve the lookup efficiency of the hash table.
[0079] If the hash value distribution is non-uniform, it may cause the hash table to be overly crowded in some areas and relatively sparse in other areas. Optimize the hash value distribution by adjusting the parameters of the hash function to make it more uniform.
[0080] d. For a specific hash function, such as the divisor m in the division hashing method, the multipliers A, r, and w in the multiplication hashing method, etc., make fine-tuning according to the evaluation results.
[0081] Test the impact of different parameter combinations on the performance of the hash function through experiments and simulations, and select the optimal parameter combination.
[0082] e. If the performance of the adjusted hash function still does not meet the expected goal, continue the iterative optimization process. According to the new evaluation results, further adjust the parameters or design of the hash function.
[0083] S2. Classify all devices in the device cluster according to all the first hash calculation results to obtain multiple families.
[0084] Among them, devices with the same first hash calculation result are classified into one family. That is to say, all the attributes in the datasets of devices with the same first hash calculation result are the same. After being classified into the same family, it is convenient for batch processing.
[0085] S3. Manage the devices in each family.
[0086] Optionally, in the above technical solution, it further includes:
[0087] S4. Perform hash calculation on the content of each family respectively to obtain the second hash processing result of each family;
[0088] Among them, the content of the family refers to the abstract generalization of the management operations that the devices within the family should perform. For example, when the device is a router, the content of the first family includes: completing the software upgrade of the router and completing the configuration according to the configuration information of the router; the content of the second family includes: completing the configuration according to the configuration information of the router and not completing the software upgrade of the router; the content of the third family includes: completing the software upgrade of the router and not completing the configuration according to the configuration information of the router; the content of the fourth family includes: not completing the software upgrade of the router and not completing the configuration according to the configuration information of the router.
[0089] For the convenience of calculation, the content of each family is quantified. For example, "completing the software upgrade of the router" is quantified as 1, "not completing the software upgrade of the router" is quantified as 0, "completing the configuration according to the configuration information of the router" is quantified as 1, and "not completing the configuration according to the configuration information of the router" is quantified as 0. Each family's content can also be quantified into corresponding one-hot encodings to facilitate hash calculation.
[0090] Among them, the hash calculation process in S4 can refer to the first hash calculation method and the second hash calculation method, or a conventional hash calculation method can also be used.
[0091] S5. Use the second hash processing result of each family as the version number of the corresponding family.
[0092] The version number of any family is set to determine whether each device in the family has completed the operation. Currently, the conventional method is a numerical version, but this version requires additional maintenance, and the meaning of the value is not idempotent, not a fixed version, and is not convenient for indirect and efficient management. In the present invention, using the second hash processing result calculated based on the content of the family as the version number can greatly reduce the maintenance complexity of the version number.
[0093] Optionally, in the above technical solution, it further includes:
[0094] S6. Determine whether the current version number of the preset device is the same as the version number of the family where the preset device is located to obtain a first judgment result; and determine whether the operating state of the preset device meets the expectation to obtain a second judgment result.
[0095] Among them, the following is an explanation of the current version number of the preset device:
[0096] When it is determined that the preset device has completed the content of the family where it is located, use the version number of the family where it is located as the version number of the preset device. When the version number of the family where the preset device is located changes, that is, after re-determining the version number of the family where the preset device is located, the version number of the preset device has not changed. At this time, it is considered that the current version number of the preset device is different from the version number of the family where the preset device is located, that is, the first judgment result is negative.
[0097] In another embodiment, associated data of a preset device is obtained. The associated data refers to data related to the content of the category to which the preset device belongs. Then, based on the associated data of the preset device and using the hashing calculation method in S4, a hashing calculation result is obtained, and this hashing calculation result is used as the current version number of the preset device.
[0098] S7. Determine whether to manage the preset device according to the first judgment result and the second judgment result. The preset device is any device.
[0099] Optionally, in the above technical solution, determining whether to manage the preset device according to the first judgment result and the second judgment result includes:
[0100] 1) When the first judgment result is no and the second judgment result is yes, determine to manage the preset device. Specifically, manage the preset device according to the content of the category to which the preset device belongs.
[0101] 2) When the first judgment result is no and the second judgment result is no, manage the preset device. Specifically, manage the preset device according to the content of the category to which the preset device belongs, and according to the difference between the operating state of the preset device and the expectation, manage the preset device to make the operating state of the preset device meet the expectation.
[0102] 3) When the first judgment result is yes and the second judgment result is yes, determine not to manage the preset device.
[0103] 4) When the first judgment result is yes and the second judgment result is no, determine to manage the preset device. Specifically, according to the difference between the operating state of the preset device and the expectation, manage the preset device to make the operating state of the preset device meet the expectation.
[0104] Optionally, batch collect the current operating states of each device in each category and send them to the cloud, so that the cloud can perform operation and maintenance management, troubleshooting, and facilitate the user to know the management progress.
[0105] In the above embodiments, although the steps are numbered S1, S2, etc., these are only specific embodiments given by the present invention. Those skilled in the art can adjust the execution order of S1, S2, etc. according to the actual situation, and this is also within the protection scope of the present invention. It can be understood that in some embodiments, it may include some or all of the above embodiments.
[0106] As Figure 2 shown, a batch device management system 200 according to an embodiment of the present invention includes a hashing calculation module 201, a classification module 202, and a device management module 203;
[0107] The hash calculation module 201 is configured to: perform hash calculation on the attribute sets of each device in the device cluster to obtain a first hash calculation result for each device;
[0108] The classification module 202 is configured to: classify all devices in the device cluster according to all the first hash calculation results to obtain multiple families;
[0109] The device management module 203 is configured to: manage the devices in each family.
[0110] Optionally, in the above technical solution, a version number setting module is further included;
[0111] The hash calculation module 201 is further configured to: perform hash calculation on the content of each family respectively to obtain a second hash processing result for each family;
[0112] The version number setting module is configured to: use the second hash processing result of each family as the version number of the corresponding family.
[0113] Optionally, in the above technical solution, a judgment module and a management determination module are further included;
[0114] The judgment module is configured to: judge whether the current version number of a preset device is the same as the version number of the family where the preset device is located to obtain a first judgment result; and judge whether the running state of the preset device meets the expectation to obtain a second judgment result;
[0115] The management determination module is configured to: determine whether to manage the preset device according to the first judgment result and the second judgment result, and the preset device is any device.
[0116] Optionally, in the above technical solution, the management determination module is specifically configured to:
[0117] When the first judgment result is no, and when the second judgment result is yes, determine to manage the preset device;
[0118] When the first judgment result is yes, and when the second judgment result is yes, determine not to manage the preset device.
[0119] It should be noted that the beneficial effects of the batch device management system 200 provided in the above embodiments are the same as those of the above batch device management method, and will not be elaborated here. In addition, when the system provided in the above embodiments realizes its functions, only the division of the above function modules is used for illustration. In practical applications, the above functions can be allocated to different function modules according to needs, that is, the system can be divided into different function modules according to the actual situation to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be seen in the method embodiments, which will not be elaborated here.
[0120] Among them, the batch device management system of the present invention can be a computer program (including program code) running in a computer device. For example, the batch device management system of the present invention is an application software and can be used to execute the corresponding steps in the batch device management method of the present invention.
[0121] In some embodiments, the batch device management system of the present invention can be implemented in a combination of software and hardware. As an example, the batch device management system of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the batch device management method of the present invention. For example, the processor in the form of a hardware decoding processor can adopt one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs) or other electronic components.
[0122] Among them, the modules involved in the embodiments of the present invention can be implemented by software or by hardware. Among them, the name of the module does not constitute a limitation to the module itself in some cases.
[0123] An electronic device according to an embodiment of the present invention includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, it implements any one of the above batch device management methods. That is to say, an electronic device according to an embodiment of the present invention may include, but is not limited to: a processor and a memory; the memory is used to store the computer program; the processor is used to execute the batch device management method shown in any embodiment of the present invention by calling the computer program.
[0124] In an alternative embodiment, an electronic device is provided, such as Figure 3 shown Figure 3 The electronic device 4000 shown in Figure 3 includes: a processor 4001 and a memory 4003. Among them, the processor 4001 and the memory 4003 are connected, such as connected through a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, and the transceiver 4004 may be used for data interaction between the electronic device and other electronic devices, such as data sending and / or data receiving, etc. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation to the embodiments of the present invention.
[0125] The processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute various exemplary logic blocks, modules, and circuits described in combination with the disclosure of the present invention. The processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0126] The bus 4002 may include a path for transmitting information between the above components. The bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. The bus 4002 may be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 3 only a thick line is used to represent the bus 4002 in Figure 3 , but it does not mean that there is only one bus or one type of bus.
[0127] The memory 4003 can be a ROM (Read Only Memory), or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory), or other types of dynamic storage devices that can store information and instructions. It can also be an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory), or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0128] The memory 4003 is used to store the application program code (computer program) for executing the solution of the present invention and is controlled by the processor 4001 for execution. The processor 4001 is used to execute the application program code stored in the memory 4003 to implement the content shown in the foregoing method embodiments.
[0129] Among them, the electronic device can also be a terminal device, and the terminal device can be any device that can install applications, including at least one of a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, a smart TV, and a smart vehicle device.
[0130] It should be noted that Figure 3 the shown electronic device is only an example and should not bring any limitations to the functions and usage scopes of the embodiments of the present invention.
[0131] A computer-readable storage medium according to an embodiment of the present invention has a computer program stored thereon, and when the computer program is executed by a processor, the above-mentioned batch device management method is implemented.
[0132] Optionally, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device, etc.
[0133] In an exemplary embodiment, a computer program product or a computer program is further provided. The computer program product or the computer program includes computer instructions that are stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the electronic device executes any one of the above batch device management methods.
[0134] Computer program code for performing the operations of the present invention may be written in one or more programming languages or combinations thereof. The above programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, executed as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).
[0135] It should be understood that the flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, and the combination of blocks in the block diagram and / or flowchart, may be implemented by a dedicated hardware-based system that performs the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.
[0136] The computer-readable storage medium provided by the embodiments of the present invention may be, but is not limited to, a system, device or component of electricity, magnetism, light, electromagnetic, infrared ray, or semiconductor, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EEPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, device or component.
[0137] The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed by the electronic device, the electronic device is caused to execute the method shown in the above embodiments.
[0138] The above description is only a preferred embodiment of the present invention and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of disclosure involved in the present invention is not limited to the technical solution formed by the specific combination of the above technical features, and should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. For example, a technical solution formed by mutually replacing the above features with technical features having similar functions (but not limited to) disclosed in the present invention.
[0139] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and represent a limitation on a specific order or sequence. In appropriate cases, the order of use of similar objects may be interchanged so that the embodiments of the present application described herein can be implemented in an order other than the order shown or described.
[0140] Those skilled in the art know that the present invention can be implemented as a system, method or computer program product. Therefore, the present invention can be specifically implemented in the following forms: it can be completely hardware, can also be completely software (including firmware, resident software, microcode, etc.), and can also be in the form of a combination of hardware and software, generally referred to as "circuit", "module" or "system" in this article. In addition, in some embodiments, the present invention can also be implemented in the form of a computer program product in one or more computer-readable media, and the computer-readable media contains computer-readable program code.
[0141] Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those of ordinary skill in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of the present invention.
Claims
1. A batch equipment management method, characterized in that: include: Performing hash calculation on the attribute set of each device in the device cluster to obtain a first hash calculation result of each device; Classifying all devices in the device cluster according to all first hash calculation results to obtain multiple categories; Manage the devices in each family.
2. A batch equipment management method according to claim 1, characterized in that: Also includes: Perform hash calculation on the content of each family respectively to obtain a second hash processing result of each family; The second hash processing result of each family is used as the version number of the corresponding family.
3. A batch equipment management method according to claim 2, characterized in that: Also includes: Determine whether the current version number of the preset device is the same as the version number of the family to which the preset device belongs, and obtain a first determination result; Determine whether the operating state of the preset device meets expectations, and obtain a second determination result; According to the first judgment result and the second judgment result, it is determined whether to manage the preset device, where the preset device is any device.
4. A batch equipment management method according to claim 3, characterized in that: Determining whether to manage the preset device according to the first judgment result and the second judgment result includes: When the first judgment result is no, and when the second judgment result is yes, determining to manage the preset device; When the first judgment result is yes, and when the second judgment result is yes, it is determined not to manage the preset device.
5. A batch equipment management system, characterized in that: It includes hash calculation module, classification module and device management module; The hash calculation module is used to: perform hash calculation on the attribute set of each device in the device cluster to obtain a first hash calculation result of each device; The classification module is used to: classify all devices in the device cluster according to all first hash calculation results to obtain multiple categories; The device management module is used to manage the devices in each family.
6. A batch equipment management system according to claim 5, characterized in that: It also includes a version number setting module; The hash calculation module is further used to: perform hash calculation on the content of each category to obtain a second hash processing result of each category; The version number setting module is used to use the second hash processing result of each family as the version number of the corresponding family.
7. A batch equipment management system according to claim 6, characterized in that: It also includes a judgment module and a management determination module; The judgment module is used to: judge whether the current version number of the preset device is the same as the version number of the family to which the preset device belongs, to obtain a first judgment result; and judge whether the operating state of the preset device meets expectations, to obtain a second judgment result; The management determination module is used to determine whether to manage the preset device according to the first judgment result and the second judgment result, and the preset device is any device.
8. A batch equipment management system according to claim 7, characterized in that: The management determination module is specifically used for: When the first judgment result is no, and when the second judgment result is yes, determining to manage the preset device; When the first judgment result is yes, and when the second judgment result is yes, it is determined not to manage the preset device.
9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements a batch equipment management method as claimed in any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the batch device management method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Web page classification storage system and method
CN102902784A
Firmware upgrade method and device of Zigbee equipment
CN107104836A
File analysis method and device, computer equipment and storage medium
CN117910455A
Method and System for Managing Devices in Batches
US20140115131A1
Method and device for upgrading firmware of zigbee devices
WO2018202177A1