[go: up one dir, main page]

CN114356426B - System initialization method and related device based on agent technology - Google Patents

System initialization method and related device based on agent technology Download PDF

Info

Publication number
CN114356426B
CN114356426B CN202210008508.0A CN202210008508A CN114356426B CN 114356426 B CN114356426 B CN 114356426B CN 202210008508 A CN202210008508 A CN 202210008508A CN 114356426 B CN114356426 B CN 114356426B
Authority
CN
China
Prior art keywords
agent node
target agent
node
initialization
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.)
Active
Application number
CN202210008508.0A
Other languages
Chinese (zh)
Other versions
CN114356426A (en
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/CN114356426B/en
Publication of CN114356426A publication Critical patent/CN114356426A/en
Application granted granted Critical
Publication of CN114356426B publication Critical patent/CN114356426B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Hardware Redundancy (AREA)
  • Computer And Data Communications (AREA)

Abstract

本发明公开基于agent技术的系统初始化方法及相关装置,通过agent节点扫描获取与agent节点通信连接的多个目标agent节点的节点信息,每个目标agent节点的节点信息至少包括节点标识;根据节点标识和预先建立的对照关系表,确定目标agent节点的系统需求信息;根据系统需求信息,复制相应的系统初始化程序至目标agent节点的设备,以对目标agent节点的设备进行相应的系统初始化操作。本发明可以以各个agent节点均作为分发中心,向与其通信连接的其它目标agent节点的设备分发相应的系统初始化程序,可以满足不同设备对于系统初始化的个性化需求,普适性较高且效率较高。

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.

Description

System initialization method and related device based on agent technology
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for initializing a system based on agent technology.
Background
With the increasing operation and maintenance requirements and the increasing demands of users, the system needs to be put into production and use with a large number of devices, and this also makes it necessary for operation and maintenance personnel to perform system initialization on a large number of devices. The existing method is a centralized system initialization method, equipment information is firstly imported in batches, then different system initialization programs are issued by a server according to requirements to initialize the system of the equipment, if the system requirements of personalized requirements exist, the system needs to be adapted and then issued to initialize the system, and the universality is low and the efficiency is low.
Disclosure of Invention
In view of the foregoing, the present invention provides a method for initializing a system based on agent technology and related device, which overcome or at least partially solve the foregoing problems.
In a first aspect, a system initialization method based on agent technology is applied to a system initialization system based on agent technology, where the system initialization system based on agent technology includes a management and control end and a plurality of agent nodes, at least one of the plurality of agent nodes is directly connected with the management and control end in a communication manner, and the remaining agent nodes are indirectly connected with the management and control end in a communication manner;
The method comprises the following steps:
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 node identifiers, and the node identifiers are in one-to-one correspondence with the target agent nodes;
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 corresponding system demand information;
And copying a corresponding system initialization program to the equipment of the target agent node according to the system demand 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 embodiments, after copying the 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, the method further includes:
and obtaining initialization information for performing corresponding system initialization operation on the equipment of the target agent node, wherein the initialization information at least comprises an initialization result and a node identifier of the system initialization operation, and the initialization result is successful or failed in initialization.
With reference to 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:
And sending the initialization information of each target agent node to the management and control end so that the management and 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 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 that the initialization is successful, setting the system identifier of the target agent node as an initialization success identifier;
If the initialization result of the target agent node is that the initialization fails, setting the system identifier of the target agent node as an initialization failure identifier.
With reference to the first aspect, in some optional embodiments, 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 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 initializing success identifier;
If the system identifier of the target agent node is the successful initializing identifier, skipping the target agent node this time, and not performing corresponding system initializing operation on the equipment of the target agent node;
If the system identifier of the target agent node is not the successful initializing identifier, executing the system initializing program according to the system requirement information, and copying the corresponding system initializing program to the equipment of the target agent node so as to perform corresponding system initializing operation on the equipment of the target agent node.
In combination with the above embodiment, in some optional embodiments, before the step of 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 includes:
Judging whether other agent nodes start to perform system initialization operation on the target agent node, if so, skipping the target agent node this time, and not performing corresponding system initialization operation on equipment of the target agent node;
If not, executing the system demand information, and copying the corresponding system initialization program to the equipment of the target agent node 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 carrying out corresponding application deployment configuration on the equipment corresponding to each agent node in the current topological graph according to the pre-established application deployment requirements so as to deploy corresponding application in the equipment corresponding to each agent node.
In combination with the above embodiment, after performing corresponding application deployment configuration on the device corresponding to each agent node in the current topological graph 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 includes:
Marking corresponding application deployment identifiers for the agent nodes where the corresponding applications are 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.
The system initialization system based on the agent technology comprises a management and control end and a plurality of agent nodes, wherein at least one of the agent nodes is directly connected with the management and control end in a communication way, and the rest agent nodes are indirectly connected with the management and control end in a communication way;
any agent node 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 in communication connection with the agent nodes through scanning, wherein the node information of each target agent node at least comprises node identifiers, and the node identifiers are in one-to-one correspondence with the target agent nodes;
The demand information determining unit is configured to determine system demand information of the target agent node according to the node identifier and a pre-established comparison relation table, where the comparison relation table records a corresponding relation between each node identifier and corresponding system demand information;
The system initialization unit 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 a third aspect, a computer-readable storage medium has stored thereon a program that, when executed by a processor, implements the agent technology-based system initialization method of any one of the above.
The fourth aspect of the electronic device comprises at least one processor, at least one memory and a bus, wherein the at least one memory and the bus are connected with the processor, the processor and the memory are used for completing communication with each other through the bus, and the processor is used for calling program instructions in the memory to execute the agent technology-based system initialization method.
According to the technical scheme, the system initialization method and the related device based on the agent technology can obtain node information of a plurality of target agent nodes in communication connection with the agent nodes through agent node scanning, wherein the node information of each target agent node at least comprises node identifications, the node identifications are in one-to-one correspondence with the target agent nodes, system demand information of the target agent nodes is determined according to the node identifications and a pre-established comparison relation table, the comparison relation table records corresponding relations between the node identifications and corresponding system demand information, and corresponding system initialization programs are copied to equipment of the target agent nodes according to the system demand information so as to perform corresponding system initialization operation on the equipment of the target agent nodes. Therefore, the invention can be used for decentralizing, namely, each agent node is used as a distribution center, and corresponding system initialization programs are distributed to the devices of other target agent nodes in communication connection with the agent nodes, so that the personalized requirements of different devices on system initialization can be met, and the universality and the efficiency are higher.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
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 designate like parts throughout the figures. In the drawings:
FIG. 1 shows a flow chart of a system initialization method based on agent technology provided by the invention;
FIG. 2 is a schematic 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 invention.
Detailed Description
With the increasing operation and maintenance requirements of banks and demands of bank tenants, a large amount of equipment needs to be put into production and put into use, and this also causes operation and maintenance personnel to need to perform system initialization on a large amount of equipment. The scheme currently used in the bank data center is centralized operation, that is, one management and control end distributes the operation to be performed to other nodes, and in order to achieve high availability, the scheme of implementing the main and standby management and control ends ensures that the architecture can stably operate. Firstly, equipment information is imported in batches, and then different system initialization programs are issued by a server according to requirements to initialize the equipment. If the system requirements of individuation requirements exist, the system needs to be distributed for system initialization after adaptation, and the universality is not high and the efficiency is low.
The inventor researches and discovers that the discovery of the device and the system initialization thereof can be performed by adopting a agent replication algorithm based on the decentralization architecture. That is, instead of the centralized distribution of all information to all nodes by the top management and control end, several devices are selected at random by the management and control end to distribute, the configuration of system initialization is saved on the agent node, then the device which has performed system initialization discovers other nearby devices by using a replication algorithm, and pushes the configuration of system initialization to the discovered device, and so on. The invention meets the personalized requirements of different devices on system initialization, and has higher universality and higher efficiency. Meanwhile, the invention also achieves the aim of discovering all the devices and initializing the system, and the scheme has the advantage that corresponding system initialization can be carried out 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 a reagent technology, which is applied to a system initialization system based on the reagent technology, wherein the system initialization system based on the reagent technology comprises a management and control end and a plurality of reagent nodes, wherein at least one reagent node in the plurality of reagent nodes is directly connected with the management and control end in a communication way, and the rest reagent nodes are indirectly connected with the management and control end in a communication way;
Alternatively, the agent technology and constructing the corresponding system based on the agent technology belong to the technology known in the art, and refer to the relevant explanation in the art specifically.
Alternatively, each agent node of the system initialization system of the agent technology may correspond to a different device, for example, may be a computer or a server, which is not limited in the present invention.
Optionally, the connection relation among the plurality of agent nodes is not limited, and the connection relation is specifically required to be constructed according to the actual engineering requirement, and the connection relation is not limited by the invention.
Optionally, the management and control end is used as a top-level device, and can be directly connected with the device of the agent node in a communication way, or can be connected with the device of the agent node through other devices. That is, in the system initialization system, a part of agent nodes may be directly connected to the management end in a communication manner, and another part of agent nodes may be indirectly connected to the management end in a communication manner.
As shown in FIG. 1, the agent technology-based system initialization method includes S100, S200 and S300;
s100, any agent node performs the steps of acquiring node information of a plurality of target agent nodes in communication connection with the agent node through scanning, wherein the node information of each target agent node at least comprises node identifications, and the node identifications are in one-to-one correspondence with the target agent nodes;
Optionally, as mentioned above, any agent node of the present invention may serve as a temporary distribution center, and distribute a corresponding system initialization program to a target agent node connected to the temporary distribution center, so as to perform corresponding system initialization to a device of the corresponding target agent node. Therefore, for any of the agent nodes, the node information of each target agent node connected with the agent node can be obtained by scanning, which is not limited by the present invention.
Alternatively, for a specific agent node, the present invention may set the upper limit of the number of target agent nodes that it scans each time. For example, the agent node is set to scan and acquire 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 upper limit of the number of each scan is not set in the present invention, 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 is characterized by an agent node that is specifically scanned by a certain agent node, that is, the target agent node is a "system initialization target" of the agent node that scans it, which is not limited in this invention.
Alternatively, the node identification may characterize the uniqueness of the corresponding agent node, as devices of different agent nodes may have different system requirements. I.e., different system initialization procedures may be sent to different agent nodes, which the present invention is not limited to.
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 corresponding system demand information;
alternatively, the lookup 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 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 demand information so as to perform corresponding system initialization operation on the equipment of the target agent node.
Optionally, the method and the device can copy the system initialization program corresponding to the system demand information to the device of the corresponding 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 the invention.
Optionally, the system initialization program of the present invention may refer to some initialization configurations performed on the operating system of the device in which the operating system is installed, such as system user configuration, operating system core parameter configuration, disk mounting, and issuing various universal scripts.
Optionally, the present invention does not limit the process of copying the system initialization program to the device of the agent node based on the agent technology, and any feasible manner falls within the protection scope of the present invention.
Optionally, the method and the device can also track the result of the system initialization operation on the equipment of each target agent node so as to collect the situation of each target agent node in the system. For example, in combination with the embodiment shown in fig. 1, 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, where the initialization information includes at least an initialization result of the system initialization operation and a node identifier, and the initialization result is that the initialization is successful or the initialization fails.
Optionally, any agent node may periodically obtain the initialization information of the scanned devices of each 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 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 management and control end so that the management and control end can generate a current topological graph of the system according to each initialization information.
Alternatively, 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 the system initialization condition.
Alternatively, instead of generating a current topology graph to represent the topological relationship between different agent nodes, other manners may be adopted, which the present invention does not limit.
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 carrying out corresponding application deployment configuration on the equipment corresponding to each agent node in the current topological graph according to the pre-established application deployment requirements so as to deploy corresponding application in the equipment corresponding to each agent node.
Alternatively, in reality, even devices of the same model are often put forth different application deployment demands, and the number of devices required by the different application deployment demands is also different. That is, personalized configuration is also required for application deployment, so that the management and control end reasonably arranges appropriate agent nodes according to the current topological graph, thereby judging whether application deployment configuration, what configuration scheme is required to be performed for the lower-layer nodes, and how to arrange specific equipment quantity.
Alternatively, the correspondence between the model, the application deployment configuration and the number of devices may be recorded by using a mapping table, which is not limited in the present invention.
In combination with the above embodiment, after performing corresponding application deployment configuration on the device corresponding to each agent node in the current topological graph 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 includes:
Marking corresponding application deployment identifiers for the agent nodes where the corresponding applications are 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 with the configured application deployment may automatically generate an application deployment identifier, and feed back application deployment information to the upper agent node, so that the upper agent node counts application deployment information of each agent node below the upper agent node 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 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 that the initialization is successful, setting the system identifier of the target agent node as an initialization success identifier;
If the initialization result of the target agent node is that the initialization fails, setting the system identifier of the target agent node as an initialization failure identifier.
Optionally, by setting different system identifiers, the system initialization condition of the target agent node is accurately reflected, and the condition of repeated initialization is avoided. For example, in conjunction with the embodiment shown in FIG. 1, in certain alternative embodiments, prior to the step S300, the method further comprises steps 1.1, 1.2, and 1.3;
Step 1.1, checking whether the system identifier of the target agent node is an initializing success identifier, if so, executing step 1.2, and if not, executing step 1.3;
step 1.2, skipping the target agent node this time, and not performing corresponding system initialization operation on the equipment of the target agent node;
optionally, if the system identifier of the target agent node is the successful initializing identifier, it indicates that the device of the target agent node has already performed corresponding system initialization, and the system initialization is not required to be repeated, so that the target agent node can be skipped.
And 1.3, executing the system demand information, and copying a corresponding system initialization program to the equipment of the target agent node 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 initializing identifier, it indicates that the device of the target agent node has not been initialized by the corresponding system, so that the system initializing operation can be performed on the device of the target agent node, which is not limited in the present invention.
Alternatively, for a specific one of the agent nodes, it may be a "target agent node" of multiple agent nodes at the same time, that is, there may be multiple agent nodes that perform a system initialization operation on one "target agent node" at the same time. For example, both the agent node 1 and the agent node 2 are in communication connection with the agent node 3, and when the agent node 1 and the agent node 2 simultaneously execute the present invention, the agent node 1 and the agent node 2 are caused to simultaneously perform a system initialization operation on the agent node 3. For this case, the present invention may follow the principle of last coming, that is, the agent node that performs the system initialization operation on the device of the target agent node through the system initialization program first takes precedence, and the other agent nodes will skip the system initialization operation on the target agent node this time. For example, in combination with the previous embodiment, in certain alternative embodiments, prior to step 1.3, the method further comprises steps 2.1, 2.2 and 2.3;
Step 2.1, judging whether other agent nodes start to perform system initialization operation on the target agent node, if yes, executing the step 2.2, and if not, executing the step 2.3;
Step 2.2, skipping the target agent node this time, and not performing corresponding system initialization operation on the equipment of the target agent node;
And 2.3, executing the system demand information, and copying a corresponding system initialization program to the equipment of the target agent node so as to perform corresponding system initialization operation on the equipment of the target agent node.
Alternatively, in practice, the present invention may be used to determine which agent node performs the system initialization operation on the device of the target agent node, with reference to the first step of completing the system initialization operation first. 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 skip the target agent node this time uniformly, which is not limited in the present invention.
Optionally, the invention can also count the continuous accumulated times of the failure of the system initialization operation of each target agent node. If the number of consecutive accumulated failures of the system initialization operation performed by a specific target agent node is greater than a preset threshold, it is indicated that other reasons may exist in the target agent node, so that the system initialization operation cannot be performed. Therefore, the system initialization operation of the target agent node can be stopped and reported to the management and control end, so that the management and control end can inform relevant personnel to process, and the invention is not limited in this respect.
As shown in FIG. 2, the invention provides a system initialization system based on agent technology, comprising a management and control end 100 and a plurality of agent nodes 200, wherein at least one agent node 200 in the plurality of agent nodes 200 is directly connected with the management and control end 100 in a communication way, and the rest of agent nodes are indirectly connected with the management and control end 100 in a communication way;
Any agent node 200 includes a scanning unit 210, a requirement information determining unit 220, and a system initializing unit 230;
The scanning unit 210 is configured to obtain 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 includes at least a node identifier, where the node identifier corresponds to the target agent node one to one;
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 relation table, where the comparison relation table records a corresponding relation between each node identifier and corresponding system requirement information;
The system initialization unit 230 is configured to copy, according to the system requirement information, a corresponding system initialization program 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.
In combination with the embodiment shown in fig. 2, in some alternative embodiments, the agent node 200 further includes an initialization result obtaining unit;
The initialization result obtaining unit 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 obtain initialization information for performing a corresponding system initialization operation on the device of the target agent node after performing a corresponding system initialization operation on the device of the target agent node, where the initialization information at least includes an initialization result and a node identifier of the system initialization operation, and the initialization result is that the initialization is successful or the initialization is failed.
In combination with the second system embodiment, in some optional embodiments, the agent node 200 further includes an information sending unit;
And the information sending unit is configured to send the initialization information of each target agent node to the management and control end 100 after the initialization information for performing a corresponding system initialization operation on the device of the target agent node is obtained, so that the management and control end 100 generates a current topology map of the system according to each initialization information.
In combination with the second embodiment, in some optional embodiments, the agent node 200 further includes a success identification setting unit and a failure identification setting unit;
a successful identifier setting unit, configured to set, after the obtaining of the initialization information for performing a corresponding system initialization operation on the device of the target agent node, a system identifier of the target agent node as an initialization success identifier if an initialization result of the target agent node is that the initialization is successful;
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 that the initialization fails.
In some alternative embodiments, and in combination with the embodiment shown in FIG. 1, the agent node 200 further comprises an identity viewing unit and a skipping unit;
an identifier checking unit, configured to check, before S300, whether a system identifier of the target agent node is an initializing success identifier, if yes, trigger a skip unit, and if not, trigger the system initializing unit 230;
The skipping unit is used for skipping the target agent node this time and not carrying out corresponding system initialization operation on the equipment of the target agent node;
and a system initialization unit 230, configured to execute the copying the 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 combination with the above embodiment, in some optional embodiments, the agent node 200 further includes an initialization operation judging unit;
An initialization operation judging unit, configured to, before executing the corresponding system initialization procedure to the device of the target agent node according to the system requirement information, judge whether there is any other agent node that has already started performing a system initialization operation on the target agent node before performing a corresponding system initialization operation on the device of the target agent node, if so, trigger the skip unit, and if not, trigger the system initialization unit 230;
The skipping unit is used for skipping the target agent node this time and not carrying out corresponding system initialization operation on the equipment of the target agent node;
and a system initialization unit 230, configured to execute the copying the 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 management and control end in the information sending unit so that the management and control end can conveniently generate the current topological graph of the system according to each initialization information, and then perform corresponding application deployment configuration on the equipment corresponding to each agent node in the current topological graph according to the 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 device further comprises an application deployment information generation unit and a deployment information transmission unit;
The application deployment information generating unit is used for executing corresponding application deployment configuration on the equipment corresponding to each agent node in the current topological graph according to the pre-established application deployment requirement in the application deployment configuration unit so as to mark corresponding application deployment identifiers on each agent node on which the corresponding application is deployed after the corresponding application is deployed in the equipment corresponding to each agent node, and generating application deployment information;
The deployment information sending unit is used for 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, and the current topological graph is updated.
The present invention provides a computer-readable storage medium having a program stored thereon, wherein the program is executed by a processor to perform the agent technology-based system initialization method of any one of the above.
As shown in fig. 3, the present invention provides an electronic device 70, where the electronic device 70 includes at least one processor 701, and at least one memory 702 and a bus 703 connected to the processor 701, where the processor 701 and the memory 702 complete communication with each other through the bus 703, and the processor 701 is configured to call program instructions in the memory 702 to execute the agent technology-based system initialization method described in any one of the above.
In the present 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. Moreover, 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 one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.
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 foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the 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 (8)

1. The system initialization method based on the agent technology is characterized by being applied to a system initialization system based on the agent technology, and the system initialization system based on the agent technology comprises a management and control end and a plurality of agent nodes, wherein at least one of the agent nodes is directly in communication connection with the management and control end, and the rest agent nodes are indirectly in communication connection with the management and control end;
The method comprises the following steps:
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 node identifiers, and the node identifiers are in one-to-one correspondence with the target agent nodes;
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 corresponding system demand information;
copying a corresponding system initialization program to the equipment of the target agent node according to the system demand information so as to perform a corresponding system initialization operation on the equipment of the target agent node, wherein before copying the corresponding system initialization program to the equipment of the target agent node according to the system demand information so as to perform a corresponding system initialization operation on the equipment of the target agent node, the method further comprises:
Checking whether the system identifier of the target agent node is an initializing success identifier;
If the system identifier of the target agent node is the successful initializing identifier, skipping the target agent node this time, and not performing corresponding system initializing operation on the equipment of the target agent node;
If the system identifier of the target agent node is not the successful initializing identifier, executing the system initializing process according to the system requirement information, and copying a corresponding system initializing program to the equipment of the target agent node so as to perform corresponding system initializing operation on the equipment of the target agent node;
Wherein, before 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 includes:
Judging whether other agent nodes start to perform system initialization operation on the target agent node, if so, skipping the target agent node this time, and not performing corresponding system initialization operation on equipment of the target agent node;
If not, executing the system initialization program according to the system demand information, and copying the corresponding system initialization program to the equipment of the target agent node so as to perform corresponding system initialization operation on the equipment of the target agent node;
The system initialization program is used for performing system initialization operation on the equipment of the target agent node, wherein the agent node firstly performs priority on the system initialization operation on the equipment of the target agent node through the system initialization program, and other agent nodes skip the system initialization operation on the target agent node this time.
2. The method of claim 1, wherein 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 comprises:
and obtaining initialization information for performing corresponding system initialization operation on the equipment of the target agent node, wherein the initialization information at least comprises an initialization result and a node identifier of the system initialization operation, and the initialization result is successful or failed in initialization.
3. The method of claim 2, wherein after the obtaining of the initialization information for performing the corresponding system initialization operation on the device of the target agent node, the method further comprises:
And sending the initialization information of each target agent node to the management and control end so that the management and control end can generate a current topological graph of the system according to each initialization information.
4. The method of claim 2, wherein after the obtaining of the initialization information for performing the corresponding system initialization operation on the device of the target agent node, the method further comprises:
if the initialization result of the target agent node is that the initialization is successful, setting the system identifier of the target agent node as an initialization success identifier;
If the initialization result of the target agent node is that the initialization fails, setting the system identifier of the target agent node as an initialization failure identifier.
5. The method of 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 a system according to each initialization information, the method further comprises:
And carrying out corresponding application deployment configuration on the equipment corresponding to each agent node in the current topological graph according to the pre-established application deployment requirements so as to deploy corresponding application in the equipment corresponding to each agent node.
6. The method of claim 5, wherein after performing a corresponding application deployment configuration on the device corresponding to each agent node in the current topology according to the pre-established application deployment requirement to deploy a corresponding application in the device corresponding to each agent node, the method further comprises:
Marking corresponding application deployment identifiers for the agent nodes where the corresponding applications are 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.
7. The system initialization system based on the agent technology is characterized by comprising a management and control end and a plurality of agent nodes, wherein at least one of the agent nodes is directly connected with the management and control end in a communication way, and the rest agent nodes are indirectly connected with the management and control end in a communication way;
any agent node 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 in communication connection with the agent nodes through scanning, wherein the node information of each target agent node at least comprises node identifiers, and the node identifiers are in one-to-one correspondence with the target agent nodes;
The demand information determining unit is configured to determine system demand information of the target agent node according to the node identifier and a pre-established comparison relation table, where the comparison relation table records a corresponding relation between each node identifier and corresponding system demand information;
The system initialization unit is configured to copy, according to the system requirement information, a corresponding system initialization program 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, where before copying, according to the system requirement information, the corresponding system initialization program 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, the system initialization unit further includes:
Checking whether the system identifier of the target agent node is an initializing success identifier;
If the system identifier of the target agent node is the successful initializing identifier, skipping the target agent node this time, and not performing corresponding system initializing operation on the equipment of the target agent node;
If the system identifier of the target agent node is not the successful initializing identifier, executing the system initializing process according to the system requirement information, and copying a corresponding system initializing program to the equipment of the target agent node so as to perform corresponding system initializing operation on the equipment of the target agent node;
and before 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, if so, skipping the target agent node this time, and not performing corresponding system initialization operation on equipment of the target agent node;
If not, executing the system initialization program according to the system demand information, and copying the corresponding system initialization program to the equipment of the target agent node so as to perform corresponding system initialization operation on the equipment of the target agent node;
The system initialization program is used for performing system initialization operation on the equipment of the target agent node, wherein the agent node firstly performs priority on the system initialization operation on the equipment of the target agent node through the system initialization program, and other agent nodes skip the system initialization operation on the target agent node this time.
8. A computer-readable storage medium having a program stored thereon, wherein the program when executed by a processor implements the agent technology-based system initialization method according to any one of claims 1 to 6.
CN202210008508.0A 2022-01-05 2022-01-05 System initialization method and related device based on agent technology Active CN114356426B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210008508.0A CN114356426B (en) 2022-01-05 2022-01-05 System initialization method and related device based on agent technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210008508.0A CN114356426B (en) 2022-01-05 2022-01-05 System initialization method and related device based on agent technology

Publications (2)

Publication Number Publication Date
CN114356426A CN114356426A (en) 2022-04-15
CN114356426B true CN114356426B (en) 2024-12-03

Family

ID=81106827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210008508.0A Active CN114356426B (en) 2022-01-05 2022-01-05 System initialization method and related device based on agent technology

Country Status (1)

Country Link
CN (1) CN114356426B (en)

Citations (3)

* 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
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190121631A1 (en) * 2017-10-19 2019-04-25 Vmware, Inc. Deployment of applications to managed devices
CN108958927B (en) * 2018-05-31 2023-04-18 康键信息技术(深圳)有限公司 Deployment method and device of container application, computer equipment and storage medium
CN108900347B (en) * 2018-07-09 2021-06-29 郑州云海信息技术有限公司 Cluster initialization configuration method, apparatus, system, device and readable storage medium
CN110535959B (en) * 2019-08-30 2023-02-24 北京云中融信网络科技有限公司 Method and device for transmitting data and computer readable storage medium
CN110661886B (en) * 2019-10-25 2022-04-26 新华三大数据技术有限公司 Component mounting method and device

Patent Citations (3)

* 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
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

Also Published As

Publication number Publication date
CN114356426A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
US8990368B2 (en) Discovery of network software relationships
CN109861861B (en) Rapid configuration method and system for network communication equipment
JP2013522729A (en) Effective management of configuration drift
JP2004005693A (en) Method and apparatus for modifying a device remotely monitored by a monitoring system
US8498214B2 (en) Switching device, information processing device, and recording medium for failure notification control program
JP5954635B2 (en) Method, system, terminal, and device management server for installing software components
CN113835844A (en) Management method and device of container cluster and cloud computing platform
CN102299814B (en) Method and system for upgrading MIB (management information base) on SNMP (simple network management protocol) agent
CN114356426B (en) System initialization method and related device based on agent technology
KR20060040335A (en) Network managing device and method thereof
JP5507368B2 (en) SNMP agent device and setting undo method
CN110933192A (en) Local area network IP address allocation method, device, system, and computer equipment
WO2020010906A1 (en) Method and device for operating system (os) batch installation, and network device
JP6951014B2 (en) Communication control devices, communication systems, communication control methods, and programs
CN113794581B (en) Distributed CP unified deployment method, network equipment and storage medium
CN110737670A (en) cluster data consistency guarantee method, device and system
CN108509296A (en) A kind of method and system of processing equipment failure
CN107547622B (en) Resource adjusting method and device
CN106792843B (en) Equipment management method and device
CN113986638A (en) Chaos engineering-based fault drill method, system, storage medium and electronic equipment
CN111935251B (en) Block chain network management method, network, device, equipment and storage medium
CN105791350B (en) Project data processing method and system
CN114095946A (en) 5GC service network element management system and management method thereof
KR20080092487A (en) Client Synchronization System and Method
CN117376194B (en) Network detection method, system, electronic device and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant