Automated operation and maintenance platform adaptation method, device, equipment, storage medium, product
By establishing an adaptation layer between the automated operation and maintenance platform and the scene layer, dynamically creating operations and orchestration, forming general operations to be executed and mapped to the operation and maintenance platform, the problems of inconvenience and risks in the transformation of the operation and maintenance platform in the existing technology are solved, and the combination of reusing the underlying operation and maintenance capabilities and personalized orchestration is achieved.
Patent Information
- Application Number
- CN202111585087.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2025-06-06
- Estimated Expiration
- 2041-12-22
AI Technical Summary
The transformation of existing automated operation and maintenance platforms is inconvenient and has risks of safety and stability, especially when small and medium-sized enterprises use mature products purchased from outside, the transformation is difficult and costly.
By establishing an adaptation layer between the operation and maintenance platform and the scene layer, dynamically create operations and orchestration defined by the adaptation layer, forming tasks to be executed, and mapping them to general operations of the operation and maintenance platform, realizing task scheduling and execution.
There is no need to transform the operation and maintenance platform, reuse the operation and maintenance capabilities of the underlying operation and maintenance platform, maintain the platform stability, reduce operation and maintenance risks, and at the same time realize the personalized expansion of system orchestration capabilities and orchestration methods, combining the organic combination of universality and personalization.
Smart Images

Figure CN114281403B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automatic operation and maintenance technology, and in particular to an automatic operation and maintenance platform adaptation method, device, equipment, storage medium, and product. Background Art
[0002] With the widespread application of information and digital technologies, the infrastructure of enterprise management is becoming increasingly large, and business applications are becoming increasingly complex. The traditional operation and maintenance methods that rely on manual operations are not only inefficient but also prone to misoperation, leading to serious production accidents. At present, most enterprises have developed or introduced IT automated operation and maintenance products to standardize operation and maintenance operations and improve operation and maintenance efficiency. As the underlying basic platform and support platform for operation and maintenance, the automated operation and maintenance platform provides a standard and universal operation and maintenance service. Generally, it is open to the outside world to execute operations and orchestration and query results, while the addition and management functions of operations and orchestration need to be performed on the management page provided by the platform itself. However, with the gradual maturity of the concept of intelligent and scenario-based operation and maintenance, enterprises have begun to build more scenario-based and intelligent operation and maintenance tools on the basis of the automated operation and maintenance platform, such as the application release platform (complete the automated version release of all IT systems within the enterprise), the event intelligent handling platform (complete the intelligent handling of operation and maintenance alarms and events), etc. These platforms all need to connect to the underlying automated operation and maintenance platform to complete the development of their own operation and maintenance scenarios. In addition to the general services provided by the automated operation and maintenance platform, they also need some personalized services based on specific scenarios. For example, an application publishing platform needs to dynamically create a personalized publishing process based on specific applications, rather than creating a general orchestration on the automated operation and maintenance platform in advance, and all system version releases use this general orchestration; intelligent event handling also needs to dynamically create handling scripts and handling processes based on complex and diverse event types.
[0003] The existing technology is to expand the automated operation and maintenance platform through transformation and open up the operation and orchestration maintenance capabilities of the platform, but this will have a certain impact on the security and stability of the system and bring unpredictable risks to daily system operation and maintenance. In addition, the automated operation and maintenance platforms of many small and medium-sized enterprises are generally mature products purchased from outside, which have pain points such as difficulty in transformation and high transformation costs. Summary of the invention
[0004] The main purpose of the present invention is to provide an automated operation and maintenance platform adaptation method, device, equipment, storage medium, and program product, aiming to improve the technical problems in the prior art that the operation and maintenance platform modification is inconvenient and has risks.
[0005] To achieve the above object, the present invention provides an automated operation and maintenance platform adaptation method, the automated operation and maintenance platform adaptation method comprising the following steps:
[0006] Create operation and maintenance scenarios;
[0007] Generate multiple operation and maintenance actions according to the operation and maintenance scenario, and arrange and combine the multiple operation and maintenance actions in a specific order to form a task to be executed;
[0008] Obtain the tasks to be executed, encapsulate the tasks to be executed, and issue them after adapting the task format;
[0009] The information of the task to be executed is decoded and saved, the input parameters are processed and parsed, and the task script is executed.
[0010] Optionally, after the step of generating a plurality of operation and maintenance actions according to the operation and maintenance scenario, and arranging and combining the plurality of operation and maintenance actions in a specific order to form a task to be performed, the step further includes:
[0011] Set the time conditions for task execution according to the operation and maintenance scenario;
[0012] When the time condition is triggered, the task to be executed is issued.
[0013] Optionally, the steps of obtaining the task to be executed, encapsulating the task to be executed, and issuing the task after adapting the task format include:
[0014] Encode the script content corresponding to the task to be executed, and send the script content as an operation input parameter;
[0015] One or more input parameters corresponding to the task to be executed are concatenated into a string according to the parameter type and the custom separator, and the concatenated string is sent as an operation input parameter;
[0016] One or more output parameters of the task to be executed are appended to the end of the script content in a specific format.
[0017] Optionally, the steps of decoding and saving the information of the task to be executed, processing and parsing the input parameters, and executing the task script include:
[0018] Obtain script information, script input parameter string, script input parameter type, and output parameter value of the task to be executed;
[0019] Decoding the script information and saving it to the target server;
[0020] Parse the script input parameter string according to the custom parameter delimiter to obtain complete script input parameters;
[0021] Process the parameters accordingly according to the script input parameter type;
[0022] Select the corresponding execution method according to the parameter type to execute the script.
[0023] Optionally, after the step of generating a plurality of operation and maintenance actions according to the operation and maintenance scenario, and arranging and combining the plurality of operation and maintenance actions in a specific order to form a task to be performed, the step further includes:
[0024] Get the system code, general operation ID, and output parameter name;
[0025] Establish task issuance interface, result query interface, and log query interface.
[0026] Optionally, after the steps of decoding and saving the information of the task to be executed, processing and parsing the input parameters, and executing the task script, the method further includes:
[0027] Get the task to be queried, assemble the query message according to the task identifier, and query the result;
[0028] If the execution is completed, the output parameter value is parsed and saved according to the execution result, and then the execution result is sent;
[0029] If the execution is not completed, the to-be-executed task is re-executed.
[0030] In addition, to achieve the above purpose, the present invention also proposes an automated operation and maintenance platform adaptation device, including:
[0031] Scenario layer, used to create operation and maintenance scenarios based on business needs;
[0032] The adaptation layer is used to create operations and orchestrations according to the operation and maintenance scenarios and form tasks to be executed;
[0033] The operation and maintenance platform is used to execute the tasks to be executed to realize automatic operation and maintenance.
[0034] Optionally, the adaptation layer includes:
[0035] Operation management module, used to create and maintain operation and maintenance actions;
[0036] The orchestration management module connects the individual operation and maintenance actions in series according to a specific execution order;
[0037] An access configuration module, used to store information of the operation and maintenance platform;
[0038] A task pool, used to store the tasks to be executed;
[0039] A task scheduling module, used to retrieve the to-be-executed tasks from the task pool;
[0040] The task interface adaptation module is used to encapsulate the tasks to be executed and issue them after adapting the task format.
[0041] In addition, to achieve the above object, the present invention further provides an electronic device, comprising:
[0042] one or more processors;
[0043] a storage device for storing one or more programs,
[0044] When the one or more programs are executed by the one or more processors, the one or more processors execute any of the methods described above.
[0045] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer-readable storage medium, on which executable instructions are stored. When the instructions are executed by a processor, the processor implements the steps of the automated operation and maintenance platform adaptation method as described above.
[0046] In addition, to achieve the above-mentioned purpose, the present invention also proposes a computer program product, including a computer program, which, when executed by a processor, implements the steps of the automated operation and maintenance platform adaptation method as described above.
[0047] In the technical solution provided by the present invention, there is no need to transform the operation and maintenance platform. Instead, an adaptation layer is established between the operation and maintenance platform and the scenario layer, and a general operation is created on the operation and maintenance platform. The adaptation layer dynamically creates the operations and orchestrations defined by the adaptation layer according to the upper-layer business requirements, and forms tasks to be executed after being called. All tasks to be executed are adapted through the task interface and finally mapped to a general operation of the operation and maintenance platform, and then the operation and maintenance platform completes the scheduling, distribution and execution of the tasks. The present invention realizes the reuse of the operation and maintenance capabilities of the underlying operation and maintenance platform, maintains the stability of the underlying platform, and reduces the operation and maintenance risks. At the same time, the system orchestration capabilities and orchestration methods can be personalized and expanded, realizing the organic combination of versatility and personalization. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0049] Figure 1 It is a structural diagram of an application scenario of an embodiment of the present invention;
[0050] Figure 2 A flow chart of an embodiment of the automated operation and maintenance platform adaptation method provided by the present invention;
[0051] Figure 3A flow chart of an embodiment of the automated operation and maintenance platform adaptation method provided by the present invention;
[0052] Figure 4 A schematic diagram of the structure of the automated operation and maintenance platform adapter device provided by the present invention;
[0053] Figure 5 for Figure 4 Schematic diagram of the structure of the electronic equipment.
[0054] Description of Figure Numbers:
[0055] Label name Label name 100 Application Scenario 1806 Input section 101 Data Center 1807 Output section 102 network 1808 Storage 103 Automated operation and maintenance terminal 1809 communication part 1800 Electronic devices 1810 Drive 1801 processor 1811 Removable media 1802 Read-only memory 104 server 1803 Random Access Memory 105 Scene Layer 1804 bus 106 Adaptation Layer 1805 I / O Interface 107 Operation and maintenance platform 108 Operation Management Module 111 Task interface adapter module 109 Orchestration management module 112 Access configuration module 110 Task Pool 113 Task scheduling module
[0056] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings. The technical solution in the present invention is clearly and completely described. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] Below, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of concepts of the present invention.
[0059] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0060] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0061] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0062] Some block diagrams and / or flow charts are shown in the accompanying drawings. It should be understood that some blocks or combinations thereof in the block diagrams and / or flow charts can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that these instructions can create a device for implementing the functions / operations described in these block diagrams and / or flow charts when executed by the processor. The technology of the present invention can be implemented in the form of hardware and / or software (including firmware, microcode, etc.). In addition, the technology of the present invention can take the form of a computer program product on a computer-readable storage medium storing instructions, which can be used by an instruction execution system or used in conjunction with an instruction execution system.
[0063] It should be noted that if a directional indication is involved in the embodiment of the present invention, the directional indication is only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.
[0064] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the meaning of "and / or" appearing in the full text includes three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in this field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0065] In the description of the present invention, it should be noted that the terms "upper", "lower", "top", "bottom", "inside", "outside", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, they cannot be understood as limitations on the present invention.
[0066] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0067] Furthermore, in the description of the present invention, unless otherwise specified, “plurality”, “multiple roots”, and “multiple groups” mean two or more.
[0068] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0069] Figure 1 An application scenario diagram of an automated operation and maintenance platform adaptation method, device, electronic device, storage medium, and program product according to an embodiment of the present invention is schematically shown.
[0070] It should be noted that Figure 1 The examples shown are merely examples of application scenarios to which the embodiments of the present invention can be applied, to help those skilled in the art understand the technical content of the present invention, but do not mean that the embodiments of the present invention cannot be used in other devices, systems, environments or scenarios.
[0071] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a data center 101, a network 102, an automated operation and maintenance terminal 103, and a server 104. The network 104 is used to provide a medium for a communication link between the data center 101, the automated operation and maintenance terminal 103, and the server 104. The network 102 may include various connection types, such as wired and / or wireless communication links, etc.
[0072] The automated operation and maintenance terminal 103 includes the automated operation and maintenance platform adapter provided by the present invention, which realizes the reuse of the operation and maintenance capabilities of the underlying automated operation and maintenance platform, maintains the stability of the underlying platform, and reduces the operation and maintenance risks. At the same time, the system orchestration capabilities and orchestration methods can be personalized and expanded, realizing the organic combination of universality and personalization.
[0073] Based on the above hardware structure, an embodiment of the automated operation and maintenance platform adaptation method of the present invention is proposed.
[0074] Figure 2 The following is a flow chart of an embodiment of an automated operation and maintenance platform adaptation method of the present invention. In one embodiment, the automated operation and maintenance platform adaptation method includes the following steps:
[0075] In step S10: create an operation and maintenance scenario. The created operation and maintenance scenario includes application release, intelligent event handling, etc. Application release includes completing the automated version release of all IT systems within the enterprise, and intelligent event handling includes completing operation and maintenance alarms and intelligent event handling, etc.
[0076] In step S20: a plurality of operation and maintenance actions are generated according to the operation and maintenance scenario, and the plurality of operation and maintenance actions are arranged and combined in a specific order to form a task to be executed.
[0077] In this embodiment, the operation management module 108 will dynamically create a personalized release process, i.e., an operation and maintenance action, based on the specific application, rather than creating a general orchestration in advance on the automated operation and maintenance platform, and all system version releases use this general orchestration. Intelligent event handling also requires the dynamic creation of handling scripts and handling processes, i.e., operation and maintenance actions, based on complex and diverse event types.
[0078] The orchestration management module 109 will orchestrate the above-mentioned multiple operation and maintenance actions in a certain order, and form tasks to be executed and put them into the task pool 110.
[0079] In step S30: the tasks to be executed are obtained, packaged, and sent after task format adaptation. The tasks to be executed are retrieved from the task pool 110, and the tasks are packaged and sent to the operation and maintenance platform according to the access configuration module 112 and the task interface adaptation module 111.
[0080] In step S40: the information of the task to be executed is decoded and saved, the parameter is processed and parsed, and the task script is executed. Through the common operation previously established on the operation and maintenance platform, the information of the task to be executed is decoded and saved, the parameter is processed and parsed, and the task script is executed.
[0081] It should be noted that, in general, an operation script is written according to the operation to be performed, and 1 to n input and output parameters are set according to the script content and actual needs. The number of parameters is not fixed. Finally, the input parameter values are filled in during execution to complete the execution of the target operation, and the execution process and results are viewed through the script log and output parameter values. The general operation model can support the execution of all operation scripts of the adaptation layer 106 in order to implement an operation.
[0082] In this embodiment, the operation is abstracted, and the general operation after abstraction includes three input parameters and one output parameter, and the input parameters are: operation and maintenance script content param1, which abstracts the script content of the adaptation layer 106 operation and maintenance operation as the first input parameter of the general operation; abstract input parameter param2, which encapsulates multiple input parameters of the adaptation layer operation and maintenance script as the second input parameter; parameter type param3, which identifies the parameter type of the adaptation layer operation and maintenance script, such as keyword parameters ($param1, $param2), position parameters ($1, $2); output parameters are: abstract output parameters. Multiple output parameters of the adaptation layer operation and maintenance script are abstracted into one output parameter.
[0083] In this embodiment, according to the abstract general operation model, the script content of the adaptation layer task is encapsulated (corresponding to the general operation input parameter param1), the input parameters are encapsulated as: in1||in2||in3... (corresponding to the general operation input parameter param2, "||" is a custom parameter separator, which can be set as needed), the input parameter type (corresponding to the general operation input parameter param3), and the output parameter is encapsulated in the format of param4 = {"out1":"$out1","out2":"$out2"...} (corresponding to the general operation input parameter param4) and appended to the end of the input parameter param1.
[0084] This embodiment can connect to the automated operation and maintenance platforms of different manufacturers without any modification to the automated operation and maintenance platforms of the manufacturers, and can realize the dispatch and execution of automated tasks. It can expand the capabilities of the underlying automated operation and maintenance platform, provide flexible and general dynamic orchestration capabilities for scene layer services, and realize the organic combination of universality and personalization.
[0085] After step S20, the following steps are also included:
[0086] In step S21: the time condition for task execution is set according to the operation and maintenance scenario. The triggering condition for calling the task to be executed is set according to different operation and maintenance scenarios. In the embodiment, the condition is a time condition, such as triggering once every second, or triggering once every minute, or executing once at 3 o'clock or 5 o'clock every day.
[0087] In step S22: when the time condition is triggered, the to-be-executed task is issued. In this embodiment, by adding a timer scheduling engine in the task scheduling module 113, it is set according to the specific operation and maintenance scenario, and the related to-be-executed operation is retrieved from the task pool 110 after being triggered.
[0088] See also Figure 3 , step S30 specifically includes the following steps:
[0089] Step S301: Encode the script content corresponding to the task to be executed, and send the script content as an operation input parameter.
[0090] In this embodiment, the script content corresponding to the task to be executed is encoded to prevent the script from containing string escape characters when it is finally sent to the target machine, resulting in execution failure. The script content is sent to the connected third-party platform as an operation input parameter.
[0091] Step S302: concatenate one or more input parameters corresponding to the task to be executed into a string according to the parameter type and the custom separator, and send the concatenated string as an operation input parameter.
[0092] Step S303: append one or more output parameters of the task to be executed to the end of the script content in a specific format.
[0093] In this embodiment, one or more output parameters of the task are assembled into a format such as param4 = {"outParam1":"$outParam1","outParam2":"$outParam2"} and appended to the end of the script content, where param4 is the name of the combined output parameter maintained in the access configuration.
[0094] Step S40 specifically includes the following steps:
[0095] Step S401: Obtain the script information, script input parameter string, script input parameter type, and output parameter value of the task to be executed.
[0096] Step S402: Decode the script information and save it to the target server.
[0097] Step S403: Parse the script input parameter string according to the custom parameter delimiter to obtain complete script input parameters.
[0098] Step S404: Process the parameters accordingly according to the script input parameter type.
[0099] Step S405: Select a corresponding execution mode to execute the script according to the parameter type.
[0100] In this embodiment, the general operation on the operation and maintenance platform parses the tasks to be executed issued by the adaptation layer, and the specific contents of the parsing include:
[0101] param1: receiving script information for executing tasks of the product of the present invention;
[0102] param2: receiving the script input parameter string of the task executed by the product of the present invention;
[0103] param3: receives the script input parameter type (keyword parameter, positional parameter) of the task executed by the product of the present invention.
[0104] param4: provides the product of the present invention with the combined output parameter information after the execution of the execution task.
[0105] Then, the script information passed in through param1 is decoded and saved to the target server. The parameter string passed in through param2 is parsed according to the custom parameter delimiter to obtain the complete script input parameters. According to the parameter type of param3, the parameters are processed accordingly. Keyword parameters need to be temporarily written into environment variables to make the parameters effective. Positional parameters need to be spliced into parameter strings and spliced after the script name when executing the script. Finally, select the corresponding execution method according to the parameter type to execute the script
[0106] In addition, in order to obtain the relevant configuration information of the operation and maintenance platform in this embodiment, an access configuration module 112 needs to be set. It includes obtaining the system code, general operation ID, and output parameter name. The system code is the unique identifier of the third-party automated operation and maintenance platform, which is used to distinguish different access systems. The general operation ID is the general operation ID created in advance on the accessed third-party automated operation and maintenance platform. The combined output parameter name is the output parameter name defined in the general operation created in advance on the accessed third-party automated operation and maintenance platform.
[0107] In an embodiment, the task delivery interface URL is called to deliver the task to be executed to the third-party operation and maintenance platform. The result query interface URL is called to query the execution result of the task from the third-party operation and maintenance platform. The log query interface URL is called to query the script log of the task execution from the third-party operation and maintenance platform.
[0108] In this embodiment, after the above-mentioned work of issuing the tasks to be executed is completed, the status of the tasks to be executed can also be queried.
[0109] Step S50: Obtain the task to be queried, assemble a query message according to the task identifier, and perform result query.
[0110] Step S60: If the execution is completed, the output parameter value is parsed and saved according to the execution result, and then the execution result is sent down;
[0111] Step S70: If the execution is not completed, re-execute the task to be executed.
[0112] In this embodiment, the corresponding task message is generated and issued through the task interface adapter module 111. After the issuance is completed, it is marked as a state to be queried, and the unique identifier of the task to be executed on the third-party operation and maintenance platform is saved. The task scheduling module captures the tasks in the state to be queried in the task pool, and calls the task query message generated by the task interface adapter module to perform result query and script log query. The combined output parameter param4 is parsed in the query result, and the output parameter value of the task is finally obtained. The task scheduling module obtains the task to be queried from the task pool, assembles the query message through the task interface adapter module 111 according to the previously saved third-party operation and maintenance platform task identifier, and calls the execution result query interface of the third-party operation and maintenance platform for result query; the task interface adapter module 111 parses the task output parameter value according to the execution result; queries the script log according to the log query interface and saves it; the execution result is written to the message queue to notify the scene layer application.
[0113] In an embodiment, for a scenario where the third-party operation and maintenance platform service is abnormal or unavailable, the task scheduling module 113 of the present invention may automatically retry during task delivery or result query, and the number of retries may be configured through parameters.
[0114] See also Figure 4, the automated operation and maintenance platform adaptation device includes a scenario layer 105, an adaptation layer 106, and an operation and maintenance platform 107. The scenario layer 105 is used to create an operation and maintenance scenario according to business needs; the adaptation layer 106 is used to create operations and orchestrations according to the operation and maintenance scenario, and form tasks to be executed; the operation and maintenance platform 107 includes multiple modules for executing the tasks to be executed to realize automatic operation and maintenance. Among them, the adaptation layer 106 includes an operation management module 108, an orchestration management module 109, an access configuration module 112, a task pool 110, a task scheduling module 113, and a task interface adaptation module 111. The operation management module 108 is used to create and maintain operation and maintenance actions. The orchestration management module 109 is used to connect the individual operation and maintenance actions in series according to a specific execution order. The YAML content of an orchestration mainly includes basic orchestration information (i.e., orchestration name, encoding, description, type, tag and other basic information), orchestration input parameter and output parameter lists (i.e., including parameter name, type, whether required, default value and other information), orchestration node list (i.e., node name, encoding, bound operation code, operation version, execution account, bound operation input and output parameter list), flowchart layout information list (i.e., the starting point, end point, style information of flowchart lines; orchestration node encoding and coordinate information of flowchart nodes, etc.) Through a unified process description language, the upper-level system can dynamically orchestrate the operation and maintenance process according to its own needs. The adaptation layer 106 opens the adaptation layer 106 capabilities through the openapi interface to meet the personalized orchestration needs of the upper-level system.
[0115] The access configuration module 112 is used to save the information of the operation and maintenance platform 107; the task pool 110 is used to store tasks to be executed; the task scheduling module 113 is used to retrieve tasks to be executed from the task pool 110; the task interface adaptation module 111 is used to encapsulate the tasks to be executed, adapt the task format and then issue them.
[0116] Figure 5 FIG. 1 is a schematic diagram of the structure of an electronic device 1800 in a hardware operating environment according to an embodiment of the present invention. Figure 3 As shown, the electronic device 1800 may include: a processor 1801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1802 or a program loaded from a storage part 1808 into a random access memory (RAM) 1803. The processor 1801 may, for example, include a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 1801 may also include an onboard memory for caching purposes. The processor 1801 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present invention.
[0117] In RAM 1803, various programs and data required for the operation of electronic device 1800 are stored. Processor 1801 and storage unit 3, storage unit 3 including ROM 1802 and RAM 1803 are connected to each other via bus 1804. Processor 1801 performs various operations of the method flow according to the embodiment of the present invention by executing the programs in ROM 1802 and / or RAM 1803. It should be noted that the program may also be stored in one or more memories other than ROM 1802 and RAM 1803. Processor 1801 may also perform various operations of the method flow according to the embodiment of the present invention by executing the programs stored in the one or more memories.
[0118] According to an embodiment of the present invention, the electronic device 1800 may further include an input / output (I / O) interface 1805, which is also connected to the bus 1804. The electronic device 1800 may further include one or more of the following components connected to the I / O interface 1805: an input portion 1806 including a keyboard, a mouse, etc.; an output portion 1807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1808 including a hard disk, etc.; and a communication portion 1809 including a network interface card such as a LAN card, a modem, etc. The communication portion 1809 performs communication processing via a network such as the Internet. A drive 1810 is also connected to the I / O interface 1805 as needed. A removable medium 1811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1810 as needed, so that a computer program read therefrom is installed into the storage portion 1808 as needed. The communication part 1809 is used to realize the connection communication between these components, including various connection types, such as wired, wireless communication links or optical fiber cables, etc. The input / output (I / O) interface 1805 can also include a standard wired interface and a wireless interface, wherein the wired interface can be a USB interface.
[0119] exist Figure 5 The electronic device 1800 shown also includes: a network interface mainly used to connect to the background server 103 and communicate data with the background server 103; a user interface is mainly used to connect to user equipment; the electronic device 1800 calls the control program of the automated operation and maintenance platform adaptation method stored in the memory through the processor 1801, and executes the control steps of the automated operation and maintenance platform adaptation method provided in the embodiment of the present invention.
[0120] Those skilled in the art will understand that Figure 5 The structure shown in the figure does not constitute a limitation on the electronic device 1800, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.
[0121] The present invention also provides a computer-readable storage medium, which may be included in the device / system described in the above embodiment; or may exist independently without being assembled into the device / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present invention is implemented.
[0122] According to an embodiment of the present invention, the computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present invention, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device.
[0123] For example, according to an embodiment of the present invention, the computer-readable storage medium may include the ROM and / or RAM described above and / or one or more memories other than the ROM and RAM.
[0124] According to an embodiment of the present invention, the method flow according to an embodiment of the present invention can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication part, and / or installed from a removable medium. When the computer program is executed by a processor, the above-mentioned functions defined in the system of an embodiment of the present invention are executed. According to an embodiment of the present invention, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0125] When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the item recommendation method provided in the embodiment of the present invention. When the computer program is executed by the processor 1801, the above functions defined in the system / device of the embodiment of the present invention are performed. According to the embodiment of the present invention, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0126] In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and downloaded and installed through the communication part 1809, and / or installed from a removable medium 1811. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0127] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1809, and / or installed from the removable medium 1811. When the computer program is executed by the processor 1801, the above functions defined in the system of the embodiment of the present invention are performed. According to the embodiment of the present invention, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0128] According to an embodiment of the present invention, the program code for executing the computer program provided by the embodiment of the present invention can be written in any combination of one or more programming languages, specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, such as Java, C++, python, "C" language or similar programming languages. The program code can be executed completely on the user computing device, partially on the user device, partially on the remote computing device, or completely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).
[0129] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory image (ROM) / random access memory (RAM), a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0130] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not used to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. An automated operation and maintenance platform adaptation method, It is characterized in that The steps include: Create operation and maintenance scenarios; Generate multiple operation and maintenance actions according to the operation and maintenance scenario, and arrange and combine the multiple operation and maintenance actions in a specific order to form a task to be executed; Obtain the tasks to be executed, encapsulate the tasks to be executed, and issue them after adapting the task format; Through the general operation previously established on the operation and maintenance platform, the information of the task to be executed is decoded and saved, the input parameters are processed and parsed, and the task script is executed. The general operation is an abstract operation, including the operation and maintenance script content, abstract input parameters, parameter types, and abstract output parameters; The steps of decoding and saving the information of the task to be executed, processing and parsing the input parameters, and executing the task script include: Parse the execution task issued by the adaptation layer through the general operation on the operation and maintenance platform to obtain the script information, script input parameter string, script input parameter type, and output parameter value of the task to be executed; Decoding the script information and saving it to the target server; Parse the script input parameter string according to the custom parameter delimiter to obtain complete script input parameters; Process the parameters accordingly according to the script input parameter type; Select the corresponding execution method according to the parameter type to execute the script; Wherein, after the step of generating a plurality of operation and maintenance actions according to the operation and maintenance scenario, and arranging and combining the plurality of operation and maintenance actions in a specific order to form a task to be performed, the method further includes: Get the system code, general operation ID, and output parameter name; Establish task issuance interface, result query interface, and log query interface.
2. The automated operation and maintenance platform adaptation method according to claim 1, It is characterized in that After the step of generating a plurality of operation and maintenance actions according to the operation and maintenance scenario, and arranging and combining the plurality of operation and maintenance actions in a specific order to form a task to be performed, the step further includes: Set the time conditions for task execution according to the operation and maintenance scenario; When the time condition is triggered, the task to be executed is issued.
3. The automated operation and maintenance platform adaptation method according to claim 1, It is characterized in that The steps of obtaining the tasks to be executed, encapsulating the tasks to be executed, and issuing the tasks after adapting the task format include: Encode the script content corresponding to the task to be executed, and send the script content as an operation input parameter; One or more input parameters corresponding to the task to be executed are concatenated into a string according to the parameter type and the custom separator, and the concatenated string is sent as an operation input parameter; One or more output parameters of the task to be executed are appended to the end of the script content in a specific format.
4. The automated operation and maintenance platform adaptation method according to claim 1, It is characterized in that After the steps of decoding and saving the information of the task to be executed, processing and parsing the input parameters, and executing the task script, the following steps are also included: Get the task to be queried, assemble the query message according to the task identifier, and query the result; If the execution is completed, the output parameter value is parsed and saved according to the execution result, and then the execution result is sent; If the execution is not completed, the to-be-executed task is re-executed.
5. An automated operation and maintenance platform adaptation device for implementing the automated operation and maintenance platform adaptation method according to any one of claims 1 to 4, It is characterized in that include: Scenario layer, used to create operation and maintenance scenarios based on business needs; The adaptation layer is used to create operations and orchestrations according to the operation and maintenance scenarios and form tasks to be executed; An operation and maintenance platform, used to execute the tasks to be executed to realize automatic operation and maintenance; Among them, the adaptation layer includes a task interface adaptation module, which is used to decode and save the information of the task to be executed, process and parse the input parameters, and execute the task script through the general operations previously established on the operation and maintenance platform. The general operations are abstract operations, which include operation and maintenance script content, abstract input parameters, parameter types, and abstract output parameters.
6. The automated operation and maintenance platform adapter device according to claim 5, It is characterized in that The adaptation layer comprises: Operation management module, used to create and maintain operation and maintenance actions; The orchestration management module connects the individual operation and maintenance actions in series according to a specific execution order; An access configuration module, used to store information of the operation and maintenance platform; A task pool, used to store the tasks to be executed; The task scheduling module is used to retrieve the to-be-executed tasks from the task pool.
7. An electronic device, It is characterized in that include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors execute the method according to any one of claims 1 to 4.
8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores executable instructions, which, when executed by a processor, cause the processor to execute the method according to any one of claims 1 to 4.
9. A computer program product, It is characterized in that The method comprises a computer program, which implements the method according to any one of claims 1 to 4 when executed by a processor.
Citation Information
Patent Citations
Operation and maintenance system, operation and maintenance method, electronic equipment and storage medium
CN111526049A
Design method for business rule analysis and component reuse
CN113760265A