CN109597742B - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN109597742B
CN109597742B CN201710916724.4A CN201710916724A CN109597742B CN 109597742 B CN109597742 B CN 109597742B CN 201710916724 A CN201710916724 A CN 201710916724A CN 109597742 B CN109597742 B CN 109597742B
Authority
CN
China
Prior art keywords
server
execution result
command
information
batch processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710916724.4A
Other languages
Chinese (zh)
Other versions
CN109597742A (en
Inventor
罗俊秀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201710916724.4A priority Critical patent/CN109597742B/en
Publication of CN109597742A publication Critical patent/CN109597742A/en
Application granted granted Critical
Publication of CN109597742B publication Critical patent/CN109597742B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45504Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators

Abstract

The invention provides a data processing method and a device, under the condition of determining at least one first server selected by an operation body, the recognizable information and the operation command selected by the operation body for the at least one first server corresponding to the at least one first server can be obtained, the batch processing command capable of being executed on the second server is obtained based on the recognizable information and the operation command selected by the operation body for the at least one first server corresponding to the at least one first server, and obtaining the execution result respectively returned by the at least one first server after responding to the batch processing command, corresponding the execution result respectively returned by the at least one first server with the respectively corresponding identifiable information, so that the server to which the execution result belongs can be determined based on the identifiable information, namely, the server to which the execution result belongs is determined based on the identifiable information, and the identification of the execution result is realized.

Description

Data processing method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data processing method and apparatus.
Background
The saltstack (salt for short) is a tool for performing batch operation, for example, a user can perform batch operation on a server installed with a saltstack master service on the server installed with the saltstack minus service. Specifically, the user inputs a command similar to "salt '< operation target >' < method > [ parameter ]" into the server installed with the salt master service, and performs corresponding batch processing on at least one server installed with the salt stop development service, for example, a command of "salt 'wx' cmd.run 'free-m' is input to view the memory usage of the server installed with the salt start development service.
In the above command, the operation target is the unique identification id (id code) of the minus in the server installed with the saltstack minus, and the unique identification id of the minus is an irregular character string, for example, fd5a86f6-0960-11e7-995c, and the execution result returned by the corresponding server installed with the saltstack minus also corresponds to the unique identification id of the minus, so that the server installed with the saltstack master service cannot be determined to operate which server installed with the saltstack minus through the unique identification id of the minus, and the execution result cannot be determined to correspond to which server installed with the saltstack minus.
Disclosure of Invention
In view of the above problems, the present invention has been made to provide a data processing method and apparatus for associating execution results with respective identifiable information of first servers so that which server the execution results correspond to can be determined, which overcomes or at least partially solves the above problems. The technical scheme is as follows:
the invention provides a data processing method, which comprises the following steps:
determining at least one first server selected by an operation body;
obtaining the identifiable information corresponding to the at least one first server and the operation command selected by the operation body for the at least one first server;
obtaining batch processing commands which can be executed on a second server based on the identifiable information corresponding to the at least one first server and the operation commands selected by the operation body for the at least one first server, wherein the batch processing commands are sent to the at least one first server by the second server;
obtaining the execution result returned by the at least one first server after the at least one first server responds to the batch processing command;
and corresponding the execution result returned by each first server with the corresponding identifiable information.
Preferably, the method further comprises: and the execution result returned by each first server is as follows: and determining the execution type of the execution result, and storing the execution result in a result set corresponding to the execution type of the execution result.
Preferably, the obtaining a batch processing command executable on the second server based on the identifiable information corresponding to each of the at least one first server and the operation command selected by the operation body for the at least one first server includes:
for the at least one first server: acquiring first information of the first server specified in the batch processing command, and replacing the identifiable information of the first server with the first information of the first server;
and integrating the first information corresponding to the at least one first server and the operation command selected by the operation body for the at least one first server into a batch processing command executable on a second server based on the command format of the batch processing command.
Preferably, the corresponding the execution result returned by each of the at least one first server to the identifiable information includes:
for the at least one first server: and replacing the first information in the execution result of the first server with the identifiable information of the first server.
The present invention also provides a data processing apparatus, the apparatus comprising:
the determining unit is used for determining at least one first server selected by the operating body;
the acquisition unit is used for acquiring the identifiable information corresponding to the at least one first server and the operation command selected by the operation body for the at least one first server;
a command obtaining unit, configured to obtain a batch processing command that can be executed on a second server based on identifiable information corresponding to each of the at least one first server and an operation command selected by the operation body for the at least one first server, where the batch processing command is sent to the at least one first server by the second server;
a result obtaining unit, configured to obtain an execution result that is returned by each of the at least one first server after the at least one first server responds to the batch processing command;
and the corresponding unit is used for corresponding the execution result returned by each first server with the corresponding identifiable information.
Preferably, the apparatus further comprises: a classifying unit, configured to perform, on each execution result returned by the at least one first server: determining the execution type of the execution result;
and the storage unit is used for storing the execution result in a result set corresponding to the execution type to which the execution result belongs.
Preferably, the command obtaining unit is configured to, for the at least one first server: and integrating the first information corresponding to the at least one first server and the operation command selected by the operator for the at least one first server into a batch processing command executable on a second server based on the command format of the batch processing command.
Preferably, the corresponding unit is configured to, for the at least one first server: and replacing the first information in the execution result of the first server with the identifiable information of the first server.
The present invention also provides a storage medium including a stored program, wherein the program executes the above-described data processing method.
The invention also provides a processor, which is used for running the program, wherein the data processing method is executed when the program runs.
By the technical scheme, under the condition that at least one first server selected by the operation body is determined, the recognizable information and the operation command selected by the operation body for the at least one first server corresponding to the at least one first server can be obtained, the batch processing command capable of being executed on the second server is obtained based on the recognizable information and the operation command selected by the operation body for the at least one first server corresponding to the at least one first server, and obtaining the execution result respectively returned by the at least one first server after responding to the batch processing command, corresponding the execution result respectively returned by the at least one first server with the respectively corresponding identifiable information, so that the server to which the execution result belongs can be determined based on the identifiable information, namely, the server to which the execution result belongs is determined based on the identifiable information, and the identification of the execution result is realized.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 illustrates a flow chart of a data processing method provided by an exemplary embodiment of the present disclosure;
FIG. 2 illustrates another flow chart of a data processing method provided by an exemplary embodiment of the present disclosure;
fig. 3 shows a schematic structural diagram of a data processing apparatus provided in an exemplary embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, a flowchart of a data processing method provided by an exemplary embodiment of the present disclosure is shown, which is used for corresponding execution results returned by servers in response to a batch command to respective identifiable information, so that the server to which the execution results belong can be determined based on the identifiable information.
The data processing method shown in fig. 1 is applied to a server that performs batch processing on at least one server, such as the server with the saltstack master service that performs batch processing on at least one server with the saltstack subtraction service. The data processing method will be described in an exemplary embodiment of the present disclosure by taking a server installed with a saltstack administration service and a server installed with a saltstack master service as examples. Specifically, the data processing method may include the steps of:
101: and determining at least one first server selected by the operation body. The first server is a server for batch processing control by the second server, such as the server installed with the saltstack mining service, and the second server may be a server installed with the saltstack master service.
In the exemplary embodiment of the disclosure, the second server may display the server information of the first server and each operation command for batch processing of the first server in a page table manner, that is, display two tables, namely, an information table and a command table, on a web page, where the information table records the server information of the first server, and the command table records each operation command for batch processing of the first server, and this way of displaying the server information and the operation command in the information table and the command table manner realizes data visualization display, so that an operator may selectively select a server to be processed and a command to be executed by a processor, thereby avoiding complication caused by manual input of the operator.
When detecting that a table unit in the information table is selected, it indicates that the server information corresponding to the table unit is selected, and the first server to which the corresponding server information belongs is the first server selected by the operating body.
The server information of the first server and the operation commands for batch processing of the first server can be stored in other servers capable of communicating with the second server, such as an ElasticSearch server capable of communicating with the server installed with the saltstack master service. The ElasticSearch server provides a communication interface for the server provided with the saltstack master service, and the ElasticSearch server and the server provided with the saltstack master service perform data interaction through the communication interface.
The server information of the first server includes but is not limited to: the product information includes basic information such as a name, an Internet Protocol (IP) address, an operating system, and the like of the server, and service information such as product usage, user information (such as a login account number of a user logged in the first server, and the like) and a mini unique identifier id of a product corresponding to the server. After the user logs in the first server through the user information, the second server displays the server information of the first server matched with the user information to the user in a page table mode.
The operation commands for batching the first server include, but are not limited to: restarting the server, obtaining the available memory of the server, viewing the running time of the server and the like, wherein the operation commands are packaged into scripts one by one, so that the operation commands can be displayed in a mode of displaying a command list in a webpage.
102: and acquiring the identifiable information corresponding to the at least one first server and the operation command selected by the operation body for the at least one first server.
After determining the at least one first server selected by the operating body, identifiable information, such as at least one of a name and an IP address of the server, may be selected from the server information of each first server. The operation command selected for the at least one first server may be determined by detecting that a table unit in the command table is selected, and if the table unit in the command table is detected to be selected, it indicates that the operation command corresponding to the table unit is selected by the operation body.
103: and obtaining batch processing commands which can be executed on the second server based on the identifiable information corresponding to the first server and the operation commands selected by the operation body for the first server.
In the present exemplary embodiment, one possible way to obtain a batch command executable on the second server is to: for at least one first server: acquiring first information of the first server specified in a batch processing command, and replacing the identifiable information of the first server with the first information of the first server; based on the command format of the batch processing command, integrating the first information corresponding to each of the at least one first server and the operation command selected by the operation body for the at least one first server into the batch processing command executable on the second server, and sending the obtained batch processing command to the determined at least one first server so that each first server responds to the batch processing command.
Wherein the first information of the first server specified in the batch processing command is: one possible way to integrate the first information of the first server, which should be present in the batch command, and the selected operation command for the at least one first server into a batch command executable on the second server is to: and performing character string splicing on the first information and the operation command selected for the at least one first server.
Still taking the first server as the server installed with the saltstack administration service as an example, the operating body selects two first servers named as server-1 and server-2, and selects an operation command 'free-m' for the two servers to obtain the memory information of the two servers. When the second server acquires the identifiable information: after server-1 and server-2 and the operation command 'free-m', acquiring first information specified in the batch processing command: and (3) the minion unique identification, such as the minion unique identification ids of the two first servers, namely fd5a86f6-0960-11e7-995c and fdd7cc6a-ccde-11e6-b47 e. The second server then bases the above: fd5a86f6-0960-11e7-995c, fdd7cc6a-ccde-11e6-b47e and free-m get batch commands: salt-L 'fd5a86f6-0960-11e7-995c, fdd7cc6a-ccde-11e6-b47e' cmd.run 'free-m'.
104: and after the at least one first server responds to the batch processing command, the execution result returned by the at least one first server is obtained.
105: and corresponding the execution result returned by each of the at least one first server with the corresponding identifiable information. The corresponding is to bind the execution result returned by the first server with the identifiable information of the first server, so that the server to which the execution result belongs can be determined based on the identifiable information of the first server, that is, the server to which the execution result belongs is determined based on the identifiable information, and the identification of the execution result is realized.
In an exemplary embodiment of the present disclosure, one possible way to correspond the execution result returned by each of the at least one first server to the identifiable information corresponding to each of the at least one first server is: for at least one first server: and replacing the first information in the execution result of the first server with the identifiable information of the first server.
Still taking the example that the first server is a server installed with a saltstack administration service, and the second server is a server installed with a saltstack master service, the returned execution result is: and fd5a86f6-0960-11e7-995c: xxxx, namely, the execution result stores the minion unique identification id of the first server, and the information is not easily recognized, so that the information needs to be replaced by recognizable information.
In order to replace the first information with the identifiable information, the server installed with the saltstack master service needs to obtain the server information of the first server corresponding to the returned result from the ElasticSearch server through the communication interface, extract the identifiable information from the obtained server information, and replace the first information with the identifiable information, such as the name of the server: server-1, the execution result of replacing with the identifiable information is: server-1: xxxx, achieving identifiability of execution results.
From the above technical solution, in the case of determining at least one first server selected by the operating body, the recognizable information and the operation command selected by the operation body for the at least one first server corresponding to the at least one first server can be obtained, the batch processing command capable of being executed on the second server is obtained based on the recognizable information and the operation command selected by the operation body for the at least one first server corresponding to the at least one first server, and obtaining the execution result respectively returned by the at least one first server after responding to the batch processing command, corresponding the execution result respectively returned by the at least one first server with the respectively corresponding identifiable information, so that the server to which the execution result belongs can be determined based on the identifiable information, namely, the server to which the execution result belongs is determined based on the identifiable information, and the identification of the execution result is realized.
Referring to fig. 2, which shows another flowchart of a data processing method provided by an exemplary embodiment of the present disclosure, on the basis of fig. 1, the method may further include the following steps:
106: and the execution result returned by each of the at least one first server is as follows: and determining the execution type of the execution result, storing the execution result in a result set corresponding to the execution type of the execution result, so as to implement classified storage of the execution result, and the result set may be stored in another device coupled and communicated with the second server, such as the aforementioned ElasticSearch server communicating with the second server through the communication interface.
In an exemplary embodiment of the present disclosure, one possible way to determine the execution type to which the execution result belongs is: based on a return code returned by the first server in response to the batch processing command, wherein the return code is used for indicating that the first server responds to the batch processing command, for example, when the return code is the number 1, the first server fails to respond, and further, the execution type to which the execution result belongs can be determined as the execution success; when the return code is the number 0, the first server responds successfully, and further the execution type to which the execution result belongs can be determined to be successful, so that the execution type to which the execution result belongs can be determined based on the return code. If the return code is not received within a preset time, the execution type to which the execution result belongs is an unknown type, where the preset time is the time from sending the batch processing command to the first server to receiving the return execution result from the first server, and the value of the execution result is not limited in the present exemplary embodiment according to the actual application.
According to the technical scheme, the line results are stored in the result set corresponding to the execution type of each server based on the execution type of the execution result returned by each server, so that classified storage of the execution results is realized, and the execution results can be stored according to three types of execution success, execution failure and unknown. And under the condition that an instruction for displaying the execution result is received, the execution result in each result set can be displayed in a page table form according to the execution type to which the execution result belongs, so that the execution result can be conveniently viewed and counted.
The points to be explained here are: the ElasticSearch server is provided with an API (Application Programming Interface) in the form of http (HyperText Transfer Protocol), so that a server installed with a saltstack master service can communicate with the ElasticSearch server through the API. If a server installed with a saltstack master service needs to obtain server information, a request for obtaining data can be sent to an ElasticSearch server, and the ElasticSearch server will return server information in a preset format, such as json (JS Object Notation) format, for example
{ "hostname": server-1"," ip ": 1.1.1.1", "termination _ id": fd5a86f6-0960-11e7-995c "}. When the server installed with the saltstack master service stores the execution result, sending a request for storing data to an elastic search server, wherein the execution result in the request is expressed in json format, such as:
after receiving the request, the ElasticSearch server stores the information and returns prompt information of successful or failed storage.
Corresponding to the above method embodiments, an exemplary embodiment of the present disclosure further provides a data processing apparatus, which may have an optional structure as shown in fig. 3, and may include: a determination unit 11, an acquisition unit 12, a command obtaining unit 13, a result obtaining unit 14, and a correspondence unit 15.
The determining unit 11 is configured to determine at least one first server selected by the operating entity. The first server is a server for batch processing control by the second server, such as the server installed with the saltstack mining service, and the second server may be a server installed with the saltstack master service.
The obtaining unit 12 is configured to obtain the identifiable information and the operation command selected by the operation entity for the at least one first server, where the identifiable information corresponds to the at least one first server.
In the exemplary embodiment of the present disclosure, the description and the presentation forms of the recognizable information and the operation command refer to the related description in the method embodiment, and the description of the exemplary embodiment is omitted. After determining at least one first server selected by the operating body, the obtaining unit 12 may select identifiable information, such as at least one of a name and an IP address of the server, from the server information of each first server. The operation command selected for the at least one first server may be determined by detecting that a table unit in the command table is selected, and if the table unit in the command table is detected to be selected, it indicates that the operation command corresponding to the table unit is selected by the operation body.
The command obtaining unit 13 is configured to obtain a batch processing command executable on the second server based on the identifiable information and the operation command selected by the operation entity for the at least one first server, where the batch processing command is sent from the second server to the at least one first server.
In the present exemplary embodiment, one possible way for the command obtaining unit 13 to obtain batch commands executable on the second server is: for at least one first server: acquiring first information of the first server specified in a batch processing command, and replacing the identifiable information of the first server with the first information of the first server; based on the command format of the batch processing command, integrating the first information corresponding to each of the at least one first server and the operation command selected by the operation body for the at least one first server into the batch processing command executable on the second server, and sending the obtained batch processing command to the determined at least one first server so that each first server responds to the batch processing command.
Wherein the first information of the first server specified in the batch processing command is: one possible way to integrate the first information of the first server, which should be present in the batch command, and the selected operation command for the at least one first server into a batch command executable on the second server is to: and performing character string splicing on the first information and the operation command selected for the at least one first server.
Still taking the first server as the server installed with the saltstack administration service as an example, the operating body selects two first servers named as server-1 and server-2, and selects an operation command 'free-m' for the two servers to obtain the memory information of the two servers. When the second server acquires the identifiable information: after server-1 and server-2 and the operation command 'free-m', acquiring first information specified in the batch processing command: and (3) the minion unique identification, such as the minion unique identification ids of the two first servers, namely fd5a86f6-0960-11e7-995c and fdd7cc6a-ccde-11e6-b47 e. The second server then bases the above: fd5a86f6-0960-11e7-995c, fdd7cc6a-ccde-11e6-b47e and free-m get batch commands: salt-L 'fd5a86f6-0960-11e7-995c, fdd7cc6a-ccde-11e6-b47e' cmd.run 'free-m'.
And a result obtaining unit 14, configured to obtain an execution result that is returned by each of the at least one first server after the at least one first server responds to the batch processing command.
A corresponding unit 15, configured to correspond the execution result returned by each of the at least one first server to the identifiable information corresponding to each of the execution results. The corresponding is to bind the execution result returned by the first server with the identifiable information of the first server, so that the server to which the execution result belongs can be determined based on the identifiable information of the first server, that is, the server to which the execution result belongs is determined based on the identifiable information, and the identification of the execution result is realized.
In an exemplary embodiment of the present disclosure, one possible way that the corresponding unit 15 corresponds the execution result returned by each of the at least one first server to the identifiable information corresponding to each of the at least one first server is: for at least one first server: and replacing the first information in the execution result of the first server with the identifiable information of the first server.
Still taking the example that the first server is a server installed with a saltstack administration service, and the second server is a server installed with a saltstack master service, the returned execution result is: and fd5a86f6-0960-11e7-995c: xxxx, namely, the execution result stores the finish unique identification id of the first server, and the information is not easy to identify, so that the information needs to be replaced by identifiable information.
In order to replace the first information with the identifiable information, the server installed with the saltstack master service needs to acquire the server information of the first server corresponding to the returned result from the ElasticSearch server through the communication interface, extract the identifiable information from the acquired server information, and replace the first information with the identifiable information, such as the name of the server: server-1, the execution result of replacing with the identifiable information is: server-1: xxxx, achieving identifiability of execution results.
From the above technical solution, in the case of determining at least one first server selected by the operating body, the recognizable information and the operation command selected by the operation body for the at least one first server corresponding to the at least one first server can be obtained, the batch processing command capable of being executed on the second server is obtained based on the recognizable information and the operation command selected by the operation body for the at least one first server corresponding to the at least one first server, and obtaining the execution result respectively returned by the at least one first server after responding to the batch processing command, corresponding the execution result respectively returned by the at least one first server with the respectively corresponding identifiable information, so that the server to which the execution result belongs can be determined based on the identifiable information, namely, the server to which the execution result belongs is determined based on the identifiable information, and the identification of the execution result is realized.
The data processing apparatus provided in the present exemplary embodiment may further include: a classification unit and a storage unit. The classification unit is used for executing the execution results returned by the at least one first server: and determining the execution type of the execution result. And the storage unit is used for storing the execution result in a result set corresponding to the execution type to which the execution result belongs.
In an exemplary embodiment of the present disclosure, one possible way for the classification unit to determine the execution type to which the execution result belongs is: based on a return code returned by the first server in response to the batch processing command, wherein the return code is used for indicating that the first server responds to the batch processing command, for example, when the return code is the number 1, the first server fails to respond, and further, the execution type to which the execution result belongs can be determined as the execution success; when the return code is the number 0, the first server responds successfully, and further the execution type to which the execution result belongs can be determined to be successful, so that the execution type to which the execution result belongs can be determined based on the return code. If the return code is not received within a preset time, the execution type to which the execution result belongs is an unknown type, where the preset time is the time from sending the batch processing command to the first server to receiving the return execution result from the first server, and the value of the execution result is not limited in the present exemplary embodiment according to the actual application.
According to the technical scheme, the line results are stored in the result set corresponding to the execution type of each server based on the execution type of the execution result returned by each server, so that classified storage of the execution results is realized, and the execution results can be stored according to three types of execution success, execution failure and unknown. And under the condition that an instruction for displaying the execution result is received, the execution result in each result set can be displayed in a page table form according to the execution type to which the execution result belongs, so that the execution result can be conveniently viewed and counted.
The data processing device comprises a processor and a memory, wherein the determining unit 11, the acquiring unit 12, the command obtaining unit 13, the result obtaining unit 14, the corresponding unit 15, the classifying unit, the storing unit and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can set one or more than one kernel, and the kernel parameters are adjusted to correspond the execution results returned by the at least one first server to the corresponding identifiable information, so that the server to which the execution results belong can be determined based on the identifiable information, that is, the server to which the execution results belong is determined based on the identifiable information, and the identification of the execution results is realized.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing the data processing method when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the data processing method is executed when the program runs.
The embodiment of the invention provides equipment, and the equipment can be a server, a PC, a PAD, a mobile phone and the like. The device comprises a processor, a memory and a program which is stored on the memory and can run on the processor, and the processor executes the program to realize the following steps:
determining at least one first server selected by an operation body;
obtaining the identifiable information corresponding to the at least one first server and the operation command selected by the operation body for the at least one first server;
obtaining batch processing commands which can be executed on a second server based on the identifiable information corresponding to the at least one first server and the operation commands selected by the operation body for the at least one first server, wherein the batch processing commands are sent to the at least one first server by the second server;
obtaining the execution result returned by the at least one first server after the at least one first server responds to the batch processing command;
and corresponding the execution result returned by each first server with the corresponding identifiable information.
Preferably, the processor executes the program to further implement the steps of: and the execution result returned by each first server is as follows: and determining the execution type of the execution result, and storing the execution result in a result set corresponding to the execution type of the execution result.
Preferably, the obtaining a batch processing command executable on the second server based on the identifiable information corresponding to each of the at least one first server and the operation command selected by the operation body for the at least one first server includes:
for the at least one first server: acquiring first information of the first server specified in the batch processing command, and replacing the identifiable information of the first server with the first information of the first server;
and integrating the first information corresponding to the at least one first server and the operation command selected by the operation body for the at least one first server into a batch processing command executable on a second server based on the command format of the batch processing command.
Preferably, the corresponding the execution result returned by each of the at least one first server to the identifiable information includes:
for the at least one first server: and replacing the first information in the execution result of the first server with the identifiable information of the first server.
An embodiment of the present invention further provides a computer program product, which, when executed on a data processing apparatus, is adapted to execute a program that initializes the following method steps:
determining at least one first server selected by an operation body;
obtaining the identifiable information corresponding to the at least one first server and the operation command selected by the operation body for the at least one first server;
obtaining batch processing commands which can be executed on a second server based on the identifiable information corresponding to the at least one first server and the operation commands selected by the operation body for the at least one first server, wherein the batch processing commands are sent to the at least one first server by the second server;
obtaining the execution result returned by the at least one first server after the at least one first server responds to the batch processing command;
and corresponding the execution result returned by each first server with the corresponding identifiable information.
Preferably, the program, when being executed on a data processing device, is adapted to carry out the initialization further with the following method steps: and the execution result returned by each first server is as follows: and determining the execution type of the execution result, and storing the execution result in a result set corresponding to the execution type of the execution result.
Preferably, the obtaining a batch processing command executable on the second server based on the identifiable information corresponding to each of the at least one first server and the operation command selected by the operation body for the at least one first server includes:
for the at least one first server: acquiring first information of the first server specified in the batch processing command, and replacing the identifiable information of the first server with the first information of the first server;
and integrating the first information corresponding to the at least one first server and the operation command selected by the operation body for the at least one first server into a batch processing command executable on a second server based on the command format of the batch processing command.
Preferably, the corresponding the execution result returned by each of the at least one first server to the identifiable information includes:
for the at least one first server: and replacing the first information in the execution result of the first server with the identifiable information of the first server.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.

Claims (8)

1. A method of data processing, the method comprising:
determining at least one first server selected by an operation body;
obtaining the identifiable information corresponding to the at least one first server and the operation command selected by the operation body for the at least one first server;
obtaining a batch processing command executable on a second server based on the identifiable information corresponding to the at least one first server and the operation command selected by the operator for the at least one first server, wherein the batch processing command is sent to the at least one first server by the second server, and obtaining the batch processing command executable on the second server based on the identifiable information corresponding to the at least one first server and the operation command selected by the operator for the at least one first server comprises: for the at least one first server: acquiring first information of the first server specified in the batch processing command, and replacing the identifiable information of the first server with the first information of the first server; integrating first information corresponding to the at least one first server and the operation command selected by the operation body for the at least one first server into a batch processing command executable on a second server based on a command format of the batch processing command;
obtaining the execution result returned by the at least one first server after the at least one first server responds to the batch processing command;
and corresponding the execution result returned by each first server with the corresponding identifiable information.
2. The method of claim 1, further comprising: and the execution result returned by each first server is as follows: and determining the execution type of the execution result, and storing the execution result in a result set corresponding to the execution type of the execution result.
3. The method of claim 1, wherein the associating the execution results returned by each of the at least one first server with the respective identifiable information comprises:
for the at least one first server: and replacing the first information in the execution result of the first server with the identifiable information of the first server.
4. A data processing apparatus, characterized in that the apparatus comprises:
the determining unit is used for determining at least one first server selected by the operating body;
an obtaining unit, configured to obtain identifiable information corresponding to each of the at least one first server and an operation command selected by the operation body for the at least one first server;
a command obtaining unit, configured to obtain a batch processing command that can be executed on a second server based on identifiable information corresponding to each of the at least one first server and an operation command selected by the operation body for the at least one first server, where the batch processing command is sent to the at least one first server by the second server;
a result obtaining unit, configured to obtain an execution result that is returned by each of the at least one first server after the at least one first server responds to the batch processing command;
a corresponding unit, configured to correspond execution results returned by the at least one first server to corresponding identifiable information;
wherein the command obtaining unit is configured to, for the at least one first server: and integrating the first information corresponding to the at least one first server and the operation command selected by the operator for the at least one first server into a batch processing command executable on a second server based on the command format of the batch processing command.
5. The apparatus of claim 4, further comprising: a classifying unit, configured to perform, on each execution result returned by the at least one first server: determining the execution type of the execution result;
and the storage unit is used for storing the execution result in a result set corresponding to the execution type to which the execution result belongs.
6. The apparatus according to claim 4, wherein the corresponding unit is configured to, for the at least one first server: and replacing the first information in the execution result of the first server with the identifiable information of the first server.
7. A storage medium characterized by comprising a stored program, wherein the program executes the data processing method of any one of claims 1 to 3.
8. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to execute the data processing method according to any one of claims 1 to 3 when running.
CN201710916724.4A 2017-09-30 2017-09-30 Data processing method and device Active CN109597742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710916724.4A CN109597742B (en) 2017-09-30 2017-09-30 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710916724.4A CN109597742B (en) 2017-09-30 2017-09-30 Data processing method and device

Publications (2)

Publication Number Publication Date
CN109597742A CN109597742A (en) 2019-04-09
CN109597742B true CN109597742B (en) 2022-06-03

Family

ID=65955804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710916724.4A Active CN109597742B (en) 2017-09-30 2017-09-30 Data processing method and device

Country Status (1)

Country Link
CN (1) CN109597742B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112005003530T5 (en) * 2005-04-08 2008-03-27 Hewlett-Packard Development Company, L.P., Houston Error Code System
CN105553737A (en) * 2015-12-25 2016-05-04 浪潮(北京)电子信息产业有限公司 Node management method and system
CN106487560A (en) * 2015-08-31 2017-03-08 北京国双科技有限公司 A kind of acquisition method of server configuration information, apparatus and system
CN106598983A (en) * 2015-10-16 2017-04-26 北京国双科技有限公司 Information display method and device
CN106790691A (en) * 2017-02-20 2017-05-31 湖南云连天地网络科技有限公司 A kind of information processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112005003530T5 (en) * 2005-04-08 2008-03-27 Hewlett-Packard Development Company, L.P., Houston Error Code System
CN106487560A (en) * 2015-08-31 2017-03-08 北京国双科技有限公司 A kind of acquisition method of server configuration information, apparatus and system
CN106598983A (en) * 2015-10-16 2017-04-26 北京国双科技有限公司 Information display method and device
CN105553737A (en) * 2015-12-25 2016-05-04 浪潮(北京)电子信息产业有限公司 Node management method and system
CN106790691A (en) * 2017-02-20 2017-05-31 湖南云连天地网络科技有限公司 A kind of information processing method and device

Also Published As

Publication number Publication date
CN109597742A (en) 2019-04-09

Similar Documents

Publication Publication Date Title
CN106648556B (en) Method and device for front-end and back-end integrated development test
CN108268609B (en) File path establishing and accessing method and device
CN109583223B (en) Detection method and device for big data safety deployment
CN109542754B (en) Access method of mobile equipment, debugging method, device and system of application program
CN109598526B (en) Method and device for analyzing media contribution
CN106919620B (en) Single page processing method and device
CN111212154A (en) Service binding method, device, terminal, server and storage medium
CN112579948A (en) Webpage screenshot method and device, storage medium and electronic equipment
CN110968560B (en) Configuration method, device and system of log collector
CN109600272B (en) Crawler detection method and device
CN108268369B (en) Test data acquisition method and device
CN106648913B (en) Data acquisition software identification method and device
CN109597742B (en) Data processing method and device
CN111125087B (en) Data storage method and device
CN109561126B (en) Data synchronization method and device, storage medium and processor
CN111061977A (en) Website updating method, device and system
CN109561121B (en) Method and device for monitoring deployment
CN107766385B (en) Method and equipment for converting file format of virtual disk
CN109429100B (en) Method, device and system for storing page path
CN108076450B (en) Method and device for identifying same user
CN110908876B (en) Method and device for acquiring hardware performance data
CN110839053B (en) Device communication method, device and storage medium
CN110971578B (en) User identity confirmation method and device
CN110968754B (en) Detection method and device for crawler page turning strategy
CN112346761A (en) Front-end resource online method, equipment, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100080 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant