CN111314122A - Automatic operation and maintenance method and device - Google Patents

Automatic operation and maintenance method and device Download PDF

Info

Publication number
CN111314122A
CN111314122A CN202010079623.8A CN202010079623A CN111314122A CN 111314122 A CN111314122 A CN 111314122A CN 202010079623 A CN202010079623 A CN 202010079623A CN 111314122 A CN111314122 A CN 111314122A
Authority
CN
China
Prior art keywords
operating
pointer
environments
determining
methods
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.)
Pending
Application number
CN202010079623.8A
Other languages
Chinese (zh)
Inventor
沈达
胡文斌
施跃跃
刘震
洪华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Unionpay Co Ltd
Original Assignee
China Unionpay Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Unionpay Co Ltd filed Critical China Unionpay Co Ltd
Priority to CN202010079623.8A priority Critical patent/CN111314122A/en
Publication of CN111314122A publication Critical patent/CN111314122A/en
Pending legal-status Critical Current

Links

Images

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/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
    • 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/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses an automatic operation and maintenance method and device, wherein the method comprises the following steps: determining an operation object corresponding to the operation instruction according to the operation instruction; determining an operation method of the operation object from a preset file according to the operation environment to which the operation object belongs and the operation method type in the operation instruction; the preset file comprises operation methods of operation method types in each operation environment; generating an implementation command set of the operation object according to the operation method of the operation object; and issuing the implementation command set to the operation object. The technical scheme is used for solving the problems that operation and maintenance personnel need to identify the operation environment to which the operation object belongs through script control in the prior art, the professional requirements on the operation and maintenance personnel are high, and human resources are wasted.

Description

Automatic operation and maintenance method and device
Technical Field
The embodiment of the invention relates to the technical field of operation and maintenance, in particular to an automatic operation and maintenance method and device.
Background
With the rapid development of scientific technology, especially new ideas and methods brought by cloud computing, containers and the like, the traditional operation and maintenance mode faces unprecedented challenges and opportunities. From the operation and maintenance scale, the number of servers and applications is rapidly increasing from only hundreds of hosts to thousands of servers today; in terms of operation and maintenance, from the simple operation and maintenance category of UNIX in the past to today, various operating systems, application technologies and database modes are mixed, and objects faced by operation and maintenance are more diverse and complex.
In the existing complex operation and maintenance environment, operation and maintenance personnel identify the operation environment to which the operation object belongs through script control, and generate an operation instruction corresponding to the operation environment to which the operation object belongs based on the script control.
Disclosure of Invention
The embodiment of the invention provides an automatic operation and maintenance method and device, which are used for solving the problems that in the prior art, operation and maintenance personnel need to identify the operation environment to which an operation object belongs through script control, the professional requirements on the operation and maintenance personnel are high, and human resources are wasted.
The automatic operation and maintenance method provided by the embodiment of the invention comprises the following steps:
determining an operation object corresponding to an operation instruction according to the operation instruction;
determining an operation method of the operation object from a preset file according to the operation environment to which the operation object belongs and the operation method type in the operation instruction; the preset file comprises operation methods of operation method types under various operation environments;
generating an implementation command set of the operation object according to the operation method of the operation object;
and issuing the implementation command set to the operation object.
Optionally, the determining, according to the operation instruction, an operation object corresponding to the operation instruction includes:
determining an operation scene corresponding to the scene identification according to the scene identification in the operation instruction;
and determining a plurality of operation objects in the service system corresponding to the service system identification from the operation scene according to the service system identification in the operation instruction.
Optionally, the determining, according to the operating environment to which the operation object belongs and the operation method type in the operation instruction, the operation method of the operation object from a preset file includes:
acquiring operation methods of different operation environments pointed by the pointer of the operation object from the preset file according to the pointer of the operation object;
and according to the operating environment to which the operating object belongs, determining an operating method under the operating method type corresponding to the operating environment to which the operating object belongs from operating methods of different operating environments pointed by the pointer of the operating object.
Optionally, the preset file includes a cache file and a non-cache file; the cache file comprises an operation method with calling frequency exceeding a preset value; the non-cache file comprises operation methods of operation method types under the operation environments;
the operation method for acquiring different operation environments pointed by the pointer of the operation object from the preset file according to the pointer of the operation object comprises the following steps:
judging whether the cache file has operation methods of different operation environments pointed by the pointer of the operation object, if so, acquiring the operation methods of the different operation environments pointed by the pointer of the operation object from the cache file according to the pointer of the operation object;
otherwise, acquiring the operation methods of different operation environments pointed by the pointer of the operation object from the non-cache file.
Optionally, the operating environment includes an operating system type and/or a database type.
In the technical scheme, by packaging the operation methods in different operation environments, after the operation instruction is received, the operation object corresponding to the operation instruction and the operation environment to which the operation object belongs are automatically identified, and the operation method corresponding to the operation environment to which the operation object belongs is automatically matched according to the operation environment to which the operation object belongs and the operation method type, so that the operation command set is generated and issued to the operation object. Furthermore, an operation scene is set, and operation and maintenance personnel can perform batch operation on a plurality of operation objects only by issuing an operation instruction.
Correspondingly, the embodiment of the invention also provides an automatic operation and maintenance device, which comprises:
a determination unit and a generation unit;
the determining unit is used for determining an operation object corresponding to an operation instruction according to the operation instruction; determining an operation method of the operation object from a preset file according to the operation environment to which the operation object belongs and the operation method type in the operation instruction; the preset file comprises operation methods of operation method types under various operation environments;
the generating unit is used for generating an implementation command set of the operation object according to the operation method of the operation object; and issuing the implementation command set to the operation object.
Optionally, the determining unit is specifically configured to:
determining an operation scene corresponding to the scene identification according to the scene identification in the operation instruction;
and determining a plurality of operation objects in the service system corresponding to the service system identification from the operation scene according to the service system identification in the operation instruction.
Optionally, the determining unit is specifically configured to:
acquiring operation methods of different operation environments pointed by the pointer of the operation object from the preset file according to the pointer of the operation object;
and according to the operating environment to which the operating object belongs, determining an operating method under the operating method type corresponding to the operating environment to which the operating object belongs from operating methods of different operating environments pointed by the pointer of the operating object.
Optionally, the preset file includes a cache file and a non-cache file; the cache file comprises an operation method with calling frequency exceeding a preset value; the non-cache file comprises operation methods of operation method types under the operation environments;
the determining unit is specifically configured to:
judging whether the cache file has operation methods of different operation environments pointed by the pointer of the operation object, if so, acquiring the operation methods of the different operation environments pointed by the pointer of the operation object from the cache file according to the pointer of the operation object;
otherwise, acquiring the operation methods of different operation environments pointed by the pointer of the operation object from the non-cache file.
Optionally, the operating environment includes an operating system type and/or a database type.
Correspondingly, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instruction stored in the memory and executing the automatic operation and maintenance method according to the obtained program.
Correspondingly, the embodiment of the invention also provides a computer-readable non-volatile storage medium, which comprises computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is enabled to execute the automatic operation and maintenance method.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an operation and maintenance operation according to the prior art;
FIG. 2 is a schematic diagram of a prior art operation and maintenance system;
fig. 3 is a schematic operation flow chart of a first operation and maintenance operation according to an embodiment of the present invention;
fig. 4 is a schematic operation flow chart of a second operation and maintenance operation according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an adapter according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another operation and maintenance system according to an embodiment of the present invention;
fig. 7 is a schematic operation flow chart of a third operation according to the embodiment of the present invention;
fig. 8 is a construction method of an operation scenario library according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an automated maintenance device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For better explaining the embodiment of the present invention, the following specific scenarios are described first:
fig. 1 shows an operation and maintenance operation flow in an existing operation and maintenance scene, which is specifically as follows:
1. and (3) analyzing the demand: with standardized requirements or personalized requirements, the user is converted into an implementable technical method through analysis and decomposition of the requirements.
2. Operation and maintenance scheduling: and acquiring an operation object and an operation method according to the requirements of a user, and preparing to initiate execution under the condition of meeting the requirements of the existing operation and maintenance safety and flow.
3. Operation and maintenance are implemented: and initiating the executed operation within a specified time range, and acquiring an execution result.
The operation and maintenance system suitable for the operation and maintenance scene may have an architecture diagram as shown in fig. 2, specifically, from top to bottom, in sequence: a user terminal (web interface), an external interface, a functional layer, a core service layer and a basic service layer; the functional layer is mainly used for load balancing, apache static resource allocation and upjas application; the core service layer is mainly used for message queue, operation and maintenance operation, data acquisition, batch execution and safety control; the basic service layer mainly comprises a database, a CMDB and a cache service.
The operation and maintenance operation is mainly realized by adopting an Cable technology, a playlist script is generated according to the user requirements in a core service layer, an operation object and an execution script of the user are obtained, the execution operation is initiated, and a final result is obtained.
In the existing operation and maintenance operation, because a plurality of operation objects belong to different operation environments, such as operation systems and database types, a user needs to consider various possible situations in a script, which not only increases the difficulty of operation and maintenance, but also reduces the safety of the implementation process.
In order to solve the above problem, an embodiment of the present invention provides an automation operation and maintenance method, which introduces a concept of an adapter, where operation methods in various operation environments may be integrated in the adapter, so that after receiving an operation instruction of a user, an implementation command set applicable to an operation object may be generated based on the operation instruction of the user and an operation environment to which the operation object belongs, so as to be used for implementing the operation object.
An embodiment of the present invention provides an operation and maintenance operation flow in an operation and maintenance scene, as shown in fig. 3, in an operation and maintenance scheduling, an implementation command set adapted to an operation object is generated through an adapter, so that the operation object can implement the implementation command set.
Based on the above description, fig. 4 exemplarily illustrates an automated operation and maintenance operation flow provided by the embodiment of the present invention, where the flow may be performed by an automated operation and maintenance device, which may be located in an adapter, and may be the adapter.
As shown in fig. 4, the process specifically includes:
step 401, determining an operation object corresponding to an operation instruction according to the operation instruction;
in the embodiment of the invention, two operation instructions can be provided, in the first case, the operation instruction indicates a scene index mode, which is equivalent to that a user directly issues an operation instruction for a certain service system in a certain operation scene; in the second case, the operation instruction indicates the command set index method, and it corresponds to a user directly issuing an operation instruction for a certain operation object.
In the first case, a large operation scene library may be preset, where the operation scene library includes a plurality of operation scenes, and each operation scene corresponds to one scene identifier, and after receiving an operation instruction, an operation scene corresponding to the scene identifier may be determined according to the scene identifier in the operation instruction; further, the operation scene comprises a plurality of service systems, and then the service system corresponding to the service system identifier in the operation scene and a plurality of operation objects under the service system are determined according to the service system identifier in the operation instruction.
In the second case, since the operation instruction issued by the user includes the operation object, it may be determined that the operation object at this time is the operation object in the operation instruction. The user here can also be understood as an operation and maintenance person, that is, an internal interface that the operation and maintenance system opens to the operation and maintenance person, and the operation and maintenance person can call the internal interface to perform operation and maintenance operation on a certain operation object.
Step 402, determining the operation method of the operation object from a preset file according to the operation environment to which the operation object belongs and the operation method type in the operation instruction.
In the embodiment of the present invention, a preset file may be set in the adapter, where the preset file includes an operation method of an operation method type in each operation environment, or in other words, the preset file includes an operation method of an operation method type in each operation environment. For example, the preset file includes operation methods of the download operation in three operating systems, namely, Suse, Centos, and UNIX.
Here, as shown in fig. 5, a schematic structural diagram of an adapter is provided, and specifically, the adapter includes an external interface layer, a function module layer, and a function implementation layer.
An external interface layer: an access method for issuing function modules, an interface facing a function, each function already including an existing operation type and/or database type.
Functional module layer: the method is used for integrating the access functions of different versions, different systems and different databases. The functional layer can be nested, for example, the clock synchronization has multiple modes, can be served by a timing task or a clock, and in this case, the clock synchronization function can have two sub-functional modules.
Function implementation layer: the method is used for realizing the function realization of different versions, operating systems and databases, each function set serves one function module, and each function realizes a specific function under a specified operating environment. By adding and deleting functions, the expansion and adjustment of functions can be realized quickly.
The adapter may be integrated into an operation and maintenance system, as shown in fig. 6, the adapter may be integrated into a core service layer, the adapter is equivalent to a template of an operation and maintenance operation, and when batch execution is performed on a plurality of operation objects in a business system of a certain operation scenario, the adapter may generate an implementation command set for each operation object for an operation environment to which each operation object belongs.
In the implementation of the present invention, when the operation method of the operation object is determined from the preset file according to the operation environment to which the operation object belongs and the operation method type in the operation instruction, the operation methods of different operation environments pointed by the pointer of the operation object may be obtained from the preset file according to the pointer of the operation object, and then the operation method in the operation method type corresponding to the operation environment to which the operation object belongs may be determined from the operation methods of different operation environments pointed by the pointer of the operation object according to the operation environment to which the operation object belongs. For example, if the operation target is a server and the operating system of the server is UNIX, the operating method of the Suse operating system, the operating method of the centros operating system, and the operating method of the UNIX operating system, which are pointed to by the pointer of the server, are acquired from a preset file according to the pointer of the server, and the operating method of the UNIX operating system is further used as the operating method of the server.
In order to determine the operation method of the operation object from the preset file more quickly, the operation method with higher calling frequency may be determined from the preset file to be stored in the cache file, that is, the preset file may include a cache file and a non-cache file, the cache file includes the operation method with the calling frequency exceeding the preset value, and the non-cache file includes the operation methods of the operation method types under each operation environment, that is, all the operation methods. When the operation method of the operation object is determined from the preset file, the operation method may be obtained from the cache file first, and if the operation method of the operation object is not obtained from the cache file, the operation method may be obtained from the non-cache file. In one implementation mode, after an operation object is determined, whether an operation method of different operation environments pointed by a pointer of the operation object exists in a cache file is judged, if yes, the operation method of the different operation environments pointed by the pointer of the operation object is obtained from the cache file according to the pointer of the operation object; otherwise, acquiring the operation method of the different operation environments pointed by the pointer of the operation object from the non-cache file.
In addition, the preset file may further include an operation environment to which the operation object belongs, that is, after at least one operation object of the business system is determined, the operation environment to which the operation object belongs may be determined from the preset file for any operation object, and then the operation method of the operation object is determined from the preset file based on the operation environment to which the operation object belongs and the operation method type.
Step 403, generating an implementation command set of the operation object according to the operation method of the operation object;
after the operation method of the operation object is determined, an implementation command set of the operation object can be generated according to the operation parameters and the operation method of the operation object in the operation instruction.
Step 404, issuing the implementation command set to the operation object.
In the embodiment of the present invention, the operation instruction includes an operation method type and an operation parameter, and before determining the operation object corresponding to the operation instruction, it may be determined whether the operation method type and the operation parameter in the operation instruction conform to preset rules, for example, whether the operation method type is a correct operation method type and whether the operation parameter conforms to a specification. When the operation parameters are identified, the operation parameters in the operation instruction can be identified by adopting flexible separator variables based on the character set, and the operation parameters which do not accord with the rules are prompted.
To better explain the embodiment of the present invention, as another flow is provided in fig. 7, the execution subject is an adapter, which is specifically as follows:
parameter identification: after receiving the operation instruction, identifying the operation parameters in the operation instruction, and identifying the operation parameters which do not accord with the preset rule in the operation instruction;
and (3) system indexing: the method comprises two index forms, namely a command set index and a scene index, wherein the command set index refers to a command set based on different operating environments, and a uniform index mode is presented upwards; scene indexing refers to presenting a uniform index pattern upwards after encapsulation based on different operation scenes. The two forms of indexing differ in the versatility of use. After receiving the operation instruction, the adapter identifies whether the current operation instruction indicates a scene index or a command set index, and then performs operation adaptation downwards according to the determined index form.
Operation adaptation: including object adaptation and method adaptation. For the scene index, each operation scene corresponds to a service system, each service system corresponds to at least one operation object, and the at least one operation object corresponding to the operation instruction is determined based on an operation scene identifier and a service system identifier in the operation instruction; and for any operation object, determining an operation method suitable for the operation object according to the operation environment to which the operation object belongs and the operation method type in the operation instruction.
Command assembly: and after the operation adaptation is completed, assembling and generating an implementation command set aiming at the operation object according to the operation method of the operation object and the operation parameters in the operation instruction.
Batch execution: and executing the corresponding implementation command set for each operation object.
The embodiment of the invention provides an operation and maintenance scene of mechanism network access, and because the mechanism has a routing access control mechanism in the network access scene, an operation and maintenance system needs to provide a uniform and quick-access entrance for the network access mechanism. Here, when the mechanism performs the network access operation, it is necessary to input the following network access parameters: requirement identification (id), destination address (destination), and destination requirement (action).
Before the mechanism accesses the network, the adapter is pre-configured with an operation scene of the network access, for example, each service system corresponds to a plurality of operation objects, and a pointer of each operation object points to an operation method in different operation environments; the operation scenario library may be constructed as shown in fig. 8, and the operation scenario library includes operation methods of each operation method type in different operation environments.
When the operation scene in the adapter is constructed, the constructed route access interface is OrganRoute (ID, Dest, DemandAction), and the mechanism can call the route access interface, and the network access parameters are as the above requirement identification, the target address, and the target requirement. The constructed function is Organ RouteOperation (ID, Dest, DemandAction), and the routing operation is scheduled according to various service systems; the function implementation layer comprises UNIX routing operation (UNIXRouteoperation ()), Suse routing operation (SuseRouteoperation ()), and Centos routing operation (CentosRouteoperation ()), the parameters related to the function implementation layer comprise target addresses, gateways, masks, actions and the like, in addition, the scene matched with the scene is an organization networking scene library, and the access of the adapter to the operation object is realized by multiplexing the CMDB database and additionally adding a demand set and an operation set.
The adapter is incorporated into the operation and maintenance system, the access path of the adapter is configured, and the function of the adapter can be quickly realized.
In the technical scheme, by packaging the operation methods in different operation environments, after the operation instruction is received, the operation object corresponding to the operation instruction and the operation environment to which the operation object belongs are automatically identified, and the operation method corresponding to the operation environment to which the operation object belongs is automatically matched according to the operation environment to which the operation object belongs and the operation method type, so that the operation command set is generated and issued to the operation object. Furthermore, an operation scene is set, and operation and maintenance personnel can perform batch operation on a plurality of operation objects only by issuing an operation instruction.
Based on the same inventive concept, fig. 9 exemplarily shows a structure of an automated operation and maintenance device provided by an embodiment of the present invention, and the device can execute a flow of an automated operation and maintenance method.
The automatic operation and maintenance device comprises:
a determination unit 901 and a generation unit 902;
the determining unit 901 is configured to determine, according to an operation instruction, an operation object corresponding to the operation instruction; determining an operation method of the operation object from a preset file according to the operation environment to which the operation object belongs and the operation method type in the operation instruction; the preset file comprises operation methods of operation method types under various operation environments;
the generating unit 902 is configured to generate an implementation command set of the operation object according to an operation method of the operation object; and issuing the implementation command set to the operation object.
Optionally, the determining unit 901 is specifically configured to:
determining an operation scene corresponding to the scene identification according to the scene identification in the operation instruction;
and determining a plurality of operation objects in the service system corresponding to the service system identification from the operation scene according to the service system identification in the operation instruction.
Optionally, the determining unit 901 is specifically configured to:
acquiring operation methods of different operation environments pointed by the pointer of the operation object from the preset file according to the pointer of the operation object;
and according to the operating environment to which the operating object belongs, determining an operating method under the operating method type corresponding to the operating environment to which the operating object belongs from operating methods of different operating environments pointed by the pointer of the operating object.
Optionally, the preset file includes a cache file and a non-cache file; the cache file comprises an operation method with calling frequency exceeding a preset value; the non-cache file comprises operation methods of operation method types under the operation environments;
the determining unit 901 is specifically configured to:
judging whether the cache file has operation methods of different operation environments pointed by the pointer of the operation object, if so, acquiring the operation methods of the different operation environments pointed by the pointer of the operation object from the cache file according to the pointer of the operation object;
otherwise, acquiring the operation methods of different operation environments pointed by the pointer of the operation object from the non-cache file.
Optionally, the operating environment includes an operating system type and/or a database type.
Based on the same inventive concept, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instruction stored in the memory and executing the automatic operation and maintenance method according to the obtained program.
Based on the same inventive concept, the embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is caused to execute the above automatic operation and maintenance method.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, 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 invention 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. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (12)

1. An automated operation and maintenance method, comprising:
determining an operation object corresponding to an operation instruction according to the operation instruction;
determining an operation method of the operation object from a preset file according to the operation environment to which the operation object belongs and the operation method type in the operation instruction; the preset file comprises operation methods of operation method types under various operation environments;
generating an implementation command set of the operation object according to the operation method of the operation object;
and issuing the implementation command set to the operation object.
2. The method of claim 1, wherein the determining, according to the operation instruction, an operation object corresponding to the operation instruction comprises:
determining an operation scene corresponding to the scene identification according to the scene identification in the operation instruction;
and determining a plurality of operation objects in the service system corresponding to the service system identification from the operation scene according to the service system identification in the operation instruction.
3. The method of claim 1, wherein the determining the operation method of the operation object from a preset file according to the operation environment to which the operation object belongs and the operation method type in the operation instruction comprises:
acquiring operation methods of different operation environments pointed by the pointer of the operation object from the preset file according to the pointer of the operation object;
and according to the operating environment to which the operating object belongs, determining an operating method under the operating method type corresponding to the operating environment to which the operating object belongs from operating methods of different operating environments pointed by the pointer of the operating object.
4. The method of claim 3, wherein the preset files include cached files and uncached files; the cache file comprises an operation method with calling frequency exceeding a preset value; the non-cache file comprises operation methods of operation method types under the operation environments;
the operation method for acquiring different operation environments pointed by the pointer of the operation object from the preset file according to the pointer of the operation object comprises the following steps:
judging whether the cache file has operation methods of different operation environments pointed by the pointer of the operation object, if so, acquiring the operation methods of the different operation environments pointed by the pointer of the operation object from the cache file according to the pointer of the operation object;
otherwise, acquiring the operation methods of different operation environments pointed by the pointer of the operation object from the non-cache file.
5. The method of claim 1, wherein the operating environment comprises an operating system type and/or a database type.
6. An automated operation and maintenance device, comprising:
a determination unit and a generation unit;
the determining unit is used for determining an operation object corresponding to an operation instruction according to the operation instruction; determining an operation method of the operation object from a preset file according to the operation environment to which the operation object belongs and the operation method type in the operation instruction; the preset file comprises operation methods of operation method types under various operation environments;
the generating unit is used for generating an implementation command set of the operation object according to the operation method of the operation object; and issuing the implementation command set to the operation object.
7. The apparatus of claim 6, wherein the determination unit is specifically configured to:
determining an operation scene corresponding to the scene identification according to the scene identification in the operation instruction;
and determining a plurality of operation objects in the service system corresponding to the service system identification from the operation scene according to the service system identification in the operation instruction.
8. The apparatus of claim 6, wherein the determination unit is specifically configured to:
acquiring operation methods of different operation environments pointed by the pointer of the operation object from the preset file according to the pointer of the operation object;
and according to the operating environment to which the operating object belongs, determining an operating method under the operating method type corresponding to the operating environment to which the operating object belongs from operating methods of different operating environments pointed by the pointer of the operating object.
9. The apparatus of claim 8, wherein the preset files comprise a cached file and a non-cached file; the cache file comprises an operation method with calling frequency exceeding a preset value; the non-cache file comprises operation methods of operation method types under the operation environments;
the determining unit is specifically configured to:
judging whether the cache file has operation methods of different operation environments pointed by the pointer of the operation object, if so, acquiring the operation methods of the different operation environments pointed by the pointer of the operation object from the cache file according to the pointer of the operation object;
otherwise, acquiring the operation methods of different operation environments pointed by the pointer of the operation object from the non-cache file.
10. The apparatus of claim 6, in which the operating environment comprises an operating system type and/or a database type.
11. A computing device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to execute the method of any one of claims 1 to 5 in accordance with the obtained program.
12. A computer-readable non-transitory storage medium including computer-readable instructions which, when read and executed by a computer, cause the computer to perform the method of any one of claims 1 to 5.
CN202010079623.8A 2020-02-04 2020-02-04 Automatic operation and maintenance method and device Pending CN111314122A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010079623.8A CN111314122A (en) 2020-02-04 2020-02-04 Automatic operation and maintenance method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010079623.8A CN111314122A (en) 2020-02-04 2020-02-04 Automatic operation and maintenance method and device

Publications (1)

Publication Number Publication Date
CN111314122A true CN111314122A (en) 2020-06-19

Family

ID=71147021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010079623.8A Pending CN111314122A (en) 2020-02-04 2020-02-04 Automatic operation and maintenance method and device

Country Status (1)

Country Link
CN (1) CN111314122A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060230057A1 (en) * 2005-04-08 2006-10-12 International Business Machines Corporation Method and apparatus for mapping web services definition language files to application specific business objects in an integrated application environment
CN107122365A (en) * 2016-02-25 2017-09-01 阿里巴巴集团控股有限公司 The access method and device of heterogeneous database
CN107665216A (en) * 2016-07-29 2018-02-06 银联数据服务有限公司 A kind of data bank access method and middleware
CN109918116A (en) * 2019-03-12 2019-06-21 中国工商银行股份有限公司 O&M object support method and system
US20190213116A1 (en) * 2018-01-10 2019-07-11 Accenture Global Solutions Limited Generation of automated testing scripts by converting manual test cases
CN110221949A (en) * 2019-06-17 2019-09-10 深圳前海微众银行股份有限公司 Automate operation management method, apparatus, equipment and readable storage medium storing program for executing
CN110430073A (en) * 2019-07-30 2019-11-08 中国工程物理研究院计算机应用研究所 A kind of heterogeneous system automation O&M method based on abstract service atomic operation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060230057A1 (en) * 2005-04-08 2006-10-12 International Business Machines Corporation Method and apparatus for mapping web services definition language files to application specific business objects in an integrated application environment
CN107122365A (en) * 2016-02-25 2017-09-01 阿里巴巴集团控股有限公司 The access method and device of heterogeneous database
CN107665216A (en) * 2016-07-29 2018-02-06 银联数据服务有限公司 A kind of data bank access method and middleware
US20190213116A1 (en) * 2018-01-10 2019-07-11 Accenture Global Solutions Limited Generation of automated testing scripts by converting manual test cases
CN109918116A (en) * 2019-03-12 2019-06-21 中国工商银行股份有限公司 O&M object support method and system
CN110221949A (en) * 2019-06-17 2019-09-10 深圳前海微众银行股份有限公司 Automate operation management method, apparatus, equipment and readable storage medium storing program for executing
CN110430073A (en) * 2019-07-30 2019-11-08 中国工程物理研究院计算机应用研究所 A kind of heterogeneous system automation O&M method based on abstract service atomic operation

Similar Documents

Publication Publication Date Title
CN108614726B (en) Virtual machine creation method and device
CN108415832B (en) Interface automation test method, device, equipment and storage medium
CN107896162B (en) Deployment method and device of monitoring system, computer equipment and storage medium
CN106897205B (en) Test data generation method and device
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN110968509B (en) Method and system for batch customizing of variables
CN111414391A (en) Method and system for accessing multiple data sources
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
CN113806037A (en) Service calling method and device, storage medium and electronic equipment
CN111078573A (en) Test message generation method and device
CN112559525B (en) Data checking system, method, device and server
CN112947907B (en) Method for creating code branches
CN111090401B (en) Storage device performance prediction method and device
CN105975329A (en) Creating method and device of virtual machine
CN111988429A (en) Algorithm scheduling method and system
CN111314122A (en) Automatic operation and maintenance method and device
CN111382953A (en) Dynamic process generation method and device
CN113709099B (en) Mixed cloud firewall rule issuing method, device, equipment and storage medium
CN111488286B (en) Method and device for independently developing Android modules
CN114527993A (en) Application deployment method, device, equipment and medium
CN112650710A (en) Data migration sending method and device, storage medium and electronic device
CN111459608A (en) Application system deployment method and device, computer equipment and storage medium
CN113691575A (en) Communication method, device and system
CN113329043A (en) Data service providing method and device
CN112860538A (en) Method and device for performing interface regression test based on online log

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200619