CN112651514B - Operation and maintenance task execution method and device, operation and maintenance server and computer storage medium - Google Patents

Operation and maintenance task execution method and device, operation and maintenance server and computer storage medium Download PDF

Info

Publication number
CN112651514B
CN112651514B CN201910963179.3A CN201910963179A CN112651514B CN 112651514 B CN112651514 B CN 112651514B CN 201910963179 A CN201910963179 A CN 201910963179A CN 112651514 B CN112651514 B CN 112651514B
Authority
CN
China
Prior art keywords
maintenance task
execution
sub
maintenance
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910963179.3A
Other languages
Chinese (zh)
Other versions
CN112651514A (en
Inventor
赵智彬
盛家波
臧永飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201910963179.3A priority Critical patent/CN112651514B/en
Publication of CN112651514A publication Critical patent/CN112651514A/en
Application granted granted Critical
Publication of CN112651514B publication Critical patent/CN112651514B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/20Administration of product repair or maintenance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management

Abstract

The invention discloses an operation and maintenance task execution method, an operation and maintenance task execution device, an operation and maintenance server and a computer storage medium. The operation and maintenance task execution method is applied to an operation and maintenance server and comprises the following steps: determining execution equipment of each sub-operation and maintenance task in the target operation and maintenance task according to operation and maintenance task information of the target operation and maintenance task; based on a preset multi-tree operation and maintenance task execution sequence, a first sub-operation and maintenance task in the target operation and maintenance task is sent to first execution equipment corresponding to the first sub-operation and maintenance task to be executed, and a first execution result is obtained; matching the first execution result with a pre-judging condition to determine a second sub-operation task under the branch of the first sub-operation task; the second sub-operation task is related to the first sub-operation task through a pre-judging condition successfully matched with the first execution result; and sending the second sub-operation and maintenance task to second execution equipment to execute and acquire a second execution result until the execution of the target operation and maintenance task is finished. According to the embodiment of the invention, the execution efficiency of the operation and maintenance task can be improved.

Description

Operation and maintenance task execution method and device, operation and maintenance server and computer storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for executing an operation and maintenance task, an operation and maintenance server, and a computer storage medium.
Background
Currently, for some periodical and repetitive operation and maintenance operations, telecom operators realize automatic operation and maintenance or semi-automatic operation and maintenance based on operation and maintenance scripts. The traditional method for realizing automatic operation and maintenance based on operation and maintenance script comprises the following steps: according to the service characteristics, forming a service object model by the commands, scripts, equipment, operations, operation groups, operation and maintenance tasks and the operation and maintenance task groups according to the relation among the commands, the scripts, the equipment, the operations, the operation and maintenance tasks, establishing a daily maintenance planning operation and maintenance task, performing scheduling execution on the daily maintenance operation and maintenance task according to the execution time of the operation and maintenance task and the relay operation and maintenance task priority order, and acquiring and returning an execution result.
However, when the system formed by the operation and maintenance server and the execution device performs the operation and maintenance task to a certain sub-operation and maintenance task (for example, the sub-operation and maintenance task b→the sub-operation and maintenance task c→the end) based on the relay type operation and maintenance task priority order (for example, the start→the sub-operation and maintenance task a→the sub-operation and maintenance task b→the end), if an unknown but insignificant error is encountered, the configured operation and maintenance task cannot automatically decide to skip the insignificant error and continue to perform downwards, but stops performing the sub-operation and maintenance task and provides an error report log. Although the sub-operation task stops executing, the occupied resource connection is not released, and only waiting for the operation staff to manually end the operation task and release the resource connection. Moreover, since the sub-operation task stops executing, the subsequent sub-operation task cannot continue to execute downwards, resulting in low execution efficiency of the operation task.
Therefore, how to improve the execution efficiency of the operation and maintenance task is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the invention provides an operation and maintenance task execution method, an operation and maintenance server and a computer storage medium, which can improve the operation and maintenance task execution efficiency.
In a first aspect, an operation and maintenance task execution method is provided, which is applied to an operation and maintenance server, and includes:
determining execution equipment of each sub-operation and maintenance task in the target operation and maintenance task according to operation and maintenance task information of the target operation and maintenance task; the target operation and maintenance tasks are determined by each sub operation and maintenance task according to the execution sequence of the preset multi-tree operation and maintenance tasks;
based on a preset multi-tree operation and maintenance task execution sequence, a first sub-operation and maintenance task in the target operation and maintenance task is sent to first execution equipment corresponding to the first sub-operation and maintenance task to be executed, and a first execution result is obtained;
matching the first execution result with a pre-judging condition to determine a second sub-operation task under the branch of the first sub-operation task; the second sub-operation task is related to the first sub-operation task through a pre-judging condition successfully matched with the first execution result;
and sending the second sub-operation and maintenance task to second execution equipment to execute and acquire a second execution result until the execution of the target operation and maintenance task is finished.
Optionally, sending the second sub-operation task to the second execution device to execute and obtain the second execution result until the execution of the target operation task is finished, including:
determining that the second execution device is the first execution device;
and sending the second sub-operation task to the first execution device by using the resource connection of the first sub-operation task and acquiring a second execution result, so that the use of the resource connection can be reduced.
Optionally, before determining the execution device of each sub-operation and maintenance task in the target operation and maintenance task according to the operation and maintenance task information of the target operation and maintenance task, the operation and maintenance task execution method further includes:
after an operation and maintenance flow script of a target operation and maintenance scene is solidified, configuring multi-tree operation and maintenance tasks according to multi-tree operation and maintenance task configuration instructions, wherein the multi-tree operation and maintenance tasks comprise configuration of operation and maintenance task basic information, configuration of multi-tree branch points and configuration of each sub-operation and maintenance task, and the multi-tree branch points comprise configuration of pre-judging conditions;
and arranging each configured sub-operation and maintenance task according to the preset multi-tree operation and maintenance task execution sequence to obtain a target operation and maintenance task, so that the occurrence of faults in the operation and maintenance task execution process can be reduced.
Optionally, the operation and maintenance task execution method further includes:
displaying the instruction execution result, the matching result of the instruction execution result and the pre-judging condition and the operation and maintenance task execution log, and facilitating the user to check the execution process of the operation and maintenance task in real time; the instruction execution results comprise a first execution result and a second execution result.
Optionally, the second sub-operation and maintenance task is sent to the second execution device to execute and acquire a second execution result, until the execution of the target operation and maintenance task is finished, and the operation and maintenance task execution method further includes:
generating an operation and maintenance task ending triggering instruction;
according to the operation and maintenance task ending triggering instruction, the resource connection of each execution device is released, and the manual release of the resource connection in the related technology can be avoided.
In a second aspect, an operation and maintenance task execution method is provided, which is applied to an execution device, and includes:
receiving a sub operation task sent by an operation server;
and executing the sub operation and maintenance task to obtain an execution result, and sending the execution result to the operation and maintenance server.
Optionally, executing the sub-operation task obtains an execution result, and sending the execution result to the operation server, including:
acquiring a command or a script of a sub-operation task;
and according to the command or the script, the distributed execution sub-operation and maintenance task obtains an execution result and sends the execution result to the operation and maintenance server.
In a third aspect, an operation and maintenance task execution device is provided, including:
the execution device determining module is used for determining the execution device of each sub-operation and maintenance task in the target operation and maintenance task according to the operation and maintenance task information of the target operation and maintenance task; the target operation and maintenance tasks are determined by each sub operation and maintenance task according to the execution sequence of the preset multi-tree operation and maintenance tasks;
the first execution result acquisition module is used for transmitting a first sub-operation and maintenance task in the target operation and maintenance task to first execution equipment corresponding to the first sub-operation and maintenance task for execution based on a preset multi-tree operation and maintenance task execution sequence, and acquiring a first execution result;
the second sub-operation task determining module is used for matching the first execution result with the pre-judging condition to determine a second sub-operation task under the branch of the first sub-operation task; the second sub-operation task is related to the first sub-operation task through a pre-judging condition successfully matched with the first execution result;
and the second execution result acquisition module is used for sending the second sub-operation and maintenance task to the second execution equipment to execute and acquire a second execution result until the execution of the target operation and maintenance task is finished.
Optionally, the second execution result obtaining module includes:
an execution device determination unit configured to determine that the second execution device is the first execution device;
and the second execution result acquisition unit is used for transmitting the second sub-operation and maintenance task to the first execution device by using the resource connection of the first sub-operation and maintenance task and acquiring a second execution result.
Optionally, the operation and maintenance task execution device further includes:
the multi-tree operation and maintenance task configuration module is used for configuring multi-tree operation and maintenance tasks according to multi-tree operation and maintenance task configuration instructions after an operation and maintenance process script of a target operation and maintenance scene is solidified, wherein the multi-tree operation and maintenance task configuration module comprises configuration of operation and maintenance task basic information, configuration of multi-tree branch points and configuration of each sub-operation and maintenance task, and the multi-tree branch point configuration comprises configuration of prejudgement conditions;
and the target operation and maintenance task determining module is used for arranging each configured sub operation and maintenance task according to the preset multi-tree operation and maintenance task execution sequence to obtain the target operation and maintenance task.
Optionally, the operation and maintenance task execution device further includes:
the display module is used for displaying the instruction execution result, the matching result of the instruction execution result and the pre-judging condition and the operation and maintenance task execution log; the instruction execution results comprise a first execution result and a second execution result.
Optionally, the operation and maintenance task execution device further includes:
the operation and maintenance task ending trigger instruction generating module is used for generating an operation and maintenance task ending trigger instruction;
and the resource connection releasing module is used for releasing the resource connection of each execution device according to the operation and maintenance task ending trigger instruction.
In a fourth aspect, there is provided an operation and maintenance server, the apparatus comprising: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the method of performing the operation and maintenance task of the first aspect.
In a fifth aspect, a computer storage medium is provided, on which computer program instructions are stored, which when executed by a processor implement the operation and maintenance task execution method of the first aspect and the second aspect.
The operation and maintenance task execution method, the operation and maintenance server and the computer storage medium can improve the operation and maintenance task execution efficiency. The operation and maintenance task execution method is based on a preset multi-tree operation and maintenance task execution sequence, a first sub operation and maintenance task is sent to first execution equipment to be executed, and a first execution result is obtained; matching the first execution result with a pre-judging condition to determine a second sub-operation task under the branch of the first sub-operation task; and then the second sub-operation and maintenance task is sent to second execution equipment for execution, a second execution result is obtained, and the like until the execution of the target operation and maintenance task is finished. Therefore, the method matches the execution result of any sub-operation task with the pre-judging condition, determines the sub-operation task under the branch of the sub-operation task, avoids the operation and maintenance task execution stop caused by unknown but inconsequential errors in the related technology, and improves the operation and maintenance task execution efficiency.
Drawings
In order to more clearly illustrate the technical solution of the embodiments of the present invention, the drawings that are needed to be used in the embodiments of the present invention will be briefly described, and it is possible for a person skilled in the art to obtain other drawings according to these drawings without inventive effort.
FIG. 1 is a schematic flow chart of a method for executing an operation task according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a target operation task execution flow provided in one embodiment of the present invention;
FIG. 3 is a schematic diagram of an operation task execution device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an operation server according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings and the detailed embodiments. It should be understood that the specific embodiments described herein are merely configured to illustrate the invention and are not configured to limit the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the invention by showing examples of the invention.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
In order to solve the problems in the prior art, the embodiment of the invention provides an operation and maintenance task execution method, an operation and maintenance server and a computer storage medium. The following first describes an operation and maintenance task execution method provided by the embodiment of the present invention. Fig. 1 is a flow chart of an operation and maintenance task execution method according to an embodiment of the present invention, as shown in fig. 1, where the operation and maintenance task execution method is applied to an operation and maintenance server, and includes:
s101, determining execution equipment of each sub-operation and maintenance task in a target operation and maintenance task according to operation and maintenance task information of the target operation and maintenance task; the target operation and maintenance tasks are determined by each sub operation and maintenance task according to the execution sequence of the preset multi-tree operation and maintenance tasks.
The target operation and maintenance task is usually an operation and maintenance task determined according to specific operation and maintenance scenes, and each operation and maintenance scene has operation and maintenance task information, and according to the operation and maintenance task information, the execution equipment of each sub operation and maintenance task in the target operation and maintenance task can be determined. Each sub-operation and maintenance task is provided with corresponding execution equipment, and the execution equipment of different sub-operation and maintenance tasks can be the same execution equipment or a plurality of different execution equipment respectively. The target operation and maintenance task is determined by each sub operation and maintenance task according to a preset multi-tree operation and maintenance task execution sequence, and can be determined by arranging each sub operation and maintenance task according to the preset multi-tree operation and maintenance task execution sequence by the visual webpage end, wherein the preset multi-tree operation and maintenance task execution sequence reflects the priority and the association relation among each sub operation and maintenance task. Further, the preset multi-tree operation and maintenance task execution sequence may be a trigeminal operation and maintenance task execution sequence, or a binary operation and maintenance task execution sequence.
In the process of determining the target operation and maintenance tasks according to the binary tree operation and maintenance task execution sequence, each sub operation and maintenance task can be arranged across equipment (a host, network equipment and the like) to determine the target operation and maintenance tasks, so that one-time arrangement and multiple-time use under the corresponding operation and maintenance scene are realized, repeated manual configuration of multiple operation and maintenance tasks is not needed, and multiple-time back and forth switching of task execution environments is avoided.
S102, based on a preset multi-tree operation and maintenance task execution sequence, a first sub-operation and maintenance task in the target operation and maintenance task is sent to first execution equipment corresponding to the first sub-operation and maintenance task to be executed, and a first execution result is obtained.
After the execution devices of the sub-operation and maintenance tasks are determined, the first sub-operation and maintenance task is sent to the corresponding first execution device based on the preset execution sequence of the multi-tree operation and maintenance task, and specifically, a task engine of the operation and maintenance server sends the first sub-operation and maintenance task to the corresponding first execution device through resource connection. The first execution device receives a first sub-operation and maintenance task sent by the operation and maintenance server, executes the first sub-operation and maintenance task to obtain a first execution result, and sends the first execution result to the operation and maintenance server. The first execution result may be a result of the execution completion of the first sub-operation and maintenance task, or may be an unknown but insignificant error or fault occurring during the execution of the first sub-operation and maintenance task, which is not specifically limited herein.
The executing the first sub-operation task to obtain a first execution result and sending the first execution result to the operation server may generally include: acquiring a command or a script of a first sub-operation task; further, the command or script of the first sub-operation task may be obtained by using an instruction engine; and according to the command or the script, the first sub-operation and maintenance task is executed in a distributed mode to obtain a first execution result, and the first execution result is sent to the operation and maintenance server. The first executing device executes the first sub-operation task in a distributed manner, and particularly the first sub-operation task can be executed through a plurality of nodes in the first executing device, so that the execution efficiency of the operation task can be improved.
S103, matching the first execution result with a pre-judging condition to determine a second sub-operation task under the branch of the first sub-operation task; the second sub-operation task is related to the first sub-operation task through a pre-judging condition successfully matched with the first execution result.
After the first execution result is obtained, the first execution result is matched with the pre-judging condition, which may be specifically matching the similarity between the first execution result and the pre-judging condition. Each pre-judgment condition can be a pre-judgment execution result, the pre-judgment conditions are associated with one sub-operation and maintenance task, once the first execution result is successfully matched with a certain pre-judgment condition, the sub-operation and maintenance task associated with the pre-judgment condition is a second sub-operation and maintenance task, and the second sub-operation and maintenance task is the sub-operation and maintenance task to be executed next.
In one embodiment, if the first execution result is a result of execution completion of the first sub-operation and maintenance task, performing similarity matching on the result of execution completion of the operation and maintenance task and a plurality of pre-judgment conditions, using the pre-judgment condition with the highest similarity as a pre-judgment condition successfully matched with the first execution result, and using the sub-operation and maintenance task associated with the pre-judgment condition as a second sub-operation and maintenance task.
In another embodiment, if the first execution result is an unknown but insignificant error or fault occurring during execution of the first sub-operation and maintenance task, the error or fault may be matched and queried in a corresponding error table or fault table, thereby determining the second sub-operation and maintenance task.
And S104, sending the second sub-operation task to second execution equipment for execution and obtaining a second execution result until the execution of the target operation task is finished.
Since the execution device of each sub-operation-and-maintenance task in the target operation-and-maintenance task has been determined in step S101, after the second sub-operation-and-maintenance task is determined, the second sub-operation-and-maintenance task may be sent to the second execution device to execute and obtain the second execution result. The second execution device and the first execution device may be different execution devices, or may be the same execution device. The second execution device receives a second sub-operation and maintenance task sent by the operation and maintenance server, executes the second sub-operation and maintenance task to obtain a second execution result, and sends the second execution result to the operation and maintenance server.
The second executing device executing the second sub-operation and maintenance task to obtain a second executing result, and sending the second executing result to the operation and maintenance server may specifically include: the second execution device obtains a command or script of a second sub-operation task by using an instruction engine; and according to the command or the script, the second sub-operation and maintenance task is executed in a distributed mode to obtain a second execution result, and the second execution result is sent to the operation and maintenance server. The second executing device executes the second sub-operation task in a distributed manner, and in particular, the second sub-operation task can be executed concurrently through a plurality of nodes in the second executing device, so that the execution efficiency of the operation task can be improved.
It can be understood that after the second execution result is obtained, the operation and maintenance server matches the second execution result with the pre-judging condition, determines a third sub-operation and maintenance task under the branch of the second sub-operation and maintenance task, sends the third sub-operation and maintenance task to the third execution device to execute and obtain the third execution result … …, and so on until the execution of the target operation and maintenance task is finished.
As can be seen from the above, the preset execution sequence of the multi-tree operation and maintenance task may be a binary tree operation and maintenance task execution sequence, so that the target operation and maintenance task is determined by each sub operation and maintenance task according to the binary tree operation and maintenance task execution sequence. As shown in fig. 2, fig. 2 is a schematic diagram of a target operation task execution flow provided by an embodiment of the present invention, and as can be seen from fig. 2, a first sub operation task is executed to obtain a first execution result, and then the first execution result is matched with a pre-judgment condition at a branching point 1 of a binary tree to determine a second sub operation task (sub operation task 1 or sub operation task 2); if the second sub-operation task is the sub-operation task 1, executing the sub-operation task 1 to obtain a second execution result, and directly ending; if the second sub-operation task is the sub-operation task 2, executing the sub-operation task 2 to obtain a second execution result, matching the second execution result with a pre-judgment condition at the branch point 2 of the binary tree to determine a third sub-operation task, and finally, ending after executing the third sub-operation task to obtain a third execution result.
In summary, the method matches the execution result of any sub-operation task with the pre-judging condition, and automatically determines the sub-operation task under the sub-operation task branch according to the matching result, thereby avoiding the operation and maintenance task execution stop caused by unknown but inconsequential errors in the related technology, and further improving the operation and maintenance task execution efficiency.
In order to reduce the use of resource connection, in one embodiment, the sending the second sub-operation task to the second execution device to execute and obtain the second execution result until the execution of the target operation task ends may generally include: determining that the second execution device is the first execution device; and sending the second sub-operation and maintenance task to the first execution device by using the resource connection of the first sub-operation and maintenance task and acquiring a second execution result. It can be understood that, when the first execution device, the second execution device, and the third execution device … are the same execution device, the same resource connection is used to send the first sub-operation and maintenance task, the second sub-operation and maintenance task, and the third sub-operation and maintenance task … are the nth sub-operation and maintenance task, which can greatly reduce the use of resource connection.
Further, in order to avoid the manual release of the resource connection in the related art, in one embodiment, after the second sub-operation task is sent to the second execution device to execute and obtain the second execution result, until the execution of the target operation task is finished, the method may generally further include: generating an operation and maintenance task ending triggering instruction; and releasing the resource connection of each execution device according to the operation and maintenance task ending triggering instruction.
Because the daily operation and maintenance work has periodicity and repeatability, operation and maintenance flow analysis can be performed according to the daily operation and maintenance work scene, and the execution command or script corresponding to the operation and maintenance step is modularized, namely, each operation and maintenance flow script is solidified. Further, in order to reduce the occurrence of a fault in the execution process of the operation and maintenance task, before determining the execution device of each sub operation and maintenance task in the target operation and maintenance task according to the operation and maintenance task information of the target operation and maintenance task, the method may generally further include: after an operation and maintenance flow script of a target operation and maintenance scene is solidified, configuring multi-tree operation and maintenance tasks according to multi-tree operation and maintenance task configuration instructions, wherein the multi-tree operation and maintenance tasks comprise configuration of operation and maintenance task basic information, configuration of multi-tree branch points and configuration of each sub-operation and maintenance task, and the multi-tree branch points comprise configuration of pre-judging conditions; and arranging each configured sub-operation and maintenance task according to the execution sequence of the preset multi-tree operation and maintenance task to obtain a target operation and maintenance task.
Illustratively, when the multi-tree operation and maintenance task is specifically a binary tree operation and maintenance task, configuring the binary tree operation and maintenance task includes configuring basic information of the operation and maintenance task, configuring branch points of the binary tree and configuring each sub operation and maintenance task; the configuration of the operation and maintenance task basic information comprises, but is not limited to, configuration of information such as task names, task total steps, execution time, task purposes and the like; configuration of branch points of the binary tree includes, but is not limited to, configuration of information such as binary tree module names, scripts, prejudgment conditions, associated subtasks and the like; the configuration of each sub-operation task includes, but is not limited to, configuration of information such as commands, scripts, device objects, port numbers, and the like.
In order to facilitate the user to view the execution process of the operation and maintenance task in real time, in one embodiment, an instruction execution result, a matching result of the instruction execution result and the pre-judgment condition, and an operation and maintenance task execution log may be displayed on the visual webpage end; the instruction execution results comprise a first execution result and a second execution result.
The following describes an operation and maintenance task execution device, an operation and maintenance server, and a computer storage medium provided in the embodiments of the present invention, and the operation and maintenance task execution device, the operation and maintenance server, and the computer storage medium described below and the operation and maintenance task execution method described above may be referred to correspondingly. Fig. 3 is a schematic structural diagram of an operation and maintenance task execution device according to an embodiment of the present invention, as shown in fig. 3, the operation and maintenance task execution device includes:
the execution device determining module 301 is configured to determine, according to operation task information of the target operation task, execution devices of each sub operation task in the target operation task; the target operation and maintenance tasks are determined by each sub operation and maintenance task according to the execution sequence of the preset multi-tree operation and maintenance tasks;
the first execution result obtaining module 302 is configured to send a first sub-operation and maintenance task in the target operation and maintenance task to a first execution device corresponding to the first sub-operation and maintenance task for execution based on a preset execution sequence of the multi-tree operation and maintenance task, and obtain a first execution result;
a second sub-operation task determining module 303, configured to match the first execution result with a pre-judging condition, and determine a second sub-operation task under the first sub-operation task branch; the second sub-operation task is related to the first sub-operation task through a pre-judging condition successfully matched with the first execution result;
and the second execution result obtaining module 304 is configured to send the second sub-operation task to the second execution device for executing and obtaining a second execution result until the execution of the target operation task is ended.
Optionally, the second execution result obtaining module 304 includes:
an execution device determination unit configured to determine that the second execution device is the first execution device;
and the second execution result acquisition unit is used for transmitting the second sub-operation and maintenance task to the first execution device by using the resource connection of the first sub-operation and maintenance task and acquiring a second execution result.
Optionally, the operation and maintenance task execution device further includes:
the multi-tree operation and maintenance task configuration module is used for configuring multi-tree operation and maintenance tasks according to multi-tree operation and maintenance task configuration instructions after an operation and maintenance process script of a target operation and maintenance scene is solidified, wherein the multi-tree operation and maintenance task configuration module comprises configuration of operation and maintenance task basic information, configuration of multi-tree branch points and configuration of each sub-operation and maintenance task, and the multi-tree branch point configuration comprises configuration of prejudgement conditions;
and the target operation and maintenance task determining module is used for arranging each configured sub operation and maintenance task according to the preset multi-tree operation and maintenance task execution sequence to obtain the target operation and maintenance task.
Optionally, the operation and maintenance task execution device further includes:
the display module is used for displaying the instruction execution result, the matching result of the instruction execution result and the pre-judging condition and the operation and maintenance task execution log; the instruction execution results comprise a first execution result and a second execution result.
Optionally, the operation and maintenance task execution device further includes:
the operation and maintenance task ending trigger instruction generating module is used for generating an operation and maintenance task ending trigger instruction;
and the resource connection releasing module is used for releasing the resource connection of each execution device according to the operation and maintenance task ending trigger instruction.
The embodiment of the invention also provides an operation server, which comprises the following components: a processor and a memory storing computer program instructions; the processor, when executing the computer program instructions, implements the operation and maintenance task execution method of any of the embodiments described above. Fig. 4 is a schematic diagram of an operation server according to an embodiment of the present invention, where the operation server may include a processor 401 and a memory 402 storing computer program instructions.
In particular, the processor 401 described above may include a Central Processing Unit (CPU), or an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured as one or more integrated circuits implementing embodiments of the present invention.
Memory 402 may include mass storage for data or instructions. By way of example, and not limitation, memory 402 may comprise a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, magnetic tape, or universal serial bus (Universal Serial Bus, USB) Drive, or a combination of two or more of the foregoing. Memory 402 may include removable or non-removable (or fixed) media, where appropriate. Memory 402 may be internal or external to the integrated gateway disaster recovery device, where appropriate. In a particular embodiment, the memory 402 is a non-volatile solid state memory. In a particular embodiment, the memory 402 includes Read Only Memory (ROM). The ROM may be mask programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these, where appropriate.
The processor 401 reads and executes the computer program instructions stored in the memory 402 to implement any one of the operation and maintenance task execution methods of the above embodiments.
In one example, the operation and maintenance server may also include a communication interface 403 and a bus 410. As shown in fig. 4, the processor 401, the memory 402, and the communication interface 403 are connected by a bus 410 and perform communication with each other.
The communication interface 403 is mainly used to implement communication between each module, device, unit and/or apparatus in the embodiment of the present invention.
Bus 410 includes hardware, software, or both, coupling the components of the operation and maintenance server to each other. By way of example, and not limitation, the buses may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a micro channel architecture (MCa) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus, or a combination of two or more of the above. Bus 410 may include one or more buses, where appropriate. Although embodiments of the invention have been described and illustrated with respect to a particular bus, the invention contemplates any suitable bus or interconnect.
In addition, in combination with the method for executing the operation and maintenance task in the above embodiment, the embodiment of the invention may be implemented by providing a computer storage medium. The computer storage medium has stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the operation and maintenance task execution methods of the above embodiments.
It should be understood that the invention is not limited to the particular arrangements and instrumentality described above and shown in the drawings. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between steps, after appreciating the spirit of the present invention.
The functional blocks shown in the above block diagrams may be implemented in hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, a plug-in, a function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine readable medium or transmitted over transmission media or communication links by a data signal carried in a carrier wave. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuitry, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio Frequency (RF) links, and the like. The code segments may be downloaded via computer networks such as the internet, intranets, etc.
It should also be noted that the exemplary embodiments mentioned in this disclosure describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, or may be performed in a different order from the order in the embodiments, or several steps may be performed simultaneously.
In the foregoing, only the specific embodiments of the present invention are described, and it will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, which are not repeated herein. It should be understood that the scope of the present invention is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present invention, and they should be included in the scope of the present invention.

Claims (10)

1. An operation and maintenance task execution method is characterized by being applied to an operation and maintenance server and comprising the following steps:
determining execution equipment of each sub-operation and maintenance task in a target operation and maintenance task according to operation and maintenance task information of the target operation and maintenance task; the target operation and maintenance tasks are determined by the sub operation and maintenance tasks according to the execution sequence of the preset multi-tree operation and maintenance tasks;
based on the preset multi-tree operation and maintenance task execution sequence, a first sub-operation and maintenance task in the target operation and maintenance task is sent to first execution equipment corresponding to the first sub-operation and maintenance task to be executed, and a first execution result is obtained, wherein the first execution result is a result of completion of execution of the first sub-operation and maintenance task or is an unknown but inconsequential error or fault occurring in the process of executing the first sub-operation and maintenance task;
under the condition that the first execution result is the result of the execution completion of the first sub-operation and maintenance task, performing similarity matching on the result of the execution completion of the operation and maintenance task and a plurality of pre-judgment conditions, wherein the pre-judgment condition with the highest similarity is used as the pre-judgment condition successfully matched with the first execution result, and the sub-operation and maintenance task associated with the pre-judgment condition is used as a second sub-operation and maintenance task;
in the case that the first execution result is an unknown but inconsequential error or fault occurring in the process of executing the first sub-operation and maintenance task, matching and inquiring the error or fault in a corresponding error table or fault table, and determining the second sub-operation and maintenance task;
and sending the second sub-operation and maintenance task to second execution equipment to execute and acquire a second execution result until the execution of the target operation and maintenance task is finished.
2. The method for executing the operation and maintenance task according to claim 1, wherein the sending the second sub operation and maintenance task to the second execution device to execute and obtain the second execution result until the execution of the target operation and maintenance task is finished includes:
determining that the second execution device is the first execution device;
and sending the second sub-operation and maintenance task to a first execution device by using the resource connection of the first sub-operation and maintenance task and acquiring the second execution result.
3. The method for executing an operation and maintenance task according to claim 1, wherein before determining the execution device of each sub operation and maintenance task in the target operation and maintenance task according to the operation and maintenance task information of the target operation and maintenance task, the method further comprises:
after an operation and maintenance flow script of a target operation and maintenance scene is solidified, configuring a multi-tree operation and maintenance task according to a multi-tree operation and maintenance task configuration instruction, wherein the multi-tree operation and maintenance task comprises configuration of operation and maintenance task basic information, configuration of multi-tree branch points and configuration of each sub operation and maintenance task, and the configuration of the multi-tree branch points comprises configuration of the pre-judging condition;
and arranging each configured sub-operation and maintenance task according to the execution sequence of the preset multi-tree operation and maintenance task to obtain the target operation and maintenance task.
4. The operation and maintenance task execution method according to claim 1, wherein the method further comprises:
displaying an instruction execution result, a matching result of the instruction execution result and the pre-judging condition, and an operation and maintenance task execution log; the instruction execution results comprise the first execution result and the second execution result.
5. The method for executing the operation and maintenance task according to any one of claims 1 to 4, wherein the sending the second sub-operation and maintenance task to a second execution device executes and obtains a second execution result until after the execution of the target operation and maintenance task is finished, the method further comprises:
generating an operation and maintenance task ending triggering instruction;
and releasing the resource connection of each execution device according to the operation and maintenance task ending triggering instruction.
6. An operation and maintenance task execution method is characterized by being applied to execution equipment and comprising the following steps:
receiving a sub operation task sent by an operation server;
executing the sub operation and maintenance task to obtain an execution result, and sending the execution result to the operation and maintenance server;
wherein, the sub-operation tasks are a first sub-operation task and a second sub-operation task determined by the operation server in the process of executing the operation task execution method in claim 1.
7. The method for executing the operation and maintenance task according to claim 6, wherein executing the sub operation and maintenance task obtains an execution result, and transmitting the execution result to the operation and maintenance server, comprising:
acquiring a command or script of the sub operation and maintenance task;
and according to the command or the script, the sub-operation and maintenance task is executed in a distributed mode to obtain the execution result, and the execution result is sent to the operation and maintenance server.
8. An operation and maintenance task execution device, comprising:
the execution device determining module is used for determining the execution device of each sub-operation and maintenance task in the target operation and maintenance task according to the operation and maintenance task information of the target operation and maintenance task; the target operation and maintenance tasks are determined by the sub operation and maintenance tasks according to the execution sequence of the preset multi-tree operation and maintenance tasks;
the first execution result acquisition module is used for transmitting a first sub-operation and maintenance task in the target operation and maintenance task to first execution equipment corresponding to the first sub-operation and maintenance task for execution based on the preset multi-tree operation and maintenance task execution sequence, and acquiring a first execution result, wherein the first execution result is a result of completion of execution of the first sub-operation and maintenance task or an unknown but inconsequential error or fault occurring in the process of executing the first sub-operation and maintenance task;
the second sub-operation and maintenance task determining module is used for matching the similarity between the result of the completion of the operation and maintenance task and a plurality of pre-judgment conditions under the condition that the first execution result is the result of the completion of the execution of the first sub-operation and maintenance task, taking the pre-judgment condition with the highest similarity as the pre-judgment condition successfully matched with the first execution result, and taking the sub-operation and maintenance task associated with the pre-judgment condition as the second sub-operation and maintenance task; in the case that the first execution result is an unknown but inconsequential error or fault occurring in the process of executing the first sub-operation and maintenance task, matching and inquiring the error or fault in a corresponding error table or fault table, and determining the second sub-operation and maintenance task;
and the second execution result acquisition module is used for sending the second sub-operation and maintenance task to second execution equipment for execution and acquiring a second execution result until the execution of the target operation and maintenance task is finished.
9. An operation and maintenance server, the apparatus comprising: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the method for performing an operation and maintenance task according to any one of claims 1-5.
10. A computer storage medium having stored thereon computer program instructions which, when executed by a processor, implement the method of performing an operation and maintenance task according to any of claims 1-7.
CN201910963179.3A 2019-10-11 2019-10-11 Operation and maintenance task execution method and device, operation and maintenance server and computer storage medium Active CN112651514B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910963179.3A CN112651514B (en) 2019-10-11 2019-10-11 Operation and maintenance task execution method and device, operation and maintenance server and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910963179.3A CN112651514B (en) 2019-10-11 2019-10-11 Operation and maintenance task execution method and device, operation and maintenance server and computer storage medium

Publications (2)

Publication Number Publication Date
CN112651514A CN112651514A (en) 2021-04-13
CN112651514B true CN112651514B (en) 2024-02-27

Family

ID=75343337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910963179.3A Active CN112651514B (en) 2019-10-11 2019-10-11 Operation and maintenance task execution method and device, operation and maintenance server and computer storage medium

Country Status (1)

Country Link
CN (1) CN112651514B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117270936B (en) * 2023-10-10 2024-03-19 武汉碧涯科技有限公司 Cloud platform operation and maintenance method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201805A (en) * 2016-07-28 2016-12-07 北京百度网讯科技有限公司 For the method and apparatus detecting server failure
CN107944743A (en) * 2017-12-08 2018-04-20 中国银行股份有限公司 The operation and maintenance method, apparatus and system of a kind of large computer system
CN108416449A (en) * 2018-02-05 2018-08-17 北京奇艺世纪科技有限公司 A kind of O&M method and apparatus
CN109711802A (en) * 2018-12-14 2019-05-03 深圳壹账通智能科技有限公司 Item information processing method, device, computer equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10055712B2 (en) * 2014-03-20 2018-08-21 United Parcel Service Of America, Inc. Concepts for repair, service, purchase, sale or trade-in of items

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201805A (en) * 2016-07-28 2016-12-07 北京百度网讯科技有限公司 For the method and apparatus detecting server failure
CN107944743A (en) * 2017-12-08 2018-04-20 中国银行股份有限公司 The operation and maintenance method, apparatus and system of a kind of large computer system
CN108416449A (en) * 2018-02-05 2018-08-17 北京奇艺世纪科技有限公司 A kind of O&M method and apparatus
CN109711802A (en) * 2018-12-14 2019-05-03 深圳壹账通智能科技有限公司 Item information processing method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112651514A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN110493669B (en) Network resource checking method, device, equipment and computer storage medium
CN111522738A (en) Test method and device of micro-service system, storage medium and electronic equipment
CN112651514B (en) Operation and maintenance task execution method and device, operation and maintenance server and computer storage medium
CN112115049B (en) Application program testing method, device, equipment and computer readable storage medium
CN112649717A (en) Test method, test device, terminal equipment and storage medium
CN108989128B (en) Fault positioning method and device based on networking structure
CN109240888B (en) Information grabbing method, device, equipment and medium
CN115391228A (en) Precise test method, device, equipment and medium
CN115118582A (en) Log analysis method and device
CN111078277A (en) Packaging system, packaging method and storage medium
KR100794130B1 (en) Automatic Function Testing Equipment for Application Software and Additional Service of Mobile Communication Terminal
CN108628712B (en) Application program testing method and terminal equipment
CN108319551B (en) Software testing method and device, computer equipment and readable storage medium
CN113381911A (en) Test method, device, equipment and storage medium
CN111221727A (en) Test method, test device, electronic equipment and computer readable medium
CN112105025A (en) eSIM-based operator network test system and method
CN116149808A (en) Robot flow automatic management system and method
CN115113871A (en) Front-end code version information checking method, device and equipment based on data middlebox
CN113110991A (en) Page element positioning method and device, storage medium and electronic device
CN108536587A (en) A kind of automated testing method and system based on Appium
CN106789260B (en) System and method for high availability drilling of network devices
CN112911629A (en) Network testing method and device and computer readable storage medium
CN113434417B (en) Regression testing method and device for loopholes, storage medium and electronic device
CN116776788B (en) Context switching verification method and device
CN110825631B (en) Test method, test device, electronic equipment and storage medium

Legal Events

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