CN110221949A - Automate operation management method, apparatus, equipment and readable storage medium storing program for executing - Google Patents

Automate operation management method, apparatus, equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110221949A
CN110221949A CN201910525329.2A CN201910525329A CN110221949A CN 110221949 A CN110221949 A CN 110221949A CN 201910525329 A CN201910525329 A CN 201910525329A CN 110221949 A CN110221949 A CN 110221949A
Authority
CN
China
Prior art keywords
controlled terminal
control instruction
terminal
instruction
operation management
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910525329.2A
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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910525329.2A priority Critical patent/CN110221949A/en
Publication of CN110221949A publication Critical patent/CN110221949A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of automation operation management method, apparatus, equipment and readable storage medium storing program for executing, it is related to financial technology field, method includes the following steps: receive user terminal submission to the control instruction of controlled terminal when, obtain the operating system identifies of operation content and controlled terminal that the control instruction carries;Execute instruction corresponding with the control instruction is generated based on the operation content and the operating system identifies of the controlled terminal;Described execute instruction is sent to controlled terminal and executes, receive the controlled terminal execute described in execute instruction the implementing result of return after, the implementing result is shown in the user terminal.Realize the control instruction that user is received by controlling terminal, it is executed instruction automatically according to control instruction generation, it will execute instruction and be sent to corresponding controlled terminal execution, and voluntarily convert and execute instruction without using person, to improve the system compatibility and execution efficiency of automation operation management.

Description

Automate operation management method, apparatus, equipment and readable storage medium storing program for executing
Technical field
The present invention relates to the O&M technical field of financial technology more particularly to a kind of automation operation management method, apparatus, Equipment and readable storage medium storing program for executing.
Background technique
With the development of computer technology, more and more technology (big data, distribution, block chain Blockchain, people Work intelligence etc.) it applies in financial field, traditional financial industry gradually changes to financial technology (Fintech), but due to finance The safety of industry, requirement of real-time, also to technology, more stringent requirements are proposed.
In Saltstack operation platform, disposing a salt-master (controlling terminal) can simultaneously pipe about 1000 Machine, and can be extended by cluster.Can layout drama, realize that quick distribution of document, script to salt-minion are (controlled Terminal), so that it is installed and is configured according to drama process perform script, realizes the servers operation managements such as remote batch deployment, energy Enough to support Windows server and Linux server well simultaneously, deployment is simple, more efficient, it is most important that have more Scalability and elasticity.
Existing Saltstack tool is realized based on Python, although supporting main across Windows, Linux, Mac etc. Operating system, but identical operation are flowed, the corresponding part Salt instruction of different operating system is different, and instruction is not accomplished also completely Compatibility needs user voluntarily to convert, and can not accomplish automation conversion, and efficiency is lower.Although industry other with administrative staff It can be based on Saltstack tool, encapsulate operation platform using Web, but because of scene reason, be nearly all only solely at present It supports (SuSE) Linux OS, can not accomplish real highly compatible.
Summary of the invention
The main purpose of the present invention is to provide a kind of automation operation management method, apparatus, equipment and readable storage mediums Matter, it is intended to realize and be executed instruction by automatically generating to execute instruction and execute to promote the system compatibility of automation operation management And execution efficiency.
To achieve the above object, the present invention provides a kind of automation operation management method, the automation operation management side Method the following steps are included:
Receive user terminal submission to the control instruction of controlled terminal when, obtain the operation that the control instruction carries The operating system identifies of content and controlled terminal;
It is generated based on the operation content and the operating system identifies of the controlled terminal corresponding with the control instruction Execute instruction;
Described execute instruction is sent to controlled terminal execution, is executed instruction described in the controlled terminal execution receiving After the implementing result of return, the implementing result is shown in the user terminal.
Optionally, the step of the operating system identifies for obtaining operation content and controlled terminal that the control instruction carries Before rapid, further includes:
Obtain the mark of user identifier and controlled terminal that the control instruction carries;
Whether had according to user identifier described in the identity verification of default mapping relations, the user identifier and controlled terminal The operating right of the controlled terminal;
If the user identifier has the operating right of the controlled terminal, thens follow the steps: obtaining the control instruction The operation content of carrying and the operating system identifies of controlled terminal.
Optionally, before the step of mark for obtaining user identifier and controlled terminal that the control instruction carries, Further include:
The token token that the control instruction carries is obtained, verifies whether the token is legal, and the token is by controlling Terminal granting when the user terminal connects controlling terminal for the first time;
If the token is legal, then follow the steps: obtaining user identifier that the control instruction carries and controlled terminal Mark.
Optionally, described to be generated and the control based on the operation content and the operating system identifies of the controlled terminal Corresponding the step of executing instruction is instructed to include:
Operating system identifies based on the controlled terminal obtain corresponding with the operating system identifies of the controlled terminal It is default to execute instruction product process;
According to it is described it is default execute instruction product process and the operation content generate it is corresponding with the control instruction It executes instruction.
Optionally, described to be generated and the control based on the operation content and the operating system identifies of the controlled terminal Before instructing corresponding the step of executing instruction, further includes:
The control instruction is parsed to obtain the IP address of the control instruction;
It whether is whether the preset authorization IP address verifying control instruction is legal according to the IP address of the control instruction;
If the control instruction is legal, then follow the steps: the operation system based on the operation content and the controlled terminal System mark generates execute instruction corresponding with the control instruction.
Optionally, described to be generated and the control based on the operation content and the operating system identifies of the controlled terminal Before instructing corresponding the step of executing instruction, further includes:
According to the control instruction carry operation content whether be control instruction described in preset authorization content verification whether It is legal;
If the control instruction is legal, then follow the steps: the operation system based on the operation content and the controlled terminal System mark generates execute instruction corresponding with the control instruction.
Optionally, the automation operation management method further include:
If the control instruction is illegal, Xiang Suoshu user terminal sends alarm prompt, and mentions in controlling terminal display alarm Show.
Optionally, the step of the operating system identifies for obtaining operation content and controlled terminal that the control instruction carries Before rapid, further includes:
After controlling terminal and the controlled terminal establish communication connection, the controlled end is detected according to default first frequency The connection status at end and controlling terminal;
If the controlled terminal and controlling terminal are in connection of broken lines state, the quilt is detected according to default second frequency The connection status of control terminal and controlling terminal, the default second frequency are less than the default first frequency;
If the connection status of the controlled terminal and controlling terminal is extensive in default detection duration or default detection number Multiple on-line joining process state, then the status information by the controlled terminal in configuration management database CMDB is labeled as on-line joining process State;
It is described to be executed instruction described before being sent to the step of controlled terminal executes, further includes:
Obtain status information of the controlled terminal in CMDB;
If status information of the controlled terminal in CMDB is on-line joining process state, then follow the steps: by the execution Instruction is sent to controlled terminal execution.
Further, to achieve the above object, the present invention also provides a kind of automation operation and maintenance device, the automations Operation and maintenance device includes:
Obtain module, for receive user terminal submission to the control instruction of controlled terminal when, obtain the control Instruct the operating system identifies of the operation content and controlled terminal that carry;
Generation module, for being generated and the control based on the operation content and the operating system identifies of the controlled terminal System instruction is corresponding to be executed instruction;
Execution module is held for described execute instruction to be sent to controlled terminal execution receiving the controlled terminal After the implementing result for executing instruction return described in row, the implementing result is shown in the user terminal.
Further, to achieve the above object, the present invention also provides a kind of automation operation management equipment, the automations Operation management equipment includes memory, processor and oneself that is stored on the memory and can run on the processor Dynamicization operation management program, the automation operation management program are realized when being executed by the processor as described above automatic The step of changing operation management method.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers Automation operation management program is stored on readable storage medium storing program for executing, it is real when the automation operation management program is executed by processor The step of now automating operation management method as described above.
The present invention by receive user terminal submission to the control instruction of controlled terminal when, obtain the control instruction The operation content of carrying and the operating system identifies of controlled terminal;Operation system based on the operation content and the controlled terminal System mark generates execute instruction corresponding with the control instruction;Described execute instruction is sent to controlled terminal execution, After receiving the implementing result for executing instruction return described in the controlled terminal execution, the implementing result is shown in the use Family end.The control instruction for receiving user by controlling terminal is realized, executes instruction, will execute automatically according to control instruction generation Instruction is sent to corresponding controlled terminal and executes, and voluntarily converts and executes instruction without using person, to improve automation O&M The system compatibility and execution efficiency of management.
Detailed description of the invention
Fig. 1 is that the structure for the device hardware running environment that present invention automation operation management apparatus embodiments scheme is related to is shown It is intended to;
Fig. 2 is the flow diagram of present invention automation operation management method first embodiment;
Fig. 3 is the functional block diagram of present invention automation operation and maintenance device.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that described herein, specific examples are only used to explain the present invention, is not intended to limit the present invention.
It should be noted that existing Saltstack tool based on Python realize, although support across Windows, The mainstream operation systems such as Linux, Mac, but identical operation, the corresponding part Salt instruction of different operating system is different, refers to Completely compatible property is not accomplished in order also, and user is needed voluntarily to convert, and can not accomplish automation conversion, and efficiency is lower.Although industry Other can also be based on Saltstack tool with administrative staff, encapsulate operation platform using Web, but because of scene reason, several at present All it is only solely to support (SuSE) Linux OS, can not accomplishes real highly compatible.
Based on drawbacks described above, the present invention provides a kind of automation operation management equipment, and referring to Fig.1, Fig. 1 is that the present invention is automatic Change the structural schematic diagram for the device hardware running environment that operation management apparatus embodiments scheme is related to.
As shown in Figure 1, the automation operation management equipment may include: processor 1001, such as CPU, communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 for realizing these components it Between connection communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), Optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include Standard wireline interface and wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to steady Fixed memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of The storage equipment of aforementioned processor 1001.
It will be understood by those skilled in the art that automating the hardware configuration not structure of operation management equipment shown in Fig. 1 The restriction of automation operation management equipment in pairs may include components more more or fewer than diagram, or combine certain components, Or different component layout.
As shown in Figure 1, as may include operating system, net in a kind of memory 1005 of computer readable storage medium Network communication module, Subscriber Interface Module SIM and automation operation management program.Wherein, operating system is to manage and control automation The program of operation management equipment and software resource supports network communication module, Subscriber Interface Module SIM, automation operation management program And the operation of other programs or software;Network communication module is for managing and controlling network interface 1004;Subscriber Interface Module SIM For managing and controlling user interface 1003.
In automation operation management device hardware structure shown in Fig. 1, network interface 1004 is mainly used for connection backstage Server carries out data communication with background server;User interface 1003 is mainly used for connecting client (user terminal), with client End carries out data communication;Processor 1001 can call the automation operation management program stored in memory 1005, and execute It operates below:
Receive user terminal submission to the control instruction of controlled terminal when, obtain the operation that the control instruction carries The operating system identifies of content and controlled terminal;
It is generated based on the operation content and the operating system identifies of the controlled terminal corresponding with the control instruction Execute instruction;
Described execute instruction is sent to controlled terminal execution, is executed instruction described in the controlled terminal execution receiving After the implementing result of return, the implementing result is shown in the user terminal.
Further, the operating system identifies of the acquisition control instruction carries operation content and controlled terminal Before step, processor 1001 is also used to call the automation operation management program stored in memory 1005, and executes following Operation:
Obtain the mark of user identifier and controlled terminal that the control instruction carries;
Whether had according to user identifier described in the identity verification of default mapping relations, the user identifier and controlled terminal The operating right of the controlled terminal;
If the user identifier has the operating right of the controlled terminal, thens follow the steps: obtaining the control instruction The operation content of carrying and the operating system identifies of controlled terminal.
Further, the step of mark for obtaining user identifier and controlled terminal that the control instruction carries it Before, processor 1001 is also used to call the automation operation management program stored in memory 1005, and executes following operation:
The token token that the control instruction carries is obtained, verifies whether the token is legal, and the token is by controlling Terminal granting when the user terminal connects controlling terminal for the first time;
If the token is legal, then follow the steps: obtaining user identifier that the control instruction carries and controlled terminal Mark.
Further, described to be generated and the control based on the operation content and the operating system identifies of the controlled terminal System instructs corresponding the step of executing instruction to include:
Operating system identifies based on the controlled terminal obtain corresponding with the operating system identifies of the controlled terminal It is default to execute instruction product process;
According to it is described it is default execute instruction product process and the operation content generate it is corresponding with the control instruction It executes instruction.
Further, described to be generated and the control based on the operation content and the operating system identifies of the controlled terminal Before system instructs corresponding the step of executing instruction, processor 1001 is also used to call the automation stored in memory 1005 Operation management program, and execute following operation:
The control instruction is parsed to obtain the IP address of the control instruction;
It whether is whether the preset authorization IP address verifying control instruction is legal according to the IP address of the control instruction;
If the control instruction is legal, then follow the steps: the operation system based on the operation content and the controlled terminal System mark generates execute instruction corresponding with the control instruction.
Further, described to be generated and the control based on the operation content and the operating system identifies of the controlled terminal Before system instructs corresponding the step of executing instruction, processor 1001 is also used to call the automation stored in memory 1005 Operation management program, and execute following operation:
According to the control instruction carry operation content whether be control instruction described in preset authorization content verification whether It is legal;
If the control instruction is legal, then follow the steps: the operation system based on the operation content and the controlled terminal System mark generates execute instruction corresponding with the control instruction.
Further, processor 1001 is also used to call the automation operation management program stored in memory 1005, and Execute following operation:
If the control instruction is illegal, Xiang Suoshu user terminal sends alarm prompt, and mentions in controlling terminal display alarm Show.
Further, the operating system identifies of the acquisition control instruction carries operation content and controlled terminal Before step, processor 1001 is also used to call the automation operation management program stored in memory 1005, and executes following Operation:
After controlling terminal and the controlled terminal establish communication connection, the controlled end is detected according to default first frequency The connection status at end and controlling terminal;
If the controlled terminal and controlling terminal are in connection of broken lines state, the quilt is detected according to default second frequency The connection status of control terminal and controlling terminal, the default second frequency are less than the default first frequency;
If the connection status of the controlled terminal and controlling terminal is extensive in default detection duration or default detection number Multiple on-line joining process state, then the status information by the controlled terminal in configuration management database CMDB is labeled as on-line joining process State;
Described to execute instruction described before being sent to the step of controlled terminal executes, processor 1001 is also used to call and deposit The automation operation management program stored in reservoir 1005, and execute following operation:
Obtain status information of the controlled terminal in CMDB;
If status information of the controlled terminal in CMDB is on-line joining process state, then follow the steps: by the execution Instruction is sent to controlled terminal execution.
The specific embodiment that the present invention automates operation management equipment is respectively implemented with following automation operation management methods Example is essentially identical, and details are not described herein.
The present invention also provides a kind of automation operation management methods.
The embodiment of the invention provides the embodiments of automation operation management method, it should be noted that although in process Logical order is shown in figure, but in some cases, it can be to be different from shown or described by sequence execution herein Step.
In each embodiment of automation operation management method, for ease of description, omits executing subject and be illustrated Each embodiment.Referring to Fig. 2, Fig. 2 is the flow diagram of present invention automation operation management method first embodiment, it is described from Dynamicization operation management method includes:
Step S10, receive user terminal submission to the control instruction of controlled terminal when, obtain the control instruction and take The operation content of band and the operating system identifies of controlled terminal;
Saltstack is a kind of server basis framework centralized management platform based on C/S framework, Saltstack tool The functions such as standby configuration management, long-range execution, monitoring.By disposing Saltstack environment, operation maintenance personnel can be at thousands of Accomplish to execute in batches order on server, configuration centralized management, distribution of document, acquisition system are carried out according to different business features Installation and management of data of uniting and software package etc..In Saltstack environment, controlling terminal is known as Master, and controlled terminal claims It can be communicated with specified Minion by lightweight messages queue (ZeroMQ) for Minion, Master, control Minion What execution was specified executes instruction (i.e. salt instruction), executes instruction including but not limited to order execution, configuration file synchronization and foot This push etc..
Existing Saltstack tool is realized based on Python, although supporting main across Windows, Linux, Mac etc. Operating system, but identical operation are flowed, the corresponding part Salt instruction of different operating system is different, and instruction is not accomplished also completely Compatibility needs user voluntarily to convert, and can not accomplish automation conversion.Although industry other can be also based on administrative staff Saltstack tool encapsulates operation platform using Web, but is nearly all only solely to support at present because of scene reason (SuSE) Linux OS can not accomplish real highly compatible.Have clearly a need for mode that user voluntarily converts not only low efficiency, Human cost is also high, and such case does not meet the business demand of bank and other financial mechanism, influences bank and other financial mechanism to various The automation operation management of business platform (such as development loan fund business platform, deposit business platform).Based on this, the present invention is proposed Technical solution.
In embodiments of the present invention, automation operation management method is optional is applied in controlling terminal, optional controlling terminal User terminal is directly received to the control instruction of controlled terminal, at this point, the controlling terminal is integrated with network server (web server) Function.In the case where integrated web server function, which is receiving control of the user terminal to controlled terminal When instruction, the operation content of control instruction carrying and the operating system identifies of controlled terminal are obtained.Wherein, control instruction can be with It is that user is initiated by user terminal login automation operation management platform, passes through the friendly guide on the platform and show (example Such as, " increasing ", " deleting ", " changing ", " looking into " key or select frame etc.), user is not in the case where knowing about Salt command function by simple Operation, i.e., the control instruction of the capable of emitting controlled terminal to desired operation.
Wherein, operating system includes but is not limited to Windows system, linux system and Mac system.
Step S20 is generated based on the operation content and the operating system identifies of the controlled terminal and is referred to the control Enable corresponding execute instruction;
In the present embodiment, in the case where integrated web server function, which is receiving user terminal to quilt After the control instruction of control terminal, the operating system of the operation content and controlled terminal that can directly be carried according to the control instruction Mark generates and executes instruction (i.e. salt instruction).Specifically, operating system identifies based on the controlled terminal obtain with it is described Corresponding preset of the operating system identifies of controlled terminal executes instruction product process;Product process is executed instruction according to described preset Execute instruction corresponding with the control instruction is generated with the operation content.
Wherein, it executes instruction including but not limited to order and executes (such as " increasing ", " deleting ", " changing ", " looking into " etc.), configuration file Synchronous and script push etc..
Further, it is invaded to reduce controlling terminal, to improve the safety of automation operation management, optional control Terminal and network server are separately positioned, in such cases, receive control instruction by network server and according to control instruction life At executing instruction.It should be noted that controlling terminal receives user terminal to the control instruction of controlled terminal by network server, At this point, user terminal is communicated with network server, controlling terminal only need to receive network server transmission according to control What instruction generated executes instruction, and without interacting with user terminal, to reduce the danger invaded, improves safety.
Described execute instruction is sent to controlled terminal execution by step S30, is being received described in the controlled terminal execution After the implementing result for executing instruction return, the implementing result is shown in the user terminal.
In the present embodiment, after generation executes instruction, described execute instruction is sent to corresponding be controlled by controlling terminal Terminal executes, and controlled terminal executes corresponding operating according to the operation content executed instruction, and implementing result is fed back to control Terminal, after controlling terminal can be analyzed and be handled to the implementing result, by treated, implementing result returns to user terminal, uses Treated that implementing result renders to this for the browser at family end, and the implementing result after rendering is showed user.
Further, in the case that optional controlling terminal and network server are separately positioned, controlling terminal receive by After the implementing result for executing instruction return described in control terminal execution, which is returned into network server, network service After device can be analyzed and be handled to the implementing result, by treated, implementing result returns to user terminal, the browsing of user terminal Treated that implementing result renders to this for device, and the implementing result after rendering is showed user.
The present embodiment by receive user terminal submission to the control instruction of controlled terminal when, obtain the control and refer to Enable the operating system identifies of the operation content and controlled terminal that carry;Operation based on the operation content and the controlled terminal System banner generates execute instruction corresponding with the control instruction;Described execute instruction is sent to controlled terminal execution, Receive the controlled terminal execute described in execute instruction the implementing result of return after, the implementing result is shown described User terminal.The control instruction for receiving user by controlling terminal is realized, executes instruction, will hold automatically according to control instruction generation Row instruction is sent to corresponding controlled terminal and executes, and voluntarily converts and executes instruction without using person, to improve automation fortune Tie up the system compatibility and execution efficiency of management.
Further, it proposes present invention automation operation management method second embodiment, is also wrapped before above-mentioned steps S10 It includes:
Step S11 obtains the mark of user identifier and controlled terminal that the control instruction carries;
In the present embodiment, in order to realize in any terminal, rather than can only in controlling terminal, to controlled terminal into Web api (web Application Program Interface, network application is arranged in row batch operation in controlling terminal Routine interface), hereinafter referred to as api.Third party's terminal of saltstack master service is fitted without by calling the api Batch operation is carried out to controlled terminal to realize.
After user logs in automation operation management platform by user terminal browser, for identical operation requests, no matter Controlled terminal is what type of operating system, and user mentions to the controlling terminal for being integrated with web server function on a web browser It hands over and submits to the identical control instruction of controlled terminal or directly to network server to the identical control instruction of controlled terminal, it should The mark for the controlled terminal that control instruction carries user identifier and user specifies, the control for being integrated with web server function are whole End either network server when receiving control instruction, can get user identifier that the control instruction carries and by The mark of control terminal.
Step S12, according to user identifier described in the identity verification of default mapping relations, the user identifier and controlled terminal Whether there is the operating right of the controlled terminal;
It in the present embodiment, further include the mapping relations of mark and user identifier to controlled terminal before step S12 Setting steps, operation maintenance personnel, accordingly with the user of operating right, makes each controlled as needed for controlled terminal configuration The mark of terminal has corresponding user identifier, and the mark of controlled terminal is associated with user identifier and saves as default mapping Relationship.Wherein, the quantity of the corresponding user identifier of mark of some controlled terminal can be 0,1 or multiple, some use Family identifies the mark that can also correspond to 0,1 or multiple controlled terminals, and the present embodiment is not particularly limited.
Controlling terminal either network server is getting the user identifier and controlled terminal that the control instruction carries Mark after, the mark for the controlled terminal that default mapping relations verifying carries in default mapping relations with control instruction can be passed through Whether corresponding user identifier is consistent with the user identifier that control instruction carries, and carrys out the user identifier that access control instruction carries Whether there is the operating right of the controlled terminal.
Step S13 is thened follow the steps: described in acquisition if the user identifier has the operating right of the controlled terminal The operating system identifies of operation content and controlled terminal that control instruction carries.
If user identifier corresponding with the mark of controlled terminal that control instruction carries and control in default mapping relations The user identifier that system instruction carries is inconsistent, then determines behaviour of the user identifier without the controlled terminal that control instruction carries Make permission;If consistent, determine operating right of the user identifier with the controlled terminal that control instruction carries, then obtain control The operating system identifies and operation content for the controlled terminal that system instruction carries.
Further, before above-mentioned steps S11 further include:
The token token that the control instruction carries is obtained, verifies whether the token is legal, and the token is by controlling Terminal granting when the user terminal connects controlling terminal for the first time;If the token is legal, then follow the steps: obtaining the control The mark of user identifier and controlled terminal that system instruction carries.
In the present embodiment, when user terminal connects the controlling terminal for being integrated with web server function for the first time, need to Controlling terminal submits account data, and after controlling terminal is to being verified of the account data, network server can generate one Token (token), the token can be a character string comprising a small amount of user information, with certain service life, control The token is returned to user terminal by terminal, and user terminal saves the token, and takes this in the control instruction next sent A token, controlling terminal receive user terminal submission to the control instruction of controlled terminal when, which can be carried Token verified, if token it is legal (such as verify whether the token is that the controlled terminal is handed down to the user, If then the token is legal;Or the service life of the token is verified whether within the default time limit, if the then token It is legal), then the step of executing the mark for obtaining user identifier and controlled terminal that the control instruction carries, if it is illegal, then Refusal this time operates.
Further, it is invaded to reduce controlling terminal, to improve the safety of automation operation management, optional control Terminal and network server are separately positioned, in such cases, are carried out by network server to the token token that control instruction carries Verifying.
Further, above-mentioned steps S20 includes:
Step S21, the operating system identifies based on the controlled terminal obtain the operating system mark with the controlled terminal Know corresponding preset and executes instruction product process;
Step S22 executes instruction product process and operation content generation and the control instruction according to described preset It is corresponding to execute instruction.
It in the present embodiment, further include allowing to use based on what is exposed on automation operation management platform before step S21 The different operating system mark of family operation, what setting operation content was run under different operating system executes instruction product process simultaneously Save, make that user can issue to the operational order of different operating system have it is corresponding preset to execute instruction to generate flow Journey.
Controlling terminal after the operating system identifies for getting operation content and controlled terminal that the control instruction carries, Can be got according to the operating system identifies of controlled terminal it is corresponding execute instruction product process, then according to described pre- If execute instruction product process and the operation content generate it is being executed by the operating system and with the control instruction It is corresponding to execute instruction.
Further, it is invaded to reduce controlling terminal, to improve the safety of automation operation management, optional control Terminal and network server are separately positioned, in such cases, generate execute instruction corresponding with control instruction by network server.
Further, the controlling terminal and communication transmission process of controlled terminal is optional encrypts to executing instruction, encrypts Algorithm can be AES (Advanced Encryption Standard, Advanced Encryption Standard) Encryption Algorithm, RSA cryptographic algorithms Or other Encryption Algorithm, the present embodiment are not particularly limited.
The present embodiment by obtaining and the operation system of the controlled terminal automatically according to the operating system identifies of controlled terminal System mark it is corresponding it is default execute instruction product process, according to this it is default execute instruction product process generation and execute instruction, thus Automatically generating of executing instruction is realized, and then improves the system compatibility and execution efficiency of automation operation management;Pass through Network server improves the safety of the system of automation operation management to the token verifying of control instruction.
Further, it proposes present invention automation operation management method 3rd embodiment, is also wrapped before above-mentioned steps S10 It includes:
After controlling terminal and the controlled terminal establish communication connection, the controlled end is detected according to default first frequency The connection status at end and controlling terminal;If the controlled terminal and controlling terminal are in connection of broken lines state, according to default Second frequency detects the connection status of the controlled terminal and controlling terminal, and the default second frequency is less than described default first Frequency;If the connection status of the controlled terminal and controlling terminal is restored in default detection duration or default detection number Line connection status, then the status information by the controlled terminal in configuration management database CMDB is labeled as on-line joining process shape State;
In the present embodiment, after controlled terminal and controlling terminal establish communication connection, controlling terminal is according to default first The connection status of frequency detecting controlled terminal and controlling terminal, for the abnormal controlled terminal for going offline (i.e. connection of broken lines state), The connection status of the controlled terminal and controlling terminal is continued to test according to default second frequency, if in default detection duration or In default detection number, which restores on-line joining process state, then by the controlled terminal in configuration management database CMDB In status information be labeled as on-line joining process state;If this is controlled eventually in default detection duration or default detection number End fails to restore on-line joining process state, then the status information by the controlled terminal in CMDB is labeled as connection of broken lines state, and Operation maintenance personnel is notified to carry out fault detection;For normal online (i.e. the on-line joining process state) detected according to default first frequency Controlled terminal, obtain its status information in CMDB, if its status information in CMDB be i.e. connection of broken lines state, It is on-line joining process state by its state information updating.
Wherein, the default second frequency is less than the default first frequency, for example, default first frequency is every 1 hour Detection is primary, and presetting second frequency is that detection in every 30 seconds is primary.
Further, before above-mentioned steps S30 further include:
Obtain status information of the controlled terminal in CMDB;If status information of the controlled terminal in CMDB is On-line joining process state, thens follow the steps: described execute instruction is sent to controlled terminal execution.
In the present embodiment, execute instruction pass through legitimate verification when, controlling terminal obtains controlled end for specifying of user The status information in CMDB is held, status information of the controlled terminal in CMDB is on-line joining process state, then refers to the execution Order is sent to controlled terminal execution;If status information of the controlled terminal in CMDB is connection of broken lines state, taken by network Device be engaged in user terminal returning equipment fault cues, and operation maintenance personnel is notified to carry out fault detection.
Further, before above-mentioned steps S10, further includes:
The control instruction is parsed to obtain the IP address of the control instruction;According to the IP of the control instruction Whether address is whether the preset authorization IP address verifying control instruction is legal;If the control instruction is legal, step is executed It is rapid: execution corresponding with the control instruction is generated based on the operation content and the operating system identifies of the controlled terminal Instruction.
In the present embodiment, when controlling terminal receives control instruction of the user terminal to controlled terminal, which is referred to There are two ways to legitimacy of order is verified, one is the IP address by obtaining control instruction, are according to the IP address No is preset authorization IP address to judge whether the control instruction is legal, if the IP address is preset authorization IP address, is determined The control instruction is legal;If the IP address is not preset authorization IP address, determine that the control instruction is illegal
Further, before above-mentioned steps S10, further includes:
According to the control instruction carry operation content whether be control instruction described in preset authorization content verification whether It is legal;If the control instruction is legal, then follow the steps: the operating system mark based on the operation content and the controlled terminal Know and generates execute instruction corresponding with the control instruction.
The method that another kind verifies the legitimacy of the control instruction be by the control instruction parsed with The operation content for obtaining control instruction, judges whether the control instruction closes according to whether the operation content is preset authorization content Method determines that the control instruction is legal if the operation content is preset authorization content;If the operation content is not in preset authorization Hold, then determines that the control instruction is illegal.Preset authorization content may include restart, distribution of document, network connection detection etc..
Both the above legitimate verification can select one implementation, can also combine implementation, the present embodiment does not limit System.
Further, the automation operation management method further include:
If the control instruction is illegal, Xiang Suoshu user terminal sends alarm prompt, and mentions in controlling terminal display alarm Show.
The present embodiment can be effectively prevent illegal by the legitimate verification of IP address and operation content to control instruction User is accessed using illegal IP address, and controlling terminal only receives the request from preset authorization IP address, to improve automatic Change the safety of operation management.
The present invention also provides a kind of automation operation and maintenance devices.
It is the functional block diagram of present invention automation operation and maintenance device first embodiment referring to Fig. 3, Fig. 3, it is described Automating operation and maintenance device includes:
Obtain module 10, for receive user terminal submission to the control instruction of controlled terminal when, obtain the control The operating system identifies of operation content and controlled terminal that system instruction carries;
Generation module 20, for based on the operation content and the operating system identifies of the controlled terminal generate with it is described Control instruction is corresponding to be executed instruction;
Execution module 30 is receiving the controlled terminal for described execute instruction to be sent to controlled terminal execution After the implementing result for executing instruction return described in execution, the implementing result is shown in the user terminal.
Further, the automation operation and maintenance device further include:
Identifier acquisition module, for obtaining the mark of user identifier and controlled terminal that the control instruction carries;
Authority Verification module, for according to the identity verification institute for presetting mapping relations, the user identifier and controlled terminal State the operating right whether user identifier has the controlled terminal;
It is verified module, if having the operating right of the controlled terminal for the user identifier, is thened follow the steps: Obtain the operating system identifies of operation content and controlled terminal that the control instruction carries.
Further, the automation operation and maintenance device further include:
Token authentication module, the token token carried for obtaining the control instruction, verifies whether the token closes Method, the token is by controlling terminal granting when the user terminal connects controlling terminal for the first time;
The legal module of token thens follow the steps if legal for the token: obtaining the use that the control instruction carries The mark of family mark and controlled terminal.
Further, the generation module 20 further include:
Process acquiring unit obtains the behaviour with the controlled terminal for the operating system identifies based on the controlled terminal Make corresponding preset of system banner and executes instruction product process;
Instruction generation unit, for according to it is described it is default execute instruction product process and the operation content generate with it is described Control instruction is corresponding to be executed instruction.
Further, the automation operation and maintenance device further include:
IP obtains module, for being parsed to the control instruction to obtain the IP address of the control instruction;
IP authentication module, for whether being that preset authorization IP address verifies the control according to the IP address of the control instruction Whether system instruction is legal;
The legal module of IP thens follow the steps if legal for the control instruction: based on the operation content and the quilt The operating system identifies of control terminal generate execute instruction corresponding with the control instruction.
Further, the automation operation and maintenance device further include:
Content verification module, whether the operation content for being carried according to the control instruction is preset authorization content verification Whether the control instruction is legal;
Content legality module thens follow the steps if legal for the control instruction: based on the operation content and described The operating system identifies of controlled terminal generate execute instruction corresponding with the control instruction.
Further, the automation operation and maintenance device further include:
Alarm module, if illegal for the control instruction, Xiang Suoshu user terminal sends alarm prompt, and whole in control Hold display alarm prompt.
Further, the automation operation and maintenance device further include:
First detection module is used for after controlling terminal and the controlled terminal establish communication connection, according to default first The connection status of controlled terminal and controlling terminal described in frequency detecting;
Second detection module, if being in connection of broken lines state for the controlled terminal and controlling terminal, according to default Second frequency detects the connection status of the controlled terminal and controlling terminal, and the default second frequency is less than described default first Frequency;
Mark module, if in default detection duration or being preset for the connection status of the controlled terminal and controlling terminal It detects and restores on-line joining process state in number, then the status information mark by the controlled terminal in configuration management database CMDB It is denoted as on-line joining process state;
Further, the automation operation and maintenance device further include:
State acquisition module, for obtaining status information of the controlled terminal in CMDB;
The sending module is also used to, if status information of the controlled terminal in CMDB is on-line joining process state, Described execute instruction is sent to controlled terminal execution.
The present invention automates operation and maintenance device specific embodiment and above-mentioned each embodiment of automation operation management method Essentially identical, details are not described herein.
In addition, the embodiment of the present invention also proposes a kind of readable storage medium storing program for executing (i.e. computer readable storage medium).
Automation operation management program is stored on readable storage medium storing program for executing, automation operation management program is executed by processor Shi Shixian automates the step of operation management method as described above.
Readable storage medium storing program for executing specific embodiment of the present invention and the basic phase of above-mentioned each embodiment of automation operation management method Together, details are not described herein.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form, it is all using equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, directly or indirectly Other related technical areas are used in, all of these belong to the protection of the present invention.

