System initialization method and related device based on agent technology

Through the decentralized architecture of agent technology, agent nodes scan and obtain target device information and copy system initialization programs, solving the problems of low universality and low efficiency of system initialization methods in the existing technology, and achieving an efficient and personalized system initialization.

CN114356426BActive Publication Date: 2024-12-03CHINA CONSTRUCTION BANK
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202210008508.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-05
Publication Date
2024-12-03
Estimated Expiration
2042-01-05

AI Technical Summary

Technical Problem

The existing system initialization method is centralized, with low universality and low efficiency, making it difficult to meet the personalized needs of different devices.

Method used

Adopt a decentralized architecture based on agent technology, and obtain target node information through agent node scanning, determine system requirements information based on the pre-established comparison relationship table, and copy the system initialization program to the target device to realize personalized system initialization operations.

Benefits of technology

It improves the universality and efficiency of system initialization, and can perform corresponding system initialization under uncertain equipment model, performance and quantity to meet the personalized needs of different equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114356426B_ABST
    Figure CN114356426B_ABST
Patent Text Reader

Abstract

The present invention discloses a system initialization method and related devices based on agent technology, wherein the node information of multiple target agent nodes in communication connection with the agent node is obtained through agent node scanning, and the node information of each target agent node at least includes a node identifier; according to the node identifier and a pre-established comparison relationship table, the system requirement information of the target agent node is determined; according to the system requirement information, the corresponding system initialization program is copied to the device of the target agent node to perform corresponding system initialization operations on the device of the target agent node. The present invention can use each agent node as a distribution center to distribute the corresponding system initialization program to the devices of other target agent nodes in communication connection with it, which can meet the personalized requirements of different devices for system initialization, and has high universality and high efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a system initialization method based on agent technology and a related device. Background Art

[0002] With the continuous increase of its own operation and maintenance needs and user needs, the system needs to invest a large number of equipment for production and use, which also requires operation and maintenance personnel to initialize the system of a large number of equipment. The current method is a centralized system initialization method, which first imports device information in batches, and then sends different system initialization programs from the server to initialize the device system according to the needs. If there are system requirements with personalized needs, they need to be adapted before being sent for system initialization, which is not universal and inefficient. Summary of the invention

[0003] In view of the above problems, the present invention provides a system initialization method based on agent technology and related devices that overcome the above problems or at least partially solve the above problems.

[0004] In a first aspect, a system initialization method based on agent technology is applied to a system initialization system based on agent technology, the system initialization system based on agent technology comprising: a management and control end and a plurality of agent nodes, wherein at least one agent node among the plurality of agent nodes is directly connected to the management and control end in communication, and the remaining agent nodes are indirectly connected to the management and control end in communication;

[0005] The method comprises:

[0006] Any of the agent nodes executes: acquiring node information of a plurality of target agent nodes in communication connection with the agent node by scanning, wherein the node information of each target agent node at least includes a node identifier, and the node identifier corresponds to the target agent node one by one;

[0007] Determining the system requirement information of the target agent node according to the node identifier and a pre-established comparison relationship table, wherein the comparison relationship table records the correspondence between each of the node identifiers and the corresponding system requirement information;

[0008] According to the system requirement information, a corresponding system initialization program is copied to the device of the target agent node, so as to perform a corresponding system initialization operation on the device of the target agent node.

[0009] In combination with the first aspect, in some optional implementations, after copying the corresponding system initialization program to the device of the target agent node according to the system requirement information to perform the corresponding system initialization operation on the device of the target agent node, the method further includes:

[0010] Initialization information for performing a corresponding system initialization operation on a device of the target agent node is obtained, wherein the initialization information at least includes an initialization result of the system initialization operation and a node identifier, and the initialization result is initialization success or initialization failure.

[0011] In combination with the second embodiment, in some optional embodiments, after obtaining the initialization information for performing a corresponding system initialization operation on the device of the target agent node, the method further includes:

[0012] The initialization information of each target agent node is sent to the control end, so that the control end generates a current topology map of the system according to each initialization information.

[0013] In combination with the second embodiment, in some optional embodiments, after obtaining the initialization information for performing a corresponding system initialization operation on the device of the target agent node, the method further includes:

[0014] If the initialization result of the target agent node is successful initialization, setting the system identifier of the target agent node to an initialization success identifier;

[0015] If the initialization result of the target agent node is initialization failure, the system identifier of the target agent node is set as an initialization failure identifier.

[0016] In conjunction with the first aspect, in some optional implementations, before copying the corresponding system initialization program to the device of the target agent node according to the system requirement information to perform the corresponding system initialization operation on the device of the target agent node, the method further includes:

[0017] Check whether the system identifier of the target agent node is an initialization success identifier;

[0018] If the system identifier of the target agent node is the initialization success identifier, the target agent node is skipped this time, and the corresponding system initialization operation is not performed on the device of the target agent node;

[0019] If the system identifier of the target agent node is not the initialization success identifier, the corresponding system initialization program is copied to the device of the target agent node according to the system requirement information to perform the corresponding system initialization operation on the device of the target agent node.

[0020] In combination with the previous embodiment, in some optional embodiments, before executing the step of copying the corresponding system initialization program to the device of the target agent node according to the system requirement information if the system identifier of the target agent node is not the initialization success identifier, the method further includes:

[0021] Determine whether other agent nodes have started to perform system initialization operations on the target agent node. If so, skip the target agent node this time and do not perform corresponding system initialization operations on the device of the target agent node.

[0022] If not, the corresponding system initialization program is copied to the device of the target agent node according to the system requirement information, so as to perform the corresponding system initialization operation on the device of the target agent node.

[0023] Optionally, in some optional implementations, after sending the initialization information of each target agent node to the control end so that the control end generates a current topology map of the system according to each initialization information, the method further includes:

[0024] According to the pre-established application deployment requirements, corresponding application deployment configuration is performed on the devices corresponding to the agent nodes in the current topology diagram, so as to deploy corresponding applications in the devices corresponding to the agent nodes.

[0025] In combination with the previous implementation, after performing corresponding application deployment configuration on the devices corresponding to the agent nodes in the current topology diagram according to the pre-established application deployment requirements so as to deploy corresponding applications in the devices corresponding to the agent nodes, the method further includes:

[0026] Marking each agent node where a corresponding application is deployed with a corresponding application deployment identifier, and generating application deployment information;

[0027] The application deployment information of each agent node is sent to the management and control end, so that the management and control end writes the application deployment information of each agent node into the current topology map, thereby updating the current topology map.

[0028] In a second aspect, a system initialization system based on agent technology includes: a management and control terminal and multiple agent nodes, wherein at least one agent node among the multiple agent nodes is directly connected to the management and control terminal for communication, and the remaining agent nodes are indirectly connected to the management and control terminal for communication;

[0029] Any of the agent nodes comprises: a scanning unit, a demand information determination unit and a system initialization unit;

[0030] The scanning unit is used to obtain node information of multiple target agent nodes that are communicatively connected to the agent node through scanning, wherein the node information of each target agent node at least includes a node identifier, and the node identifier corresponds to the target agent node one by one;

[0031] The requirement information determination unit is used to determine the system requirement information of the target agent node according to the node identifier and a pre-established comparison relationship table, wherein the comparison relationship table records the correspondence between each of the node identifiers and the corresponding system requirement information;

[0032] The system initialization unit is used to copy the corresponding system initialization program to the device of the target agent node according to the system requirement information, so as to perform the corresponding system initialization operation on the device of the target agent node.

[0033] In a third aspect, a computer-readable storage medium stores a program, wherein when the program is executed by a processor, the system initialization method based on agent technology described in any one of the above items is implemented.

[0034] In a fourth aspect, an electronic device comprises at least one processor, and at least one memory and a bus connected to the processor; wherein the processor and the memory communicate with each other via the bus; and the processor is used to call program instructions in the memory to execute any of the above-mentioned system initialization methods based on agent technology.

[0035] By means of the above technical scheme, the system initialization method and related device based on agent technology provided by the present invention can obtain the node information of multiple target agent nodes that are connected to the agent node through agent node scanning, wherein the node information of each target agent node at least includes a node identifier, and the node identifier corresponds to the target agent node one by one; according to the node identifier and the pre-established comparison relationship table, the system requirement information of the target agent node is determined, wherein the comparison relationship table records the correspondence between each node identifier and the corresponding system requirement information; according to the system requirement information, the corresponding system initialization program is copied to the device of the target agent node to perform the corresponding system initialization operation on the device of the target agent node. It can be seen from this that the present invention can be decentralized, that is, each agent node acts as a distribution center to distribute the corresponding system initialization program to the devices of other target agent nodes that are connected to it in communication, which can meet the personalized needs of different devices for system initialization, and has high universality and high efficiency.

[0036] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0038] Figure 1 A flowchart of a system initialization method based on agent technology provided by the present invention is shown;

[0039] Figure 2 A schematic diagram of the structure of a system initialization system based on agent technology provided by the present invention is shown;

[0040] Figure 3 A structural schematic diagram of an electronic device provided by the present invention is shown. DETAILED DESCRIPTION

[0041] With the increasing needs of the bank's own operation and maintenance and the needs of bank tenants, a large number of devices need to be put into production and put into use, which also requires operation and maintenance personnel to initialize the system of a large number of devices. The solution currently used by the bank data center is centralized operation, that is, a control terminal distributes the operations to be performed to other nodes, and in order to achieve high availability, the master-slave control terminal solution is implemented to ensure that the architecture can operate stably. First, the device information is imported in batches, and then different system initialization programs are sent by the server to initialize the system of the device according to the needs. If there are system requirements with personalized needs, they need to be adapted and then sent for system initialization, which is not universal and inefficient.

[0042] The inventors have found through research that an agent replication algorithm can be used based on a decentralized architecture to perform device discovery and system initialization. That is, instead of the top-level control end centrally distributing all information to all nodes, the control end first randomly selects a few devices for distribution, saves the configuration of the system initialization on the agent node, and then the device that has performed system initialization uses the replication algorithm to discover other nearby devices, and pushes the system initialization configuration to the discovered device, and so on. The present invention meets the personalized needs of different devices for system initialization, and has high universality and efficiency. At the same time, the present invention also achieves the purpose of discovering all devices and performing system initialization. In addition, the advantage of this solution is that the corresponding system initialization can be performed on each device when the model, performance and quantity of the device are uncertain.

[0043] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0044] The present invention provides a system initialization method based on agent technology, which is applied to a system initialization system based on agent technology. The system initialization system based on agent technology includes: a management and control end and multiple agent nodes, wherein at least one agent node among the multiple agent nodes is directly connected to the management and control end for communication, and the remaining agent nodes are indirectly connected to the management and control end for communication;

[0045] Optionally, agent technology and corresponding systems built based on agent technology are well-known technologies in the art. For details, please refer to relevant explanations in the art.

[0046] Optionally, each agent node of the system initialization system of the agent technology may correspond to a different device, such as a computer or a server, and the present invention does not limit this.

[0047] Optionally, the present invention does not limit the connection relationship between multiple agent nodes, which needs to be constructed according to the needs of actual projects, and the present invention does not limit this.

[0048] Optionally, the control end, as a top-level device, can be directly connected to the device of the agent node, or can be connected to the device of the agent node through other devices. That is, in the system initialization system, some agent nodes can be directly connected to the control end, and another part of the agent nodes can be indirectly connected to the control end, which is not limited in the present invention.

[0049] like Figure 1 As shown, the system initialization method based on agent technology includes: S100, S200 and S300;

[0050] S100, any of the agent nodes executes: acquiring node information of a plurality of target agent nodes that are communicatively connected to the agent node by scanning, wherein the node information of each target agent node at least includes a node identifier, and the node identifier corresponds to the target agent node one by one;

[0051] Optionally, as mentioned above, any agent node of the present invention can be used as a temporary distribution center to distribute the corresponding system initialization program to the target agent node connected thereto, so as to perform the corresponding system initialization on the device of the corresponding target agent node. Therefore, for any of the agent nodes, the node information of each target agent node connected thereto can be scanned and obtained, and the present invention does not limit this.

[0052] Optionally, for a specific agent node, the present invention may set an upper limit on the number of target agent nodes scanned each time. For example, the agent node is set to scan and obtain node information of up to 5 target agent nodes each time, and after executing subsequent steps on these 5 target agent nodes, it scans and obtains node information of other target agent nodes. Of course, the present invention may not set an upper limit on the number of scans each time, and the present invention does not limit this.

[0053] Optionally, the target agent node mentioned in the present invention is an agent node in the system initialization system, but the target agent node represents an agent node specifically scanned by a certain agent node, that is, the target agent node is the "system initialization target" of the agent node that scans it, and the present invention does not impose any limitation on this.

[0054] Optionally, the node identifier may represent the uniqueness of the corresponding agent node, because devices of different agent nodes may have different system requirements, that is, different system initialization programs may be sent to different agent nodes, which is not limited in the present invention.

[0055] S200, determining the system requirement information of the target agent node according to the node identifier and a pre-established comparison relationship table, wherein the comparison relationship table records the correspondence between each of the node identifiers and the corresponding system requirement information;

[0056] Optionally, the comparison table may be established in advance according to the system requirements of each agent node. That is, the comparison table may record the system requirement information of each agent node, including system version information and corresponding configuration information, which is not limited in the present invention.

[0057] S300 . Copy a corresponding system initialization program to a device of the target agent node according to the system requirement information, so as to perform a corresponding system initialization operation on the device of the target agent node.

[0058] Optionally, the present invention can copy the system initialization program corresponding to the system requirement information to the device of the corresponding target agent node based on agent technology, so that the system initialization program performs corresponding system initialization on the device of the target agent node, and the present invention does not limit this.

[0059] Optionally, the system initialization program mentioned in the present invention may refer to: some initialization configurations of the operating system for the device with the operating system installed, such as system user configuration, operating system core parameter configuration, disk mounting and distribution of various general scripts.

[0060] Optionally, the present invention does not limit the process of replicating the system initialization program to the device of the agent node based on the agent technology, and any feasible method falls within the protection scope of the present invention.

[0061] Optionally, the present invention can also track the results of the system initialization operation on the devices of each target agent node, so as to collect the status of each target agent node in the system. Figure 1In the embodiment shown, in some optional embodiments, after S300, the method further includes: obtaining initialization information for performing a corresponding system initialization operation on a device of the target agent node, wherein the initialization information includes at least an initialization result of the system initialization operation and a node identifier, and the initialization result is initialization success or initialization failure.

[0062] Optionally, any agent node can periodically obtain the initialization information of the device of each target agent node it scans, so as to report it to the control end. For example, in combination with the second embodiment, in some optional embodiments, after obtaining the initialization information for performing the corresponding system initialization operation on the device of the target agent node, the method further includes:

[0063] The initialization information of each target agent node is sent to the control end, so that the control end generates a current topology map of the system according to each initialization information.

[0064] Optionally, the initialization information may include the initialization result, the node identifier, and the connection relationship between the related node identifiers. By reporting the initialization information of each agent node, the system initialization status of each agent node in the current system and the topological relationship between each agent node can be accurately obtained, and the present invention does not limit this.

[0065] Optionally, in addition to generating a current topology graph to represent the topological relationship between different agent nodes, other methods may be used, which are not limited in the present invention.

[0066] Optionally, in some optional implementations, after sending the initialization information of each target agent node to the control end so that the control end generates a current topology map of the system according to each initialization information, the method further includes:

[0067] According to the pre-established application deployment requirements, corresponding application deployment configuration is performed on the devices corresponding to the agent nodes in the current topology diagram, so as to deploy corresponding applications in the devices corresponding to the agent nodes.

[0068] Optionally, in reality, even the same type of equipment often has different application deployment requirements, and different application deployment requirements require different numbers of equipment. That is, application deployment also requires personalized configuration. Therefore, the management and control end reasonably arranges appropriate agent nodes according to the current topology map, so as to determine whether the lower-level nodes need to be configured for application deployment, what configuration plan to use, and how to arrange the specific number of equipment.

[0069] Optionally, the correspondence between the three items of machine model, application deployment configuration and device quantity may be recorded in a mapping table, and the present invention does not impose any limitation on this.

[0070] In combination with the previous implementation, after performing corresponding application deployment configuration on the devices corresponding to the agent nodes in the current topology diagram according to the pre-established application deployment requirements so as to deploy corresponding applications in the devices corresponding to the agent nodes, the method further includes:

[0071] Marking each agent node where a corresponding application is deployed with a corresponding application deployment identifier, and generating application deployment information;

[0072] The application deployment information of each agent node is sent to the management and control end, so that the management and control end writes the application deployment information of each agent node into the current topology map, thereby updating the current topology map.

[0073] Optionally, the agent node that has completed the application deployment configuration can automatically generate an application deployment identifier and feed back the application deployment information to the upper-level agent node, so that the upper-level agent node can count the application deployment information of each agent node under it and upload it to the management and control end.

[0074] In combination with the second embodiment, in some optional embodiments, after obtaining the initialization information for performing a corresponding system initialization operation on the device of the target agent node, the method further includes:

[0075] If the initialization result of the target agent node is successful initialization, setting the system identifier of the target agent node to an initialization success identifier;

[0076] If the initialization result of the target agent node is initialization failure, the system identifier of the target agent node is set as an initialization failure identifier.

[0077] Optionally, by setting different system identifiers, the system initialization status of the target agent node can be accurately reflected to avoid repeated initialization. Figure 1 In the embodiment shown, in some optional embodiments, before S300, the method further includes: step 1.1, step 1.2 and step 1.3;

[0078] Step 1.1, check whether the system identifier of the target agent node is an initialization success identifier, if so, execute step 1.2, if not, execute step 1.3;

[0079] Step 1.2: skip the target agent node this time, and do not perform corresponding system initialization operations on the device of the target agent node;

[0080] Optionally, if the system identifier of the target agent node is an initialization success identifier, it means that the device of the target agent node has already performed corresponding system initialization and does not need to repeat the system initialization, so the target agent node can be skipped, and the present invention does not limit this.

[0081] Step 1.3: executing the copying of the corresponding system initialization program to the device of the target agent node according to the system requirement information, so as to perform the corresponding system initialization operation on the device of the target agent node.

[0082] Optionally, if the system identifier of the target agent node is not an initialization success identifier, it means that the device of the target agent node has not yet performed corresponding system initialization, so a system initialization operation may be performed on it, which is not limited in the present invention.

[0083] Optionally, for a specific agent node, it may be the "target agent node" of multiple agent nodes at the same time, that is, multiple agent nodes may perform system initialization operations on a "target agent node" at the same time. For example, agent node 1 and agent node 2 are both connected in communication with agent node 3. When agent node 1 and agent node 2 execute the present invention at the same time, agent node 1 and agent node 2 will perform system initialization operations on agent node 3 at the same time. In view of this situation, the present invention can follow the principle of first come first served, that is, the agent node that first performs system initialization operations on the device of the target agent node through the system initialization program is given priority, and other agent nodes will skip the system initialization operations on the target agent node this time. For example, in combination with the previous embodiment, in some optional embodiments, before step 1.3, the method also includes: step 2.1, step 2.2 and step 2.3;

[0084] Step 2.1, determine whether other agent nodes have started to perform system initialization operations on the target agent node, if so, execute step 2.2, if not, execute step 2.3;

[0085] Step 2.2: skip the target agent node this time, and do not perform corresponding system initialization operations on the device of the target agent node;

[0086] Step 2.3: execute the copying of the corresponding system initialization program to the device of the target agent node according to the system requirement information, so as to perform the corresponding system initialization operation on the device of the target agent node.

[0087] Optionally, in practice, the present invention may use the first step of the system initialization operation completed first as a standard to determine which agent node performs the system initialization operation on the device of the target agent node. That is, the agent node that first completes the first step of the system initialization operation continues to perform the system initialization operation on the device of the target agent node, and other agent nodes all skip the target agent node this time, and the present invention does not limit this.

[0088] Optionally, the present invention can also count the continuous cumulative number of times each target agent node fails to perform system initialization operations. If the continuous cumulative number of times a specific target agent node fails to perform system initialization operations is greater than a preset threshold, it means that the target agent node may have other reasons that cause the system initialization operation to fail. Therefore, the system initialization operation of the target agent node can be stopped and reported to the control end so that the control end can notify relevant personnel to handle it. The present invention does not limit this.

[0089] like Figure 2 As shown, the present invention provides a system initialization system based on agent technology, including: a management and control terminal 100 and multiple agent nodes 200, wherein at least one agent node 200 among the multiple agent nodes 200 is directly connected to the management and control terminal 100 for communication, and the remaining agent nodes are indirectly connected to the management and control terminal 100 for communication;

[0090] Any of the agent nodes 200 includes: a scanning unit 210, a demand information determination unit 220 and a system initialization unit 230;

[0091] The scanning unit 210 is used to obtain node information of multiple target agent nodes that are communicatively connected to the agent node 200 by scanning, wherein the node information of each target agent node at least includes a node identifier, and the node identifier corresponds to the target agent node one by one;

[0092] The requirement information determination unit 220 is used to determine the system requirement information of the target agent node according to the node identifier and a pre-established comparison relationship table, wherein the comparison relationship table records the correspondence between each node identifier and the corresponding system requirement information;

[0093] The system initialization unit 230 is used to copy the corresponding system initialization program to the device of the target agent node according to the system requirement information, so as to perform the corresponding system initialization operation on the device of the target agent node.

[0094] Combination Figure 2 In the illustrated embodiment, in some optional embodiments, the agent node 200 further includes: an initialization result obtaining unit;

[0095] The initialization result obtaining unit is used to obtain initialization information for performing a corresponding system initialization operation on the device of the target agent node after copying the corresponding system initialization program to the device of the target agent node according to the system requirement information to perform a corresponding system initialization operation on the device of the target agent node, wherein the initialization information at least includes an initialization result of the system initialization operation and a node identifier, and the initialization result is initialization success or initialization failure.

[0096] In conjunction with the second system implementation, in some optional implementations, the agent node 200 further includes: an information sending unit;

[0097] An information sending unit is used to send the initialization information of each target agent node to the management and control terminal 100 after obtaining the initialization information for performing corresponding system initialization operations on the device of the target agent node, so that the management and control terminal 100 generates a current topology map of the system according to each initialization information.

[0098] In combination with the second embodiment, in some optional embodiments, the agent node 200 further includes: a success flag setting unit and a failure flag setting unit;

[0099] a success flag setting unit, configured to set the system flag of the target agent node as an initialization success flag if the initialization result of the target agent node is that the initialization is successful after the initialization information of performing the corresponding system initialization operation on the device of the target agent node is obtained;

[0100] The failure flag setting unit is used to set the system flag of the target agent node as an initialization failure flag if the initialization result of the target agent node is initialization failure.

[0101] Combination Figure 1 In the illustrated embodiment, in some optional embodiments, the agent node 200 further includes: a marking viewing unit and a skipping unit;

[0102] An identification checking unit, used for checking whether the system identification of the target agent node is an initialization success identification before S300, and if so, triggering the skipping unit, and if not, triggering the system initialization unit 230;

[0103] A skipping unit, used for skipping the target agent node this time, and not performing corresponding system initialization operation on the device of the target agent node;

[0104] The system initialization unit 230 is used to execute the copying of the corresponding system initialization program to the device of the target agent node according to the system requirement information, so as to perform the corresponding system initialization operation on the device of the target agent node.

[0105] In combination with the previous embodiment, in some optional embodiments, the agent node 200 further includes: an initialization operation judgment unit;

[0106] an initialization operation judging unit, used for, before executing the copying of the corresponding system initialization program to the device of the target agent node according to the system requirement information to perform the corresponding system initialization operation on the device of the target agent node, judging whether other agent nodes have already started to perform the system initialization operation on the target agent node, and if so, triggering the skipping unit, and if not, triggering the system initialization unit 230;

[0107] A skipping unit, used for skipping the target agent node this time, and not performing corresponding system initialization operation on the device of the target agent node;

[0108] The system initialization unit 230 is used to execute the copying of the corresponding system initialization program to the device of the target agent node according to the system requirement information, so as to perform the corresponding system initialization operation on the device of the target agent node.

[0109] Optionally, in certain optional implementations, the apparatus further comprises: an application deployment configuration unit;

[0110] An application deployment configuration unit is used to send the initialization information of each target agent node to the control end when the information sending unit executes, so that after the control end generates the current topology map of the system according to each of the initialization information, according to the pre-established application deployment requirements, the device corresponding to each of the agent nodes in the current topology map is configured with corresponding application deployment, so as to deploy the corresponding application in the device corresponding to each of the agent nodes.

[0111] In combination with the previous embodiment, the device further includes: an application deployment information generating unit and a deployment information sending unit;

[0112] an application deployment information generating unit, configured to perform corresponding application deployment configuration on the devices corresponding to the agent nodes in the current topology diagram according to the pre-established application deployment requirements in the application deployment configuration unit, so as to mark the corresponding application deployment identifier on each agent node where the corresponding application is deployed, and generate application deployment information after the corresponding application is deployed in the devices corresponding to the agent nodes;

[0113] The deployment information sending unit is used to send the application deployment information of each agent node to the management and control end, so that the management and control end writes the application deployment information of each agent node into the current topology map, thereby updating the current topology map.

[0114] The present invention provides a computer-readable storage medium having a program stored thereon, wherein the program is executed by a processor to implement any of the above-mentioned system initialization methods based on agent technology.

[0115] like Figure 3 As shown, the present invention provides an electronic device 70, which includes at least one processor 701, and at least one memory 702 and a bus 703 connected to the processor 701; wherein the processor 701 and the memory 702 communicate with each other through the bus 703; the processor 701 is used to call the program instructions in the memory 702 to execute any of the above-mentioned system initialization methods based on agent technology.

[0116] In this application, relational terms such as first and second, etc. are used only 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 "comprise", "include" 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 statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0117] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0118] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

[0119] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A system initialization method based on agent technology, characterized in that: Applied to a system initialization system based on agent technology, the system initialization system based on agent technology comprises: a management and control terminal and multiple agent nodes, wherein at least one agent node among the multiple agent nodes is directly connected to the management and control terminal for communication, and the remaining agent nodes are indirectly connected to the management and control terminal for communication; The method comprises: Any of the agent nodes executes: acquiring node information of a plurality of target agent nodes in communication connection with the agent node by scanning, wherein the node information of each target agent node at least includes a node identifier, and the node identifier corresponds to the target agent node one by one; Determining the system requirement information of the target agent node according to the node identifier and a pre-established comparison relationship table, wherein the comparison relationship table records the correspondence between each of the node identifiers and the corresponding system requirement information; According to the system requirement information, copy the corresponding system initialization program to the device of the target agent node to perform the corresponding system initialization operation on the device of the target agent node, wherein before copying the corresponding system initialization program to the device of the target agent node to perform the corresponding system initialization operation on the device of the target agent node according to the system requirement information, the method further includes: Check whether the system identifier of the target agent node is an initialization success identifier; If the system identifier of the target agent node is the initialization success identifier, the target agent node is skipped this time, and the corresponding system initialization operation is not performed on the device of the target agent node; If the system identifier of the target agent node is not the initialization success identifier, executing the copying of the corresponding system initialization program to the device of the target agent node according to the system requirement information, so as to perform the corresponding system initialization operation on the device of the target agent node; Wherein, before executing the step of copying the corresponding system initialization program to the device of the target agent node according to the system requirement information if the system identifier of the target agent node is not the initialization success identifier, the method further includes: Determine whether other agent nodes have started to perform system initialization operations on the target agent node. If so, skip the target agent node this time and do not perform corresponding system initialization operations on the device of the target agent node. If not, executing the step of copying the corresponding system initialization program to the device of the target agent node according to the system requirement information, so as to perform the corresponding system initialization operation on the device of the target agent node; Among them, the agent node that first performs system initialization operation on the device of the target agent node through the system initialization program has priority, and other agent nodes will skip the system initialization operation on the target agent node this time.

2. The method according to claim 1, characterized in that After copying the corresponding system initialization program to the device of the target agent node according to the system requirement information to perform the corresponding system initialization operation on the device of the target agent node, the method further includes: Initialization information for performing a corresponding system initialization operation on a device of the target agent node is obtained, wherein the initialization information at least includes an initialization result of the system initialization operation and a node identifier, and the initialization result is initialization success or initialization failure.

3. The method according to claim 2, characterized in that After obtaining the initialization information for performing a corresponding system initialization operation on the device of the target agent node, the method further includes: The initialization information of each target agent node is sent to the control end, so that the control end generates a current topology map of the system according to each initialization information.

4. The method according to claim 2, characterized in that: After obtaining the initialization information for performing a corresponding system initialization operation on the device of the target agent node, the method further includes: If the initialization result of the target agent node is successful initialization, setting the system identifier of the target agent node to an initialization success identifier; If the initialization result of the target agent node is initialization failure, the system identifier of the target agent node is set as an initialization failure identifier.

5. The method according to claim 3, characterized in that: After sending the initialization information of each target agent node to the control end so that the control end generates a current topology map of the system according to each initialization information, the method further includes: According to the pre-established application deployment requirements, corresponding application deployment configuration is performed on the devices corresponding to the agent nodes in the current topology diagram, so as to deploy corresponding applications in the devices corresponding to the agent nodes.

6. The method according to claim 5, characterized in that After performing corresponding application deployment configuration on the devices corresponding to the agent nodes in the current topology diagram according to the pre-established application deployment requirements so as to deploy corresponding applications in the devices corresponding to the agent nodes, the method further includes: Marking each agent node where a corresponding application is deployed with a corresponding application deployment identifier, and generating application deployment information; The application deployment information of each agent node is sent to the management and control end, so that the management and control end writes the application deployment information of each agent node into the current topology map, thereby updating the current topology map.

7. A system initialization system based on agent technology, characterized in that: include: A management and control terminal and multiple agent nodes, wherein at least one of the multiple agent nodes is directly connected to the management and control terminal for communication, and the remaining agent nodes are indirectly connected to the management and control terminal for communication; Any of the agent nodes comprises: a scanning unit, a demand information determination unit and a system initialization unit; The scanning unit is used to obtain node information of multiple target agent nodes that are communicatively connected to the agent node through scanning, wherein the node information of each target agent node at least includes a node identifier, and the node identifier corresponds to the target agent node one by one; The requirement information determination unit is used to determine the system requirement information of the target agent node according to the node identifier and a pre-established comparison relationship table, wherein the comparison relationship table records the correspondence between each of the node identifiers and the corresponding system requirement information; The system initialization unit is used to copy the corresponding system initialization program to the device of the target agent node according to the system requirement information, so as to perform the corresponding system initialization operation on the device of the target agent node, wherein before copying the corresponding system initialization program to the device of the target agent node according to the system requirement information, so as to perform the corresponding system initialization operation on the device of the target agent node, it also includes: Check whether the system identifier of the target agent node is an initialization success identifier; If the system identifier of the target agent node is the initialization success identifier, the target agent node is skipped this time, and the corresponding system initialization operation is not performed on the device of the target agent node; If the system identifier of the target agent node is not the initialization success identifier, executing the copying of the corresponding system initialization program to the device of the target agent node according to the system requirement information, so as to perform the corresponding system initialization operation on the device of the target agent node; Wherein, before executing the step of copying the corresponding system initialization program to the device of the target agent node according to the system requirement information if the system identifier of the target agent node is not the initialization success identifier, the step further includes: Determine whether other agent nodes have started to perform system initialization operations on the target agent node. If so, skip the target agent node this time and do not perform corresponding system initialization operations on the device of the target agent node. If not, executing the step of copying the corresponding system initialization program to the device of the target agent node according to the system requirement information, so as to perform the corresponding system initialization operation on the device of the target agent node; Among them, the agent node that first performs system initialization operation on the device of the target agent node through the system initialization program has priority, and other agent nodes will skip the system initialization operation on the target agent node this time.

8. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the system initialization method based on agent technology as described in any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Cluster initial configuration method, cluster initial configuration device, cluster initial configuration system, cluster initial configuration equipment and readable storage medium

    CN108900347A

  • Container application deployment method and device, computer equipment and storage medium

    CN108958927A

  • Data transmission method and device and computer readable storage medium

    CN110535959A

  • Component mounting method and device

    CN110661886A

  • Equipment initialization method, device, electronic equipment and computer storage medium

    CN111443954A