CN111858253A - Server operation and maintenance control method and device, computer equipment and storage medium - Google Patents

Server operation and maintenance control method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111858253A
CN111858253A CN202010716985.3A CN202010716985A CN111858253A CN 111858253 A CN111858253 A CN 111858253A CN 202010716985 A CN202010716985 A CN 202010716985A CN 111858253 A CN111858253 A CN 111858253A
Authority
CN
China
Prior art keywords
maintenance
server
task
data
management
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
CN202010716985.3A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202010716985.3A priority Critical patent/CN111858253A/en
Publication of CN111858253A publication Critical patent/CN111858253A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • 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

Abstract

The invention belongs to the field of pedestal operation and maintenance, and particularly relates to a server operation and maintenance control method and device, computer equipment and a storage medium. The method comprises the following steps: selecting at least one task type from the management and control platform according to the operation and maintenance tasks of the user; calling all operation and maintenance capacity items which are packaged in the control platform and correspond to the selected task types, and extracting the curing scripts in all the operation and maintenance capacity items; when the number of the extracted curing scripts is at least two, arranging and combining the curing scripts in all the operation and maintenance capacity items through the control platform; and regularly acquiring operation and maintenance data associated with the user operation and maintenance task in the control platform through arranging and combining the curing script, storing the operation and maintenance data into a preset database through the control platform, and executing operation and maintenance control operation of the server operation and maintenance operation type on a target server associated with the user operation and maintenance task according to the operation and maintenance data in the preset database. The invention is used for improving the processing efficiency of operation and maintenance management and control operation.

Description

Server operation and maintenance control method and device, computer equipment and storage medium
Technical Field
The invention relates to the field of operation and maintenance of pedestal operation and maintenance, in particular to a server operation and maintenance control method and device, computer equipment and a storage medium.
Background
The server serves as a carrier for carrying various types of databases, middleware, application programs and other components, and therefore, the server can become an important operation and maintenance object for operation and maintenance management and is also an operation and maintenance object with the largest operation and maintenance quantity and operation frequency. Meanwhile, the operation and maintenance objects such as servers often have the following characteristics: the server is huge in quantity, various in types of operating systems of the server and various in types of operation and maintenance of the server, and the types of operation and maintenance of the server which the server needs to execute daily mainly comprise various types of operation system batch inspection, patch management, security baseline management, software installation and uninstallation, account and authority management, log management, process and service management, configuration item management, time synchronization, planning tasks, environment variable management, IP network management, file issuing and transmission management, server monitoring data acquisition and the like.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a server operation and maintenance management and control method, device, computer device, and storage medium, for executing an operation and maintenance management and control operation of a server operation and maintenance operation type on a target server in an operation and maintenance environment with a huge number of servers, a large number of operating system types of servers, and a large number of operation and maintenance operation types of servers, so as to reduce the workload and the error rate and improve the processing efficiency of the operation and maintenance management and control operation.
A server operation and maintenance management and control method comprises the following steps:
the operation and maintenance server receives a user operation and maintenance task in real time, and selects at least one task type in a control platform according to an operation and maintenance scene where the user operation and maintenance task is located; the task types comprise file distribution and transmission, real-time task execution and data acquisition and transmission; the user operation and maintenance task refers to operation and maintenance management and control operation of executing at least one server operation and maintenance operation type on a target server;
the operation and maintenance server calls all operation and maintenance capacity items which are packaged in the control platform and correspond to the selected task types, and extracts curing scripts in all the operation and maintenance capacity items; one operation and maintenance capacity item corresponds to at least one curing script;
when the number of the extracted curing scripts is at least two, the operation and maintenance server performs arranging and combining on the curing scripts in all the operation and maintenance capacity items through the control platform;
the operation and maintenance server regularly acquires the operation and maintenance data associated with the user operation and maintenance task in the control platform through the solidified script after arrangement and combination, stores the operation and maintenance data into a preset database where the operation and maintenance server is located through the control platform, and then executes the operation and maintenance control operation of the server operation and maintenance operation type on the target server associated with the user operation and maintenance task according to the operation and maintenance data in the preset database.
The utility model provides a server operation and maintenance management and control device, includes:
the selection module is used for receiving the user operation and maintenance tasks in real time by the operation and maintenance server and selecting at least one task type in the control platform according to the operation and maintenance scene where the user operation and maintenance tasks are located; the task types comprise file distribution and transmission, real-time task execution and data acquisition and transmission; the user operation and maintenance task refers to operation and maintenance management and control operation of executing at least one server operation and maintenance operation type on a target server;
the extraction module is used for calling all operation and maintenance capacity items which are encapsulated in the control platform and correspond to the selected task types by the operation and maintenance server and extracting the curing scripts in all the operation and maintenance capacity items; one operation and maintenance capacity item corresponds to at least one curing script;
the combination module is used for arranging and combining the curing scripts in all the operation and maintenance capacity items through the management and control platform by the operation and maintenance server when the number of the extracted curing scripts is at least two;
and the execution module is used for the operation and maintenance server to regularly acquire the operation and maintenance data associated with the user operation and maintenance task in the control platform through the solidified script after arrangement and combination, store the operation and maintenance data into a preset database where the operation and maintenance server is located through the control platform, and execute the operation and maintenance control operation of the server operation and maintenance operation type on the target server associated with the user operation and maintenance task according to the operation and maintenance data in the preset database.
A computer device comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the processor realizes the server operation and maintenance management and control method when executing the computer program.
A computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the above server operation and maintenance management and control method.
According to the server operation and maintenance control method, device, computer equipment and storage medium, the operation and maintenance server executes the operation and maintenance control operation of the server operation and maintenance operation type on the target server under the operation and maintenance environment with large number of servers, various types of operating systems of the servers and various types of operation and maintenance operations of the servers through the control platform, so that the manual workload and the error rate can be reduced, and the processing efficiency of the operation and maintenance control operation can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention 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 that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram of an application environment of a server operation and maintenance management and control method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for managing and controlling operation and maintenance of a server according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a server operation and maintenance management and control device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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.
The server operation and maintenance management and control method provided by the invention can be applied to the application environment shown in fig. 1, wherein the client communicates with the server through a network. Among other things, the client may be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
In an embodiment, as shown in fig. 2, a method for managing and controlling operation and maintenance of a server is provided, which is described by taking the server in fig. 1 as an example, and includes the following steps:
s10, the operation and maintenance server receives the user operation and maintenance tasks in real time, and selects at least one task type in the control platform according to the operation and maintenance scene where the user operation and maintenance tasks are located; the task types comprise file distribution and transmission, real-time task execution and data acquisition and transmission; the user operation and maintenance task refers to operation and maintenance management and control operation of executing at least one server operation and maintenance operation type on a target server;
understandably, the operation and maintenance server in this embodiment may correspond to an operation and maintenance software or an operation and maintenance system, and when receiving a user operation and maintenance task sent by a user at a user terminal (the operation and maintenance software or the operation and maintenance system), the operation and maintenance server may invoke a control platform to jointly execute the user operation and maintenance task, where the user operation and maintenance task refers to an operation and maintenance control operation performed by the operation and maintenance server on a target server associated with the user operation and maintenance task, where the user operation and maintenance task includes at least one server operation and maintenance operation type, and thus the user operation and maintenance task may include two or more server operation and maintenance operation types, and the server operation types include, but are not limited to, system batch inspection, patch management, security baseline management, software installation and uninstallation, account and authority management, log management, process and service management, configuration item management, time synchronization, scheduling task management, and so on the system, Environment variable management, IP network management, file issuing and transmission management, server monitoring data acquisition and the like; the operation and maintenance scene can reflect complex operation and maintenance processes in the user operation and maintenance task, for example, when the user operation and maintenance task refers to an operation and maintenance control operation for executing system batch inspection on a target server, the operation and maintenance scene can be an operation and maintenance process of a plurality of inspection processes for specifying data in a system in a batch manner, so that one operation and maintenance scene can correspond to one server operation and maintenance operation type, and in a control platform, the server operation and maintenance operation type corresponding to each operation and maintenance scene is in a corresponding relationship with a task type (the server operation and maintenance operation type belongs to one of three task types); three task types (three task types have special characteristics, file distribution and transmission can represent a file transmission mode, transmission control can realize area chain control and cross-area penetration, real-time task execution can be a script command type, task control can realize that a designated user inherits a user environment, checks a machine password harmful operation alarm and harmful operation protection, data acquisition and transmission can be a data acquisition service supported by self-defined data acquisition and acquisition plugin, and the data acquisition service can realize real-time data snapshot and dynamic load balance) can represent three unified execution capabilities in a control platform, it needs to be noted that the three task types are also unified reflection of various operation and maintenance scenes or operation and maintenance processes, and the purpose of setting the task types in the control platform is to process all complex operation and maintenance scenes in a fixed processing mode, the management and control platform is a bottom management and control system of the automatic operation and maintenance Server, is a basis of all operation and maintenance services, and is a connector between an operation and maintenance service system and a target Server (user machine), the execution capacity provided by the management and control platform can be controlled and called by the operation and maintenance Server, the management and control platform is a typical two-layer distributed C/S structure and mainly comprises a page, a Server providing various task types (execution capacity), a fileServer (file distribution and transmission), a TaskServer (corresponding to real-time task execution) and a DataServer (data acquisition and transmission).
In the embodiment, at least one corresponding task type is selected for the operation and maintenance task of the user through the task types set in the management and control platform to determine the next execution action of the operation and maintenance task of the user, and the task types provided in the embodiment can correspond to multiple operation and maintenance scenes or operation and maintenance flows, so that the embodiment can decompose the complex operation and maintenance scenes or operation and maintenance flows in the operation and maintenance task of the user into simple task types to represent the operation and maintenance task of the user by the abstract and fixed task types.
S20, the operation and maintenance server calls all operation and maintenance capacity items which are encapsulated in the control platform and correspond to the selected task types, and extracts curing scripts in all the operation and maintenance capacity items; one operation and maintenance capacity item corresponds to at least one curing script;
understandably, all the operation and maintenance capability items corresponding to the task types are encapsulated in a control platform by using a preset core component (SSHClient, the SSHClient has a function similar to that of a SSH command of Linux, is an encapsulation for an SSH session, encapsulates a transmission method, a channel and an SFTPClient establishing method, and can be used for executing a remote command) in a paramiko (paramiko is an SSH2 remote secure connection realized based on Python, and supports an authentication and key mode), wherein one task type can correspond to one operation and maintenance capability item (one operation and maintenance capability item can represent one channel capability of the control platform, the channel capability is an execution capability), the operation and maintenance capability item reflects the execution capability of three task types, and a data processing can be really performed on an operation and maintenance task of a receiving user through the operation and maintenance capability item; the solidified script in the operation and maintenance capability item is a script language for executing the execution capability corresponding to the task type, so that one solidified script can also be understood as a function, and it needs to be explained that the solidified script in the operation and maintenance capability item is associated with the operation and maintenance operation type of the server in the operation and maintenance task of the user.
The operation and maintenance capability items corresponding to the task types provided by the embodiment can correspond to various operation and maintenance scenes, so that operation and maintenance management and control operations on the various operation and maintenance scenes can be realized by means of the various operation and maintenance capability items, and the curing scripts in the operation and maintenance capability items provided by the embodiment are preset, so that pain points caused by repeated wheel manufacturing are avoided, and the processing efficiency of the operation and maintenance management and control operations can be improved.
S30, when the number of the extracted curing scripts is at least two, the operation and maintenance server performs arrangement and combination on the curing scripts in all the operation and maintenance capacity items through the control platform;
understandably, when the number of the selected task types is more than one, that is, the number of the invoked operation and maintenance capability items is also more than one, and one operation and maintenance capability item corresponds to at least one curing script, the number of the curing scripts extracted in the embodiment is necessarily at least two, and in the case that one operation and maintenance capability item corresponds to at least one curing script, the number of the curing scripts extracted in the embodiment may be two or more; because a plurality of curing scripts in the operation and maintenance capability items of the management and control platform need to be combined into an integral script for use (in order to realize all execution capabilities in the operation and maintenance capability items), the curing scripts in all the operation and maintenance capability items need to be arranged and combined to realize the purpose, wherein the preset execution sequence is based on the relationship between the curing scripts and the independent characteristics of the curing scripts, such as three curing scripts are extracted, namely a curing script a, a curing script B and a curing script C, wherein if the curing script a is executed, data (the relationship between the curing scripts) of the curing script B in the running process or after the running process needs to be borrowed, therefore, the curing script B should be arranged in front of the curing script a, if the curing script C is a script (independent characteristic) which runs independently and is not limited by other curing scripts, thus, the curing script C may exist in front of the curing script B or behind the curing script a, and may be combined into a curing script C-curing script B-curing script a or a curing script B-curing script a-curing script C.
In this embodiment, a complex operation and maintenance scene or operation and maintenance flow is decomposed into operation and maintenance capacity items in a task type, the operation and maintenance capacity items are used as operation and maintenance atoms, and various complex operation and maintenance scenes or operation and maintenance flows are realized by arranging and assembling the operation and maintenance atoms (it should be noted that the above-mentioned assembling and arranging of the operation and maintenance atoms is to arrange and combine the curing scripts in all the operation and maintenance capacity items).
S40, the operation and maintenance server regularly acquires the operation and maintenance data associated with the user operation and maintenance task in the control platform through the combined curing script, stores the operation and maintenance data in a preset database where the operation and maintenance server is located through the control platform, and then executes the operation and maintenance control operation of the server operation and maintenance operation type on the target server associated with the user operation and maintenance task according to the operation and maintenance data in the preset database.
Understandably, the operation and maintenance data can be obtained from a source database associated with the target server or a folder for storing data, and the operation and maintenance data is really needed by the operation and maintenance target server of the user, the operation and maintenance control operation can be performed on the target server through the operation and maintenance data, and the operation and maintenance type of the server mentioned in the step S10 corresponds to one target server; the obtained operation and maintenance data can be stored in a preset database where the operation and maintenance server is located, so that the operation and maintenance data can be called conveniently.
In the embodiment of steps S10 to S40, the operation and maintenance server implements, by using the management and control platform, the operation and maintenance management and control operation of the server operation and maintenance operation type on the target server in an operation and maintenance environment with a large number of servers, a large number of operating system types of the servers, and a large number of operation and maintenance operation types of the servers, so as to reduce the workload and the error rate and improve the processing efficiency of the operation and maintenance management and control operation.
Further, before the operation and maintenance server receives the operation and maintenance task of the user in real time, the method further includes:
after monitoring the user operation and maintenance task sent by the user terminal in real time, the operation and maintenance server verifies whether the user terminal has the operation authority;
and when the user terminal is determined to have the operation right, the operation and maintenance server determines a right level according to the user terminal with the operation right, and establishes a communication link with the user terminal according to a link channel corresponding to the right level so as to receive the user operation and maintenance task.
Understandably, the operation authority represents whether the user operation and maintenance task sent by the user terminal in real time can be executed or not; and the authority level represents whether the user operation and maintenance task of the user terminal can be fed back to the operation and maintenance server at the optimal speed or not, and whether the information fed back by the operation and maintenance server can be received at the optimal speed or not, wherein the optimal speed is realized through a link channel corresponding to the authority level. In this embodiment, the safety of the operation and maintenance management and control operation process can be ensured by verifying the operation authority of the user terminal, and the determined authority level can be a link channel with high level and high matching transmission speed.
Further, before the operation and maintenance server calls all the operation and maintenance capability items which are encapsulated in the management and control platform and correspond to the selected task types, the method further includes:
the operation and maintenance server executes a remote operation command by using a preset core component in the paramiko, fills in task description of the operation and maintenance task of the user, and judges whether auxiliary information exists in the task description;
when the auxiliary information exists in the task description, the operation and maintenance server sends the task description to a preset data receiver corresponding to the task description in a preset planning time in an interface transmission mode;
when the auxiliary information does not exist in the task description, the operation and maintenance server establishes the task type in the created management and control platform channel according to the task description; when the task type is a real-time task execution, selecting at least one execution host corresponding to the real-time task execution, adding a curing script or preset data operation corresponding to the execution of the execution task to a blank operation and maintenance capacity item in a preset adding mode by using the execution host, forming the operation and maintenance capacity item corresponding to the real-time task execution, and packaging the operation and maintenance capacity item into the control platform.
Understandably, the channel establishing method is encapsulated in the preset core component in the paramiko, and the operation and maintenance capability item in the control platform can represent the channel capability of the control platform, so that the task type and the operation and maintenance capability item corresponding to the task type can be established through the embodiment; the task description is the description of various newly-built user operation and maintenance tasks, and the relationship between the user operation and maintenance tasks and the server operation and maintenance operation types in the operation and maintenance scene is also described so as to determine the corresponding relationship between the newly-built operation and maintenance tasks and the task types; the auxiliary information is auxiliary information which is required by a preset data receiver to describe the task, the completeness and the clarity of the task description can be ensured through the auxiliary information, and the auxiliary information in the task description is determined by identifying incomplete or unclear data in the task description; the preset adding mode comprises search adding and batch adding, and the preset data operation is shell operation; specifically, when the task type is file distribution and transmission, at least one file transmission type is selected, an upload file corresponding to the file transmission type and a curing script of a selected target machine are determined, the curing script corresponding to the upload file and the selected target machine is added to a blank operation and maintenance capacity item, the operation and maintenance capacity item corresponding to the file distribution and transmission is formed, when the task type is data acquisition and transmission, at least one data warehouse is selected, SQL sentences are filled in filling positions associated with the data warehouse, the curing script is formed according to the SQL sentences, and the operation and maintenance capacity item corresponding to the data acquisition and transmission is formed after the curing script is added to the blank operation and maintenance capacity item. In the embodiment, the task type and the operation and maintenance capability item in the management and control platform are established by using paramiko, so that the remote data operation of the remote server can be performed in the embodiment.
Further, after the operation and maintenance server regularly acquires the operation and maintenance data associated with the user operation and maintenance task in the management and control platform through the solidified script after the operation and maintenance server is arranged and combined, the method further includes:
the operation and maintenance server positions all abnormal data in the operation and maintenance data, sends positioning results to a preset data receiver, receives processing results fed back by the preset data receiver according to the positioning results to the abnormal data in the operation and maintenance data, and transfers the operation and maintenance data related to the processing results to the control platform again.
Understandably, the abnormal data may be data repetition or data error abnormal data, and the specific operation and maintenance server may identify the operation and maintenance data according to a preset rule and locate the abnormal data located in the operation and maintenance data.
Further, after the operation and maintenance server regularly acquires the operation and maintenance data associated with the user operation and maintenance task in the management and control platform through the solidified script after the operation and maintenance server is arranged and combined, the method further includes:
and through a simulation time component, the operation and maintenance server records the response time for acquiring the operation and maintenance data associated with the operation and maintenance task of the user in real time, and optimizes the mode for acquiring the operation and maintenance data or optimizes a source database for storing the operation and maintenance data according to a preset optimization mode when the response time exceeds the preset time.
Understandably, the analog time component is a component that records time; the optimizing the operation and maintenance data obtaining manner according to the preset optimization manner may include, but is not limited to, releasing a memory of the operation and maintenance server, performing check optimization on a statement for querying the operation and maintenance data, optimizing a communication condition of the operation and maintenance server, and the like. The embodiment is mainly used for improving the speed of the subsequent operation and maintenance server for acquiring the operation and maintenance data.
Further, after the operation and maintenance data are stored in a preset database where the operation and maintenance server is located through the management and control platform, the method further includes:
when new operation and maintenance data associated with the operation and maintenance data stored in the preset database are monitored in real time, the operation and maintenance server adds the new operation and maintenance data into a source database storing the operation and maintenance data, generates data snapshots of the current time point according to the operation and maintenance data and the new operation and maintenance data, and sends all the generated data snapshots in the preset time period to a preset data receiver for reference at every preset time period.
Understandably, a data snapshot is a query view of a source database (local or remote source database) at a certain point in time, and the data snapshot can be presented in the form of a data table. The data snapshot generated in this embodiment can accelerate the query speed of the operation and maintenance data, improve the update speed of the operation and maintenance data in the data snapshot, and send the data snapshot to the preset data receiver to facilitate the data receiver to look up the operation and maintenance data.
Further, the executing, by the operation and maintenance control operation of the server operation and maintenance operation type on the target server according to the operation and maintenance data in the preset database further includes:
and after the operation and maintenance server executes the operation and maintenance control operation of the server operation and maintenance operation type on the target server according to the operation and maintenance data, and after the operation and maintenance control operation is executed for a preset time, deleting the operation and maintenance data from the preset database.
The embodiment is mainly used for deleting the operation and maintenance data after being processed from the preset database so as to ensure that the preset database does not need to store too much operation and maintenance data to affect the performance of the preset database.
In summary, the operation and maintenance management and control method for the server is provided, where the operation and maintenance server implements, through the management and control platform, the operation and maintenance management and control operation of the operation and maintenance operation type of the target server in an operation and maintenance environment with a large number of servers, a large number of operating system types of the servers, and a large number of operation and maintenance operation types of the servers, so that the workload and the error rate can be reduced, and the processing efficiency of the operation and maintenance management and control operation can be improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, a server operation and maintenance management and control device is provided, and the server operation and maintenance management and control device corresponds to the server operation and maintenance management and control method in the above embodiments one to one. As shown in fig. 3, the server operation and maintenance management and control apparatus includes a selecting module 11, an extracting module 12, a combining module 13, and an executing module 14. The functional modules are explained in detail as follows:
the selection module 11 is used for the operation and maintenance server to receive the user operation and maintenance tasks in real time and select at least one task type in the management and control platform according to the operation and maintenance scene where the user operation and maintenance tasks are located; the task types comprise file distribution and transmission, real-time task execution and data acquisition and transmission; the user operation and maintenance task refers to operation and maintenance management and control operation of executing at least one server operation and maintenance operation type on a target server;
the extraction module 12 is configured to invoke all operation and maintenance capability items, which are encapsulated in the management and control platform and correspond to the selected task types, by the operation and maintenance server, and extract the cured scripts in all the operation and maintenance capability items; one operation and maintenance capacity item corresponds to at least one curing script;
the combination module 13 is configured to, when the number of the extracted curing scripts is at least two, the operation and maintenance server performs arranging and combining on the curing scripts in all the operation and maintenance capability items through the management and control platform;
and the execution module 14 is configured to, by the operation and maintenance server, regularly acquire, in the control platform, the operation and maintenance data associated with the user operation and maintenance task through the arranged and combined cured script, store, by the control platform, the operation and maintenance data in a preset database where the operation and maintenance server is located, and then execute, according to the operation and maintenance data in the preset database, the operation and maintenance control operation of the server operation and maintenance operation type on the target server associated with the user operation and maintenance task.
Further, the server operation and maintenance management and control device further comprises:
the verification module is used for verifying whether the user terminal has the operation authority or not after the operation and maintenance server monitors the user operation and maintenance task sent by the user terminal in real time;
and the first establishing module is used for determining the authority level according to the user terminal with the operation authority when the user terminal is determined to have the operation authority, and establishing a communication link with the user terminal according to a link channel corresponding to the authority level so as to receive the user operation and maintenance task.
Further, the server operation and maintenance management and control device further comprises:
the judging module is used for the operation and maintenance server to execute a remote operation command by utilizing a preset core component in the paramiko, fill in task description of the operation and maintenance task of the user and judge whether auxiliary information exists in the task description;
the sending module is used for sending the task description to a preset data receiver corresponding to the task description in a preset planning time in an interface transmission mode by the operation and maintenance server when the auxiliary information exists in the task description;
the second establishing module is used for establishing the task type according to the task description in the created management and control platform channel by the operation and maintenance server when the auxiliary information does not exist in the task description; when the task type is a real-time task execution, selecting at least one execution host corresponding to the real-time task execution, adding a curing script or preset data operation corresponding to the execution of the execution task to a blank operation and maintenance capacity item in a preset adding mode by using the execution host, forming the operation and maintenance capacity item corresponding to the real-time task execution, and packaging the operation and maintenance capacity item into the control platform.
Further, the server operation and maintenance management and control device further comprises:
and the circulation module is used for positioning all abnormal data in the operation and maintenance data by the operation and maintenance server, sending a positioning result to a preset data receiver, receiving a processing result fed back by the preset data receiver to the abnormal data in the operation and maintenance data according to the positioning result, and circulating the operation and maintenance data associated with the processing result to the control platform again.
Further, the server operation and maintenance management and control device further comprises:
and the optimization module is used for recording the response time for acquiring the operation and maintenance data associated with the user operation and maintenance task in real time by the operation and maintenance server through a simulation time component, and optimizing the mode for acquiring the operation and maintenance data or optimizing a source database for storing the operation and maintenance data according to a preset optimization mode when the response time exceeds a preset time.
Further, the server operation and maintenance management and control device further comprises:
and the query module is used for adding the new operation and maintenance data into a source database storing the operation and maintenance data when the new operation and maintenance data associated with the operation and maintenance data stored in the preset database are monitored in real time, generating a data snapshot of a current time point according to the operation and maintenance data and the new operation and maintenance data, and sending all the generated data snapshots in the preset time period to a preset data receiver for consulting at every preset time period.
Further, the server operation and maintenance management and control device further comprises:
and the deleting module is used for deleting the operation and maintenance data from the preset database after the operation and maintenance server executes the operation and maintenance control operation of the server operation and maintenance operation type on the target server according to the operation and maintenance data and executes the operation and maintenance control operation for a preset time length.
For specific limitations of the server operation and maintenance control device, reference may be made to the above limitations on the server operation and maintenance control method, which is not described herein again. All or part of the modules in the server operation and maintenance management and control device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing data related to the server operation and maintenance management and control method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to realize a server operation and maintenance management and control method.
In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the server operation and maintenance management and control method in the foregoing embodiments are implemented, for example, steps S10 to S40 shown in fig. 2. Alternatively, the processor, when executing the computer program, implements functions of each module/unit of the server operation and maintenance management and control apparatus in the above embodiments, for example, the functions of the modules 11 to 14 shown in fig. 3. To avoid repetition, further description is omitted here.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the server operation and maintenance management and control method in the foregoing embodiments, such as steps S10 to S40 shown in fig. 2. Alternatively, the computer program, when executed by the processor, implements the functions of the modules/units of the server operation and maintenance management and control apparatus in the above embodiments, such as the functions of the modules 11 to 14 shown in fig. 3. To avoid repetition, further description is omitted here.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A server operation and maintenance management and control method is characterized by comprising the following steps:
the operation and maintenance server receives a user operation and maintenance task in real time, and selects at least one task type in a control platform according to an operation and maintenance scene where the user operation and maintenance task is located; the task types comprise file distribution and transmission, real-time task execution and data acquisition and transmission; the user operation and maintenance task refers to operation and maintenance management and control operation of executing at least one server operation and maintenance operation type on a target server;
the operation and maintenance server calls all operation and maintenance capacity items which are packaged in the control platform and correspond to the selected task types, and extracts curing scripts in all the operation and maintenance capacity items; one operation and maintenance capacity item corresponds to at least one curing script;
when the number of the extracted curing scripts is at least two, the operation and maintenance server performs arranging and combining on the curing scripts in all the operation and maintenance capacity items through the control platform;
the operation and maintenance server regularly acquires the operation and maintenance data associated with the user operation and maintenance task in the control platform through the solidified script after arrangement and combination, stores the operation and maintenance data into a preset database where the operation and maintenance server is located through the control platform, and then executes the operation and maintenance control operation of the server operation and maintenance operation type on the target server associated with the user operation and maintenance task according to the operation and maintenance data in the preset database.
2. The server operation and maintenance management and control method according to claim 1, wherein before the operation and maintenance server receives the user operation and maintenance task in real time, the method further comprises:
after monitoring the user operation and maintenance task sent by the user terminal in real time, the operation and maintenance server verifies whether the user terminal has the operation authority;
and when the user terminal is determined to have the operation right, the operation and maintenance server determines a right level according to the user terminal with the operation right, and establishes a communication link with the user terminal according to a link channel corresponding to the right level so as to receive the user operation and maintenance task.
3. The server operation and maintenance management and control method according to claim 1, wherein before the operation and maintenance server calls all the operation and maintenance capability items which are encapsulated in the management and control platform and correspond to the selected task types, the method further comprises:
the operation and maintenance server executes a remote operation command by using a preset core component in the paramiko, fills in task description of the operation and maintenance task of the user, and judges whether auxiliary information exists in the task description;
when the auxiliary information exists in the task description, the operation and maintenance server sends the task description to a preset data receiver corresponding to the task description in a preset planning time in an interface transmission mode;
when the auxiliary information does not exist in the task description, the operation and maintenance server establishes the task type in the created management and control platform channel according to the task description; when the task type is a real-time task execution, selecting at least one execution host corresponding to the real-time task execution, adding a curing script or preset data operation corresponding to the execution of the execution task to a blank operation and maintenance capacity item in a preset adding mode by using the execution host, forming the operation and maintenance capacity item corresponding to the real-time task execution, and packaging the operation and maintenance capacity item into the control platform.
4. The server operation and maintenance management and control method according to claim 1, wherein after the operation and maintenance server periodically acquires, in the management and control platform, the operation and maintenance data associated with the user operation and maintenance task through the solidified script after being compiled and combined, the method further comprises:
the operation and maintenance server positions all abnormal data in the operation and maintenance data, sends positioning results to a preset data receiver, receives processing results fed back by the preset data receiver according to the positioning results to the abnormal data in the operation and maintenance data, and transfers the operation and maintenance data related to the processing results to the control platform again.
5. The server operation and maintenance management and control method according to claim 1, wherein after the operation and maintenance server periodically acquires, in the management and control platform, the operation and maintenance data associated with the user operation and maintenance task through the solidified script after being compiled and combined, the method further comprises:
and through a simulation time component, the operation and maintenance server records the response time for acquiring the operation and maintenance data associated with the operation and maintenance task of the user in real time, and optimizes the mode for acquiring the operation and maintenance data or optimizes a source database for storing the operation and maintenance data according to a preset optimization mode when the response time exceeds the preset time.
6. The server operation and maintenance management and control method according to claim 1, wherein after the operation and maintenance data is stored in a preset database where the operation and maintenance server is located through the management and control platform, the method further comprises:
when new operation and maintenance data associated with the operation and maintenance data stored in the preset database are monitored in real time, the operation and maintenance server adds the new operation and maintenance data into a source database storing the operation and maintenance data, generates data snapshots of the current time point according to the operation and maintenance data and the new operation and maintenance data, and sends all the generated data snapshots in the preset time period to a preset data receiver for reference at every preset time period.
7. The server operation and maintenance management and control method according to claim 1, wherein the performing, on the target server, the operation and maintenance management and control operation of the server operation and maintenance operation type according to the operation and maintenance data in the preset database further includes:
and after the operation and maintenance server executes the operation and maintenance control operation of the server operation and maintenance operation type on the target server according to the operation and maintenance data, and after the operation and maintenance control operation is executed for a preset time, deleting the operation and maintenance data from the preset database.
8. The utility model provides a server operation and maintenance management and control device which characterized in that includes:
the selection module is used for receiving the user operation and maintenance tasks in real time by the operation and maintenance server and selecting at least one task type in the control platform according to the operation and maintenance scene where the user operation and maintenance tasks are located; the task types comprise file distribution and transmission, real-time task execution and data acquisition and transmission; the user operation and maintenance task refers to operation and maintenance management and control operation of executing at least one server operation and maintenance operation type on a target server;
the extraction module is used for calling all operation and maintenance capacity items which are encapsulated in the control platform and correspond to the selected task types by the operation and maintenance server and extracting the curing scripts in all the operation and maintenance capacity items; one operation and maintenance capacity item corresponds to at least one curing script;
the combination module is used for arranging and combining the curing scripts in all the operation and maintenance capacity items through the management and control platform by the operation and maintenance server when the number of the extracted curing scripts is at least two;
and the execution module is used for the operation and maintenance server to regularly acquire the operation and maintenance data associated with the user operation and maintenance task in the control platform through the solidified script after arrangement and combination, store the operation and maintenance data into a preset database where the operation and maintenance server is located through the control platform, and execute the operation and maintenance control operation of the server operation and maintenance operation type on the target server associated with the user operation and maintenance task according to the operation and maintenance data in the preset database.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the server operation and maintenance management method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the server operation and maintenance management and control method according to any one of claims 1 to 7.
CN202010716985.3A 2020-07-23 2020-07-23 Server operation and maintenance control method and device, computer equipment and storage medium Pending CN111858253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010716985.3A CN111858253A (en) 2020-07-23 2020-07-23 Server operation and maintenance control method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010716985.3A CN111858253A (en) 2020-07-23 2020-07-23 Server operation and maintenance control method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111858253A true CN111858253A (en) 2020-10-30

Family

ID=72950335

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010716985.3A Pending CN111858253A (en) 2020-07-23 2020-07-23 Server operation and maintenance control method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111858253A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506638A (en) * 2020-12-21 2021-03-16 中电福富信息科技有限公司 Operation and maintenance script flow arrangement method based on Activiti technology
CN112579101A (en) * 2020-12-21 2021-03-30 广州博冠信息科技有限公司 Task script control method and device, electronic equipment and storage medium
CN114760314A (en) * 2022-04-06 2022-07-15 中国工商银行股份有限公司 Server management method, device, computer equipment and storage medium
CN115543588A (en) * 2022-11-30 2022-12-30 成都中星世通电子科技有限公司 Electromagnetic perception task execution method, system and terminal based on script arrangement
CN116450622A (en) * 2023-06-16 2023-07-18 建信金融科技有限责任公司 Method, apparatus, device and computer readable medium for data warehouse entry
CN117389843A (en) * 2023-12-13 2024-01-12 广州嘉为科技有限公司 Intelligent operation and maintenance system, method, electronic equipment and storage medium

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506638A (en) * 2020-12-21 2021-03-16 中电福富信息科技有限公司 Operation and maintenance script flow arrangement method based on Activiti technology
CN112579101A (en) * 2020-12-21 2021-03-30 广州博冠信息科技有限公司 Task script control method and device, electronic equipment and storage medium
CN112506638B (en) * 2020-12-21 2023-06-06 中电福富信息科技有限公司 Operation and maintenance script flow programming method based on Activiti technology
CN114760314A (en) * 2022-04-06 2022-07-15 中国工商银行股份有限公司 Server management method, device, computer equipment and storage medium
CN115543588A (en) * 2022-11-30 2022-12-30 成都中星世通电子科技有限公司 Electromagnetic perception task execution method, system and terminal based on script arrangement
CN116450622A (en) * 2023-06-16 2023-07-18 建信金融科技有限责任公司 Method, apparatus, device and computer readable medium for data warehouse entry
CN116450622B (en) * 2023-06-16 2023-09-22 建信金融科技有限责任公司 Method, apparatus, device and computer readable medium for data warehouse entry
CN117389843A (en) * 2023-12-13 2024-01-12 广州嘉为科技有限公司 Intelligent operation and maintenance system, method, electronic equipment and storage medium
CN117389843B (en) * 2023-12-13 2024-04-09 广州嘉为科技有限公司 Intelligent operation and maintenance system, method, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111858253A (en) Server operation and maintenance control method and device, computer equipment and storage medium
US11061925B2 (en) Multi-task scheduling method and system, application server and computer-readable storage medium
CN110069572B (en) HIVE task scheduling method, device, equipment and storage medium based on big data platform
CN112910945B (en) Request link tracking method and service request processing method
CN111831569A (en) Test method and device based on fault injection, computer equipment and storage medium
CN108959385B (en) Database deployment method, device, computer equipment and storage medium
CN105245373A (en) Construction and operation method of container cloud platform system
CN110765484B (en) Credit data processing method and electronic equipment
CN111177776A (en) Multi-tenant data isolation method and system
CN106339273A (en) Application program restoration method, terminal and server
CN110197064B (en) Process processing method and device, storage medium and electronic device
CN112686568B (en) Operation and maintenance strategy generation processing method, device, system, equipment and storage medium
CN108595280B (en) Interface adaptation method and device, computer equipment and storage medium
CN112527504A (en) Multi-tenant resource quota management method and device, and computer equipment
CN112527600A (en) Monitoring log processing method, device, equipment and storage medium
CN113835921A (en) Method, device, equipment and storage medium for processing interface service exception
CN111651319A (en) Synchronous start-stop method for monitoring system application service
WO2022033079A1 (en) Pico base station configuration method and apparatus, and storage medium and electronic apparatus
CN111897843B (en) Configuration method and device of data flow strategy of Internet of things and computer equipment
CN117389830A (en) Cluster log acquisition method and device, computer equipment and storage medium
CN116340294A (en) Database deployment method and device, computer readable storage medium and electronic equipment
CN112035163A (en) Software development kit configuration method, device and storage medium
CN111580927A (en) Communication method and container communication system
CA3182208A1 (en) Business data processing method and device, computer equipment and storage medium
CN112256384A (en) Service set processing method and device based on container technology and computer equipment

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