Claims (11)

1. a kind of automation operation management method, which is characterized in that the automation operation management method the following steps are included:
Receive user terminal submission to the control instruction of controlled terminal when, obtain the operation content that the control instruction carries With the operating system identifies of controlled terminal;
Hold corresponding with the control instruction is generated based on the operation content and the operating system identifies of the controlled terminal Row instruction;
Described execute instruction is sent to controlled terminal execution, executes instruction return described in the controlled terminal execution receiving Implementing result after, the implementing result is shown in the user terminal.
2. automation operation management method as described in claim 1, which is characterized in that described to obtain the control instruction carrying Operation content and controlled terminal operating system identifies the step of before, further includes:
Obtain the mark of user identifier and controlled terminal that the control instruction carries;
Described in whether being had according to user identifier described in the identity verification of default mapping relations, the user identifier and controlled terminal The operating right of controlled terminal;
If the user identifier has the operating right of the controlled terminal, then follow the steps: obtaining the control instruction and carry Operation content and controlled terminal operating system identifies.
3. automation operation management method as claimed in claim 2, which is characterized in that described to obtain the control instruction carrying User identifier and controlled terminal mark the step of before, further includes:
The token token that the control instruction carries is obtained, verifies whether the token is legal, and the token is by controlling terminal The granting when the user terminal connects controlling terminal for the first time;
If the token is legal, then follow the steps: obtaining the mark of user identifier and controlled terminal that the control instruction carries Know.
4. automation operation management method as described in claim 1, which is characterized in that described to be based on the operation content and institute The operating system identifies for stating controlled terminal generate corresponding with control instruction the step of executing instruction and include:
Operating system identifies based on the controlled terminal obtain corresponding with the operating system identifies of the controlled terminal default Execute instruction product process;
Product process and operation content generation execution corresponding with the control instruction are executed instruction according to described preset Instruction.
5. automation operation management method as described in claim 1, which is characterized in that described to be based on the operation content and institute State controlled terminal operating system identifies generate corresponding with control instruction the step of executing instruction before, further includes:
The control instruction is parsed to obtain the IP address of the control instruction;
It whether is whether the preset authorization IP address verifying control instruction is legal according to the IP address of the control instruction;
If the control instruction is legal, then follow the steps: the operating system mark based on the operation content and the controlled terminal Know and generates execute instruction corresponding with the control instruction.
6. automation operation management method as described in claim 1, which is characterized in that described to be based on the operation content and institute State controlled terminal operating system identifies generate corresponding with control instruction the step of executing instruction before, further includes:
Whether the operation content carried according to the control instruction is whether control instruction described in preset authorization content verification is legal;
If the control instruction is legal, then follow the steps: the operating system mark based on the operation content and the controlled terminal Know and generates execute instruction corresponding with the control instruction.
7. automation operation management method as claimed in claim 6, which is characterized in that the automation operation management method is also Include:
If the control instruction is illegal, Xiang Suoshu user terminal sends alarm prompt, and prompts in controlling terminal display alarm.
8. automation operation management method as described in any one of claim 1 to 7, which is characterized in that described to obtain the control Before the step of operating system identifies for the operation content and controlled terminal that system instruction carries, further includes:
After controlling terminal and the controlled terminal establish communication connection, according to default first frequency detect the controlled terminal with The connection status of controlling terminal;
If the controlled terminal and controlling terminal are in connection of broken lines state, the controlled end is detected according to default second frequency The connection status at end and controlling terminal, the default second frequency are less than the default first frequency;
If the connection status of the controlled terminal and controlling terminal is restored in default detection duration or default detection number Line connection status, then the status information by the controlled terminal in configuration management database CMDB is labeled as on-line joining process shape State;
It is described to be executed instruction described before being sent to the step of controlled terminal executes, further includes:
Obtain status information of the controlled terminal in CMDB;
If status information of the controlled terminal in CMDB is on-line joining process state, thens follow the steps: being executed instruction described It is sent to controlled terminal execution.
9. a kind of automation operation and maintenance device, which is characterized in that the automation operation and maintenance device includes:
Obtain module, for receive user terminal submission to the control instruction of controlled terminal when, obtain the control instruction The operation content of carrying and the operating system identifies of controlled terminal;
Generation module is referred to for being generated based on the operation content and the operating system identifies of the controlled terminal with the control Enable corresponding execute instruction;
Execution module executes institute receiving the controlled terminal for described execute instruction to be sent to controlled terminal execution After stating the implementing result for executing instruction return, the implementing result is shown in the user terminal.
10. a kind of automation operation management equipment, which is characterized in that the automation operation management equipment includes memory, place Reason device and the automation operation management program that is stored on the memory and can run on the processor, it is described automatic Change when operation management program is executed by the processor and realizes such as automation operation management of any of claims 1-8 The step of method.
11. a kind of readable storage medium storing program for executing, which is characterized in that be stored with automation operation management journey on the readable storage medium storing program for executing Sequence realizes such as automation of any of claims 1-8 when the automation operation management program is executed by processor The step of operation management method.
CN201910525329.2A 2019-06-17 2019-06-17 Automate operation management method, apparatus, equipment and readable storage medium storing program for executing Pending CN110221949A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910525329.2A CN110221949A (en) 2019-06-17 2019-06-17 Automate operation management method, apparatus, equipment and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910525329.2A CN110221949A (en) 2019-06-17 2019-06-17 Automate operation management method, apparatus, equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN110221949A true CN110221949A (en) 2019-09-10

Family

ID=67817586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910525329.2A Pending CN110221949A (en) 2019-06-17 2019-06-17 Automate operation management method, apparatus, equipment and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN110221949A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314122A (en) * 2020-02-04 2020-06-19 中国银联股份有限公司 Automatic operation and maintenance method and device
CN111459748A (en) * 2020-03-17 2020-07-28 中国建设银行股份有限公司 Operation and maintenance control method, system and device based on command control and storage medium
CN111796875A (en) * 2020-06-29 2020-10-20 苏州好玩友网络科技有限公司 Host initialization method, device, system, equipment and storage medium
CN112491786A (en) * 2020-10-16 2021-03-12 中国铁路信息科技集团有限公司 Safe operation and maintenance method and system based on one-way transmission
CN113590290A (en) * 2021-07-30 2021-11-02 中国工商银行股份有限公司 Operation and maintenance method, device, equipment and storage medium of host double-active system
WO2022227311A1 (en) * 2021-04-30 2022-11-03 腾讯云计算(北京)有限责任公司 Access processing method for performing remote control on terminal, and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871651A (en) * 2015-12-11 2016-08-17 乐视致新电子科技(天津)有限公司 Device connectivity monitoring method and device
CN107395387A (en) * 2016-05-17 2017-11-24 中兴通讯股份有限公司 The methods, devices and systems of two-shipper business recovery
CN109728957A (en) * 2019-01-31 2019-05-07 网宿科技股份有限公司 A kind of method and device of interactive mode O&M
CN109766130A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Station command bearing calibration, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871651A (en) * 2015-12-11 2016-08-17 乐视致新电子科技(天津)有限公司 Device connectivity monitoring method and device
CN107395387A (en) * 2016-05-17 2017-11-24 中兴通讯股份有限公司 The methods, devices and systems of two-shipper business recovery
CN109766130A (en) * 2018-12-15 2019-05-17 深圳壹账通智能科技有限公司 Station command bearing calibration, device, computer equipment and storage medium
CN109728957A (en) * 2019-01-31 2019-05-07 网宿科技股份有限公司 A kind of method and device of interactive mode O&M

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
林韩: "《电网防灾减灾应急管理系统建设与应用》", 31 May 2009, 国防工业出版社, pages: 106 *
蒋迪: "《KVM私有云架构设计与实践》", 30 April 2017, 上海交通大学出版社, pages: 294 *
陈宝明,张丽华,许巨定: "《大学计算机基础》", 31 August 2007, 中国铁道出版社, pages: 352 - 354 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314122A (en) * 2020-02-04 2020-06-19 中国银联股份有限公司 Automatic operation and maintenance method and device
CN111459748A (en) * 2020-03-17 2020-07-28 中国建设银行股份有限公司 Operation and maintenance control method, system and device based on command control and storage medium
CN111796875A (en) * 2020-06-29 2020-10-20 苏州好玩友网络科技有限公司 Host initialization method, device, system, equipment and storage medium
CN112491786A (en) * 2020-10-16 2021-03-12 中国铁路信息科技集团有限公司 Safe operation and maintenance method and system based on one-way transmission
WO2022227311A1 (en) * 2021-04-30 2022-11-03 腾讯云计算(北京)有限责任公司 Access processing method for performing remote control on terminal, and device and storage medium
CN113590290A (en) * 2021-07-30 2021-11-02 中国工商银行股份有限公司 Operation and maintenance method, device, equipment and storage medium of host double-active system

Similar Documents

Publication Publication Date Title
CN110221949A (en) Automate operation management method, apparatus, equipment and readable storage medium storing program for executing
CN108108223B (en) Kubernetes-based container management platform
US9766914B2 (en) System and methods for remote maintenance in an electronic network with multiple clients
US8667096B2 (en) Automatically generating system restoration order for network recovery
CN105991734B (en) A kind of cloud platform management method and system
US8590025B2 (en) Techniques for accessing a backup system
US20100223608A1 (en) Systems and methods for generating reverse installation file for network restoration
CN113296798B (en) Service deployment method, device and readable storage medium
US8694993B1 (en) Virtualization platform for secured communications between a user device and an application server
CN104636678B (en) The method and system of management and control is carried out under a kind of cloud computing environment to terminal device
CN108681662A (en) A kind of method and device of installation procedure
CN110300096A (en) Self checking method, apparatus, equipment and storage medium based on local certificate
WO2016082548A1 (en) User login method, device and system for windows desktop
CN111597546A (en) Cloud desktop sharing method, device and system and storage medium
CN113110902A (en) Cloud desktop intelligent management system and method
US7636852B1 (en) Call center dashboard
CN104580081A (en) Integrated SSO (single sign on) system
CN103152351A (en) Network equipment and AD (Active Directory) domain single sign on method and system
CN113626840A (en) Interface authentication method and device, computer equipment and storage medium
CN109948330B (en) Method, device, equipment and storage medium for implementing application management service
WO2023072817A1 (en) Control of access to computing resources implemented in isolated environments
CN108805516A (en) A kind of mobile office system based on ERP
CN104967515B (en) A kind of identity identifying method and server
CN109213572A (en) A kind of confidence level based on virtual machine determines method and server
CN109302414B (en) Desktop cloud login method, terminal, SDN controller and system based on Software Defined Network (SDN)

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