CN113162784B - Method and device for generating operation and maintenance template - Google Patents

Method and device for generating operation and maintenance template Download PDF

Info

Publication number
CN113162784B
CN113162784B CN202010075839.7A CN202010075839A CN113162784B CN 113162784 B CN113162784 B CN 113162784B CN 202010075839 A CN202010075839 A CN 202010075839A CN 113162784 B CN113162784 B CN 113162784B
Authority
CN
China
Prior art keywords
maintenance
information
operations
determining
maintenance operations
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
CN202010075839.7A
Other languages
Chinese (zh)
Other versions
CN113162784A (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010075839.7A priority Critical patent/CN113162784B/en
Publication of CN113162784A publication Critical patent/CN113162784A/en
Application granted granted Critical
Publication of CN113162784B publication Critical patent/CN113162784B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • H04L41/5048Automatic or semi-automatic definitions, e.g. definition templates
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/50Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications

Abstract

The embodiment of the application provides a method and a device for generating an operation and maintenance template, wherein the method comprises the following steps: acquiring operation information of operation and maintenance operations executed by a user; adopting the operation information to determine the relevance between the operation and maintenance operations; determining the execution flow of the operation and maintenance task by adopting the relevance between the operation and maintenance operations; and generating an operation and maintenance template by adopting the execution flow. By the method for generating the operation and maintenance template, the operation and maintenance tasks with the same effect as at least one operation and maintenance operation input by a user can be completed. The method and the device have the advantages that the operation and maintenance template is not required to be written by a user, the use threshold of the operation and maintenance template is reduced, the efficiency of operation and maintenance service is improved, and the reliability is high.

Description

Method and device for generating operation and maintenance template
Technical Field
The application relates to the technical field of computers, in particular to a method and a device for generating an operation and maintenance template.
Background
An operation and maintenance service may refer to a service that operates and maintains the lifecycle of resources such as networks, servers, services, and the like. As resources such as networks, servers, services, etc. of users increase, the importance of the operation and maintenance services correspondingly increases, and the time it takes for the operation and maintenance services correspondingly increases. Relying on manual operation of various resources takes much time and is prone to errors.
Disclosure of Invention
In view of the foregoing, embodiments of the present application are directed to providing a method for generating an operation and maintenance template and a corresponding apparatus for generating an operation and maintenance template, which overcome or at least partially solve the foregoing problems.
In order to solve the above problems, an embodiment of the present application discloses a method for generating an operation and maintenance template, which includes:
acquiring operation information of operation and maintenance operations executed by a user;
adopting the operation information to determine the relevance between the operation and maintenance operations;
determining the execution flow of the operation and maintenance task by adopting the relevance between the operation and maintenance operations;
and generating an operation and maintenance template by adopting the execution flow.
In one embodiment of the application, the operation information includes sequence information;
the step of determining the relevance between the operation and maintenance operations by adopting the operation information comprises the following steps:
determining whether the operation and maintenance operations are continuous operations or combined operations by adopting the sequence information;
in the case of continuous operation or combined operation between the operation and maintenance operations, it is determined that there is a correlation between the operation and maintenance operations.
In one embodiment of the present application, the operation information includes resource calling information, where the resource calling information is used to store preset resources called by the operation and maintenance operation;
The step of determining the relevance between the operation and maintenance operations by adopting the operation information comprises the following steps:
determining whether the same preset resources are called among the operation and maintenance operations by adopting the resource calling information of the operation and maintenance operations;
and under the condition that the same preset resources are called among the operation and maintenance operations, determining that the operation and maintenance operations are associated.
In one embodiment of the present application, the operation information includes input information and output information;
the step of determining the relevance between the operation and maintenance operations by adopting the operation information comprises the following steps:
determining whether the input information of the operation and maintenance operation is the output information of other operation and maintenance operations;
and determining that the operation and the other operation are associated under the condition that the input information of the operation and the maintenance operation is the output information of the other operation and maintenance operation.
In one embodiment of the present application, the operation information further includes configuration information;
after the step of determining the execution flow of the operation and maintenance task by adopting the relevance between the operation and maintenance operations, the method further comprises the following steps:
and determining an action instruction of the operation and maintenance task by adopting the configuration information.
In one embodiment of the present application, the method further comprises:
and determining the execution authority of the operation and maintenance template by adopting the operation authority of the user.
The embodiment of the application also discloses a device for generating the operation and maintenance template, which comprises the following steps:
the acquisition module is used for acquiring operation information of operation and maintenance operations executed by a user;
the association module is used for determining the association between the operation and maintenance operations by adopting the operation information;
the determining module is used for determining the execution flow of the operation and maintenance task by adopting the relevance between the operation and maintenance operations;
and the generating module is used for generating the operation and maintenance template by adopting the execution flow.
In one embodiment of the application, the operation information includes sequence information;
the association module comprises:
a sequence determining sub-module, configured to determine whether the operation and maintenance operations are continuous operations or combined operations by using the sequence information;
and the first association sub-module is used for determining that the operation and maintenance operations are associated under the condition of continuous operation or combined operation among the operation and maintenance operations.
In one embodiment of the present application, the operation information includes resource calling information, where the resource calling information is used to store preset resources called by the operation and maintenance operation;
The association module comprises:
the resource determination submodule is used for determining whether the same preset resource is called among the operation and maintenance operations by adopting the resource calling information of the operation and maintenance operations;
and the second association sub-module determines that the operation and maintenance operations are associated under the condition that the same preset resources are called among the operation and maintenance operations.
In one embodiment of the present application, the operation information includes input information and output information;
the association module comprises:
the input determination submodule is used for determining whether the input information of the operation and maintenance operation is the output information of other operation and maintenance operations;
and the third association sub-module is used for determining that the operation and the other operation are associated when the input information of the operation and the maintenance operation is the output information of the other operation and maintenance operation.
In one embodiment of the present application, the operation information further includes configuration information;
the apparatus further comprises:
and the instruction determining module is used for determining the action instruction of the operation and maintenance task by adopting the configuration information.
In one embodiment of the application, the apparatus further comprises:
and the permission determining module is used for determining the execution permission of the operation and maintenance template by adopting the operation permission of the user.
The embodiment of the application also discloses a device, which comprises:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform one or more methods as described by embodiments of the present application.
Embodiments of the application also disclose one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform one or more methods as described in embodiments of the application.
The embodiment of the application has the following advantages:
by the method for generating the operation and maintenance template, operation information of operation and maintenance operations executed by a user is acquired, and the relevance between the operation and maintenance operations is determined by adopting the operation information. The operation sequence among the operation and maintenance operations and the effective operation in the operation and maintenance operations can be determined based on the relevance among the operation and maintenance operations, so that the execution flow of the operation and maintenance task is determined, and an operation and maintenance template is generated based on the execution flow of the operation and maintenance task. Thus, by executing the operation and maintenance template, the operation and maintenance task with the same effect as at least one operation and maintenance operation input by a user can be completed. The method and the device have the advantages that the operation and maintenance template is not required to be written by a user, the use threshold of the operation and maintenance template is reduced, the efficiency of operation and maintenance service is improved, and the reliability is high.
Drawings
FIG. 1 is a flow chart of steps of an embodiment of a method for generating an operation and maintenance template according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an operation and maintenance console according to an embodiment of the present application;
FIG. 3 is a schematic diagram of another operation and maintenance console according to an embodiment of the present application;
FIG. 4 is a flow chart of steps of an embodiment of a method of generating an operation and maintenance template according to another embodiment of the present application;
FIG. 5 is a flow chart of steps of an embodiment of a method of generating an operation and maintenance template according to another embodiment of the present application;
FIG. 6 is a block diagram of an embodiment of an operation and maintenance template generating device according to an embodiment of the present application;
fig. 7 is a block diagram of another embodiment of an operation and maintenance template generating apparatus according to an embodiment of the present application.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will become more readily apparent, a more particular description of the application will be rendered by reference to the appended drawings and appended detailed description.
In the embodiment of the application, as the operation and maintenance service can be a combination of a plurality of fixed actions, a user can design an operation and maintenance template of the combination of the plurality of fixed actions, so that the efficiency of the operation and maintenance service can be improved by executing the operation and maintenance template to execute the plurality of fixed actions. However, for some users, it is difficult to write the operation and maintenance template, and the user can write the operation and maintenance template by himself or herself, so that the operation and maintenance template is low in utilization rate, and the operation and maintenance service can easily cause errors due to incorrect operation and maintenance template. Therefore, the operation information of the operation and maintenance operation executed by the user is acquired, the operation and maintenance template is generated by adopting the operation information, the user does not need to write the operation and maintenance template by himself, the use threshold of the operation and maintenance template is reduced, the efficiency of operation and maintenance service is improved, and the reliability is high.
Referring to fig. 1, a step flow chart of an embodiment of a method for generating an operation and maintenance template according to the present application may specifically include the following steps:
step 101, obtaining operation information of operation and maintenance operation executed by a user;
in the embodiment of the application, a user can execute at least one operation and maintenance operation on a preset operation and maintenance console to operate and maintain resources such as a network, a server, a service and the like. So that the operation and maintenance console can acquire operation information of operation and maintenance operations performed by at least one user.
In the embodiment of the application, the operation information can be used for storing operation and maintenance operations executed by a user. Specifically, the operation information may store an operation performed by a user by clicking a button in the operation and maintenance console, an operation performed by a user by inputting text in the operation and maintenance console, and the like, to which the present application is not limited.
In a specific implementation, the operation and maintenance console can acquire operation information of operation and maintenance operations executed by a user by acquiring operation and maintenance operations input by the user at the operation and maintenance console through an input device. The input device may be a keyboard, a mouse, a microphone, etc., to which the present application is not limited.
In the embodiment of the present application, the operation and maintenance console provides a start recording operation and an end recording operation, and the user may execute the start recording operation, and execute the end recording operation after executing at least one operation and maintenance operation. And using the operation information of at least one operation and maintenance operation executed by the user between the execution of the start recording operation and the execution of the end recording operation as the operation information for generating an operation and maintenance template.
As an example of the present application, as shown in fig. 2, fig. 2 may be a schematic diagram of an operation and maintenance console according to an embodiment of the present application, where the operation and maintenance console may have a visual operation interface, and a start recording button 201 and an end recording button 202 may be disposed on the operation interface, and after at least one operation and maintenance operation is performed, a user may click on the start recording button 201 and then click on the end recording button 202. The operation and maintenance console may use operation information of at least one operation and maintenance operation performed by the user between the start recording operation and the end recording operation as operation information for generating the operation and maintenance template.
Step 102, determining the relevance between the operation and maintenance operations by adopting the operation information;
In the embodiment of the application, the operation and maintenance console can be provided with a visual operation interface, and a user performs operation and maintenance operation on the visual operation interface, so that operation and maintenance tasks are completed. The operation of the user on the visual operation interface can be operation and maintenance operations such as clicking a button, inputting characters and the like. For the operation and maintenance console, the at least one operation and maintenance operation of the user is not a section of computer-readable logic flow, but is a scattered action executed based on a visual operation interface, and the operation and maintenance console cannot directly obtain the computer-readable logic flow based on the operation and maintenance operation. Therefore, in order to restore the user's operation and maintenance operations in the operation and maintenance console, it is necessary to determine the association between the operation and maintenance operations using the operation information.
In an embodiment of the present application, there may be a correlation between the operation and maintenance operations. In particular, if the operations need to be performed on the basis of other operations, then it can be considered that there is a correlation between the operations. If the operation is not performed based on other operation, then it can be considered that there is no association between the operation.
As an example of the present application, when the operation a is to click the "create instance" button and the operation B is to click the "confirm creation" button, the operation B may be performed based on the operation a, and there may be an association between the operation a and the operation B.
As an example of the present application, operation a is searching "find" to obtain a list of ECSs (Elastic Compute Service, elastic computing services) with "find" in the name, and operation B is searching "economics" to obtain a list of ECSs with "economics" in the name. The operation B may not be performed based on operation a, and the operation a and the operation B may not be associated.
Step 103, determining the execution flow of the operation and maintenance task by adopting the relevance between the operation and maintenance operations;
in the embodiment of the application, the operation sequence among the operation and maintenance operations and the effective operation in the operation and maintenance operations can be determined based on the relevance among the operation and maintenance operations. In particular, in the case where the operation needs to be performed based on other operation, the other operation may be an operation whose operation sequence precedes the operation. Among the operation operations, there may be operation operations that are not associated with any other operation, and then the operation operations may be exclusionary redundant operations.
In the embodiment of the application, the operation and maintenance operation can request the operation and maintenance console to acquire information, can input information to the operation and maintenance console, and can generate a request sent to preset network equipment based on the information input to the operation and maintenance console. An operation to generate a request to send to a preset network device may be used as a key operation. Other operations associated with the critical operation may be considered as valid operations, while other operations not associated with the critical operation may be considered as redundant operations.
As an example of the present application, operation a is to input basic configuration information, and operation B is to click a "confirm generated instance" button. Wherein, the operation A can be to input basic configuration information to the operation control console, and the operation B can be to generate an instance generation request sent to a preset server based on the basic configuration information input to the operation control console. The operation B may be a critical operation. And the operation and maintenance operation B is executed based on the basic configuration information input by the operation and maintenance operation A, and the operation and maintenance operation A can be a valid operation.
In the embodiment of the application, the execution flow of the operation and maintenance task can be determined by adopting the operation sequence among the operation and maintenance operations and the effective operation in the operation and maintenance operations. Specifically, the operation and maintenance control console may determine at least one action instruction and configuration information of the action instruction, which are required to be executed, based on an effective operation in the operation and maintenance operations, and determine an operation sequence of the at least one action instruction based on an operation sequence of the effective operation in the operation and maintenance operations, so as to determine an execution flow of an operation and maintenance task. The action instruction may be an instruction that can be understood by a computer corresponding to the operation and maintenance operation. For example, if the operation a is to click the "confirm creation instance" button, the action instruction corresponding to the operation a may be "runinstance".
And 104, generating an operation and maintenance template by adopting the execution flow.
In the embodiment of the application, the execution flow can be adopted to generate the operation and maintenance template. The operation and maintenance template can comprise at least one action instruction which can be understood by a computer and configuration information of the action instruction. The operation and maintenance tasks with the same effect as at least one operation and maintenance operation input by the user can be completed by executing the operation and maintenance template.
In the embodiment of the application, the operation and maintenance console can display the generated operation and maintenance template. Therefore, the user can check the operation and maintenance template and modify the operation and maintenance template, so that the generated template meets the operation and maintenance requirements of the user.
As an example of the present application, fig. 3 is a schematic diagram of another operation and maintenance console according to an embodiment of the present application. The operation and maintenance operation platform can display the operation and maintenance template in a JSON format, a YAML format and a visual preview mode, so that a user can know the content of the operation and maintenance template in various modes. The user can run the operation and maintenance template, the operation and maintenance operation platform can store the execution result of the operation and maintenance template and store an execution log, so that the user can check the execution effect of the operation and maintenance task conveniently.
As an example of the present application, a user may perform the following operation and maintenance actions: operation and maintenance operation a: clicking the "create instance" button, operation B: clicking the "confirm creation" button completes the creation of the ECS instance. The operation and maintenance operation A is used for displaying a setting page created by an instance on an operation and maintenance console, and the operation and maintenance operation B is used for generating a request for sending the instance creation to a preset server based on information input by a user in the setting page and obtaining output information returned by the preset server. The operation B may be a critical operation. And the operation and maintenance operation B creates an instance based on the information input by the user in the configuration page displayed by the operation and maintenance operation A, and the operation and maintenance operation A is associated with the operation and maintenance operation B. Since the user does not execute the operation and maintenance operation on the configuration page displayed in the operation and maintenance operation a, and inputs the configuration information, the configuration information displayed in the operation and maintenance operation a can be set by default. Thus, the execution flow may be determined as: and sending an instance creation request to a preset server, wherein configuration information contained in the instance creation request is a default value, obtaining output information returned by the preset server, and finally displaying the output information to a user by an operation and maintenance template. The operation and maintenance template may be:
The name format of the Action instruction Action can be ACS. "ACS:: ECS:: runInstances" means that an ECS instance is created. The action of creating the ESC instance may include Description information Description and configuration information Properties by default, wherein the Description information Description may be preset by the operation and maintenance console, and the usage of the action instruction is described in english and chinese. The configuration information Properties may be filled in by the user, including mirror resource identification information ImageId, resource specification information instanceType, security group identification information securegroupid, virtual switch identification information vSwitchId, instance number information amount. Since the user does not fill in the setting information, the fields of the respective configuration information may be default values. The action instruction "create ECS instance" may send a request to a preset server to create the ECS instance, and acquire output information output returned by the preset server, where the output information output may include instance identification information instanceId, and the instance identification information instanceId may include a field "instanceIds [0]" randomly allocated by the server. The final operation and maintenance template may present the output information output to the user, which may include the field "runinstance.
By the method for generating the operation and maintenance template, operation information of operation and maintenance operations executed by a user is acquired, and the relevance between the operation and maintenance operations is determined by adopting the operation information. The operation sequence among the operation and maintenance operations and the effective operation in the operation and maintenance operations can be determined based on the relevance among the operation and maintenance operations, so that the execution flow of the operation and maintenance task is determined, and an operation and maintenance template is generated based on the execution flow of the operation and maintenance task. Thus, by executing the operation and maintenance template, the operation and maintenance task with the same effect as at least one operation and maintenance operation input by a user can be completed. The method and the device have the advantages that the operation and maintenance template is not required to be written by a user, the use threshold of the operation and maintenance template is reduced, the efficiency of operation and maintenance service is improved, and the reliability is high.
Referring to fig. 4, a step flowchart of an embodiment of a method for generating an operation and maintenance template according to the present application may specifically include the following steps:
step 401, obtaining operation information of operation and maintenance operations executed by a user;
in the embodiment of the application, a user can execute at least one operation and maintenance operation on a preset operation and maintenance console to operate and maintain resources such as a network, a server, a service and the like. So that the operation and maintenance console can acquire operation information of operation and maintenance operations performed by at least one user.
In the embodiment of the application, the operation information can be used for storing operation and maintenance operations executed by a user. Specifically, the operation information may store an operation performed by a user by clicking a button in the operation and maintenance console, an operation performed by a user by inputting text in the operation and maintenance console, and the like, to which the present application is not limited.
In a specific implementation, the operation and maintenance console can acquire operation information of operation and maintenance operations executed by a user by acquiring operation and maintenance operations input by the user at the operation and maintenance console through an input device. The input device may be a keyboard, a mouse, a microphone, etc., to which the present application is not limited.
In the embodiment of the present application, the operation and maintenance console provides a start recording operation and an end recording operation, and the user may execute the start recording operation, and execute the end recording operation after executing at least one operation and maintenance operation. And using the operation information of at least one operation and maintenance operation executed by the user between the execution of the start recording operation and the execution of the end recording operation as the operation information for generating an operation and maintenance template.
Step 402, determining the relevance between the operation and maintenance operations by adopting the operation information;
In the embodiment of the application, the operation and maintenance console can be provided with a visual operation interface, and a user performs operation and maintenance operation on the visual operation interface, so that operation and maintenance tasks are completed. The operation of the user on the visual operation interface can be operation and maintenance operations such as clicking a button, inputting characters and the like. For the operation and maintenance console, the at least one operation and maintenance operation of the user is not a section of computer-readable logic flow, but is a scattered action executed based on a visual operation interface, and the operation and maintenance console cannot directly obtain the computer-readable logic flow based on the operation and maintenance operation. Therefore, in order to restore the user's operation and maintenance operations in the operation and maintenance console, it is necessary to determine the association between the operation and maintenance operations using the operation information.
In an embodiment of the present application, there may be a correlation between the operation and maintenance operations. In particular, if the operations need to be performed on the basis of other operations, then it can be considered that there is a correlation between the operations. If the operation is not performed based on other operation, then it can be considered that there is no association between the operation.
In one embodiment of the application, the operation information includes sequence information;
in an embodiment of the present application, the sequence information may be used to represent an operation sequence of the operation and maintenance operation. Specifically, the order information may be marked with time, e.g., 00:01, 2019/06/06/12:00:01, etc.; the marking may also be performed in an order, for example, step one, step two … …, step five, 1, 2 … …, etc., as the application is not limited in this regard.
The step of determining the relevance between the operation and maintenance operations by adopting the operation information comprises the following steps:
s11, determining whether the operation and maintenance operations are continuous operations or combined operations by adopting the sequence information;
in the embodiment of the application, the continuous operation can be operation and maintenance operation with adjacent operation sequences. The operation and maintenance operations adjacent to each other in the operation order can be regarded as continuous operation, because a certain continuity can exist between the operation and maintenance operations.
In an embodiment of the present application, the combining operation may be to perform at least two operation and maintenance operations in a fixed order. Among the several operation and maintenance operations performed by the user, there may be at least two operation and maintenance operations that are repeated in a fixed order, and thus, the at least two operation and maintenance operations may be regarded as related operations. So that at least two operation and maintenance operations repeated in a fixed order can be regarded as a combined operation.
S12, determining that the operation and maintenance operations are related under the condition that the operation and maintenance operations are continuous operation or combined operation.
In the embodiment of the application, in the case of continuous operation or combined operation between operation and maintenance operations, a stronger correlation between operation and maintenance operations can be considered, so that the correlation between operation and maintenance operations can be considered.
In the embodiment of the application, the continuous operation may have the situation that the previous operation and the subsequent operation are misoperation, and the subsequent operation is the operation which the user wants to execute, or the continuous operation is the operation which is performed for different resources, and the like, so that whether obvious association exists between the continuous operations can be further determined based on the operation information. For example, it may be further determined whether there is a distinct association between successive operations based on the invoked resources between the successive operations. It may be further determined whether there is a clear association between successive operations based on whether there is an interdependence between successive operations, i.e. the output of a preceding operation is the input of a subsequent operation. It may also be determined whether there is a clear association with the continuous operation based on machine learning. Thereby further improving the accuracy of judging the correlation between the operation and maintenance operations.
In one embodiment of the present application, the operation information includes resource calling information, where the resource calling information is used to store preset resources called by the operation and maintenance operation;
in the embodiment of the application, the operation and maintenance operation can call at least one preset resource. The resources may be networks, servers, services, etc., to which the present application is not limited. In particular, the service may include an application program preset in the network device, for example, an ECS (Elastic Compute Service, elastic computing service) service, RDS (Relational Database Service) service, function computing service, notification service, etc., to which the present application is not limited. The network device may be provided with a call interface of an application program, and the operation and maintenance operation may call the service through the call interface.
In the embodiment of the application, the operation information may further include resource calling information, and the resource calling information may be used to store preset resources called by the operation and maintenance operation.
As an example of the present application, if the operation is to create an ECS instance, the operation may call the ECS service through a preset call interface to create the ECS instance.
The step of determining the relevance between the operation and maintenance operations by adopting the operation information comprises the following steps:
s21, determining whether the same preset resources are called among the operation and maintenance operations by adopting the resource calling information of the operation and maintenance operations;
in the embodiment of the application, the operation information of the operation and maintenance operation can also comprise resource calling information. The resource call information of the operation and maintenance operations can be used to determine whether the same resource is called between the operation and maintenance operations.
S22, under the condition that the same preset resources are called among the operation and maintenance operations, determining that the operation and maintenance operations are related.
In the embodiment of the application, under the condition that the same preset resource is called among the operation and maintenance operations, the operation and maintenance operations are all operations aiming at the same resource, and the operation and maintenance operations can be considered to have stronger correlation, so that the operation and maintenance operations can have correlation.
In one embodiment of the present application, the operation information includes input information and output information;
in the embodiment of the application, the operation and maintenance operation can be used for inputting information aiming at preset resources and acquiring output information returned by the resources. So that the operation information of the operation and maintenance operation may further include input information as well as output information. The input information can be used for storing information input by the operation and maintenance operation for preset resources. The output information can store information output by the operation and maintenance operation for preset resources.
The step of determining the relevance between the operation and maintenance operations by adopting the operation information comprises the following steps:
s31, determining whether the input information of the operation and maintenance operation is output information of other operation and maintenance operations;
in the embodiment of the application, the operation and maintenance operation can further process the output information on the basis of the information output by other operation and maintenance operations. Thus, the operation and maintenance operation can take the output information of other operation and maintenance operations as the input information of the operation and maintenance operation. Thus, it can be determined whether the input information of the operation and maintenance operation is output information of other operation and maintenance operations.
S32, determining that the operation and the other operation are associated when the input information of the operation and the maintenance operation is the output information of the other operation and maintenance operation.
In the embodiment of the present application, in the case that the input information of the operation is output information of other operation, the operation may be considered to be performed based on the output information of other operation, and the operation may be considered to have a strong correlation with the other operation, where the operation is associated with the other operation.
Step 403, determining an execution flow of the operation and maintenance task by adopting the relevance between the operation and maintenance operations;
in the embodiment of the application, the operation sequence among the operation and maintenance operations and the effective operation in the operation and maintenance operations can be determined based on the relevance among the operation and maintenance operations. In particular, in the case where the operation needs to be performed based on other operation, the other operation may be an operation whose operation sequence precedes the operation. Among the operation operations, there may be operation operations that are not associated with any other operation, and then the operation operations may be exclusionary redundant operations.
In the embodiment of the application, the operation and maintenance operation can request the operation and maintenance console to acquire information, can input information to the operation and maintenance console, and can generate a request sent to preset network equipment based on the information input to the operation and maintenance console. An operation to generate a request to send to a preset network device may be used as a key operation. Other operations associated with the critical operation may be considered as valid operations, while other operations not associated with the critical operation may be considered as redundant operations.
As an example of the present application, operation a is to input basic configuration information, and operation B is to click a "confirm generated instance" button. Wherein, the operation A can be to input basic configuration information to the operation control console, and the operation B can be to generate an instance generation request sent to a preset server based on the basic configuration information input to the operation control console. The operation B may be a critical operation. And the operation and maintenance operation B is executed based on the basic configuration information input by the operation and maintenance operation A, and the operation and maintenance operation A can be a valid operation.
In the embodiment of the application, the execution flow of the operation and maintenance task can be determined by adopting the operation sequence among the operation and maintenance operations and the effective operation in the operation and maintenance operations. Specifically, the operation and maintenance control console may determine at least one action instruction and configuration information of the action instruction, which are required to be executed, based on an effective operation in the operation and maintenance operations, and determine an operation sequence of the at least one action instruction based on an operation sequence of the effective operation in the operation and maintenance operations, so as to determine an execution flow of an operation and maintenance task. The action instruction may be an instruction that can be understood by a computer corresponding to the operation and maintenance operation. For example, if the operation a is to click the "confirm creation instance" button, the action instruction corresponding to the operation a may be "runinstance".
Step 404, determining an action instruction of the operation task by adopting the configuration information;
in the embodiment of the present application, the operation information may further include configuration information. The configuration information may be information that the operation and maintenance operation configures for a preset resource. The operation and maintenance operation can configure the preset resources, so that operation and maintenance of the preset resources are realized.
In the embodiment of the application, the action instruction of the operation and maintenance task can be set to configure the preset resource by adopting the configuration information. The usage of the configuration information of the operation and maintenance operation can be determined based on machine learning, and further action instructions of the operation and maintenance task are determined.
In the embodiment of the present application, the configuration information may be information that the operation and maintenance console adds for the user by default according to a specific scenario, for example, an area parameter, a time parameter, and the like. The configuration information may also be information actively input or selected by the user, for example, the number of created instances, the size of the cloud disk storage capacity, the state of setting a preset resource, an action, and the like.
In the embodiment of the application, for the parameters which need to be added for the user by default according to specific scenes in the configuration information, the operation and maintenance console performs corresponding setting in the action instruction based on preset rules and machine learning.
In the embodiment of the application, for the configuration information actively input or selected by the user, the operation and maintenance console determines the purpose of setting the configuration information by the user based on preset rules and machine learning, so as to determine the action instruction of the operation and maintenance task. Specifically, the action instructions may be set to require the user to determine the corresponding configuration by himself. The action instruction can be set to be an instruction for realizing corresponding configuration of the preset resource in the operation and maintenance operation based on the configuration information of the operation and maintenance operation. The operation and maintenance console needs to determine the judgment rules and the corresponding configuration that may exist in the operation and maintenance operation.
As an example of the application, a user may perform the following actions at the operation and maintenance console: operation and maintenance operation a: searching for "find" to get a list of ECSs (Elastic Compute Service, elastic computing services) with "find" in the name; operation and maintenance operation B: performing restarting operation on the ECS in the running state in the list; operation and maintenance operation C: a start-up operation is performed on the ECS in a stopped state. It may simply receive a restart action as well as a start action for several ECSs for the operation and maintenance console. The operation and maintenance console needs to determine that a judgment rule exists in the operation and maintenance operation B based on a preset rule and machine learning: judging whether ECS in the list is in a running state, wherein a judging rule exists in the operation C: it is determined whether the ECS in the list is in a stop state. For example, the operation and maintenance console may determine that the states of the ECSs that accept the restart action are running states, so as to determine that a judgment rule may exist: and judging whether the ECS in the list is in a running state. And the operation and maintenance console sets corresponding action instructions to judge whether the ECS in the list is in a running state, execute starting operation on the ECS in the stopped state, judge whether the ECS in the list is in the stopped state and execute starting operation on the ECS in the stopped state.
And step 405, generating an operation and maintenance template by adopting the execution flow.
In the embodiment of the application, the execution flow can be adopted to generate the operation and maintenance template. The operation and maintenance template can comprise at least one action instruction which can be understood by a computer and configuration information of the action instruction. The operation and maintenance tasks with the same effect as at least one operation and maintenance operation input by the user can be completed by executing the operation and maintenance template.
In the embodiment of the application, the operation and maintenance console can display the generated operation and maintenance template. Therefore, the user can check the operation and maintenance template and modify the operation and maintenance template, so that the generated template meets the operation and maintenance requirements of the user.
In one embodiment of the application, the method further comprises:
s41, determining the execution authority of the operation and maintenance template by adopting the operation authority of the user.
In the embodiment of the application, the user can have the operation authority, so as to avoid the unexpected situation of operation and maintenance work caused by unauthorized operation in the use process of the operation and maintenance template, and the operation authority of the user can be used as the execution authority of the operation and maintenance template when the operation and maintenance template is recorded. Ensuring the correct operation of the operation and maintenance template.
By the method for generating the operation and maintenance template, operation information of operation and maintenance operations executed by a user is acquired, and the relevance between the operation and maintenance operations is determined by adopting the operation information. The operation sequence among the operation and maintenance operations and the effective operation in the operation and maintenance operations can be determined based on the relevance among the operation and maintenance operations, so that the execution flow of the operation and maintenance task is determined, and an operation and maintenance template is generated based on the execution flow of the operation and maintenance task. Thus, by executing the operation and maintenance template, the operation and maintenance task with the same effect as at least one operation and maintenance operation input by a user can be completed. The method and the device have the advantages that the operation and maintenance template is not required to be written by a user, the use threshold of the operation and maintenance template is reduced, the efficiency of operation and maintenance service is improved, and the reliability is high.
Referring to fig. 5, a step flow diagram of an embodiment of a method for generating an operation and maintenance template of the present application is shown, where the method is applied to a cloud operation and maintenance platform, and the cloud operation and maintenance platform includes a web page control front end and a server control back end;
in the embodiment of the application, the cloud operation and maintenance platform can be used for operating and maintaining the cloud server deployed based on the Internet. The cloud operation and maintenance platform can include a web page control front end and a server control back end. The webpage control front end can be used for displaying the running state of the cloud server and receiving operation and maintenance operation of a user on the cloud server. The server control back end can be used for responding to operation and maintenance operation of a user and shading and maintaining the cloud server.
The method specifically comprises the following steps:
step 501, the network control front end acquires operation information of operation and maintenance operations of a preset cloud server, which are executed by a user, and sends the operation information to the server control back end;
in the embodiment of the application, the user can communicate with the server control back end through the network, so that the operation interface of the network control front end can be displayed on the electronic equipment of the user. And the user can execute at least one operation and maintenance operation aiming at the preset cloud server through an input device connected with the electronic device at an operation interface of the network control front end.
In the embodiment of the application, the network control front end can acquire the operation information of the operation and maintenance operation of the cloud server, which is executed by the user and sends the operation information to the server back end through the network. The operation information may store an operation and maintenance operation performed by a user by clicking a button in the network control front end, an operation and maintenance operation performed by a user by inputting text in the network control front end, and the like, which is not limited in the present application.
In the embodiment of the present application, the operation interface of the network control front end may provide a start recording button and an end recording button. The user can click a start recording button of the operation interface, and click an end recording button of the operation interface after the network control front end executes at least one operation and maintenance operation. The network control front end may use the operation information of at least one operation and maintenance operation performed by the user between clicking the start recording button and clicking the end recording button as the operation information for generating the operation and maintenance template.
Step 502, the server control back end adopts the operation information to determine the relevance between the operation and maintenance operations;
in the embodiment of the application, because the user performs scattered actions based on the visual operation interface in the network control front end, the server control back end cannot directly obtain the logic flow understandable by the computer based on the operation and maintenance operation. Therefore, in order to restore the operation of the user in the server control back-end, the operation information may be used to determine the association between the operation.
In an embodiment of the present application, there may be a correlation between the operation and maintenance operations. In particular, if the operations need to be performed on the basis of other operations, then it can be considered that there is a correlation between the operations. If the operation is not performed based on other operation, then it can be considered that there is no association between the operation.
In one embodiment of the application, the operation information includes sequence information;
in an embodiment of the present application, the sequence information may be used to represent an operation sequence of the operation and maintenance operation. Specifically, the order information may be marked with time, e.g., 00:01, 2019/06/06/12:00:01, etc.; the marking may also be performed in an order, for example, step one, step two … …, step five, 1, 2 … …, etc., as the application is not limited in this regard.
The step of determining the relevance between the operation and maintenance operations by the server control back end through the operation information comprises the following steps:
s51, the server controls the back end to adopt the sequence information to determine whether the operation and maintenance operations are continuous operations or combined operations;
in the embodiment of the application, the continuous operation can be operation and maintenance operation with adjacent operation sequences. The operation and maintenance operations with adjacent operation sequences can be considered to have certain continuity, so that the server control back end can take the operation and maintenance operations with adjacent operation sequences as continuous operations.
In an embodiment of the present application, the combining operation may be to perform at least two operation and maintenance operations in a fixed order. Among the several operation and maintenance operations performed by the user, there may be at least two operation and maintenance operations that are repeated in a fixed order, and thus, the at least two operation and maintenance operations may be regarded as related operations. The server control backend may take at least two operation and maintenance operations that repeatedly occur in a fixed order as a combined operation.
S52, in the case of continuous operation or combined operation among the operation and maintenance operations, the server control back end determines that the association exists among the operation and maintenance operations.
In the embodiment of the application, in the case of continuous operation or combined operation between the operation and maintenance operations, a stronger correlation exists between the operation and maintenance operations, so that the server control back end can consider that the correlation exists between the operation and maintenance operations.
In the embodiment of the application, the continuous operation may have the situation that the previous operation and maintenance operation is misoperation, the subsequent operation and maintenance operation is the operation which the user wants to execute, or the continuous operation is the operation which is performed for different resources, and the like, so that the server control back end can further determine whether obvious association exists between the continuous operation based on the operation information.
In one embodiment of the present application, the operation information includes resource calling information, where the resource calling information is used to store preset resources called by the operation and maintenance operation;
in the embodiment of the application, the operation and maintenance operation can call at least one resource in the preset cloud server. In particular, the resources may include preset application programs in the cloud server, for example, ECS (Elastic Compute Service, elastic computing service) service, RDS (Relational Database Service) service, function computing service, notification service, and the like, to which the present application is not limited. And a calling interface of an application program can be arranged in the cloud server, and the operation and maintenance operation can call the service through the calling interface.
In the embodiment of the application, the operation information may further include resource calling information, and the resource calling information may be used to store preset resources called by the operation and maintenance operation.
The step of determining the relevance between the operation and maintenance operations by the server control back end through the operation information comprises the following steps:
s61, the server control back end adopts the resource calling information of the operation and maintenance operation to determine whether the same preset resource is called between the operation and maintenance operations;
in the embodiment of the application, the operation information of the operation and maintenance operation can also comprise resource calling information. The server control back end can adopt the resource calling information of the operation and maintenance operation to determine whether the same resource is called between the operation and maintenance operation.
S62, under the condition that the same preset resources are called among the operation and maintenance operations, the server control back end determines that the association exists among the operation and maintenance operations.
In the embodiment of the application, under the condition that the same preset resource is called among the operation and maintenance operations, the operation and maintenance operations are all operations aiming at the same resource, and the operation and maintenance operations can be considered to have stronger correlation, so that the server control back end can determine that the correlation can exist among the operation and maintenance operations.
In one embodiment of the present application, the operation information includes input information and output information;
in the embodiment of the application, the operation and maintenance operation can be used for inputting information aiming at preset resources and acquiring output information returned by the resources. So that the operation information of the operation and maintenance operation may further include input information as well as output information. The input information can be used for storing information input by the operation and maintenance operation for preset resources. The output information can store information output by the operation and maintenance operation for preset resources.
The step of determining the relevance between the operation and maintenance operations by adopting the operation information comprises the following steps:
s71, the server control back end determines whether the input information of the operation and maintenance operation is output information of other operation and maintenance operations;
in the embodiment of the application, the operation and maintenance operation can further process the output information on the basis of the information output by other operation and maintenance operations. Thus, the operation and maintenance operation can take the output information of other operation and maintenance operations as the input information of the operation and maintenance operation. Thus, the server control back end can determine whether the input information of the operation and maintenance operation is the output information of other operation and maintenance operations.
And S72, when the input information of the operation and maintenance operation is the output information of other operation and maintenance operations, the server control back end determines that the operation and maintenance operation are associated with the other operation and maintenance operations.
In the embodiment of the present application, in the case that the input information of the operation is output information of other operation, the operation may be considered to be performed based on the output information of the other operation, it may be considered that there is a strong correlation between the operation and the other operation, and the server control backend may determine that the operation and the other operation are correlated.
Step 503, the server control back end uses the relevance between the operation and maintenance operations to determine the execution flow of the operation and maintenance task;
in the embodiment of the application, the server control back end can determine the operation sequence among the operation and maintenance operations and the effective operation in the operation and maintenance operations based on the relevance among the operation and maintenance operations. In particular, in the case where the operation needs to be performed based on other operation, the other operation may be an operation whose operation sequence precedes the operation. Among the operation operations, there may be operation operations that are not associated with any other operation, and then the operation operations may be exclusionary redundant operations.
In the embodiment of the application, the operation and maintenance operation can request the server to acquire information from the back end, can input information to the back end of the server, and can input information to the cloud server through the back end of the server. An operation to generate a request to send to the cloud server may be taken as a key operation. Other operations associated with the critical operation may be considered as valid operations, while other operations not associated with the critical operation may be considered as redundant operations.
In one embodiment of the present application, the operation information further includes configuration information;
in the embodiment of the present application, the operation information may further include configuration information. The configuration information may be information that the operation and maintenance operation configures for resources in a cloud server. The operation and maintenance operation can be used for configuring the resources in the cloud server, so that the operation and maintenance of the resources in the cloud server are realized.
After the step of determining the execution flow of the operation and maintenance task by adopting the relevance between the operation and maintenance operations, the method further comprises the following steps:
s81, the server control back end adopts the configuration information to determine an action instruction of the operation and maintenance task.
In the embodiment of the application, the server control back end can set the action instruction of the operation and maintenance task to configure the resources in the cloud server by adopting the configuration information. The usage of the configuration information of the operation and maintenance operation can be determined based on machine learning, and further action instructions of the operation and maintenance task are determined.
In the embodiment of the present application, the configuration information may be information added by the server control backend for a user by default according to a specific scenario, for example, an area parameter, a time parameter, and the like. The configuration information may also be information actively input or selected by the user, for example, the number of created instances, the size of the cloud disk storage capacity, the state of setting a preset resource, an action, and the like.
In the embodiment of the application, for the parameters which need to be added for the user by default according to the specific scene in the configuration information, the server control back end performs corresponding setting in the action instruction based on a preset rule and machine learning.
In the embodiment of the application, for the configuration information actively input or selected by the user, the server control back end determines the purpose of setting the configuration information by the user based on a preset rule and machine learning, thereby determining the action instruction of the operation and maintenance task. Specifically, the action instructions may be set to require the user to determine the corresponding configuration by himself. The action instruction can be set to be an instruction for realizing corresponding configuration of the preset resource in the operation and maintenance operation based on the configuration information of the operation and maintenance operation. The server control backend needs to determine the possible decision rules and the corresponding configuration in the operation and maintenance operation.
And 504, the server controls the back end to adopt the execution flow to generate an operation and maintenance template.
In the embodiment of the application, the server control back end can adopt the execution flow to generate the operation and maintenance template. The operation and maintenance template can comprise at least one action instruction which can be understood by a computer and configuration information of the action instruction. Therefore, the server control back end can complete the operation and maintenance task with the same effect as at least one operation and maintenance operation input by a user by executing the operation and maintenance template.
In the embodiment of the application, after the server control back end generates the operation and maintenance template, the operation and maintenance template can be sent to the network control front end. The network control front end can display the generated operation and maintenance template, so that a user can check the operation and maintenance template, and modify the operation and maintenance template according to actual needs, and the generated operation and maintenance template is ensured to meet the operation and maintenance needs of the user.
As an example of the present application, a user may send a request to execute an operation and maintenance template to the server control back-end at the network control front-end. The server control back end can acquire the request for executing the operation and maintenance template, and execute operation and maintenance operations contained in the operation and maintenance template on at least one preset cloud server by adopting the operation and maintenance template.
In one embodiment of the application, the method further comprises:
s91, the server controls the back end to adopt the operation authority of the user to determine the execution authority of the operation and maintenance template.
In the embodiment of the application, the user can have the operation authority, so as to avoid the unexpected situation of operation and maintenance work caused by unauthorized operation in the use process of the operation and maintenance template, and the server can control the rear end to take the operation authority of the user as the execution authority of the operation and maintenance template when the operation and maintenance template is recorded. Ensuring the correct operation of the operation and maintenance template.
According to the method for generating the operation and maintenance template, the network control front end obtains operation information of operation and maintenance operations of the cloud server, which are executed by a user, and the operation information is sent to the server control back end, and the server control back end adopts the operation information to determine the relevance between the operation and maintenance operations. The operation sequence among the operation and maintenance operations and the effective operation in the operation and maintenance operations can be determined based on the relevance among the operation and maintenance operations, so that the execution flow of the operation and maintenance task is determined, and an operation and maintenance template is generated based on the execution flow of the operation and maintenance task. Therefore, the server controls the back end to execute the operation and maintenance template, so that the operation and maintenance task with the same effect as at least one operation and maintenance operation input by a user can be completed. The method and the device have the advantages that the operation and maintenance template is not required to be written by a user, the use threshold of the operation and maintenance template is reduced, the efficiency of operation and maintenance service is improved, and the reliability is high.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the application.
Referring to fig. 6, a block diagram of an embodiment of an operation and maintenance template generating apparatus according to the present application may specifically include the following modules:
an obtaining module 601, configured to obtain operation information of an operation and maintenance operation performed by a user;
the association module 602 is configured to determine association between the operation and maintenance operations using the operation information;
a determining module 603, configured to determine an execution flow of the operation and maintenance task by using the relevance between the operation and maintenance operations;
and the generating module 604 is configured to generate an operation and maintenance template by adopting the execution flow.
In one embodiment of the application, the operation information includes sequence information;
The association module comprises:
a sequence determining sub-module, configured to determine whether the operation and maintenance operations are continuous operations or combined operations by using the sequence information;
and the first association sub-module is used for determining that the operation and maintenance operations are associated under the condition of continuous operation or combined operation among the operation and maintenance operations.
In one embodiment of the present application, the operation information includes resource calling information, where the resource calling information is used to store preset resources called by the operation and maintenance operation;
the association module comprises:
the resource determination submodule is used for determining whether the same preset resource is called among the operation and maintenance operations by adopting the resource calling information of the operation and maintenance operations;
and the second association sub-module determines that the operation and maintenance operations are associated under the condition that the same preset resources are called among the operation and maintenance operations.
In one embodiment of the present application, the operation information includes input information and output information;
the association module comprises:
the input determination submodule is used for determining whether the input information of the operation and maintenance operation is the output information of other operation and maintenance operations;
and the third association sub-module is used for determining that the operation and the other operation are associated when the input information of the operation and the maintenance operation is the output information of the other operation and maintenance operation.
In one embodiment of the present application, the operation information further includes configuration information;
the apparatus further comprises:
and the instruction determining module is used for determining the action instruction of the operation and maintenance task by adopting the configuration information.
In one embodiment of the application, the apparatus further comprises:
and the permission determining module is used for determining the execution permission of the operation and maintenance template by adopting the operation permission of the user.
Referring to fig. 7, a block diagram of an embodiment of an operation and maintenance template generating apparatus of the present application is shown and applied to a cloud operation and maintenance platform, where the cloud operation and maintenance platform includes a web page control front end and a server control back end; the web page control front end comprises a front end acquisition module 701; the server control back end comprises a back end association module 702, a back end determination module 703 and a back end generation module 704;
the front-end acquisition module 701 is configured to acquire operation information of an operation and maintenance operation performed by a user and directed to a preset cloud server, and send the operation information to the server control back end;
the back-end association module 702 is configured to determine association between the operation and maintenance operations using the operation information;
the back-end determining module 703 is configured to determine an execution flow of the operation and maintenance task by using the correlation between the operation and maintenance operations;
The back-end generation module 704 is configured to generate an operation and maintenance template by adopting the execution flow.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
The embodiment of the application also provides a device, which comprises:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the method described by the embodiments of the present application.
Embodiments of the application also provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the methods described in embodiments of the application.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the application.
Finally, it is further 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 terminal 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 terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The above description of the method and the device for generating an operation and maintenance template provided by the present application applies specific examples to illustrate the principles and embodiments of the present application, and the description of the above examples is only used to help understand the method and the core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (14)

1. A method of generating an operation and maintenance template, the method comprising:
acquiring operation information of operation and maintenance operations executed by a user;
adopting the operation information to determine the relevance between the operation and maintenance operations;
determining the execution flow of the operation and maintenance task by adopting the relevance between the operation and maintenance operations;
generating an operation and maintenance template by adopting the execution flow;
wherein the operation information includes sequence information;
the step of determining the relevance between the operation and maintenance operations by adopting the operation information comprises the following steps:
determining whether the operation and maintenance operations are continuous operations or combined operations by adopting the sequence information;
In the case of continuous operation or combined operation between the operation and maintenance operations, it is determined that there is a correlation between the operation and maintenance operations.
2. The method of claim 1, the operation information comprising resource call information for storing a preset resource for the operation call;
the step of determining the relevance between the operation and maintenance operations by adopting the operation information comprises the following steps:
determining whether the same preset resources are called among the operation and maintenance operations by adopting the resource calling information of the operation and maintenance operations;
and under the condition that the same preset resources are called among the operation and maintenance operations, determining that the operation and maintenance operations are associated.
3. The method of claim 1, the operation information comprising input information and output information;
the step of determining the relevance between the operation and maintenance operations by adopting the operation information comprises the following steps:
determining whether the input information of the operation and maintenance operation is the output information of other operation and maintenance operations;
and determining that the operation and the other operation are associated under the condition that the input information of the operation and the maintenance operation is the output information of the other operation and maintenance operation.
4. The method according to any one of claims 1-3, wherein the operation information further includes configuration information;
after the step of determining the execution flow of the operation and maintenance task by adopting the relevance between the operation and maintenance operations, the method further comprises the following steps:
and determining an action instruction of the operation and maintenance task by adopting the configuration information.
5. A method according to any one of claims 1 to 3, the method further comprising:
and determining the execution authority of the operation and maintenance template by adopting the operation authority of the user.
6. The method for generating the operation and maintenance template is applied to a cloud operation and maintenance platform, and the cloud operation and maintenance platform comprises a webpage control front end and a server control back end;
the method comprises the following steps:
the webpage control front end acquires operation information of operation and maintenance operation of a preset cloud server, which is executed by a user, and sends the operation information to the server control back end;
the server control back end adopts the operation information to determine the relevance between the operation and maintenance operations;
the server control back end adopts the relevance between the operation and maintenance operations to determine the execution flow of the operation and maintenance task;
and the server controls the back end to adopt the execution flow to generate an operation and maintenance template.
7. An operation and maintenance template generating device, the device comprising:
the acquisition module is used for acquiring operation information of operation and maintenance operations executed by a user;
the association module is used for determining the association between the operation and maintenance operations by adopting the operation information;
the determining module is used for determining the execution flow of the operation and maintenance task by adopting the relevance between the operation and maintenance operations;
the generating module is used for generating an operation and maintenance template by adopting the execution flow;
the operation information includes sequence information;
the association module comprises:
a sequence determining sub-module, configured to determine whether the operation and maintenance operations are continuous operations or combined operations by using the sequence information;
and the first association sub-module is used for determining that the operation and maintenance operations are associated under the condition of continuous operation or combined operation among the operation and maintenance operations.
8. The apparatus of claim 7, the operation information comprising resource call information for storing a preset resource for the operation call;
the association module comprises:
the resource determination submodule is used for determining whether the same preset resource is called among the operation and maintenance operations by adopting the resource calling information of the operation and maintenance operations;
And the second association sub-module determines that the operation and maintenance operations are associated under the condition that the same preset resources are called among the operation and maintenance operations.
9. The apparatus of claim 7, the operation information comprising input information and output information;
the association module comprises:
the input determination submodule is used for determining whether the input information of the operation and maintenance operation is the output information of other operation and maintenance operations;
and the third association sub-module is used for determining that the operation and the other operation are associated when the input information of the operation and the maintenance operation is the output information of the other operation and maintenance operation.
10. The apparatus according to any one of claims 7 to 9, the operation information further comprising configuration information;
the apparatus further comprises:
and the instruction determining module is used for determining the action instruction of the operation and maintenance task by adopting the configuration information.
11. The apparatus according to any one of claims 7-9, further comprising:
and the permission determining module is used for determining the execution permission of the operation and maintenance template by adopting the operation permission of the user.
12. The generation device of the operation and maintenance template is applied to a cloud operation and maintenance platform, and the cloud operation and maintenance platform comprises a webpage control front end and a server control back end; the webpage control front end comprises a front end acquisition module; the server control back end comprises a back end association module, a back end determination module and a back end generation module;
The front-end acquisition module is used for acquiring operation information of operation and maintenance operations of a cloud server, which are executed by a user and aiming at the operation and maintenance operations of the cloud server, and sending the operation information to the server control rear end;
the back-end association module is used for determining the association between the operation and maintenance operations by adopting the operation information;
the back-end determining module is used for determining the execution flow of the operation and maintenance task by adopting the relevance between the operation and maintenance operations;
the back-end generation module is used for generating an operation and maintenance template by adopting the execution flow.
13. An apparatus, comprising:
one or more processors; and
one or more machine readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform any of the methods of claims 1-5 or 6.
14. A computer-readable storage medium having instructions stored thereon, which when executed by one or more processors, cause the processors to perform any of the methods of claims 1-5 or 6.
CN202010075839.7A 2020-01-22 2020-01-22 Method and device for generating operation and maintenance template Active CN113162784B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010075839.7A CN113162784B (en) 2020-01-22 2020-01-22 Method and device for generating operation and maintenance template

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010075839.7A CN113162784B (en) 2020-01-22 2020-01-22 Method and device for generating operation and maintenance template

Publications (2)

Publication Number Publication Date
CN113162784A CN113162784A (en) 2021-07-23
CN113162784B true CN113162784B (en) 2023-08-22

Family

ID=76882032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010075839.7A Active CN113162784B (en) 2020-01-22 2020-01-22 Method and device for generating operation and maintenance template

Country Status (1)

Country Link
CN (1) CN113162784B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106537426A (en) * 2014-10-09 2017-03-22 谷歌公司 Automatically generating execution sequences for workflows
CN106533734A (en) * 2016-09-23 2017-03-22 杭州优云软件有限公司 Automation operation method through combination of actual operation and post system
CN106951373A (en) * 2017-04-25 2017-07-14 国家电网公司 A kind of automated testing method and device that O&M software is moved for power network webmaster
CN110018846A (en) * 2019-04-17 2019-07-16 北京华招易联信息技术有限公司 A kind of automatic operational system and its operating method
CN110705724A (en) * 2019-09-26 2020-01-17 浙江九州云信息科技有限公司 Reusable automatic operation and maintenance management system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102947843B (en) * 2010-06-08 2016-03-16 株式会社日立制作所 Upkeep operation example gathering-device, upkeep operation example collection method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106537426A (en) * 2014-10-09 2017-03-22 谷歌公司 Automatically generating execution sequences for workflows
CN106533734A (en) * 2016-09-23 2017-03-22 杭州优云软件有限公司 Automation operation method through combination of actual operation and post system
CN106951373A (en) * 2017-04-25 2017-07-14 国家电网公司 A kind of automated testing method and device that O&M software is moved for power network webmaster
CN110018846A (en) * 2019-04-17 2019-07-16 北京华招易联信息技术有限公司 A kind of automatic operational system and its operating method
CN110705724A (en) * 2019-09-26 2020-01-17 浙江九州云信息科技有限公司 Reusable automatic operation and maintenance management system

Also Published As

Publication number Publication date
CN113162784A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN109542399B (en) Software development method and device, terminal equipment and computer readable storage medium
KR102493449B1 (en) Edge computing test methods, devices, electronic devices and computer-readable media
CN111694646A (en) Resource scheduling method and device, electronic equipment and computer readable storage medium
US20170185454A1 (en) Method and Electronic Device for Determining Resource Consumption of Task
CN110661665B (en) Alarming method based on Internet of things cloud platform, computer storage medium and equipment
US9760441B2 (en) Restoration of consistent regions within a streaming environment
CN111880914A (en) Resource scheduling method, resource scheduling apparatus, electronic device, and storage medium
JP2021184302A (en) Browser display verification method, apparatus, computer device, and storage medium
JP2021168190A (en) Method, apparatus, electronic device, and storage medium for providing applet service capability
CN113162784B (en) Method and device for generating operation and maintenance template
CN110311826B (en) Network equipment configuration method and device
US11169661B2 (en) Thumbnail generation for digital images
US20210286826A1 (en) Computer-Implemented Method and System for Attribute Discovery for Operation Objects from Operation Data
CN113687908A (en) PMEM virtual machine creation method, device, equipment and readable storage medium
CN109783134B (en) Front-end page configuration method and device and electronic equipment
CN112052347A (en) Image storage method and device and electronic equipment
CN113962316A (en) Model training method and device and electronic equipment
CN113076728A (en) Data filling method of dialog box and related equipment
CN112445790B (en) Report data storage method, device, equipment and medium
CN110825477A (en) Method, device and equipment for loading graphical interface and storage medium
CN112486815B (en) Analysis method and device of application program, server and storage medium
CN112187844B (en) Message pushing method, device and equipment based on printing equipment
CN111639032B (en) Method and apparatus for testing applications
CN116643968A (en) Data construction method, device, electronic equipment and computer readable storage medium
CN112596812A (en) Method, device and equipment for responding operation request 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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40056508

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant