Disclosure of Invention
The invention aims to provide a configuration method for realizing self-defined service scenes based on an orchestration engine, which can realize the self-definition of the processing flows of various service scenes of IT operation and maintenance, and can realize the programmable and flexible configuration of the method for self-defined service scenes by carrying out operation and maintenance action identification and binding action instructions and analyzing scripts on self-defined flow processing nodes.
In order to achieve the above purpose, the present invention is realized by the following technical scheme:
a configuration method for realizing custom business scene based on an orchestration engine is characterized in that: the system comprises two modules of instruction library management and flow management, wherein the instruction library management comprises the following steps:
instruction library: a set of various operation and maintenance instructions running on the IT device;
instruction parsing library: analyzing the back display information of the instructions in the instruction library after the instructions are executed by the IT operation and maintenance equipment through the regular expression, and outputting through defined variables;
form parsing library: analyzing the service application form data, and analyzing the generated variables as input parameters of an instruction library;
the process management comprises the following steps:
defining a flow model: the process model self-defines a business scene processing process node through an orchestration engine;
flow definition configuration: and carrying out node configuration on the processing flow nodes in the flow model.
Further, an instruction library is generated by configuring an instruction identification ID, an instruction description, a manufacturer, a device model and a state of each instruction.
Specifically, the instruction analysis library associates instructions in the instruction library, and analyzes the return display information of the instructions after the execution of the equipment through the regular expression.
Further, the instruction identification ID may be repeated, and for instructions of different manufacturers, different equipment models, and the same type and function, the instruction identification ID may be the same.
And the form analysis library analyzes the specified field information of the service application form through the regular expression, and the analyzed and output variable is used as the instruction input parameter of the instruction library.
In the form analysis library, each service application form is analyzed by configuring analysis identification ID, analysis description, field title, analysis field, output variable, regular expression, state, manufacturer and regular test data.
The orchestration engine orchestrates the flow nodes using visualization operations.
Specifically, the node configuration needs to specify an action identifier, where the action identifier is a work order analysis, an instruction execution, a script analysis, a command issuing, a node waiting, a device inspection, an AprPing test, and a cloud service Ping test.
And the execution command, equipment inspection, aprPing test and cloud service Ping test bind instruction identification IDs in the instruction library, and the work order analyzes the analysis identification IDs of the binding form analysis library.
The beneficial effects are that:
1. the invention processes the business scene of the IT operation and maintenance, realizes the custom arrangement of the process model based on the arrangement engine, and solves the problems of nonstandard, difficult tracking and easy error when the traditional IT operation and maintenance tool analyzes and processes the problems; the process model self-defines and lays out process nodes related to the business scene and the trend of the process nodes, and the layout engine can define the branch trend of the process according to the data parameters when the nodes specifically run so as to meet the supporting capability of multiple branches of the IT operation and maintenance scene; the flow model and the flow definition are managed separately, the flow model abstracts the business processing steps related to the business without involving a specific processing method, and the flow definition defines the specific actions of each business node in the model and is responsible for executing the actions. The separation management of the flow model and the flow definition is more suitable for the characteristics of the IT operation and maintenance service scene, the service content is abstract defined, the specific actions are specifically and independently defined according to the complex and changeable operation and maintenance equipment environment, and the stability of the operation and maintenance of the IT equipment is ensured.
2. The action actions of the business scene of the IT operation and maintenance are highly summarized and classified, and the action actions are summarized into 8 action identifications: work order analysis, instruction execution, script analysis, command issuing, node waiting, equipment inspection, aprPing testing and cloud service Ping testing. When the flow definition designates the flow node to act, the configuration of the flow node can be completed quickly and simply by designating an action identifier and executing an instruction; the configuration process of the flow node is clear and concise, and the maintainability is strong.
3. The instruction library is used as an instruction knowledge base of an IT operation and maintenance service scene, can define execution instructions of different manufacturers, different equipment models and different equipment, and can display back after the instructions are executed, and can obtain the analyzed available information after the instructions are executed to form an instruction analysis library by configuring regular analysis, the form analysis library can analyze regular expressions of application form appointed field information of the service scene, and the analyzed and output variables can be used as input parameters of instructions of the instruction library, so that the configuration of the instruction library by operation and maintenance personnel is facilitated; and the configurable instruction library and instruction analysis library facilitate the later maintenance and promote the expandability and flexibility of the IT operation and maintenance service scene.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments.
As shown in fig. 1-6, a configuration method for implementing a custom service scene based on an orchestration engine is characterized in that: the method comprises two modules of instruction library management and flow management, wherein the instruction library management is used for analyzing rules of various instructions, instruction input parameters and return display information which are required to be executed by IT equipment in various business scenes, and comprises the following steps:
instruction library: a set of various operation and maintenance instructions running on the IT device; as shown in fig. 2, the instruction library is generated by configuring an instruction identification ID, an instruction description (optional), a vendor, a device model (optional), a status for each instruction.
The instruction identification ID can be repeated, and the same instruction identification ID can be configured for instructions with the same functions of different manufacturers, different equipment models and the same types. As shown in fig. 8 and 10, the same functions of the same type are realized by the same instruction identification ID for different manufacturers, different devices, and different instructions. The state of the instruction library may be of the type: is available and unavailable; for specifying the availability of the current instruction.
The parameters in the expression of the instruction are identified by "[ and" ") symbols, such as: a show interface [ portName ] instruction is used to display the state of the designated port portName; the instruction library can flexibly inquire and modify instructions, the expandability and the flexibility of an IT operation and maintenance service scene are improved, the off-line experience of operation and maintenance personnel can be shared by the instruction library to all operation and maintenance personnel, the maintenance of the instruction library by the operation and maintenance personnel is facilitated, and the overall IT operation and maintenance capability of an operation and maintenance team is improved.
Instruction parsing library: and analyzing the back display information of the instructions in the instruction library after the instructions are executed by the IT operation and maintenance equipment through the regular expression, and outputting through defined variables. As shown in fig. 3, the analysis identifier, the output variable, the regular expression, the state, the regular test data, the manufacturer and the equipment model of each instruction are configured in the instruction analysis library, so that the analysis of the echo information after the execution of the related command is realized. The back display information of each instruction after the operation and maintenance equipment is operated forms an instruction analysis library through the analysis of the configured regular expression. The regular test data fills out sample data of the current instruction echo data and is used for analyzing the test regular expression.
The instruction analysis library analyzes the display information after the instruction is operated by editing different regular expressions for each instruction, so that key sections of the display information are effectively extracted, an operation and maintenance person can conveniently and quickly know the state of the IT operation and maintenance equipment, the equipment failure cause is further judged, and the maintenance efficiency of the operation and maintenance person is improved. The state of the instruction library parsing library is of optional type: is available and unavailable; for resolving whether the associated instruction. The instruction analysis library can be flexibly configured and modified, so that the expandability and flexibility of the IT operation and maintenance service scene are further improved.
Form parsing library: and analyzing the service application form data, wherein the analyzed and generated variable is used as an input parameter in the instruction configuration in the instruction library. Specifically, as shown in fig. 4, the form analysis identifier ID, analysis description, field header, analysis field, output variable, regular expression, state, manufacturer and regular test data in the form analysis library are configured to analyze each service application form, and the variables generated by analysis are used for configuring instructions in the instruction library, so that manual operation is reduced, the instruction library can be configured quickly, the working efficiency is improved, and the operation and maintenance cost is reduced.
The analysis identification ID is used for a work order analysis action identification in node configuration to call a form analysis library, an analysis field is used for analyzing a field name of source data of a service application form, an output variable is used for recording a result of the analysis field after regular analysis, and a regular expression is used for analyzing the analysis field.
The process management comprises the following steps:
as shown in fig. 5, the flow model defines: the process model self-defines the business scene processing process nodes through the visual arrangement engine, and realizes the arrangement of the business scene processing process nodes through tasks, approval, draft and dragging of the processing nodes.
The business scene of the IT operation and maintenance is subjected to flow process, and the self-defined arrangement of a flow model is realized based on an arrangement engine, so that the problems of nonstandard, difficult tracking and easy error in the process of analyzing and processing the problems of the traditional IT operation and maintenance tool are solved; the process model self-defines the process nodes related to the business scene and the trend of the process nodes, and the arrangement engine can define the branch trend of the process according to the data parameters when the nodes specifically run, so as to meet the supporting capability of multiple branches of the IT operation and maintenance scene.
As shown in fig. 6, the flow defines a configuration: performing node configuration on processing flow nodes in the flow model, wherein the configuration objects are as follows: name, forwarding enable, cancellation enable, subtask, auto commit, descriptive information, execution command, action identification, object type, identification, etc.
The node configuration needs to specify an action identifier, wherein the action identifier is work order analysis, instruction execution, script analysis, command issuing, node waiting, equipment inspection, aprPing measurement and cloud service Ping measurement, specific actions of each flow node are determined, the action identifier is used for calling a corresponding instruction in a form analysis library or an instruction library on the flow node through configuration instruction identification ID or analysis identification ID, the instruction or the form analysis library is bound, the flow node logs in an operation and maintenance device through telnet and ssh communication protocols to execute the instruction, and after the instruction is executed, the instruction analysis library analyzes feedback information and displays an execution result and is automatically submitted to an object in an object type.
The flow model and the flow definition are managed separately, the flow model abstracts the business processing steps related to the business without involving a specific processing method, and the flow definition defines the specific actions of each business node in the model and is responsible for executing the actions. The separation management of the flow model and the flow definition is more suitable for the characteristics of IT operation and maintenance service scenes, the service content is defined in an abstract mode, and specific actions are defined specifically and independently according to complex and changeable operation and maintenance equipment environments.
As shown in fig. 7, work order resolution: the method is used for analyzing the specific variable parameter values needed by the instruction configuration of the instruction library in the service application form.
And the work order analysis calls the form analysis library by binding the analysis identification ID in the form analysis library so as to realize the analysis of the specific variable parameter values in the service application form.
As shown in fig. 8, the instruction executes: the binding instruction identifies an ID specifying an instruction that the current node is running on the operation and maintenance device.
Parsing the script as shown in fig. 9: the method is used for defining analysis scripts of the custom processing logic in the process of flow processing, and defining output text, flow node trend, flow variable assignment and business processing logic programming operation.
Issuing a command: the method comprises the steps of issuing a specified instruction on an application work order of a business scene to specified operation and maintenance equipment for execution;
node waits: the method is used for delaying waiting and designating delay time length of flow processing on the node.
As shown in fig. 10, the device patrol: binding an instruction identification ID, designating an instruction of running equipment inspection on the operation and maintenance equipment by the node, and recording an analysis result after the equipment inspection is executed in an equipment inspection parameter table.
As shown in fig. 11, aprPing test: the binding instruction identifies an ID specifying an AprPing test instruction that the current node is running on the operation and maintenance device.
As shown in fig. 12, cloud service Ping measures: the binding instruction identification ID and the logged-in cloud server information are used for logging in a designated cloud server and performing Ping test on the operation and maintenance equipment.
Running an instruction 'show interface' defined in an instruction library on operation and maintenance equipment, and acquiring the return display information after the instruction is run through an analysis expression (up/down) of the instruction bound by an instruction analysis library, wherein the analysis expression acquires the equipment port state when the instruction is run and outputs the equipment port state; the parameter "[ portName ] (port name)" of the instruction "show interface" (portName) is executed on the device by the parsing expression "Dataport" defined in the "form parsing library"; (\S + \d+) "is obtained from the application form of the service scenario and is used as the input parameter for the instruction configuration.
As shown in fig. 13, the service scenario involves two types of operators, a service scenario configuration manager and a service support person. The service scene configuration manager configures an instruction library, an instruction analysis library and a form analysis library; the method comprises the steps of arranging a flow template by using an arranging engine for a flow of a business scene, carrying out flow definition, configuring an action identifier at a flow node in the flow definition, and binding an instruction ID of an instruction library according to the action identifier.
As shown in fig. 14, the service support personnel performs operation and maintenance support on the service application form of IT, binds the service flow to the service application form, starts the flow, and performs feedback analysis on the result after the operation and maintenance flow is started.
As shown in FIG. 15, the invention is deployed in a B/S mode, and consists of an application server, an instruction micro-service and a database service, wherein a user side can access and use the application server and the instruction micro-service by using a browser and a mobile intelligent terminal.
1. The application server: using APACHE as WEB service, and using JAVA language;
2. database service: providing database services by using MYSQL;
3. instruction microservice: the Java language is used for connecting the application service and the equipment, and is used for issuing the instruction to the equipment and returning the return display information of the instruction to the application server.
Collecting operation and maintenance equipment information, port information, IP addresses and the like, establishing an equipment information base, configuring an instruction base, an instruction analysis base and a form analysis base according to the equipment information by a service scene configuration manager, defining the configuration of a flow model and a flow node by using an arrangement engine according to a service scene, deploying the configured operation and maintenance flow into operation and maintenance equipment, sending an execution command to the operation and maintenance equipment at regular time through task scheduling, and transmitting feedback information after the instruction is collected, summarized, classified and analyzed, and finally transmitting the feedback information to an operation and maintenance center, wherein service support staff feeds back and analyzes according to an operation and maintenance flow processing result.
The embodiments of the present invention are all preferred embodiments of the present invention, and are not intended to limit the scope of the present invention, and it is obvious that those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.