Disclosure of Invention
The invention aims to provide a configuration method for realizing self-defining service scenes based on an arrangement engine, which can realize the self-defining of the processing flow of various service scenes of IT operation and maintenance, carry out operation and maintenance action identification and binding action instructions on self-defined flow processing nodes, analyze scripts and realize the programmable and flexible method configuration for self-defining the service scenes.
In order to achieve the purpose, the invention is realized by the following technical scheme:
a configuration method for realizing a user-defined service scene based on an orchestration engine is characterized in that: the system comprises two modules of instruction library management and process management, wherein the instruction library management comprises the following modules:
an instruction library: a set of various operation and maintenance instructions running on the IT equipment;
an instruction analysis library: analyzing echoing information of the instructions in the instruction library after the instructions are executed by the IT operation and maintenance equipment through a regular expression, and outputting the echoing information through a defined variable;
a form analysis library: analyzing the data of the business application form, and taking the variables generated by analysis as input parameters of an instruction library;
the process management comprises the following steps:
defining a process model: the process model self-defines a business scene processing process node through an arrangement engine;
and (3) 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, instruction description, manufacturer, equipment model and state of each instruction.
Specifically, the instruction analysis library is associated with instructions in the instruction library, and analyzes echoed information of the instructions after the instructions are executed by the equipment through a regular expression.
Further, the instruction identification ID may be repeated, and may be the same instruction identification ID for instructions of different manufacturers, different device models, and the same function of the same type.
The form analysis library analyzes the specified field information of the service application form through a regular expression, and the analyzed and output variable is used as an 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 arrangement engine adopts visual operation arrangement process nodes.
Specifically, the node configuration needs to specify an action identifier, and the action identifier is work order analysis, instruction execution, script analysis, command issuing, node waiting, equipment inspection, AprPing measurement and cloud service Ping measurement.
The method comprises the steps of executing a command, equipment inspection, AprPing test, cloud service Ping test, binding an instruction identification ID in an instruction library, and analyzing an analysis identification ID of a binding form analysis library by the work order.
Has the advantages that:
1. the invention carries out the process of the business scene of the IT operation and maintenance, realizes the self-defined arrangement of the flow model based on the arrangement engine, and solves the problems of non-standardization, difficult tracking and easy error when the traditional IT operation and maintenance tool analyzes and processes the problems; the flow model customizes and arranges the flow nodes related to the service scene and the trend of the flow nodes, and the arrangement engine can define the branch trend of the flow according to the data parameters of the specific operation of the nodes, so that the multi-branch supporting capability of the IT operation and maintenance scene is met; the process model and the process definition are managed separately, the process model abstracts the service processing steps related to the service without relating to a specific processing method, and the process definition defines the specific action of each service node in the model and is responsible for executing the action. The separated management of the process model and the process definition is more suitable for the characteristics of an IT operation and maintenance service scene, the service content is defined in an abstract way, and the concrete action is defined specifically and independently according to the complex and changeable operation and maintenance equipment environment, so that the stability of the operation and maintenance of the IT equipment is ensured.
2. Action actions of business scenes of IT operation and maintenance are highly generalized and classified, and the action actions are generalized into 8 action identifiers: the method comprises the steps of work order analysis, instruction execution, script analysis, command issuing, node waiting, equipment inspection, AprPing measurement and cloud service Ping measurement. When the flow definition specifies the flow node action, the configuration of the flow node can be quickly and simply completed by specifying the action identifier and executing the instruction; the configuration process of the process nodes is clear and concise, and the maintainability is strong.
3. The instruction library is used as an instruction knowledge library of an IT operation and maintenance service scene, execution instructions of different manufacturers, different equipment models and different equipment can be defined, the instructions are displayed back after being executed, available information analyzed after the instructions are executed is obtained through configuration regular analysis to form an instruction analysis library, the form analysis library can analyze the regular expression of the specified field information of the application form of the service scene, and the analyzed and output variable can be used as an input parameter of the instructions of the instruction library, so that operation and maintenance personnel can configure the instruction library conveniently; and the instruction library and the instruction analysis library can be configured, so that later maintenance is facilitated, and the expandability and flexibility of an IT operation and maintenance service scene are improved.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
As shown in fig. 1 to 6, a configuration method for implementing a custom service scenario based on an orchestration engine is characterized in that: the system comprises two modules of instruction library management and process management, wherein the instruction library management is used for analyzing rules of various instructions, instruction input parameters and echoed information which need to be executed by IT equipment under various service scenes, and the instruction library management comprises the following steps:
an instruction library: a set of various operation and maintenance instructions running on the IT equipment; as shown in fig. 2, the instruction library is generated by configuring an instruction identification ID, an instruction description (optional), a manufacturer, a device model (optional), and a status for each instruction.
The instruction identification ID can be repeated, and the same instruction identification ID can be configured for instructions of different manufacturers, different equipment models and the same function of the same type. As shown in fig. 8 and 10, for different manufacturers, different devices, and different instructions, the same function of the same type is realized by the same instruction identification ID. Optional types of states of the instruction library: available, unavailable; specifying the availability of the current instruction.
When the expression of the instruction is accompanied by parameters, the expression is marked by a "[ and ]" symbol, such as: a show interface (portName) instruction is used for displaying the state of a 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 offline experience of operation and maintenance personnel can be shared by all the operation and maintenance personnel through the instruction library, the operation and maintenance personnel can conveniently maintain the instruction library, and the integral IT operation and maintenance capability of an operation and maintenance team is improved.
An instruction analysis library: and analyzing echoing 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 the echoing information through the defined variable. As shown in fig. 3, the instruction parsing library is configured with parsing id, output variable, regular expression, state, regular test data, manufacturer, and device model for each instruction, so as to implement playback information parsing after executing the related command. And analyzing the echoed information of each instruction after the operation and maintenance equipment operates through the configured regular expression to form an instruction analysis library. The regular test data fills sample data of the current instruction echoing data and is used for analyzing the test regular expression.
The instruction analysis library analyzes the echoed information after the instructions are operated by editing different regular expressions for each instruction, so that the key section of the echoed information is effectively extracted, operation and maintenance personnel can conveniently and quickly know the state of the IT operation and maintenance equipment, the reason of equipment failure is further judged, and the maintenance efficiency of the operation and maintenance personnel is improved. The state of the instruction library analysis library can be selected as follows: available, unavailable; whether the associated instruction is resolved or not. The instruction analysis library can also be flexibly configured and modified, and the expandability and the flexibility of the IT operation and maintenance service scene are further improved.
A form analysis library: and analyzing the data of the business application form, wherein variables generated by analysis are used as input parameters during instruction configuration in the instruction library. Specifically, as shown in fig. 4, by configuring a form analysis identifier ID, an analysis description, a field title, an analysis field, an output variable, a regular expression, a state, a manufacturer, and regular test data in the form analysis library, each service application form is analyzed, and the variables generated by analysis are used for configuring the instructions in the instruction library, so that manual operation is reduced, the instruction library can be rapidly configured, the work 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, the analysis field is used for analyzing the field name of the source data of the service application form, the output variable is used for recording the result of the analysis field after the analysis field passes through the regular analysis, and the 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 service scene processing process nodes through the visual arrangement engine, and realizes the arrangement of the service scene processing process nodes through tasks, approval, drafts and dragging and pulling on the processing nodes.
The method comprises the steps of carrying out the process on the business scene of the IT operation and maintenance, realizing the self-defined arrangement of a process model based on an arrangement engine, and solving the problems of non-standardization, difficult tracking and easy error when the traditional IT operation and maintenance tool analyzes and processes the problems; the flow model customizes and arranges the flow nodes related to the service scene and the trend of the flow nodes, and the arrangement engine can define the branch trend of the flow according to the data parameters of the nodes during specific operation, so that the multi-branch supporting capability of the IT operation and maintenance scene is met.
As shown in fig. 6, the flow defines the configuration: carrying out node configuration on processing flow nodes in the flow model, wherein the configuration objects comprise: name, forwarding or not, cancelling or not, subtask, auto-submission, description information, execution command, action identifier, object type, identifier, etc.
The node configuration needs to appoint an action identifier, the action identifier is work order analysis, an execution instruction, an analysis script, an issued command, node waiting, equipment inspection, AprPing measurement and cloud service Ping measurement, specific actions of each process node are determined, the action identifier is bound with an instruction or a form analysis library through configuring an instruction identifier ID or an analysis identifier ID, a corresponding instruction in the form analysis library or an instruction library is called on the process node, the process node logs in operation and maintenance equipment through telnet and ssh communication protocols to execute the instruction, and the instruction analysis library analyzes echoed information and displays an execution result after the instruction is executed, and the information is automatically submitted to an object in an object type.
The process model and the process definition are managed separately, the process model abstracts the service processing steps related to the service without relating to a specific processing method, and the process definition defines the specific action of each service node in the model and is responsible for executing the action. The separated management of the process model and the process definition is more suitable for the characteristics of IT operation and maintenance service scenes, the service content is defined in an abstract way, and the concrete action is defined specifically and independently according to the complex and changeable operation and maintenance equipment environment.
As shown in fig. 7, work order analysis: and 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 is realized by binding the analysis identification ID in the form analysis library and calling the form analysis library to analyze the specific variable parameter value in the service application table.
As shown in fig. 8, the instructions perform: and the binding instruction identification ID specifies the instruction of the current node running on the operation and maintenance equipment.
Parse the script as shown in fig. 9: the analysis script is used for customizing the processing logic in the process of flow processing, and defines the output text, the flow node trend, the flow variable assignment and the business processing logic programming operation.
Issuing a command: the system is used for issuing the instruction appointed on the application work order of the service scene to the appointed operation and maintenance equipment for execution;
the node waits for: the method is used for delaying waiting and appointing the delay time of the process processing on the node.
As shown in fig. 10, the equipment inspection: and binding the instruction identification ID, designating a node to run an instruction of equipment inspection on the operation and maintenance equipment, and recording an analysis result after the equipment inspection is executed in an equipment inspection parameter table.
As shown in fig. 11, AprPing test: and the binding instruction identifier ID specifies an AprPing test instruction which is operated by the current node on the operation and maintenance equipment.
As shown in fig. 12, the cloud service Ping measures: and the binding instruction identifier ID and the logged cloud server information are used for logging in a specified cloud server and carrying out Ping test on the operation and maintenance equipment.
Running an instruction ' show interface (portName ') defined in an instruction library on the operation and maintenance equipment, acquiring echoing information after the instruction is run through an analytical expression ' (-up | down) [, ] of the instruction bound by an instruction analytical library, and acquiring and outputting an equipment port state during the instruction running by using the analytical expression; and the parameter "(" portName ")" of the instruction "show interface" ("portName") "running on the device is obtained from the application form of the business scene through the analysis expression" Dataport "(\\ \ S + \ \ d +)" defined in the "form analysis library" and is used as the input parameter configured by the instruction.
As shown in FIG. 13, the service scenario involves two types of operation and maintenance personnel, a service scenario configuration manager and a service support personnel. A service scene configuration manager configures an instruction library, an instruction analysis library and a form analysis library; and arranging a flow template by using an arranging engine aiming at the flow of the service scene, defining the flow, 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 then performs operation and maintenance support on the IT service application form, 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 present invention is deployed in a B/S manner, and is composed of an application server, an instruction microservice, and a database service, and a user can access and use the application server and the instruction microservice by using a browser and a mobile intelligent terminal.
1. An application server: APACHE is used as WEB service and is realized by JAVA language;
2. database service: MYSQL is adopted to provide database service;
3. instruction microservice: the method is realized by JAVA language, connects the application service and the equipment, and is used for issuing instructions to the equipment and returning the echoing information of the instructions to the application server.
The method comprises the steps of collecting operation and maintenance equipment information, port information, IP addresses and the like to establish an equipment information base, configuring an instruction base, an instruction analysis base and a form analysis base by a service scene configuration manager according to the equipment information, defining a flow model and configuration of flow nodes by using an arrangement engine according to a service scene, deploying a configured operation and maintenance flow into the operation and maintenance equipment, issuing an execution command to the operation and maintenance equipment at regular time through task scheduling, displaying back information after the collection, summarization, classification and analysis of the instruction execution, and finally transmitting the information to an operation and maintenance center, wherein a service support person feeds back and analyzes the result according to the operation and maintenance flow processing.
The embodiments of the present invention are merely preferred embodiments of the present invention, and thus the scope of the present invention is not limited thereto, and it is apparent that those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, it is intended that the present invention cover the modifications and variations of this invention provided they come within the scope of the appended claims and their equivalents.