CN111176707A - Templated automatic operation and maintenance method and device and electronic equipment - Google Patents

Templated automatic operation and maintenance method and device and electronic equipment Download PDF

Info

Publication number
CN111176707A
CN111176707A CN201911271372.7A CN201911271372A CN111176707A CN 111176707 A CN111176707 A CN 111176707A CN 201911271372 A CN201911271372 A CN 201911271372A CN 111176707 A CN111176707 A CN 111176707A
Authority
CN
China
Prior art keywords
template
maintenance
input
script
output
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
CN201911271372.7A
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.)
Shanghai Suninfo Technology Co ltd
Original Assignee
Shanghai Suninfo Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Suninfo Technology Co ltd filed Critical Shanghai Suninfo Technology Co ltd
Priority to CN201911271372.7A priority Critical patent/CN111176707A/en
Publication of CN111176707A publication Critical patent/CN111176707A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/20Administration of product repair or maintenance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the disclosure provides a templated automatic operation and maintenance method, a templated automatic operation and maintenance device and electronic equipment, which belong to the technical field of data processing, and the method comprises the following steps: constructing an input template, an output template and script contents according to preset template requirements; assembling the input template, the output template and the script content into legal input content according to the input format of an automatic operation and maintenance framework or a tool; executing the input content by using an automatic operation and maintenance framework, and returning an execution result; and analyzing the execution result according to the output template so as to be convenient for visual presentation. By the processing scheme, the efficiency of alarming and recovering the false alarm can be improved.

Description

Templated automatic operation and maintenance method and device and electronic equipment
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a templated automated operation and maintenance method and apparatus, and an electronic device.
Background
Nowadays, as business systems become more complex and IT facilities become larger in scale, daily operation and maintenance work becomes heavier. Therefore, the automatic operation and maintenance tool is produced by the company, such as ansilbe, saltstack, puppet and the like, and a large amount of repeated operation and maintenance work performed manually can be converted into batch automatic operation through the automatic operation and maintenance tool, so that the operation and maintenance efficiency and quality are greatly improved.
The defects and shortcomings of the prior art are as follows:
these automated operation and maintenance tools are highly critical and require knowledge of at least one scripting language, such as python, shell, bat, etc., in order to be used. However, due to the development of services and the requirements of operation and maintenance, daily operation and maintenance are performed in an automatic operation and maintenance tool only by the participation of technicians and no longer by the operation and maintenance personnel writing one or a group of scripts. But the operation and maintenance are completed together by the cooperation of people in each link from the perspective of the business by combining the business.
Disclosure of Invention
In view of the above, embodiments of the present disclosure provide a templated automatic operation and maintenance method, apparatus, and electronic device to at least partially solve the problems in the prior art.
In a first aspect, an embodiment of the present disclosure provides a templated automated operation and maintenance method, including:
constructing an input template, an output template and script contents according to preset template requirements;
assembling the input template, the output template and the script content into legal input content according to the input format of an automatic operation and maintenance framework or a tool;
executing the input content by using an automatic operation and maintenance framework, and returning an execution result;
and analyzing the execution result according to the output template so as to be convenient for visual presentation.
According to a specific implementation manner of the embodiment of the present disclosure, the constructing an input template, an output template, and script content according to a preset template requirement includes:
setting IP and port description of an operation and maintenance object;
setting different operation and maintenance objects according to the mode or channel adopted when the operation and maintenance target object is adopted;
the method for setting the parameters used according to the specific service requirements in the operation and maintenance process comprises the following steps: parameter name, parameter description, parameter type, default value;
determining a user executing the final script;
and setting execution timeout time, and if the execution timeout time is exceeded and no result is returned, failing to execute.
According to a specific implementation manner of the embodiment of the present disclosure, the constructing an input template, an output template, and script content according to a preset template requirement includes:
and constructing output parameters of the output template, wherein the output parameters comprise at least one of parameter serial numbers, parameter names, parameter descriptions and parameter types.
According to a specific implementation manner of the embodiment of the present disclosure, the constructing an input template, an output template, and script content according to a preset template requirement includes:
and setting an output format of the output template, and displaying the output parameters based on the output format.
According to a specific implementation manner of the embodiment of the present disclosure, the constructing an input template, an output template, and script content according to a preset template requirement includes:
setting a script type, wherein the script type corresponds to an operation and maintenance mode in an input template;
setting script content for processing the concrete script of the operation and maintenance service, wherein the parameters required for processing the service in the script come from an input template, the script return result is in a json format, the parameters come from an output template, and the parameter names are used when the parameters are called.
According to a specific implementation manner of the embodiment of the present disclosure, the executing the input content by using the automated operation and maintenance framework and returning the execution result includes:
analyzing the input content by using the automatic operation and maintenance framework;
determining the execution result based on the result of the parsing.
According to a specific implementation manner of the embodiment of the present disclosure, the analyzing the execution result according to the output template so as to perform a visual presentation includes:
analyzing and comparing the content of the execution result by using the output template;
and taking the result of the analysis and the comparison as the content of the visual presentation.
In a second aspect, an embodiment of the present disclosure provides a templated automated operation and maintenance device, including:
the construction module is used for constructing an input template, an output template and script contents according to preset template requirements;
the assembly module is used for assembling the input template, the output template and the script content into legal input content according to the input format of the automatic operation and maintenance framework or tool;
the execution module is used for executing the input content by utilizing an automatic operation and maintenance framework and returning an execution result;
and the analysis module is used for analyzing the execution result according to the output template so as to be convenient for visual presentation.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the templated automated operation and maintenance method of the first aspect or any implementation manner of the first aspect.
In a fourth aspect, the present disclosure also provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the templated automated operation and maintenance method in the first aspect or any implementation manner of the first aspect.
In a fifth aspect, the present disclosure also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, which, when executed by a computer, cause the computer to execute the templated automated operation and maintenance method in the foregoing first aspect or any implementation manner of the first aspect.
The templated automation operation and maintenance scheme in the embodiment of the disclosure includes constructing an input template, an output template and script contents according to preset template requirements; assembling the input template, the output template and the script content into legal input content according to the input format of an automatic operation and maintenance framework or a tool; executing the input content by using an automatic operation and maintenance framework, and returning an execution result; and analyzing the execution result according to the output template so as to be convenient for visual presentation. Through the processing scheme disclosed by the invention, the original complex script doped with the service and the data is effectively split, so that the input content and the output content are visualized, and the use is more standard. The template organization method provided by the invention can enable more people to participate in the automatic operation and maintenance, business personnel define the template, technical personnel write the script, and people with different skills cooperate with each other. The template organization method provided by the invention can be suitable for various automatic operation and maintenance frames or tools, and only needs to generate the template content into the input format of the automatic operation and maintenance frame.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a templated automated operation and maintenance method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of another templated automated operation and maintenance method provided by an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a templated automated operation and maintenance device according to an embodiment of the present disclosure;
fig. 4 is a schematic view of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a templated automatic operation and maintenance method. The templated automated operation and maintenance method provided by the present embodiment may be executed by a computing device, which may be implemented as software or as a combination of software and hardware, and may be integrated in a server, a client, and the like.
Referring to fig. 1 and fig. 2, the templated automated operation and maintenance method in the embodiment of the present disclosure may include the following steps:
s101, constructing an input template, an output template and script contents according to preset template requirements;
s102, assembling the input template, the output template and the script content into legal input content according to the input format of the automatic operation and maintenance framework or the tool;
s103, executing the input content by using an automatic operation and maintenance framework, and returning an execution result;
and S104, analyzing the execution result according to the output template so as to be convenient for visual presentation.
In the process of executing the steps S101 to S104, the invention aims to provide a template-based visualization automation operation and maintenance scheme, which can enable a person to depart from a pure script in the automation operation and maintenance process, and realize the visualization and templating of operation and maintenance configuration and operation and maintenance results based on a visualization template.
The technical scheme for realizing the invention is as follows: the method separates the service script and the parameter logic, and splits the complex service processing script in the original automatic operation and maintenance into a template and a script: the template defines parameters and specifications, and the script calls the template to generate a final operation and maintenance script; the input and output ends of the operation and maintenance are controlled in a template mode, so that the operation and maintenance are normalized and visualized.
The technical scheme of the invention comprises the following steps:
constructing an input template, wherein the main contents of the input template comprise:
I. the operation and maintenance object: refers to the object to be transported, generally described by the IP and port of the object to be transported and maintained;
II. Operation and maintenance modes: the modes or channels adopted during operation and maintenance of the target object generally adopt ssh, powershell, bat, sql and other modes according to the difference of the operation and maintenance objects;
III, operation and maintenance parameters: the parameters used according to specific service requirements in the operation and maintenance process comprise: parameter name, parameter description, parameter type, default value;
IV, executing a user: and the user executing the final script is particularly directed to the user transported to the object.
V, execution timeout time: and if the time exceeds the overtime time of the script execution and no result is returned, the execution fails.
Constructing an output template, wherein the main contents of the output template comprise:
I. outputting parameters: including parameter serial number, parameter name, parameter description, parameter type;
II. And (3) output format: for presenting the output parameters, tables, graphs (such as graphs, pie charts, etc.) and the like can be selected.
Constructing a script content template, wherein the main contents of the script content template comprise:
I. script type: the operation and maintenance method generally comprises the types of shell, powershell, bat, sql and the like, and corresponds to the operation and maintenance mode in the input template;
II. Script content: the method comprises the steps of processing a specific script of an operation and maintenance service, wherein parameters required for processing the service in the script come from an input template, the script returns a result in a json format, the parameters come from an output template, and parameter names are used when the parameters are called.
And assembling a final script format which can be used by the automatic operation and maintenance tool according to the 3 templates, and delivering the final script format to the automatic operation and maintenance tool for execution.
And the automatic operation and maintenance tool completes execution and returns an execution result, and the result is called to an output template for analysis and assembly.
(1) The templated organization method provided by the invention effectively splits the original complex service and data-doped script, so that the input content and the output content are visualized and the use is more standard.
(2) The template organization method provided by the invention can enable more people to participate in the automatic operation and maintenance, business personnel define the template, technical personnel write the script, and people with different skills cooperate with each other.
(2) The template organization method provided by the invention can be suitable for various automatic operation and maintenance frames or tools, and only needs to generate the template content into the input format of the automatic operation and maintenance frame.
According to a specific implementation manner of the embodiment of the present disclosure, the constructing an input template, an output template, and script content according to a preset template requirement includes:
setting IP and port description of an operation and maintenance object;
setting different operation and maintenance objects according to the mode or channel adopted when the operation and maintenance target object is adopted;
the method for setting the parameters used according to the specific service requirements in the operation and maintenance process comprises the following steps: parameter name, parameter description, parameter type, default value;
determining a user executing the final script;
and setting execution timeout time, and if the execution timeout time is exceeded and no result is returned, failing to execute.
According to a specific implementation manner of the embodiment of the present disclosure, the constructing an input template, an output template, and script content according to a preset template requirement includes:
and constructing output parameters of the output template, wherein the output parameters comprise at least one of parameter serial numbers, parameter names, parameter descriptions and parameter types.
According to a specific implementation manner of the embodiment of the present disclosure, the constructing an input template, an output template, and script content according to a preset template requirement includes:
and setting an output format of the output template, and displaying the output parameters based on the output format.
According to a specific implementation manner of the embodiment of the present disclosure, the constructing an input template, an output template, and script content according to a preset template requirement includes:
setting a script type, wherein the script type corresponds to an operation and maintenance mode in an input template;
setting script content for processing the concrete script of the operation and maintenance service, wherein the parameters required for processing the service in the script come from an input template, the script return result is in a json format, the parameters come from an output template, and the parameter names are used when the parameters are called.
According to a specific implementation manner of the embodiment of the present disclosure, the executing the input content by using the automated operation and maintenance framework and returning the execution result includes:
analyzing the input content by using the automatic operation and maintenance framework;
determining the execution result based on the result of the parsing.
According to a specific implementation manner of the embodiment of the present disclosure, the analyzing the execution result according to the output template so as to perform a visual presentation includes:
analyzing and comparing the content of the execution result by using the output template;
and taking the result of the analysis and the comparison as the content of the visual presentation.
In correspondence with the above method embodiment, referring to fig. 3, the embodiment of the present disclosure further provides a templated automated operation and maintenance device 30, including:
a constructing module 301, configured to construct an input template, an output template, and script content according to a preset template requirement;
an assembling module 302, configured to assemble the input template, the output template, and the script content into legal input content according to an input format of an automation operation and maintenance framework or tool;
the execution module 303 is configured to execute the input content by using an automation operation and maintenance framework, and return an execution result;
and the analysis module 304 is configured to analyze the execution result according to the output template, so as to perform visual presentation.
For parts not described in detail in this embodiment, reference is made to the contents described in the above method embodiments, which are not described again here.
Referring to fig. 4, an embodiment of the present disclosure also provides an electronic device 60, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the templated automated operation and maintenance method of the foregoing method embodiments.
The disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the templated automated operation and maintenance method in the aforementioned method embodiments.
The disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the templated automated operation and maintenance method of the aforementioned method embodiments.
Referring now to FIG. 4, a block diagram of an electronic device 60 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device 60 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 60 are also stored. The processing device 601, the ROM602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 60 to communicate with other devices wirelessly or by wire to exchange data. While the figures illustrate an electronic device 60 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A templated automated operation and maintenance method, comprising:
constructing an input template, an output template and script contents according to preset template requirements;
assembling the input template, the output template and the script content into legal input content according to the input format of an automatic operation and maintenance framework or a tool;
executing the input content by using an automatic operation and maintenance framework, and returning an execution result;
and analyzing the execution result according to the output template so as to be convenient for visual presentation.
2. The method of claim 1, wherein the constructing the input template, the output template and the script content according to the preset template requirement comprises:
setting IP and port description of an operation and maintenance object;
setting different operation and maintenance objects according to the mode or channel adopted when the operation and maintenance target object is adopted;
the method for setting the parameters used according to the specific service requirements in the operation and maintenance process comprises the following steps: parameter name, parameter description, parameter type, default value;
determining a user executing the final script;
and setting execution timeout time, and if the execution timeout time is exceeded and no result is returned, failing to execute.
3. The method of claim 1, wherein the constructing the input template, the output template and the script content according to the preset template requirement comprises:
and constructing output parameters of the output template, wherein the output parameters comprise at least one of parameter serial numbers, parameter names, parameter descriptions and parameter types.
4. The method of claim 1, wherein the constructing the input template, the output template and the script content according to the preset template requirement comprises:
and setting an output format of the output template, and displaying the output parameters based on the output format.
5. The method of claim 1, wherein the constructing the input template, the output template and the script content according to the preset template requirement comprises:
setting a script type, wherein the script type corresponds to an operation and maintenance mode in an input template;
setting script content for processing the concrete script of the operation and maintenance service, wherein the parameters required for processing the service in the script come from an input template, the script return result is in a json format, the parameters come from an output template, and the parameter names are used when the parameters are called.
6. The method of claim 1, wherein executing the input content and returning an execution result by using an automated operation and maintenance framework comprises:
analyzing the input content by using the automatic operation and maintenance framework;
determining the execution result based on the result of the parsing.
7. The method of claim 1, wherein parsing the execution results according to an output template for visual presentation comprises:
analyzing and comparing the content of the execution result by using the output template;
and taking the result of the analysis and the comparison as the content of the visual presentation.
8. A templated automated operation and maintenance device, comprising:
the construction module is used for constructing an input template, an output template and script contents according to preset template requirements;
the assembly module is used for assembling the input template, the output template and the script content into legal input content according to the input format of the automatic operation and maintenance framework or tool;
the execution module is used for executing the input content by utilizing an automatic operation and maintenance framework and returning an execution result;
and the analysis module is used for analyzing the execution result according to the output template so as to be convenient for visual presentation.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the templated automated operation and maintenance method of any of the preceding claims 1-7.
10. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the templated automated operation method of any of the preceding claims 1-7.
CN201911271372.7A 2019-12-06 2019-12-06 Templated automatic operation and maintenance method and device and electronic equipment Pending CN111176707A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911271372.7A CN111176707A (en) 2019-12-06 2019-12-06 Templated automatic operation and maintenance method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911271372.7A CN111176707A (en) 2019-12-06 2019-12-06 Templated automatic operation and maintenance method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111176707A true CN111176707A (en) 2020-05-19

Family

ID=70651960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911271372.7A Pending CN111176707A (en) 2019-12-06 2019-12-06 Templated automatic operation and maintenance method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111176707A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930358A (en) * 2020-06-08 2020-11-13 南京南瑞信息通信科技有限公司 Operation and maintenance script generation and execution method and system
CN112965869A (en) * 2020-12-31 2021-06-15 中国人寿保险股份有限公司上海数据中心 Automatic operation and maintenance method and system for non-standardized application system
CN113220583A (en) * 2021-05-26 2021-08-06 华立科技股份有限公司 Terminal product maintenance method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291565A (en) * 2017-06-09 2017-10-24 千寻位置网络有限公司 O&M visualizes automated job platform and implementation method
CN108874649A (en) * 2017-05-08 2018-11-23 中兴通讯股份有限公司 Generation method, device and its computer equipment of automatic test script
CN109086342A (en) * 2018-07-10 2018-12-25 长沙米拓信息技术有限公司 The method of mass production and O&M website form, medium and terminal
US20190109776A1 (en) * 2016-05-30 2019-04-11 Huawei Technologies Co., Ltd. Network device service quality detection method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190109776A1 (en) * 2016-05-30 2019-04-11 Huawei Technologies Co., Ltd. Network device service quality detection method and apparatus
CN108874649A (en) * 2017-05-08 2018-11-23 中兴通讯股份有限公司 Generation method, device and its computer equipment of automatic test script
CN107291565A (en) * 2017-06-09 2017-10-24 千寻位置网络有限公司 O&M visualizes automated job platform and implementation method
CN109086342A (en) * 2018-07-10 2018-12-25 长沙米拓信息技术有限公司 The method of mass production and O&M website form, medium and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
任子博: "基于Chef的自动化云环境配置系统设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930358A (en) * 2020-06-08 2020-11-13 南京南瑞信息通信科技有限公司 Operation and maintenance script generation and execution method and system
CN111930358B (en) * 2020-06-08 2022-08-09 南京南瑞信息通信科技有限公司 Operation and maintenance script generation and execution method and system
CN112965869A (en) * 2020-12-31 2021-06-15 中国人寿保险股份有限公司上海数据中心 Automatic operation and maintenance method and system for non-standardized application system
CN112965869B (en) * 2020-12-31 2022-09-16 中国人寿保险股份有限公司上海数据中心 Automatic operation and maintenance method and system for non-standardized application system
CN113220583A (en) * 2021-05-26 2021-08-06 华立科技股份有限公司 Terminal product maintenance method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109769141B (en) Video generation method and device, electronic equipment and storage medium
US11711441B2 (en) Method and apparatus for publishing video synchronously, electronic device, and readable storage medium
CN111177617A (en) Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment
CN111176707A (en) Templated automatic operation and maintenance method and device and electronic equipment
US20220394333A1 (en) Video processing method and apparatus, storage medium, and electronic device
CN110188299B (en) Response type page processing method and device and electronic equipment
CN111428165A (en) Three-dimensional model display method and device and electronic equipment
CN110765752A (en) Test question generation method and device, electronic equipment and computer readable storage medium
CN112291121B (en) Data processing method and related equipment
CN111625291B (en) Automatic iteration method and device for data processing model and electronic equipment
CN113553123A (en) Data processing method and device, electronic equipment and storage medium
CN109992698B (en) Data processing method and device, electronic equipment and readable storage medium
US12010356B2 (en) Method and apparatus for sending information in live broadcast room, and electronic device
CN113849416A (en) Test method, test device, storage medium and electronic equipment
CN111200705B (en) Image processing method and device
CN113296771A (en) Page display method, device, equipment and computer readable medium
CN113672317A (en) Method and device for rendering title page
CN111199519A (en) Method and device for generating special effect package
CN111538552A (en) Gift panel configuration method and device, readable medium and electronic equipment
CN111382556A (en) Data conversion method, device, equipment and storage medium
CN110807164A (en) Automatic image area adjusting method and device, electronic equipment and computer readable storage medium
CN109918357A (en) Information playback method, device, electronic equipment and computer readable storage medium
CN111859879B (en) Data display method and device based on virtual form and electronic equipment
CN111143346A (en) Method and device for determining difference of tag group, electronic equipment and readable medium
CN112364050B (en) Method, device, electronic equipment and storage medium for acquiring time period based on time control

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

Application publication date: 20200519

RJ01 Rejection of invention patent application after publication