CN109800145A - Script execution, device, computer equipment and storage medium - Google Patents

Script execution, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109800145A
CN109800145A CN201811527610.1A CN201811527610A CN109800145A CN 109800145 A CN109800145 A CN 109800145A CN 201811527610 A CN201811527610 A CN 201811527610A CN 109800145 A CN109800145 A CN 109800145A
Authority
CN
China
Prior art keywords
script
task
target
execution
information
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
CN201811527610.1A
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.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart 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 OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811527610.1A priority Critical patent/CN109800145A/en
Publication of CN109800145A publication Critical patent/CN109800145A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses script execution, device, computer equipment and storage mediums.Method includes: that script task configuration parameter and preset task template according to transmitted by user terminal configure to obtain script task;Target script is sent to destination server to execute to the script task according to script task;Implementation procedure of the target script in destination server in script task is monitored in real time to obtain the script execution monitoring information of script task;The script execution prompt information of the script task is generated according to the script execution monitoring information of script task;The script execution prompt information of script task is sent to target terminal user corresponding with the script task.The present invention is based on software supervision technologies, once target script can be deployed in multiple servers and be executed, the time that operation maintenance personnel is needed to wait for is reduced, while reducing the risk during manual operation, the execution efficiency of script when safeguarding to server greatly improved.

Description

Script execution, device, computer equipment and storage medium
Technical field
The present invention relates to field of computer technology more particularly to a kind of script execution, device, computer equipment and deposit Storage media.
Background technique
It, need to be successively by script transmission to server during the software run in server carries out maintenance update And executed, traditional operating method is that operation maintenance personnel is operated manually.Since script is completed in a server Execution needs the regular hour, thus operation maintenance personnel needs to wait for script and execute completion in a server could servicing at next Script is executed in device, when the server of required maintenance is more, it is big that this script execution need to expend operation maintenance personnel The time of amount.Thus existing script execution has that execution efficiency is lower.
Summary of the invention
The embodiment of the invention provides a kind of script execution, device, computer equipment and storage mediums, it is intended to solve The lower problem of execution efficiency when being executed to script in the presence of the prior art.
In a first aspect, the embodiment of the invention provides a kind of script executions comprising:
If receiving script task configuration parameter transmitted by user terminal, according to script task configuration parameter and preset Task template configures to obtain the script task comprising target script;
Target script is sent to the destination server being connected to the network in advance according to script task to appoint to the script Business is executed;
Implementation procedure of the target script in destination server in script task is monitored in real time to obtain script and appoint The script execution monitoring information of business;
The script execution prompt information of the script task is generated according to the script execution monitoring information of script task;
The script execution prompt information of script task is sent to target terminal user corresponding with the script task.
Second aspect, the embodiment of the invention provides a kind of script execution devices comprising:
Script task configuration unit, if for receiving script task configuration parameter transmitted by user terminal, according to foot This task configuration parameter and preset task template configure to obtain the script task comprising target script;
Target script executing unit, for target script to be sent to the mesh being connected to the network in advance according to script task Server is marked to execute to the script task;
Monitoring unit is executed, it is real-time for being carried out to implementation procedure of the target script in script task in destination server Monitoring is to obtain the script execution monitoring information of script task;
Script execution prompt information generation unit, for generating the script according to the script execution monitoring information of script task The script execution prompt information of task;
Script execution prompt information transmission unit, for the script execution prompt information of script task to be sent to and the foot The corresponding target terminal user of this task.
The third aspect, the embodiment of the present invention provide a kind of computer equipment again comprising memory, processor and storage On the memory and the computer program that can run on the processor, the processor execute the computer program Script execution described in the above-mentioned first aspect of Shi Shixian.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, wherein the computer can It reads storage medium and is stored with computer program, it is above-mentioned that the computer program when being executed by a processor executes the processor Script execution described in first aspect.
The embodiment of the invention provides a kind of script execution, device, computer equipment and storage mediums.Pass through and configures Script task comprising target script and script execution strategy, and script task is sent to corresponding server and is executed, Once target script can be deployed in multiple servers and be executed, reduce the time that operation maintenance personnel is needed to wait for, simultaneously The risk during manual operation is reduced, the execution efficiency of script when safeguarding to server greatly improved.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the flow diagram of script execution provided in an embodiment of the present invention;
Fig. 2 is the application scenarios schematic diagram of script execution provided in an embodiment of the present invention;
Fig. 3 is the sub-process schematic diagram of script execution provided in an embodiment of the present invention;
Fig. 4 is another sub-process schematic diagram of script execution provided in an embodiment of the present invention;
Fig. 5 is another sub-process schematic diagram of script execution provided in an embodiment of the present invention;
Fig. 6 is another sub-process schematic diagram of script execution provided in an embodiment of the present invention;
Fig. 7 is the schematic block diagram of script execution device provided in an embodiment of the present invention;
Fig. 8 is the subelement schematic block diagram of script execution device provided in an embodiment of the present invention;
Fig. 9 is another subelement schematic block diagram of script execution device provided in an embodiment of the present invention;
Figure 10 is another subelement schematic block diagram of script execution device provided in an embodiment of the present invention;
Figure 11 is another subelement schematic block diagram of script execution device provided in an embodiment of the present invention;
Figure 12 is the schematic block diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
Fig. 1-Fig. 2 is please referred to, Fig. 1 is the flow diagram of script execution provided in an embodiment of the present invention;Fig. 2 is this The application scenarios schematic diagram for the script execution that inventive embodiments provide.The script execution is applied to management server 10 In, this method is executed by the application software being installed in management server 10, more user terminals 20 and server 30 It is connected to the network by being established with management server 10 to carry out the transmission of data information.Wherein, user terminal 20 be for The terminal device, such as desktop computer, laptop, tablet computer or mobile phone etc. of the transmission data information of management server 10; Management server 10 is to execute method for perform script to realize the enterprise terminal for carrying out maintenance update to server 30;Clothes Business device 30 carries out the server end of maintenance update needed for being.In addition, only illustrating a user terminal 20 and a clothes in Fig. 2 Business device 30 is established with management server 10 simultaneously to be connected to the network, and more user terminals 20 and more can be achieved in actual application Server 30 is established with management server 10 be connected to the network simultaneously.
As shown in Figure 1, the method comprising the steps of S110~S150.
If S110, receiving script task configuration parameter transmitted by user terminal, according to script task configuration parameter and Preset task template configures to obtain the script task comprising target script.
If management server receives script task configuration parameter transmitted by user terminal, is configured and joined according to script task Several and preset task template configures to obtain the script task comprising target script.Wherein, task template is for configuring foot The Template Information of this task.Specifically, including script information, implementation strategy information and service in the script task configuration parameter Device information;It include that configuration parameter sends terminal, target script, script execution strategy and target in the script task configured Server.
For example, the script task configured is as shown in table 1.
Table 1
Script information is user's pending script set in script task configuration parameter, in script information only Comprising a script, implementation strategy information is the policy information for specifically being executed to script, and server info is The network address information of the server of required maintenance may include one or more servers in server info.Configuration parameter hair Make arrangements for his funeral end be send script task configuration parameter user terminal, target script be configured in script task it is pending Script, the quantity of target script is one, and script execution strategy is taking to script in target of being configured in script task The policy information specifically executed in business device, destination server is the service that the need configured in script task are safeguarded The network address information of device, the quantity of server included in destination server are one or more.
Wherein, script is a kind of computer programming language, and script is that a series of control computers carry out arithmetic operation movement Combination, maintenance update can be carried out to the program in server by script.User terminal is for sending script task Configuration parameter is to treat the terminal device that the server of maintenance is safeguarded.In the specific implementation process, the user terminal of enterprise For one or more, the server of required maintenance is one or more, and management server can take with more user terminals and more Business device establishes network connection simultaneously to carry out the transmission of data information.
In one embodiment, as shown in figure 3, step S110 includes sub-step S111, S112, S113 and S114.
S111, it fills the user terminal for sending script task configuration parameter as configuration parameter transmission terminal to task mould In plate.
The user terminal for sending script task configuration parameter is sent terminal as configuration parameter to fill into task template. Since management server is connected with more user terminals in actual application, carried out for convenience of to script task generated The user terminal for sending script task configuration parameter need to be sent terminal as configuration parameter and filled into task template by management, To be easily managed to according to the configuration parameter transmission terminal in script task to the script task configured.
S112, it the script information in script task configuration parameter is filled obtains configured target script into task template Task template.
Script information in script task configuration parameter is filled and obtains appointing for configured target script into task template Business template.User is by the corresponding script of user terminal selecting as the script information in script task configuration parameter, management clothes Business device fills the script information in script task configuration parameter into task template, and appointing for configured target script can be obtained Business template.
S113, according in script task configuration parameter implementation strategy information and server info to configured target script Task template configured to obtain script task.
According in script task configuration parameter implementation strategy information and server info configured target script is appointed Business template is configured, and script task can be obtained.Wherein, implementation strategy information includes concurrently executing, serial to execute, by specified Sequence executes, then the script execution strategy in corresponding script task also includes concurrently executing, serial to execute, and holds in a designated order Row.Concurrently executing is to be performed simultaneously in multiple servers of destination server to target script;It is serial execute be according to The sequence of target script successively executes target script in multiple servers of destination server;It executes in a designated order It is successively to be executed in multiple servers of destination server to target script according to sequence specified by user.
For example, in script task in table 1 script execution strategy be it is serial execute, then management server controls target script Successively executed according to server A, the sequence of server B, after that is to say that target script executes completion in server A, Target script is executed in server B.
S114, it the runing time point information in script task configuration parameter is filled obtains configured fortune into task template The script task at row time point.
Specifically, further including preset runing time point information in the script task configuration parameter, configure It further include runing time point in script task.Runing time point information in script task configuration parameter is filled to task template In obtain the script task of configured runing time point.Specifically, runing time point information is in script task configuration parameter It is set for starting the temporal information of script task, user can script task configuration parameter to runing time point information into Row is preset.Runing time point information is filled to task template and after generating corresponding script task, script can be passed through The runing time point configured in task controls the starting time of script task.
For example, runing time point information in script task configuration parameter is 15:20, which is filled to appointing Runing time point in the corresponding script task generated of template of being engaged in is 15:20, if current time reaches 15:20, the script Task executes automatically.
By being configured in script task to runing time point, to facilitate user to required execution script task The starting time is controlled, and can substantially be saved user and be carried out safeguarding the required time to server, improve script task Execution efficiency.
S120, target script is sent to the foot by the destination server being connected to the network in advance according to script task This task is executed.
Target script is sent to the destination server being connected to the network in advance according to script task, to appoint to the script Business is executed, wherein Servers-all is established in advance with management server and is connected to the network.Specifically, being wrapped in script task Point containing runing time, if current time reaches the runing time point of script task, according to the destination server in the script task, Target script is sent to corresponding server and is executed.
In one embodiment, as shown in figure 4, step S120 includes sub-step S121 and S122.
S121, target script is sent to the target being connected to the network in advance according to the destination server in script task In server.
Target script is sent to the destination service being connected to the network in advance according to the destination server in script task In device, all servers that need to be safeguarded are established in advance with management server and are connected to the network.Specifically, the clothes in destination server Business device includes corresponding network address information, according to the network address information of server is in destination server in script task Target script can be sent in corresponding server.
S122, it is sent according to the script execution strategy in script task and executes instruction information to having received target foot accordingly In this destination server.
It is sent according to the script execution strategy in script task and executes instruction information to having received target script accordingly In destination server.Management server executes instruction information to mesh accordingly according to the script execution strategy transmission in script task Server is marked, destination server reception executes instruction information and execute to target script, takes to realize to target accordingly Business device carries out maintenance update, and target script execution completes that the information that script execution is completed then is fed back to management server no matter Whether target script runs succeeded, and the information that script execution is completed is fed back to management server.
For example, in script task in table 1 script execution strategy be it is serial execute, then management server first sends to execute and refer to Enable information to server A, server A executes target script, executes completion and then feeds back the information of script execution completion extremely Management server, management server receive server A and execute the information completed, then send and execute instruction information to server B.
S130, implementation procedure of the target script in destination server in script task is monitored in real time to obtain foot The script execution monitoring information of this task.
Implementation procedure of the target script in destination server in script task is monitored in real time, script can be obtained The script execution monitoring information of task.Specifically, the script execution monitoring information monitored is that target script takes in target The information whether execution duration and target script in business device run succeeded.
S140, the script execution prompt information that the script task is generated according to the script execution monitoring information of script task.
The script execution prompt information of the script task is generated according to the script execution monitoring information of script task, specifically , script execution prompt information is the prompt information for being reminded relative users.
In one embodiment, as shown in figure 5, step S140 includes sub-step S141 and S142.
S141, according to the script execution monitoring information of preset judgment rule and script task to target in destination server Whether script, which often holds different row, is judged to obtain the judging result of destination server.
According to the script execution monitoring information of preset judgment rule and script task to target script in destination server Whether execute exception to be judged, the judging result of Servers-all in destination server can be obtained.Wherein, preset judgement Rule is for target script, in the server whether straight line to judge extremely, includes executing duration threshold in judgment rule Value.Specific judgment rule is, if the execution duration that a certain server executes the target script in script execution monitoring information surpasses Duration threshold value or the failure of target script execution out, then the judging result of the server is that target script execution is abnormal;If script is held In row monitoring information a certain server execute the execution duration of the target script without departing from duration threshold value and target script execution at Function, then the judging result of the server is target script execution no abnormality seen.Destination server is obtained by above-mentioned judgment method The judging result of middle Servers-all.
S142, script execution prompt information is generated according to the judging result of destination server.
Script execution prompt information is generated according to the judging result of destination server.According to the judging result of destination server Corresponding script execution prompt information is generated, with abnormal to target script execution to whether there is in prompting ownership goal server Server, facilitate user quickly to find the server to target script execution exception, and handle in time.
For example, the execution duration of server A performance objective script is beyond execution duration threshold value, server B performance objective foot The execution duration of sheet is without departing from execution duration threshold value and target script execution succeeds, then script execution prompt information generated Are as follows: server A target script execution is abnormal, server B target script execution no abnormality seen.
S150, the script execution prompt information of script task is sent to target user's end corresponding with the script task End.
Since management server is connected with one or more user terminal, the transmittable script task of more user terminals Configuration parameter configures corresponding script task and carries out maintenance update to server.Therefore, the script execution of script task need to be mentioned Show that information is sent to target terminal user corresponding with the script task, to match to transmission with script task in the script task The corresponding user of parameter is set to remind.
In one embodiment, as shown in fig. 6, step S150 includes sub-step S151 and S152.
S151, the configuration parameter in script task is sent to terminal as target user's end corresponding with the script task End.
Configuration parameter in the script task is sent into terminal as target terminal user corresponding with the script task, Due to the user terminal for sending script task configuration parameter being joined as configuration during configuring each script task Number sends terminal and fills into task template and configure the corresponding script task that obtains, therefore obtains the configuration ginseng in script task It is target terminal user corresponding with the script task that number, which sends terminal,.
S152, script execution prompt information generated is sent to the target terminal user.
Script execution prompt information generated is sent to the target terminal user, can be appointed to sending with the script The corresponding user of script task configuration parameter reminds in business.User, which receives script execution prompt information, can be appreciated that it The executive condition of the script task configured facilitates user quickly to find to execute abnormal server and progress in destination server Processing in time.
By configuring the script task comprising target script and script execution strategy, and script task is sent to accordingly Server is executed, and once target script can be deployed in multiple servers and executed, and is reduced needed for operation maintenance personnel The time of waiting, while the risk during manual operation is reduced, script when safeguarding to server greatly improved and hold Line efficiency.
The embodiment of the present invention also provides a kind of script execution device, and the script execution device is for executing aforementioned script execution Any embodiment of method.Specifically, referring to Fig. 7, Fig. 7 is the schematic of script execution device provided in an embodiment of the present invention Block diagram.The script execution device 100 can be configured in management server 10.
As shown in fig. 7, script execution device 100 include script task configuration unit 110, target script executing unit 120, Execute monitoring unit 130, script execution prompt information generation unit 140 and script execution prompt information transmission unit 150.
Script task configuration unit 110, if for receiving script task configuration parameter transmitted by user terminal, according to Script task configuration parameter and preset task template configure to obtain the script task comprising target script.
If management server receives script task configuration parameter transmitted by user terminal, is configured and joined according to script task Several and preset task template configures to obtain the script task comprising target script.Wherein, task template is for configuring foot The Template Information of this task.Specifically, including script information, implementation strategy information and service in the script task configuration parameter Device information;It include that configuration parameter sends terminal, target script, script execution strategy and target in the script task configured Server.
Script information is user's pending script set in script task configuration parameter, in script information only Comprising a script, implementation strategy information is the policy information for specifically being executed to script, and server info is The network address information of the server of required maintenance may include one or more servers in server info.Configuration parameter hair Make arrangements for his funeral end be send script task configuration parameter user terminal, target script be configured in script task it is pending Script, the quantity of target script is one, and script execution strategy is taking to script in target of being configured in script task The policy information specifically executed in business device, destination server is the service that the need configured in script task are safeguarded The network address information of device, the quantity of server included in destination server are one or more.
Wherein, script is a kind of computer programming language, and script is that a series of control computers carry out arithmetic operation movement Combination, maintenance update can be carried out to the program in server by script.User terminal is for sending script task Configuration parameter is to treat the terminal device that the server of maintenance is safeguarded.In the specific implementation process, the user terminal of enterprise For one or more, the server of required maintenance is one or more, and management server can take with more user terminals and more Business device establishes network connection simultaneously to carry out the transmission of data information.
In other inventive embodiments, as shown in figure 8, the script task configuration unit 110 includes subelement: sending terminal Fills unit 111, script information fills unit 112, execution information configuration unit 113 and runing time point configuration unit 114.
Terminal fills unit 111 is sent, for the user terminal of script task configuration parameter will to be sent as configuration parameter Terminal is sent to fill into task template.
The user terminal for sending script task configuration parameter is sent terminal as configuration parameter to fill into task template. Since management server is connected with more user terminals in actual application, carried out for convenience of to script task generated The user terminal for sending script task configuration parameter need to be sent terminal as configuration parameter and filled into task template by management, To be easily managed to according to the configuration parameter transmission terminal in script task to the script task configured.
Script information fills unit 112, for filling the script information in script task configuration parameter to task template In obtain the task template of configured target script.
Script information in script task configuration parameter is filled and obtains appointing for configured target script into task template Business template.User is by the corresponding script of user terminal selecting as the script information in script task configuration parameter, management clothes Business device fills the script information in script task configuration parameter into task template, and appointing for configured target script can be obtained Business template.
Execution information configuration unit 113, for according to the implementation strategy information and server in script task configuration parameter Information configures to obtain script task the task template of configured target script.
According in script task configuration parameter implementation strategy information and server info configured target script is appointed Business template is configured, and script task can be obtained.Wherein, implementation strategy information includes concurrently executing, serial to execute, by specified Sequence executes, then the script execution strategy in corresponding script task also includes concurrently executing, serial to execute, and holds in a designated order Row.Concurrently executing is to be performed simultaneously in multiple servers of destination server to target script;It is serial execute be according to The sequence of target script successively executes target script in multiple servers of destination server;It executes in a designated order It is successively to be executed in multiple servers of destination server to target script according to sequence specified by user.
Runing time point configuration unit 114, for by the runing time point information in script task configuration parameter fill to The script task of configured runing time point is obtained in task template.
Specifically, further including preset runing time point information in the script task configuration parameter, configure It further include runing time point in script task.Runing time point information in script task configuration parameter is filled to task template In obtain the script task of configured runing time point.Specifically, runing time point information is in script task configuration parameter It is set for starting the temporal information of script task, user can script task configuration parameter to runing time point information into Row is preset.Runing time point information is filled to task template and after generating corresponding script task, script can be passed through The runing time point configured in task controls the starting time of script task.
By being configured in script task to runing time point, to facilitate user to required execution script task The starting time is controlled, and can substantially be saved user and be carried out safeguarding the required time to server, improve script task Execution efficiency.
Target script executing unit 120 is connected to the network in advance for being sent to target script according to script task Destination server to be executed to the script task.
Target script is sent to the destination server being connected to the network in advance according to script task, to appoint to the script Business is executed, wherein Servers-all is established in advance with management server and is connected to the network.Specifically, being wrapped in script task Point containing runing time, if current time reaches the runing time point of script task, according to the destination server in the script task, Target script is sent to corresponding server and is executed.
In other inventive embodiments, as shown in figure 9, the target script executing unit 120 includes subelement: target script Transmission unit 121 and execute instruction transmission unit 122.
Target script transmission unit 121, it is pre- for being sent to target script according to the destination server in script task In the destination server being first connected to the network.
Target script is sent to the destination service being connected to the network in advance according to the destination server in script task In device, all servers that need to be safeguarded are established in advance with management server and are connected to the network.Specifically, the clothes in destination server Business device includes corresponding network address information, according to the network address information of server is in destination server in script task Target script can be sent in corresponding server.
Transmission unit 122 is executed instruction, is referred to for sending corresponding execute according to the script execution strategy in script task Enable information into the destination server for having received target script.
It is sent according to the script execution strategy in script task and executes instruction information to having received target script accordingly In destination server.Management server executes instruction information to mesh accordingly according to the script execution strategy transmission in script task Server is marked, destination server reception executes instruction information and execute to target script, takes to realize to target accordingly Business device carries out maintenance update, and target script execution completes that the information that script execution is completed then is fed back to management server no matter Whether target script runs succeeded, and the information that script execution is completed is fed back to management server.
Monitoring unit 130 is executed, for carrying out to implementation procedure of the target script in script task in destination server Real time monitoring is to obtain the script execution monitoring information of script task.
Implementation procedure of the target script in destination server in script task is monitored in real time, script can be obtained The script execution monitoring information of task.Specifically, the script execution monitoring information monitored is that target script takes in target The information whether execution duration and target script in business device run succeeded.
Script execution prompt information generation unit 140, should for being generated according to the script execution monitoring information of script task The script execution prompt information of script task.
The script execution prompt information of the script task is generated according to the script execution monitoring information of script task, specifically , script execution prompt information is the prompt information for being reminded relative users.
In other inventive embodiments, as shown in Figure 10, the script execution prompt information generation unit 140 includes that son is single Member: judging unit 141 and prompt information generation unit 142.
Judging unit 141, for according to the script execution monitoring information of preset judgment rule and script task to target Whether target script is often held different row and is judged to obtain the judging result of destination server in server.
According to the script execution monitoring information of preset judgment rule and script task to target script in destination server Whether execute exception to be judged, the judging result of Servers-all in destination server can be obtained.Wherein, preset judgement Rule is for target script, in the server whether straight line to judge extremely, includes executing duration threshold in judgment rule Value.Specific judgment rule is, if the execution duration that a certain server executes the target script in script execution monitoring information surpasses Duration threshold value or the failure of target script execution out, then the judging result of the server is that target script execution is abnormal;If script is held In row monitoring information a certain server execute the execution duration of the target script without departing from duration threshold value and target script execution at Function, then the judging result of the server is target script execution no abnormality seen.Destination server is obtained by above-mentioned judgment method The judging result of middle Servers-all.
Prompt information generation unit 142, for generating script execution prompt information according to the judging result of destination server.
Script execution prompt information is generated according to the judging result of destination server.According to the judging result of destination server Corresponding script execution prompt information is generated, with abnormal to target script execution to whether there is in prompting ownership goal server Server, facilitate user quickly to find the server to target script execution exception, and handle in time.
Script execution prompt information transmission unit 150, for by the script execution prompt information of script task be sent to The corresponding target terminal user of script task.
Since management server is connected with one or more user terminal, the transmittable script task of more user terminals Configuration parameter configures corresponding script task and carries out maintenance update to server.Therefore, the script execution of script task need to be mentioned Show that information is sent to target terminal user corresponding with the script task, to match to transmission with script task in the script task The corresponding user of parameter is set to remind.
In other inventive embodiments, as shown in figure 11, the script execution prompt information transmission unit 150 includes that son is single Member: target terminal user acquiring unit 151 and prompt information transmission unit 152.
Target terminal user acquiring unit 151, for using in script task configuration parameter send terminal as with the foot The corresponding target terminal user of this task.
Configuration parameter in the script task is sent into terminal as target terminal user corresponding with the script task, Due to the user terminal for sending script task configuration parameter being joined as configuration during configuring each script task Number sends terminal and fills into task template and configure the corresponding script task that obtains, therefore obtains the configuration ginseng in script task It is target terminal user corresponding with the script task that number, which sends terminal,.
Prompt information transmission unit 152, for script execution prompt information generated to be sent to the target user Terminal.
Script execution prompt information generated is sent to the target terminal user, can be appointed to sending with the script The corresponding user of script task configuration parameter reminds in business.User, which receives script execution prompt information, can be appreciated that it The executive condition of the script task configured facilitates user quickly to find to execute abnormal server and progress in destination server Processing in time.
By configuring the script task comprising target script and script execution strategy, and script task is sent to accordingly Server is executed, and once target script can be deployed in multiple servers and executed, and is reduced needed for operation maintenance personnel The time of waiting, while the risk during manual operation is reduced, script when safeguarding to server greatly improved and hold Line efficiency.
Above-mentioned script execution device can be implemented as the form of computer program, which can be in such as Figure 12 institute It is run in the computer equipment shown.
Figure 12 is please referred to, Figure 12 is the schematic block diagram of computer equipment provided in an embodiment of the present invention.
Refering to fig. 12, which includes processor 502, memory and the net connected by system bus 501 Network interface 505, wherein memory may include non-volatile memory medium 503 and built-in storage 504.
The non-volatile memory medium 503 can storage program area 5031 and computer program 5032.The computer program 5032 are performed, and 502 perform script of processor may make to execute method.
The processor 502 supports the operation of entire computer equipment 500 for providing calculating and control ability.
The built-in storage 504 provides environment for the operation of the computer program 5032 in non-volatile memory medium 503, should When computer program 5032 is executed by processor 502,502 perform script of processor may make to execute method.
The network interface 505 is for carrying out network communication, such as the transmission of offer data information.Those skilled in the art can To understand, structure shown in Figure 12, only the block diagram of part-structure relevant to the present invention program, is not constituted to this hair The restriction for the computer equipment 500 that bright scheme is applied thereon, specific computer equipment 500 may include than as shown in the figure More or fewer components perhaps combine certain components or with different component layouts.
Wherein, the processor 502 is for running computer program 5032 stored in memory, to realize following function Can: if receiving script task configuration parameter transmitted by user terminal, according to script task configuration parameter and preset task Template configuration obtains the script task comprising target script;Target script is sent to according to script task and carries out network company in advance The destination server connect is to execute the script task;To execution of the target script in destination server in script task Process is monitored in real time to obtain the script execution monitoring information of script task;It is monitored and is believed according to the script execution of script task Breath generates the script execution prompt information of the script task;The script execution prompt information of script task is sent to and the script The corresponding target terminal user of task.
In one embodiment, if processor 502 receives script task configuration parameter transmitted by user terminal in execution, When configuring to obtain the step of the script task comprising target script according to script task configuration parameter and preset task template, hold The following operation of row: the user terminal for sending script task configuration parameter is sent into terminal as configuration parameter and is filled to task template In;Script information in script task configuration parameter is filled to the task mould that configured target script is obtained into task template Plate;According in script task configuration parameter implementation strategy information and server info to the task template of configured target script It is configured to obtain script task;Runing time point information in script task configuration parameter is filled into task template To the script task of configured runing time point.
In one embodiment, target script is sent in execution according to script task and carries out network in advance by processor 502 The destination server of connection with the script task is executed step when, perform the following operations: according in script task Target script is sent in the destination server being connected to the network in advance by destination server;According to the script in script task Implementation strategy transmission executes instruction information into the destination server for having received target script accordingly.
In one embodiment, processor 502 generates the script according to the script execution monitoring information of script task in execution It when the step of the script execution prompt information of task, performs the following operations: according to preset judgment rule and the foot of script task This execution monitoring information is judged to obtain destination server and sentence whether target script in destination server often holds different row Disconnected result;Script execution prompt information is generated according to the judging result of destination server.
In one embodiment, the script execution prompt information of script task is sent to and the foot by processor 502 in execution It when the step of the corresponding target terminal user of this task, performs the following operations: the configuration parameter in script task is sent eventually End is as target terminal user corresponding with the script task;Script execution prompt information generated is sent to the target User terminal.
It will be understood by those skilled in the art that the embodiment of computer equipment shown in Figure 12 is not constituted to computer The restriction of equipment specific composition, in other embodiments, computer equipment may include components more more or fewer than diagram, or Person combines certain components or different component layouts.For example, in some embodiments, computer equipment can only include depositing Reservoir and processor, in such embodiments, the structure and function of memory and processor are consistent with embodiment illustrated in fig. 12, Details are not described herein.
It should be appreciated that in embodiments of the present invention, processor 502 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable GateArray, FPGA) or other programmable logic devices Part, discrete gate or transistor logic, discrete hardware components etc..Wherein, general processor can be microprocessor or The processor is also possible to any conventional processor etc..
Computer readable storage medium is provided in another embodiment of the invention.The computer readable storage medium can be with For non-volatile computer readable storage medium.The computer-readable recording medium storage has computer program, wherein calculating If machine program performs the steps of when being executed by processor receives script task configuration parameter, root transmitted by user terminal It configures to obtain the script task comprising target script according to script task configuration parameter and preset task template;According to script task Target script is sent to the destination server being connected to the network in advance to execute to the script task;To script task Implementation procedure of the middle target script in destination server is monitored in real time to obtain the script execution of script task monitoring letter Breath;The script execution prompt information of the script task is generated according to the script execution monitoring information of script task;By script task Script execution prompt information be sent to target terminal user corresponding with the script task.
In one embodiment, if described receive script task configuration parameter transmitted by user terminal, appointed according to script Business configuration parameter and preset task template configure to obtain the step of including the script task of target script, comprising: will send foot The user terminal of this task configuration parameter sends terminal as configuration parameter and fills into task template;Script task is configured and is joined Script information in number fills the task template that configured target script is obtained into task template;It is configured and is joined according to script task Implementation strategy information and server info in number configure the task template of configured target script to obtain script and appoint Business;Runing time point information in script task configuration parameter is filled and obtains configured runing time point into task template Script task.
In one embodiment, described that target script is sent to the target clothes being connected to the network in advance according to script task The step of device be engaged in execute to the script task, comprising: sent out target script according to the destination server in script task It send into the destination server being connected to the network in advance;Corresponding execute is sent according to the script execution strategy in script task Command information is into the destination server for having received target script.
In one embodiment, the script that the script execution monitoring information according to script task generates the script task is held The step of row prompt information, comprising: target is taken according to the script execution monitoring information of preset judgment rule and script task Whether target script is often held different row and is judged to obtain the judging result of destination server in business device;According to destination server Judging result generates script execution prompt information.
In one embodiment, it is described the script execution prompt information of script task is sent to it is corresponding with the script task Target terminal user the step of, comprising: using in script task configuration parameter send terminal as corresponding with the script task Target terminal user;Script execution prompt information generated is sent to the target terminal user.
It is apparent to those skilled in the art that for convenience of description and succinctly, foregoing description is set The specific work process of standby, device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein. Those of ordinary skill in the art may be aware that unit described in conjunction with the examples disclosed in the embodiments of the present disclosure and algorithm Step can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and software Interchangeability generally describes each exemplary composition and step according to function in the above description.These functions are studied carefully Unexpectedly the specific application and design constraint depending on technical solution are implemented in hardware or software.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In several embodiments provided by the present invention, it should be understood that disclosed unit and method, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only logical function partition, there may be another division manner in actual implementation, can also will be with the same function Unit set is at a unit, such as multiple units or components can be combined or can be integrated into another system or some Feature can be ignored, or not execute.In addition, shown or discussed mutual coupling, direct-coupling or communication connection can Be through some interfaces, the indirect coupling or communication connection of device or unit, be also possible to electricity, mechanical or other shapes Formula connection.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a computer readable storage medium, including some instructions are used so that one Platform computer equipment (can be personal computer, server or the network equipment etc.) executes described in each embodiment of the present invention The all or part of the steps of method.And computer readable storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory The various media that can store program code such as (ROM, Read-OnlyMemory), magnetic or disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (10)

1. a kind of script execution characterized by comprising
If receiving script task configuration parameter transmitted by user terminal, according to script task configuration parameter and preset task Template configuration obtains the script task comprising target script;
According to script task by target script be sent in advance the destination server that is connected to the network with to the script task into Row executes;
Implementation procedure of the target script in destination server in script task is monitored in real time to obtain script task Script execution monitoring information;
The script execution prompt information of the script task is generated according to the script execution monitoring information of script task;
The script execution prompt information of script task is sent to target terminal user corresponding with the script task.
2. script execution according to claim 1, which is characterized in that described according to script task configuration parameter and pre- If task template configure to obtain the script task comprising target script, comprising:
The user terminal for sending script task configuration parameter is sent terminal as configuration parameter to fill into task template;
Script information in script task configuration parameter is filled to the task mould that configured target script is obtained into task template Plate;
According in script task configuration parameter implementation strategy information and server info to the task mould of configured target script Plate is configured to obtain script task;
Runing time point information in script task configuration parameter is filled and obtains configured runing time point into task template Script task.
3. script execution according to claim 1, which is characterized in that described to be sent out target script according to script task It send to the destination server being connected to the network in advance to be executed to the script task, comprising:
Target script is sent in the destination server being connected to the network in advance according to the destination server in script task;
Information is executed instruction to the target for having received target script accordingly according to the script execution strategy transmission in script task In server.
4. script execution according to claim 1, which is characterized in that described to be supervised according to the script execution of script task Control information generates the script execution prompt information of the script task, comprising:
According to the script execution monitoring information of preset judgment rule and script task to target script in destination server whether Chang Zhiyi row is judged to obtain the judging result of destination server;
Script execution prompt information is generated according to the judging result of destination server.
5. script execution according to claim 1, which is characterized in that the script execution by script task prompts Information is sent to target terminal user corresponding with the script task, comprising:
Configuration parameter in script task is sent into terminal as target terminal user corresponding with the script task;
Script execution prompt information generated is sent to the target terminal user.
6. a kind of script execution device characterized by comprising
Script task configuration unit, if being appointed for receiving script task configuration parameter transmitted by user terminal according to script Business configuration parameter and preset task template configure to obtain the script task comprising target script;
Target script executing unit takes for target script to be sent to the target being connected to the network in advance according to script task Device be engaged in execute to the script task;
Monitoring unit is executed, for monitoring in real time to implementation procedure of the target script in destination server in script task To obtain the script execution monitoring information of script task;
Script execution prompt information generation unit generates the script task for the script execution monitoring information according to script task Script execution prompt information;
Script execution prompt information transmission unit is appointed for being sent to the script execution prompt information of script task with the script It is engaged in corresponding target terminal user.
7. script execution device according to claim 6, which is characterized in that the script task configuration unit, comprising:
Terminal fills unit is sent, the user terminal for that will send script task configuration parameter sends terminal as configuration parameter Filling is into task template;
Script information fills unit obtains for filling the script information in script task configuration parameter into task template Configure the task template of target script;
Execution information configuration unit, for according in script task configuration parameter implementation strategy information and server info to The task template of configuration target script is configured to obtain script task;
Runing time point configuration unit, for filling the runing time point information in script task configuration parameter to task template In obtain the script task of configured runing time point.
8. script execution device according to claim 6, which is characterized in that the target script executing unit, comprising:
Target script transmission unit carries out net for being sent to target script according to the destination server in script task in advance In the destination server of network connection;
Transmission unit is executed instruction, for executing instruction information extremely accordingly according to the script execution strategy transmission in script task In the destination server for having received target script.
9. a kind of computer equipment, including memory, processor and it is stored on the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 5 when executing the computer program Any one of described in script execution.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has computer journey Sequence, the computer program make the processor execute such as foot described in any one of claim 1 to 5 when being executed by a processor This execution method.
CN201811527610.1A 2018-12-13 2018-12-13 Script execution, device, computer equipment and storage medium Pending CN109800145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811527610.1A CN109800145A (en) 2018-12-13 2018-12-13 Script execution, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811527610.1A CN109800145A (en) 2018-12-13 2018-12-13 Script execution, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109800145A true CN109800145A (en) 2019-05-24

Family

ID=66556638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811527610.1A Pending CN109800145A (en) 2018-12-13 2018-12-13 Script execution, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109800145A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377583A (en) * 2019-06-17 2019-10-25 平安普惠企业管理有限公司 Database script executes method, apparatus, computer equipment and storage medium
CN111045893A (en) * 2019-12-12 2020-04-21 网银在线(北京)科技有限公司 Method, device and system for executing monitoring task, storage medium and electronic device
CN112395158A (en) * 2020-11-17 2021-02-23 北京乐我无限科技有限责任公司 Information processing method and device and computer readable storage medium
CN113238851A (en) * 2021-06-01 2021-08-10 平安科技(深圳)有限公司 Script automatic execution method, system, equipment and medium based on cloud platform
CN113448657A (en) * 2021-09-01 2021-09-28 深圳市信润富联数字科技有限公司 Method for generating and executing dynamic spark task
CN113572833A (en) * 2021-07-21 2021-10-29 北京百度网讯科技有限公司 Cloud mobile phone maintenance method and device, electronic equipment and storage medium
CN114706773A (en) * 2022-03-29 2022-07-05 网宿科技股份有限公司 Automated testing method, automated testing equipment and readable storage medium

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377583A (en) * 2019-06-17 2019-10-25 平安普惠企业管理有限公司 Database script executes method, apparatus, computer equipment and storage medium
CN111045893A (en) * 2019-12-12 2020-04-21 网银在线(北京)科技有限公司 Method, device and system for executing monitoring task, storage medium and electronic device
CN111045893B (en) * 2019-12-12 2023-09-22 网银在线(北京)科技有限公司 Method, device and system for executing monitoring task, storage medium and electronic device
CN112395158A (en) * 2020-11-17 2021-02-23 北京乐我无限科技有限责任公司 Information processing method and device and computer readable storage medium
CN113238851A (en) * 2021-06-01 2021-08-10 平安科技(深圳)有限公司 Script automatic execution method, system, equipment and medium based on cloud platform
WO2022252629A1 (en) * 2021-06-01 2022-12-08 平安科技(深圳)有限公司 Cloud platform-based automated script execution method and system, device, and medium
CN113572833A (en) * 2021-07-21 2021-10-29 北京百度网讯科技有限公司 Cloud mobile phone maintenance method and device, electronic equipment and storage medium
CN113448657A (en) * 2021-09-01 2021-09-28 深圳市信润富联数字科技有限公司 Method for generating and executing dynamic spark task
CN113448657B (en) * 2021-09-01 2021-11-30 深圳市信润富联数字科技有限公司 Method for generating and executing dynamic spark task
CN114706773A (en) * 2022-03-29 2022-07-05 网宿科技股份有限公司 Automated testing method, automated testing equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN109800145A (en) Script execution, device, computer equipment and storage medium
EP1877918B1 (en) System and method for scheduling device management
CN104104547B (en) A kind of management method and network controller of network equipments configuration file
CN110784906B (en) Wireless network distribution method and device, storage medium and processor
CN108469957A (en) Using packing method for uploading, device, computer equipment and storage medium
CN109901842A (en) Application deployment method, apparatus, computer equipment and storage medium
CN108563584A (en) Test data generating method, device, computer equipment and storage medium
CN109189640A (en) Monitoring method, device, computer equipment and the storage medium of server
CN108762966A (en) System exception hold-up interception method, device, computer equipment and storage medium
CN110266896A (en) Method of calling, device, computer equipment and storage medium based on virtual-number
CN108880897A (en) Acceptance method, device, computer equipment and the storage medium of server
CN108804320A (en) Automated testing method, device, computer equipment and storage medium
CN108418787A (en) Acquisition method, terminal device and the medium of Enterprise Resources Plan data
CN107909330A (en) Work stream data processing method, device, storage medium and computer equipment
CN106445580A (en) Method and device for BMC (Baseboard Management Controller) with external upgrading
CN108830177A (en) Farming operations behavior checking method and device
CN110188121A (en) Business datum monitoring method, device, computer equipment and storage medium
CN112306567A (en) Cluster management system and container management and control method
CN110298167A (en) Method for managing user right, device, computer equipment and storage medium
CN111949518A (en) Method, system, terminal and storage medium for generating fault detection script
CN108829589A (en) Date data exchange method, device, computer equipment and storage medium
US8051407B2 (en) Method for controlling a software maintenance process in a software system landscape and computer system
CN109450997A (en) Data cross-terminal moving method, device, computer equipment and storage medium
CN109284975A (en) Policy information batch modification method, apparatus, computer equipment and storage medium
CN108874738A (en) Distributed parallel operation method, device, computer equipment 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