CN114356426A - Agent technology-based system initialization method and related device - Google Patents

Agent technology-based system initialization method and related device Download PDF

Info

Publication number
CN114356426A
CN114356426A CN202210008508.0A CN202210008508A CN114356426A CN 114356426 A CN114356426 A CN 114356426A CN 202210008508 A CN202210008508 A CN 202210008508A CN 114356426 A CN114356426 A CN 114356426A
Authority
CN
China
Prior art keywords
node
agent node
initialization
target agent
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210008508.0A
Other languages
Chinese (zh)
Inventor
陈秋圆
程曦
郑小山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202210008508.0A priority Critical patent/CN114356426A/en
Publication of CN114356426A publication Critical patent/CN114356426A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Abstract

The invention discloses a system initialization method and a related device based on agent technology.A plurality of target agent nodes which are in communication connection with an agent node are scanned and obtained through the agent node, and the node information of each target agent node at least comprises a node identification; determining system demand information of the target agent node according to the node identification and a pre-established comparison relation table; and copying a corresponding system initialization program to the equipment of the target agent node according to the system requirement information so as to perform corresponding system initialization operation on the equipment of the target agent node. The invention can distribute the corresponding system initialization program to the equipment of other target agent nodes which are in communication connection with each agent node by taking each agent node as a distribution center, can meet the individual requirements of different equipment on system initialization, and has higher universality and higher efficiency.

Description

Agent technology-based system initialization method and related device
Technical Field
The invention relates to the field of computers, in particular to a system initialization method based on agent technology and a related device.
Background
With the increasing operation and maintenance needs and user demands, the system needs to invest a large amount of equipment for production and use, and this also makes the operation and maintenance personnel need to initialize a large amount of equipment for the system. The current mode is a centralized system initialization mode, namely equipment information is imported in batch, then different system initialization programs are issued by a server according to requirements to carry out system initialization on the equipment, if the system requirements of individual requirements exist, the equipment needs to be adapted and then issued to carry out system initialization, and the universality is not high and the efficiency is low.
Disclosure of Invention
In view of the above problems, the present invention provides a method and related apparatus for initializing a system based on agent technology, which overcome or at least partially solve the above problems.
In a first aspect, a method for initializing a system based on an agent technology is applied to a system initializing system based on an agent technology, and the system initializing system based on an agent technology includes: the system comprises a control end and a plurality of agent nodes, wherein at least one agent node in the plurality of agent nodes is directly in communication connection with the control end, and the rest agent nodes are indirectly in communication connection with the control end;
the method comprises the following steps:
any agent node executes: acquiring node information of a plurality of target agent nodes in communication connection with the agent nodes through scanning, wherein the node information of each target agent node at least comprises a node identifier, and the node identifiers correspond to the target agent nodes one to one;
determining system requirement information of the target agent node according to the node identification and a pre-established comparison relation table, wherein the comparison relation table records the corresponding relation between each node identification and the corresponding system requirement information;
and copying a corresponding system initialization program to the equipment of the target agent node according to the system requirement information so as to perform corresponding system initialization operation on the equipment of the target agent node.
With reference to the first aspect, in some optional implementations, after the copying, according to the system requirement information, a corresponding system initialization program to the device of the target agent node to perform a corresponding system initialization operation on the device of the target agent node, the method further includes:
and acquiring initialization information for performing corresponding system initialization operation on the device of the target agent node, wherein the initialization information at least comprises an initialization result of the system initialization operation and a node identifier, and the initialization result is initialization success or initialization failure.
With reference to 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:
and sending the initialization information of each target agent node to the control end so that the control end can generate a current topological graph of the system according to each initialization information.
With reference to 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:
if the initialization result of the target agent node is successful, setting the system identifier of the target agent node as an initialization successful identifier;
and if the initialization result of the target agent node is initialization failure, setting the system identifier of the target agent node as an initialization failure identifier.
With reference to the first aspect, in some optional implementations, before the copying, according to the system requirement information, a corresponding system initialization program to the device of the target agent node to perform a corresponding system initialization operation on the device of the target agent node, the method further includes:
checking 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 successful initialization identifier, skipping the target agent node, and not performing corresponding system initialization operation on the device of the target agent node;
and if the system identifier of the target agent node is not the successful initialization identifier, copying a corresponding system initialization program to the equipment of the target agent node according to the system requirement information to perform corresponding system initialization operation on the equipment of the target agent node.
With reference to the previous embodiment, in some optional embodiments, before the executing, if the system identifier of the target agent node is not the initialization success identifier, copying a corresponding system initialization program to the device of the target agent node according to the system requirement information, the method further includes:
judging whether other agent nodes start to perform system initialization operation on the target agent node or not, if so, skipping the target agent node, and not performing corresponding system initialization operation on equipment of the target agent node;
if not, copying a corresponding system initialization program to the equipment of the target agent node according to the system requirement information so as to perform corresponding system initialization operation on the equipment of the target agent node.
Optionally, in some optional embodiments, after the sending the initialization information of each target agent node to the management and control end so that the management and control end generates the current topology map of the system according to each initialization information, the method further includes:
and according to the application deployment requirement established in advance, performing corresponding application deployment configuration on the equipment corresponding to each agent node in the current topological graph so as to deploy corresponding application in the equipment corresponding to each agent node.
With reference to the previous embodiment, after the performing, according to the application deployment requirement established in advance, corresponding application deployment configuration on the device corresponding to each agent node in the current topological graph, so as to deploy a corresponding application in the device corresponding to each agent node, the method further includes:
marking corresponding application deployment identifiers for each agent node with corresponding applications deployed, and generating application deployment information;
and sending 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 topological graph, thereby updating the current topological graph.
In a second aspect, a system initialization system based on agent technology includes: the system comprises a control end and a plurality of agent nodes, wherein at least one agent node in the plurality of agent nodes is directly in communication connection with the control end, and the rest agent nodes are indirectly in communication connection with the control end;
any one of the agent nodes comprises: the system comprises a scanning unit, a demand information determining unit and a system initializing unit;
the scanning unit is used for acquiring node information of a plurality of target agent nodes which are in communication connection with the agent nodes through scanning, wherein the node information of each target agent node at least comprises a node identifier, and the node identifiers correspond to the target agent nodes one to one;
the requirement information determining unit is used for determining the system requirement information of the target agent node according to the node identification and a pre-established comparison relation table, wherein the comparison relation table records the corresponding relation between each node identification and the corresponding system requirement information;
and the system initialization unit is used for copying a corresponding system initialization program to the equipment of the target agent node according to the system requirement information so as to perform corresponding system initialization operation on the equipment of the target agent node.
In a third aspect, a computer-readable storage medium stores a program, which when executed by a processor implements the method for initializing a system based on agent technology according to any of the above-mentioned methods.
In a fourth aspect, an electronic device includes at least one processor, and at least one memory, a bus, connected to the processor; the processor and the memory complete mutual communication through the bus; the processor is configured to call program instructions in the memory to perform any one of the above-mentioned method for initializing a system based on agent technology.
By means of the technical scheme, the method and the related device for initializing the system based on the agent technology can acquire the node information of a plurality of target agent nodes which are in communication connection with the agent nodes through agent node scanning, wherein the node information of each target agent node at least comprises a node identifier, and the node identifiers correspond to the target agent nodes one to one; determining system requirement information of the target agent node according to the node identification and a pre-established comparison relation table, wherein the comparison relation table records the corresponding relation between each node identification and the corresponding system requirement information; and copying a corresponding system initialization program to the equipment of the target agent node according to the system requirement information so as to perform corresponding system initialization operation on the equipment of the target agent node. Therefore, the invention can be decentralized, namely, each agent node is used as a distribution center to distribute the corresponding system initialization program to the devices of other target agent nodes in communication connection with the agent node, so that the individual requirements of different devices on system initialization can be met, and the invention has high universality and high efficiency.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of a method for initializing a system based on agent technology according to the present invention;
FIG. 2 is a schematic structural diagram of a system initialization system based on agent technology according to the present invention;
fig. 3 shows a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
With the increasing operation and maintenance needs of banks and the increasing demands of bank tenants, a large amount of equipment needs to be invested for production and use, and operation and maintenance personnel need to perform system initialization on a large amount of equipment. The currently used scheme of the bank data center is centralized operation, that is, one management and control end distributes operations to be performed to other nodes, and in order to achieve high availability, the scheme of the main and standby management and control ends is implemented to ensure that the architecture can stably operate. Firstly, equipment information is imported in batch, and then different system initialization programs are issued by a server according to requirements to carry out system initialization on the equipment. If the system requirement with personalized requirement exists, the system needs to be adapted and then issued for system initialization, and the universality is not high and the efficiency is low.
The inventor researches and discovers that device discovery and system initialization can be carried out by adopting an agent copy algorithm based on a decentralized architecture. That is, instead of distributing all information to all nodes in a centralized manner by the top management and control end, the management and control end randomly selects several devices to distribute, stores the configuration of system initialization on the agent node, and then discovers other nearby devices by the devices with system initialization through a replication algorithm, and pushes the configuration of system initialization to the discovered devices, and so on. The invention meets the individual requirements of different devices on system initialization, and has higher universality and higher efficiency. Meanwhile, the invention also achieves the purpose of discovering all the devices and carrying out system initialization, and the scheme has the advantage of carrying out corresponding system initialization on each device under the condition that the model, the performance and the quantity of the devices are uncertain.
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The invention provides a system initialization method based on agent technology, which is applied to a system initialization system based on agent technology, and the system initialization system based on agent technology comprises the following steps: the system comprises a control end and a plurality of agent nodes, wherein at least one agent node in the plurality of agent nodes is directly in communication connection with the control end, and the rest agent nodes are indirectly in communication connection with the control end;
alternatively, agent technology and construction of corresponding systems based on agent technology belong to the known technologies in the art, and refer to the related explanations in the art.
Optionally, each agent node of the system initialization system of the agent technology may correspond to different devices, for example, a computer or a server, which is not limited in the present invention.
Optionally, the present invention does not limit the connection relationship between multiple agent nodes, and the connection relationship needs to be specifically constructed according to the needs of the actual engineering, which is not limited by the present invention.
Optionally, the management and control end is used as a top-level device, and may be directly in communication connection with the device of the agent node, or may be connected to the device of the agent node through other devices. That is, in the system initialization system, some agent nodes may be directly in communication connection with the management and control end, and another agent nodes may be indirectly in communication connection with the management and control end, which is not limited in the present invention.
As shown in fig. 1, the method for initializing a system based on agent technology includes: s100, S200 and S300;
s100, executing by any agent node: acquiring node information of a plurality of target agent nodes in communication connection with the agent nodes through scanning, wherein the node information of each target agent node at least comprises a node identifier, and the node identifiers correspond to the target agent nodes one to one;
optionally, as described above, any agent node of the present invention may be used as a temporary distribution center to distribute a corresponding system initialization program to a target agent node connected thereto, so as to perform corresponding system initialization to a device of the corresponding target agent node. Therefore, any agent node can scan and acquire the node information of each target agent node connected to the agent node, which is not limited in the present invention.
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 acquire the node information of at most 5 target agent nodes each time, and after the subsequent steps are executed on the 5 target agent nodes, the node information of other target agent nodes is scanned and acquired. Of course, the present invention may not set the upper limit of the number of scans, and the present invention is not limited thereto.
Optionally, the target agent node in the present invention is an agent node in a 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 a "system initialization target" of the agent node that scans the target agent node, which is not limited in this respect.
Optionally, the node identifier may represent the uniqueness of the corresponding agent node, since devices of different agent nodes may have different system requirements. That is, different system initialization programs can be sent to different agent nodes, which is not limited by the present invention.
S200, determining system demand information of the target agent node according to the node identification and a pre-established comparison relation table, wherein the comparison relation table records the corresponding relation between each node identification and the corresponding system demand information;
optionally, the comparison relationship table may be established in advance according to the system requirements of each agent node. That is, the system requirement information of each agent node, including the system version information and the corresponding configuration information, may be recorded in the comparison relationship table, which is not limited in the present invention.
S300, copying a corresponding system initialization program to the equipment of the target agent node according to the system requirement information so as to perform corresponding system initialization operation on the equipment of the target agent node.
Optionally, the present invention may copy the system initialization program corresponding to the system requirement information to the corresponding device of the target agent node based on the agent technology, so that the system initialization program performs corresponding system initialization to the device of the target agent node, which is not limited in this respect.
Optionally, the system initialization procedure in the present invention may refer to: aiming at the equipment provided with the operating system, the operating system is subjected to some initialization configuration, such as system user configuration, operating system core parameter configuration, disk mounting, various universal script issuing and the like.
Optionally, the process of copying the system initialization program to the device of the agent node based on the agent technology is not limited, and any feasible mode belongs to the protection scope of the invention.
Optionally, the method and the device can also track the result of the system initialization operation performed on the device of each target agent node, so as to collect the condition of each target agent node in the system. For example, in connection with the embodiment shown in fig. 1, in some alternative embodiments, after S300, the method further includes: and acquiring initialization information for performing corresponding system initialization operation on the device of the target agent node, wherein the initialization information at least comprises an initialization result of the system initialization operation and a node identifier, and the initialization result is initialization success or initialization failure.
Optionally, any agent node may periodically obtain initialization information of the device of each scanned target agent node, so as to report the initialization information to the management and control end. For example, in combination with the second embodiment, in some optional embodiments, after the obtaining initialization information of the corresponding system initialization operation performed on the device of the target agent node, the method further includes:
and sending the initialization information of each target agent node to the control end so that the control end can generate a current topological graph of the system according to each initialization information.
Optionally, the initialization information may include the initialization result, the node identifier, and the connection relationship between the relevant node identifiers. The system initialization condition of each agent node in the current system and the topological relation among the agent nodes can be accurately obtained through the initialization information reported by each agent node, and the invention is not limited to this.
Optionally, other ways may be adopted besides generating the current topological graph to represent the topological relation between different agent nodes, which is not limited in the present invention.
Optionally, in some optional embodiments, after the sending the initialization information of each target agent node to the management and control end so that the management and control end generates the current topology map of the system according to each initialization information, the method further includes:
and according to the application deployment requirement established in advance, performing corresponding application deployment configuration on the equipment corresponding to each agent node in the current topological graph so as to deploy corresponding application in the equipment corresponding to each agent node.
Optionally, in a real-world situation, even devices of the same model are often provided with different application deployment requirements, and the number of devices required by the different application deployment requirements is also different. Namely, personalized configuration is also needed for application deployment, so that the management and control end reasonably arranges appropriate agent nodes according to the current topological graph, and therefore, whether application deployment configuration is needed for lower-layer nodes, what configuration scheme is needed, and how to arrange the specific equipment quantity is needed.
Optionally, the correspondence between the three items of the model, the application deployment configuration, and the number of the devices may be recorded by using a mapping table, which is not limited in the present invention.
With reference to the previous embodiment, after the performing, according to the application deployment requirement established in advance, corresponding application deployment configuration on the device corresponding to each agent node in the current topological graph, so as to deploy a corresponding application in the device corresponding to each agent node, the method further includes:
marking corresponding application deployment identifiers for each agent node with corresponding applications deployed, and generating application deployment information;
and sending 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 topological graph, thereby updating the current topological graph.
Optionally, the agent node configured by the application deployment configuration may automatically generate the application deployment identifier, and feed back the application deployment information to the upper agent node, so that the upper agent node counts the application deployment information of each agent node on the lower layer and uploads the application deployment information to the management and control end.
With reference to 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:
if the initialization result of the target agent node is successful, setting the system identifier of the target agent node as an initialization successful identifier;
and if the initialization result of the target agent node is initialization failure, setting the system identifier of the target agent node as an initialization failure identifier.
Optionally, different system identifiers are set, so that the system initialization condition of the target agent node is accurately embodied, and the occurrence of repeated initialization is avoided. For example, in connection with the embodiment shown in fig. 1, in some alternative embodiments, before S300, the method further includes: step 1.1, step 1.2 and step 1.3;
step 1.1, checking whether the system identifier of the target agent node is an initialization success identifier, if so, executing step 1.2, and if not, executing step 1.3;
step 1.2, skipping the target agent node, and not performing corresponding system initialization operation on the device of the target agent node;
optionally, if the system identifier of the target agent node is the initialization success identifier, it indicates that the device of the target agent node has performed corresponding system initialization, and system initialization is not required to be performed repeatedly, so that the target agent node may be skipped over, which is not limited by the present invention.
And step 1.3, copying a corresponding system initialization program to the equipment of the target agent node according to the system requirement information so as to perform corresponding system initialization operation on the equipment of the target agent node.
Optionally, if the system identifier of the target agent node is not the successful initialization identifier, it indicates that the device of the target agent node has not performed corresponding system initialization, so that the device can perform system initialization operation, which is not limited by the present invention.
Optionally, for a specific agent node, the specific agent node may be a "target agent node" of multiple agent nodes at the same time, that is, multiple agent nodes may perform system initialization operation on one "target agent node" at the same time. For example, both agent node 1 and agent node 2 are communicatively connected to agent node 3, and when the present invention is executed by agent node 1 and agent node 2 at the same time, the system initialization operation is performed on agent node 3 by agent node 1 and agent node 2 at the same time. For the situation, the invention can follow the principle of coming before coming, that is, the agent node which firstly performs the system initialization operation on the device of the target agent node through the system initialization program has priority, and other agent nodes skip the system initialization operation on the target agent node at this time. For example, in combination with the previous embodiment, in certain alternative embodiments, before step 1.3, the method further comprises: step 2.1, step 2.2 and step 2.3;
step 2.1, judging whether other agent nodes start to perform system initialization operation on the target agent node or not, if so, executing step 2.2, and if not, executing step 2.3;
step 2.2, skipping the target agent node, and not performing corresponding system initialization operation on the device of the target agent node;
and 2.3, copying a corresponding system initialization program to the equipment of the target agent node according to the system requirement information so as to perform corresponding system initialization operation on the equipment of the target agent node.
Optionally, in practice, the present invention may use the first step of completing the system initialization operation 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 completes the first step of the system initialization operation first continues to perform the system initialization operation on the device of the target agent node, and other agent nodes jump over the target agent node all the time, which is not limited by the present invention.
Optionally, the present invention may also count the continuous accumulated times of system initialization operation failure of each target agent node. If the number of times that a certain target agent node fails to perform the system initialization operation is greater than the preset threshold, it indicates that the target agent node may have other reasons to fail to perform the system initialization operation. Therefore, the system initialization operation of the target agent node can be stopped, and the target agent node is reported to the control end, so that the control end can inform relevant personnel to process the target agent node conveniently.
As shown in fig. 2, the present invention provides a system initialization system based on agent technology, which includes: the management and control system comprises a management and control terminal 100 and a plurality of agent nodes 200, wherein at least one agent node 200 in the plurality of agent nodes 200 is directly in communication connection with the management and control terminal 100, and the rest agent nodes are indirectly in communication connection with the management and control terminal 100;
any agent node 200 includes: a scanning unit 210, a requirement information determination unit 220, and a system initialization unit 230;
the scanning unit 210 is configured to acquire node information of a plurality of target agent nodes communicatively connected to the agent node 200 through scanning, where the node information of each target agent node at least includes a node identifier, and the node identifiers are in one-to-one correspondence with the target agent nodes;
the requirement information determining unit 220 is configured to determine system requirement information of the target agent node according to the node identifier and a pre-established comparison relationship table, where the comparison relationship table records a corresponding relationship between each node identifier and corresponding system requirement information;
the system initialization unit 230 is configured to copy a corresponding system initialization program to the 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.
In some optional embodiments, in combination with the embodiment shown in fig. 2, the agent node 200 further includes: an initialization result obtaining unit;
the initialization result obtaining unit is configured to copy, according to the system requirement information, a corresponding system initialization program to the device of the target agent node to perform a corresponding system initialization operation on the device of the target agent node, and then obtain initialization information for performing the corresponding system initialization operation on the device of the target agent node, where the initialization information at least includes an initialization result of the system initialization operation and a node identifier, and the initialization result is an initialization success or an initialization failure.
In some optional embodiments, in combination with the second system embodiment, the agent node 200 further includes: an information transmitting unit;
and an information sending unit, configured to send the initialization information of each target agent node to the control end 100 after obtaining the initialization information for performing corresponding system initialization operation on the device of the target agent node, so that the control end 100 generates a current topological graph of the system according to each initialization information.
With reference to the second embodiment, in some optional embodiments, the agent node 200 further includes: a success flag setting unit and a failure flag setting unit;
a successful identifier setting unit, configured to, after obtaining the initialization information for performing corresponding system initialization operation on the device of the target agent node, set the system identifier of the target agent node as an initialization successful identifier if the initialization result of the target agent node is initialization success;
and the failure identifier setting unit is used for setting the system identifier of the target agent node as an initialization failure identifier if the initialization result of the target agent node is initialization failure.
In some optional embodiments, in combination with the embodiment shown in fig. 1, the agent node 200 further includes: identifying a view unit and a skip unit;
an identifier checking unit, configured to check, before S300, whether the system identifier of the target agent node is an initialization success identifier, if yes, trigger a skipping unit, and if not, trigger the system initialization unit 230;
the skipping unit is used for skipping the target agent node at this time without performing corresponding system initialization operation on the equipment of the target agent node;
the system initialization unit 230 is configured to copy a corresponding system initialization program to the 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.
In some optional embodiments, in combination with the previous embodiment, the agent node 200 further includes: an initialization operation judgment unit;
an initialization operation determining unit, configured to determine whether there are other agent nodes that have already started performing a system initialization operation on the target agent node before executing the system initialization program that copies 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, if yes, trigger the skipping unit, and if not, trigger the system initialization unit 230;
the skipping unit is used for skipping the target agent node at this time without performing corresponding system initialization operation on the equipment of the target agent node;
the system initialization unit 230 is configured to copy a corresponding system initialization program to the 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.
Optionally, in some optional embodiments, the apparatus further comprises: an application deployment configuration unit;
and the application deployment configuration unit is used for sending the initialization information of each target agent node to the control end after the information sending unit executes the initialization information so that the control end can generate a current topological graph of the system according to each initialization information, and then performing corresponding application deployment configuration on equipment corresponding to each agent node in the current topological graph according to a pre-established application deployment requirement so as to deploy corresponding application in the equipment corresponding to each agent node.
In combination with the above embodiment, the apparatus further comprises: the system comprises an application deployment information generating unit and a deployment information sending unit;
an application deployment information generating unit, configured to perform, according to a pre-established application deployment requirement, corresponding application deployment configuration on the device corresponding to each agent node in the current topological graph in the application deployment configuration unit, so as to mark, after deploying a corresponding application in the device corresponding to each agent node, a corresponding application deployment identifier for each agent node where the corresponding application is deployed, and generate application deployment information;
and the deployment information sending unit is used for sending the application deployment information of each agent node to the control end so that the control end writes the application deployment information of each agent node into the current topological graph, and the current topological graph is updated.
The invention provides a computer readable storage medium, which stores a program, wherein the program is executed by a processor to perform any one of the above-mentioned method for initializing a system based on agent technology.
As shown in fig. 3, the present invention provides an electronic device 70, wherein the electronic device 70 includes at least one processor 701, at least one memory 702 connected to the processor 701, and a bus 703; the processor 701 and the memory 702 complete communication with each other through the bus 703; the processor 701 is configured to call the program instructions in the memory 702 to execute any of the above-described method for initializing a system based on agent technology.
In this application, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A system initialization method based on agent technology is characterized in that the method is applied to a system initialization system based on agent technology, and the system initialization system based on agent technology comprises the following steps: the system comprises a control end and a plurality of agent nodes, wherein at least one agent node in the plurality of agent nodes is directly in communication connection with the control end, and the rest agent nodes are indirectly in communication connection with the control end;
the method comprises the following steps:
any agent node executes: acquiring node information of a plurality of target agent nodes in communication connection with the agent nodes through scanning, wherein the node information of each target agent node at least comprises a node identifier, and the node identifiers correspond to the target agent nodes one to one;
determining system requirement information of the target agent node according to the node identification and a pre-established comparison relation table, wherein the comparison relation table records the corresponding relation between each node identification and the corresponding system requirement information;
and copying a corresponding system initialization program to the equipment of the target agent node according to the system requirement information so as to perform corresponding system initialization operation on the equipment of the target agent node.
2. The method of claim 1, wherein after the copying a 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, the method further comprises:
and acquiring initialization information for performing corresponding system initialization operation on the device of the target agent node, wherein the initialization information at least comprises 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 of claim 2, wherein after obtaining initialization information for performing corresponding system initialization operations on the device of the target agent node, the method further comprises:
and sending the initialization information of each target agent node to the control end so that the control end can generate a current topological graph of the system according to each initialization information.
4. The method of claim 2, wherein after obtaining initialization information for performing corresponding system initialization operations on the device of the target agent node, the method further comprises:
if the initialization result of the target agent node is successful, setting the system identifier of the target agent node as an initialization successful identifier;
and if the initialization result of the target agent node is initialization failure, setting the system identifier of the target agent node as an initialization failure identifier.
5. The method of claim 1, wherein before the 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 comprises:
checking 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 successful initialization identifier, skipping the target agent node, and not performing corresponding system initialization operation on the device of the target agent node;
and if the system identifier of the target agent node is not the successful initialization identifier, copying a corresponding system initialization program to the equipment of the target agent node according to the system requirement information to perform corresponding system initialization operation on the equipment of the target agent node.
6. The method according to claim 5, wherein before the executing the 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 comprises:
judging whether other agent nodes start to perform system initialization operation on the target agent node or not, if so, skipping the target agent node, and not performing corresponding system initialization operation on equipment of the target agent node;
if not, copying a corresponding system initialization program to the equipment of the target agent node according to the system requirement information so as to perform corresponding system initialization operation on the equipment of the target agent node.
7. The method according to claim 3, wherein after the sending the initialization information of each target agent node to the management and control end so that the management and control end generates a current topology map of the system according to each initialization information, the method further comprises:
and according to the application deployment requirement established in advance, performing corresponding application deployment configuration on the equipment corresponding to each agent node in the current topological graph so as to deploy corresponding application in the equipment corresponding to each agent node.
8. The method according to claim 7, wherein after performing corresponding application deployment configuration on the device corresponding to each agent node in the current topology map according to the pre-established application deployment requirement, so as to deploy a corresponding application in the device corresponding to each agent node, the method further comprises:
marking corresponding application deployment identifiers for each agent node with corresponding applications deployed, and generating application deployment information;
and sending 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 topological graph, thereby updating the current topological graph.
9. A system initialization system based on agent technology, comprising: the system comprises a control end and a plurality of agent nodes, wherein at least one agent node in the plurality of agent nodes is directly in communication connection with the control end, and the rest agent nodes are indirectly in communication connection with the control end;
any one of the agent nodes comprises: the system comprises a scanning unit, a demand information determining unit and a system initializing unit;
the scanning unit is used for acquiring node information of a plurality of target agent nodes which are in communication connection with the agent nodes through scanning, wherein the node information of each target agent node at least comprises a node identifier, and the node identifiers correspond to the target agent nodes one to one;
the requirement information determining unit is used for determining the system requirement information of the target agent node according to the node identification and a pre-established comparison relation table, wherein the comparison relation table records the corresponding relation between each node identification and the corresponding system requirement information;
and the system initialization unit is used for copying a corresponding system initialization program to the equipment of the target agent node according to the system requirement information so as to perform corresponding system initialization operation on the equipment of the target agent node.
10. A computer-readable storage medium on which a program is stored, the program implementing the agent technology-based system initialization method according to any one of claims 1 to 8 when executed by a processor.
CN202210008508.0A 2022-01-05 2022-01-05 Agent technology-based system initialization method and related device Pending CN114356426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210008508.0A CN114356426A (en) 2022-01-05 2022-01-05 Agent technology-based system initialization method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210008508.0A CN114356426A (en) 2022-01-05 2022-01-05 Agent technology-based system initialization method and related device

Publications (1)

Publication Number Publication Date
CN114356426A true CN114356426A (en) 2022-04-15

Family

ID=81106827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210008508.0A Pending CN114356426A (en) 2022-01-05 2022-01-05 Agent technology-based system initialization method and related device

Country Status (1)

Country Link
CN (1) CN114356426A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1976289A (en) * 2006-12-22 2007-06-06 中国建设银行股份有限公司 Program arranging method and system based on distributing network
CN108900347A (en) * 2018-07-09 2018-11-27 郑州云海信息技术有限公司 Cluster initiated configuration method, device, system, equipment and readable storage medium storing program for executing
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
US20190121631A1 (en) * 2017-10-19 2019-04-25 Vmware, Inc. Deployment of applications to managed devices
CN110535959A (en) * 2019-08-30 2019-12-03 北京云中融信网络科技有限公司 A kind of method, apparatus and computer readable storage medium for transmitting data
CN110661886A (en) * 2019-10-25 2020-01-07 新华三大数据技术有限公司 Component mounting method and device
CN111443954A (en) * 2020-03-31 2020-07-24 广东美的制冷设备有限公司 Device initialization method and device, electronic device and computer storage medium
CN113535262A (en) * 2021-07-07 2021-10-22 曙光信息产业(北京)有限公司 Method, device, equipment and storage medium for controlling starting of proxy node

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1976289A (en) * 2006-12-22 2007-06-06 中国建设银行股份有限公司 Program arranging method and system based on distributing network
US20190121631A1 (en) * 2017-10-19 2019-04-25 Vmware, Inc. Deployment of applications to managed devices
CN108958927A (en) * 2018-05-31 2018-12-07 康键信息技术(深圳)有限公司 Dispositions method, device, computer equipment and the storage medium of container application
CN108900347A (en) * 2018-07-09 2018-11-27 郑州云海信息技术有限公司 Cluster initiated configuration method, device, system, equipment and readable storage medium storing program for executing
CN110535959A (en) * 2019-08-30 2019-12-03 北京云中融信网络科技有限公司 A kind of method, apparatus and computer readable storage medium for transmitting data
CN110661886A (en) * 2019-10-25 2020-01-07 新华三大数据技术有限公司 Component mounting method and device
CN111443954A (en) * 2020-03-31 2020-07-24 广东美的制冷设备有限公司 Device initialization method and device, electronic device and computer storage medium
CN113535262A (en) * 2021-07-07 2021-10-22 曙光信息产业(北京)有限公司 Method, device, equipment and storage medium for controlling starting of proxy node

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈首斌;曹健;李明禄;: "基于Agent的分布式软件部署系统框架的研究", 计算机应用与软件, no. 03, 15 March 2011 (2011-03-15), pages 7 - 10 *

Similar Documents

Publication Publication Date Title
CN110401662B (en) Industrial control equipment fingerprint identification method and storage medium
CN104679611B (en) Data resource clone method and device
CN109861861B (en) Rapid configuration method and system for network communication equipment
CN110069210B (en) Storage system, and method and device for allocating storage resources
CN102413156A (en) Distributed data storage system and method
CN105592162A (en) Uploading method and system based on multi-type files
CN113835844A (en) Management method and device of container cluster and cloud computing platform
CN110932914A (en) Deployment method, deployment device, hybrid cloud system architecture and computer storage medium
CN114356557A (en) Cluster capacity expansion method and device
CN110737670A (en) cluster data consistency guarantee method, device and system
CN110012076B (en) Connection establishing method and device
CN108509296B (en) Method and system for processing equipment fault
CN114356426A (en) Agent technology-based system initialization method and related device
CN107105037B (en) Distributed video CDN resource management system and method based on file verification
CN113794581A (en) Distributed CP unified deployment method, network equipment and storage medium
CN113612632A (en) Topology identification method and device applied to gateway equipment, gateway equipment and medium
CN111506388B (en) Container performance detection method, container management platform and computer storage medium
JP2012022426A (en) Snmp agent device and setting undoing method
US20120054157A1 (en) Database apparatus, database consistency system, and database consistency method
CN107547622B (en) Resource adjusting method and device
CN110691012A (en) Message processing method and tester
CN113032188B (en) Method, device, server and storage medium for determining main server
CN110868340B (en) Testing method and device, reconfigurable tester and controller
CN115835370A (en) Network distribution method, device, equipment and medium for intelligent equipment
CN107493181B (en) Indication method and device of virtual expansion port

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination