CN115460052A - Remote instruction processing method and device, computer equipment and storage medium - Google Patents

Remote instruction processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN115460052A
CN115460052A CN202211121677.1A CN202211121677A CN115460052A CN 115460052 A CN115460052 A CN 115460052A CN 202211121677 A CN202211121677 A CN 202211121677A CN 115460052 A CN115460052 A CN 115460052A
Authority
CN
China
Prior art keywords
target
instruction
target object
instruction set
remote communication
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.)
Granted
Application number
CN202211121677.1A
Other languages
Chinese (zh)
Other versions
CN115460052B (en
Inventor
夏稳
邱璟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202211121677.1A priority Critical patent/CN115460052B/en
Publication of CN115460052A publication Critical patent/CN115460052A/en
Application granted granted Critical
Publication of CN115460052B publication Critical patent/CN115460052B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application relates to a remote instruction processing method, a remote instruction processing device, computer equipment and a storage medium, which are applied to the technical field of computers and can be used in the field of financial science and technology or other related fields. The method comprises the following steps: after connection with the remote communication equipment is established, first indication information sent by the remote communication equipment is received; determining a target object and a target operation according to the first indication information, and acquiring a target instruction corresponding to the target operation; matching the associated instructions of the target instructions according to the target objects and the target instructions, and constructing a target instruction set according to the target instructions and the associated instructions; and sending the target instruction set to a target server corresponding to the target object so that the target server executes the target instruction set aiming at the target object. By adopting the method, the efficiency of remotely adjusting the server by operation and maintenance personnel can be improved.

Description

Remote instruction processing method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a remote instruction processing method and apparatus, a computer device, and a storage medium.
Background
In the process of daily maintaining a server, a database and other systems, operation and maintenance personnel usually have the need to make some active adjustments to the system or timely repair the system when the system is abnormal. When the operation and maintenance personnel are in non-working time or leave the post temporarily, the operator on duty is often required to be contacted, and the operator on duty is used for completing the relevant operation. However, this approach is inefficient.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a remote instruction processing method, apparatus, computer device and storage medium.
In a first aspect, the present application provides a remote instruction processing method. The method comprises the following steps:
after connection with remote communication equipment is established, first indication information sent by the remote communication equipment is received;
determining a target object and a target operation according to the first indication information, and acquiring a target instruction corresponding to the target operation;
matching the associated instructions of the target instructions according to the target objects and the target instructions, and constructing a target instruction set according to the target instructions and the associated instructions;
and sending the target instruction set to a target server corresponding to the target object so that the target server executes the target instruction set aiming at the target object.
In one embodiment, before receiving the first indication information sent by the remote communication device, the method further comprises:
receiving alarm information sent by a monitoring system;
determining notification information according to the alarm information, and sending a connection request to the remote communication equipment so as to establish connection with the remote communication equipment through the connection request;
sending the notification information to the remote communication device after establishing a connection with the remote communication device.
In one embodiment, the determining a target object according to the first indication information includes:
determining whether alarm information exists or not under the condition that the first indication information does not comprise a target object;
under the condition that the alarm information exists, acquiring the target object from the alarm information; or,
under the condition that the alarm information does not exist, repeatedly sending prompt information to the remote communication equipment so as to indicate the remote communication equipment to feed back second indication information through the indication information until the second indication information comprises the target object; or,
and acquiring the target object from the first indication information under the condition that the target object is included in the first indication information.
In one embodiment, the matching, according to the target object and the target instruction, associated instructions of the target instruction, and constructing a target instruction set according to the target instruction and each associated instruction includes:
matching a target associated instruction corresponding to the target object from associated instructions of the target instruction;
and constructing a target instruction set according to the target instructions and the target associated instructions.
In one embodiment, the constructing a target instruction set according to the target instructions and the target associated instructions includes:
for any target correlation instruction, determining a correlation instruction of the target correlation instruction for the target object, regarding the correlation instruction of the target correlation instruction for the target object as a new target correlation instruction, and repeatedly executing the step of determining the correlation instruction of the target correlation instruction for the target object until the correlation instruction for the target object does not exist;
and constructing to obtain a target instruction set by adopting the target instructions and the target associated instructions.
In one embodiment, before the receiving the first indication information sent by the remote communication device, the method further includes:
determining account information corresponding to the remote communication equipment, and acquiring operation permission of the account information;
the obtaining of the target instruction corresponding to the target operation includes:
determining a permission matching result according to the operation permission, the target object and the target operation;
and under the condition that the permission matching result represents that the account information has the permission for executing the target operation on the target object, acquiring a target instruction corresponding to the target operation.
In a second aspect, the application further provides a remote instruction processing method. The method comprises the following steps:
receiving a target instruction set, wherein the target instruction set is an instruction set which is constructed by an outbound system according to a target object, a target instruction and each associated instruction of the target instruction, and the target object and the target instruction are an operation object and an operation instruction which are obtained according to indication information sent by remote communication equipment;
executing the target instruction set aiming at the target object, and acquiring an execution result of the target instruction set;
and sending the execution result to the outbound system so that the outbound system sends corresponding feedback information to the remote communication equipment according to the execution result.
In one embodiment, after the obtaining of the execution result of the target instruction set, the method further comprises:
detecting the running state of the target object and/or the server;
and under the condition that the running state of the target object and/or the server represents that the server is abnormal, restoring the server to the state before the target instruction set is executed.
In a third aspect, the present application further provides a remote instruction processing system, where the system includes an outbound system and a server, where:
the outbound system is used for receiving first indication information sent by remote communication equipment after connection with the remote communication equipment is established, determining a target object and target operation according to the first indication information, and acquiring a target instruction corresponding to the target operation;
the outbound system is further used for matching the associated instructions of the target instructions according to the target objects and the target instructions, constructing a target instruction set according to the target instructions and the associated instructions, and sending the target instruction set to a target server corresponding to the target objects;
the server is used for receiving the target instruction set and executing the target instruction set aiming at the target object;
the server is also used for obtaining the execution result of the target instruction set and sending the execution result to the outbound system;
the outbound system is also used for sending feedback information to the remote communication equipment according to the execution result.
In a fourth aspect, the present application further provides a remote processing device. The device comprises:
the first receiving module is used for receiving first indication information sent by remote communication equipment after connection with the remote communication equipment is established;
the first determining module is used for determining a target object and a target operation according to the first indication information and acquiring a target instruction corresponding to the target operation;
the construction module is used for matching the associated instructions of the target instructions according to the target objects and the target instructions and constructing a target instruction set according to the target instructions and the associated instructions;
and the first sending module is used for sending the target instruction set to a target server corresponding to the target object so that the target server executes the target instruction set aiming at the target object.
In one embodiment, the apparatus further comprises:
the second receiving module is used for receiving the alarm information sent by the monitoring system;
the second determining module is used for determining notification information according to the alarm information and sending a connection request to the remote communication equipment so as to establish connection with the remote communication equipment through the connection request;
and the second sending module is used for sending the notification information to the remote communication equipment after the connection with the remote communication equipment is established.
In one embodiment, the first determining module is further configured to:
determining whether alarm information exists or not under the condition that the first indication information does not include a target object;
under the condition that the alarm information exists, acquiring the target object from the alarm information; or,
under the condition that the alarm information does not exist, repeatedly sending prompt information to the remote communication equipment so as to indicate the remote communication equipment to feed back second indication information through the indication information until the second indication information comprises the target object; or,
and acquiring the target object from the first indication information under the condition that the target object is included in the first indication information.
In one embodiment, the building module is further configured to:
matching a target associated instruction corresponding to the target object from associated instructions of the target instruction;
and constructing a target instruction set according to the target instructions and the target associated instructions.
In one embodiment, the building module is further configured to:
for any target correlation instruction, determining a correlation instruction of the target correlation instruction for the target object, regarding the correlation instruction of the target correlation instruction for the target object as a new target correlation instruction, and repeatedly executing the step of determining the correlation instruction of the target correlation instruction for the target object until the correlation instruction for the target object does not exist;
and constructing to obtain a target instruction set by adopting the target instructions and the target associated instructions.
In one embodiment, the apparatus further comprises:
the third determining module is used for determining account information corresponding to the remote communication equipment and acquiring the operation authority of the account information;
the first determining module is further configured to:
determining a permission matching result according to the operation permission, the target object and the target operation;
and under the condition that the permission matching result represents that the account information has the permission for executing the target operation on the target object, acquiring a target instruction corresponding to the target operation.
In a fifth aspect, the present application further provides a remote instruction processing apparatus. The device comprises:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a target instruction set, the target instruction set is an instruction set which is constructed by an outbound system according to a target object, a target instruction and each associated instruction of the target instruction, and the target object and the target instruction are an operation object and an operation instruction which are obtained according to indication information sent by remote communication equipment;
the execution module is used for executing the target instruction set aiming at the target object and acquiring an execution result of the target instruction set;
and the sending module is used for sending the execution result to the outbound system so that the outbound system sends corresponding feedback information to the remote communication equipment according to the execution result.
In one embodiment, the apparatus further comprises:
the detection module is used for detecting the running state of the target object and/or the server;
and the recovery module is used for recovering the server to the state before the target instruction set is executed under the condition that the running state of the target object and/or the server represents that the server is abnormal.
In a sixth aspect, the present application further provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing any of the above methods when the processor executes the computer program.
In a seventh aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements any of the above methods.
In an eighth aspect, the present application further provides a computer program product. The computer program product, including a computer program, the computer program product, including a computer program that, when executed by a processor, implements any of the above methods.
According to the remote instruction processing method, the remote instruction processing device, the computer equipment and the storage medium, after the connection with the remote communication equipment is established, the first indication information sent by the remote communication equipment is received, the target instruction set is constructed according to the first indication information, and the target instruction set is sent to the target server corresponding to the target object, so that the target server executes the target instruction set. According to the embodiment of the application, even if the operation and maintenance personnel are far away from the server, the operation and maintenance personnel can adjust the server in time through the outbound system without the need of enabling the operation and maintenance personnel to go to the location of the server or remotely indicating the on-duty personnel to adjust the server through the telephone. Meanwhile, the target instruction set is constructed in a mode of matching the associated instructions of the target instructions, and a fixed instruction set does not need to be constructed in advance for each operation of each target object, so that the flexibility of operation of the operation and maintenance personnel on the server can be improved, and the efficiency of the operation and maintenance personnel actively adjusting or repairing the server is improved.
Drawings
FIG. 1 is a diagram of an application environment of a remote instruction processing method in one embodiment;
FIG. 2 is a flow diagram illustrating a method for remote instruction processing in one embodiment;
FIG. 3 is a diagram of matching associate instructions, in one embodiment;
FIG. 4 is a flow diagram illustrating a method for remote instruction processing in one embodiment;
FIG. 5 is a schematic flow chart of step 204 in one embodiment;
FIG. 6 is a flowchart of step 206 in one embodiment;
FIG. 7 is a diagram of matching target associated instructions in one embodiment;
FIG. 8 is a flowchart illustrating step 604, in one embodiment;
FIG. 9 is a flow diagram illustrating a method for remote instruction processing according to one embodiment;
FIG. 10 is a flow diagram illustrating a method for remote instruction processing according to one embodiment;
FIG. 11 is a diagram illustrating a remote instruction processing method according to one embodiment;
FIG. 12 is a block diagram that illustrates the architecture of a remote instruction processing apparatus in one embodiment;
FIG. 13 is a block diagram of a remote instruction processing apparatus in one embodiment;
FIG. 14 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The remote instruction processing method provided by the embodiment of the application can be applied to, but is not limited to, the application environment shown in fig. 1. Wherein the remote communication device 102 is in remote wireless communication with the outbound system 104, and the outbound system 104 is in communication with the server 106 via a network. The outbound system 104 determines the target object and the target operation by receiving the first indication information sent by the remote communication device 102, constructs a target instruction set according to the target object and the target operation, and sends the target instruction set to the server 106 for execution. The remote communication device 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device may be a smart watch, a smart bracelet, a head-mounted device, etc., and the server 106 may be implemented as an independent server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a remote instruction processing method is provided, which is described by taking the method as an example for being applied to the outbound system 104 in fig. 1, and includes the following steps:
step 202, after establishing connection with the remote communication device, receiving first indication information sent by the remote communication device.
In the embodiment of the application, the remote communication device may include a mobile phone, a fixed phone, and the like, and the remote communication device may dial a fixed number to establish connection with the outbound system, and the outbound system may also establish connection with the remote communication device by dialing the number of the remote communication device to receive the first indication information sent by the remote communication device. The first indication information may be voice information of a user, or may also be information input by the user on the operation panel, which is not specifically limited in this embodiment of the application.
And 204, determining a target object and a target operation according to the first indication information, and acquiring a target instruction corresponding to the target operation.
In this embodiment, the target object may be an object that a user needs to perform an operation, for example: services or devices that need to be operated, or configurations that a user needs to modify, etc. If the first indication information is information input by a user on the operation panel, a one-to-one correspondence relationship between the first indication information and the target object and the target operation may be preset, for example, inputting "1" may represent that the target object is an account on a certain server, inputting "2" may represent that the target object is a service on a certain server, inputting "1" again may represent that the target operation is a shutdown service after the target object is input, and the like, that is, the target object and the target operation may be directly read from the first indication information.
Under the condition that the first indication information is the voice information of the user, the outbound system can identify the characters corresponding to the first indication information through a natural language processing technology, and extracts keywords from the characters to determine a target object and a target operation. The keywords may be preset words, such as "server," "ip address," "shutdown" or "shutdown," "start" or "restart," and after the corresponding keywords are detected, the target object and the target operation may be determined according to the keywords. For example, for a target object, a list including all operable objects may be preset, and if it is detected that a word matching an operable object in the list exists in the first indication information, it may be determined that the operable object is the target object; for the target operation, the keywords such as "shutdown service", and "shutdown service" may all be associated with the operation of "shutdown service", that is, the target operation may be determined to be "shutdown service" no matter the keyword of "shutdown service", or "shutdown service" is detected from the first indication information. For example, if the first indication information is "shut down the service on the server with ip (Internet Protocol) address x.x.x.x", the finally determined target object will be "the service on the server with ip address x.x.x.x.x", and the target operation will be "stop service".
After the target object and the target operation are determined, a target instruction corresponding to the target operation can be acquired. The target operation and the target instruction have a preset one-to-one correspondence relationship, for example, if the target instruction corresponding to the target operation of stopping service is "kill-9 (to-be-filled pid)" (the pid (process id, process identification number) is a process identification number of the service to be stopped), the target instruction "kill-9 (to-be-filled pid)" can be obtained after the target operation is determined as "stopping service".
It should be noted that, if the outbound system cannot identify the first indication information or the first indication information does not have the keyword, an error message may be sent to the remote communication device to indicate that the remote communication device needs to resend the first indication information.
And step 206, matching the associated instructions of the target instructions according to the target objects and the target instructions, and constructing a target instruction set according to the target instructions and the associated instructions.
In the embodiment of the application, a target instruction set executable on the server can be constructed by matching all the associated instructions of the target instruction. The associated instruction is an operation instruction having a flow association relationship with the target instruction, and taking the target instruction as "kill-9 [ to-be-filled pid ] as an example, if the target instruction needs to be executed, the pid of the service that needs to be stopped must be acquired. Therefore, the background instruction "pgrep [ to-be-filled service name ] of the pid of the acquired service (the to-be-filled service name is the service name of the service needing to query the pid) is the associated instruction of the target instruction.
For example, the association instruction of each operation instruction may be predefined to match the association instruction of the target instruction according to the target object and the target instruction. As shown in fig. 3, if the target instruction is an operation instruction E, and the associated instruction of the operation instruction E is predefined to be an operation instruction D, the associated instruction of the operation instruction D is an operation instruction B and an operation instruction C, and the associated instructions of the operation instruction B and the operation instruction C are both an operation instruction a, when the associated instructions are matched, the operation instruction D can be obtained according to the matching of the operation instruction E, the operation instruction B and the operation instruction C can be obtained according to the matching of the operation instruction D, and the operation instruction a can be obtained according to the matching of the operation instruction B and the operation instruction C, so as to construct a target instruction set according to the operation instruction a, the operation instruction B, the operation instruction C, the operation instruction D, and the operation instruction E.
Before the target instruction set is constructed according to the target instruction and each key instruction, the target instruction and the part needing to be replaced in each associated instruction can be replaced according to the target object so as to obtain a complete executable instruction. For example, if the target object is a service on a server with an ip address of x.x.x.x.x, the part of each operation instruction that needs to be filled with the ip address of the server may be replaced with x.x.x.x.x, and the part of each operation instruction that needs to be filled with the service name may be replaced with the service.
In constructing the target instruction set, as shown in fig. 3, the operation instruction a, the operation instruction B, the operation instruction C, the operation instruction D, and the operation instruction E may be constructed as the target instruction set according to the relationship of the operation instructions in the flow.
And step 208, sending the target instruction set to a target server corresponding to the target object, so that the target server executes the target instruction set for the target object.
In this embodiment, the target server corresponding to the target object is a server where the target object is located, for example, if the target object is xx service on a server with an ip address of x.x.x.x.x, the target server is a server with an ip address of x.x.x.x. The outbound system can send the target instruction set to the target server for execution by calling the interface corresponding to the target server.
According to the remote instruction processing method provided by the embodiment of the application, after the connection with the remote communication equipment is established, the first indication information sent by the remote communication equipment is received, the target instruction set is constructed according to the first indication information, and then the target instruction set is sent to the target server corresponding to the target object, so that the target server executes the target instruction set. According to the method and the device, even if the operation and maintenance personnel are far away from the server, the operation and maintenance personnel can adjust the server in time through the outbound system without the need of enabling the operation and maintenance personnel to go to the location of the server or remotely indicating an on-duty personnel to adjust the server through a telephone. Meanwhile, the target instruction set is constructed in a mode of matching the associated instructions of the target instructions, and a fixed instruction set does not need to be constructed in advance for each operation of each target object, so that the flexibility of operation of the operation and maintenance personnel on the server can be improved, and the efficiency of the operation and maintenance personnel actively adjusting or repairing the server is improved.
In one embodiment, as shown in fig. 4, before receiving the first indication information sent by the remote communication device in step 202, the method further includes:
step 402, receiving alarm information sent by a monitoring system.
In the embodiment of the application, the monitoring system is a system for monitoring the running state of the server, and when monitoring that the server runs abnormally, the monitoring system generates alarm information according to the ip address of the server, the specific reason of the abnormality and the abnormal service (under the condition that the server runs abnormally due to a certain service), and sends the alarm information to the outbound system, so that the outbound system generates notification information according to the alarm information and sends the notification information to the remote communication equipment.
Step 404, determining notification information according to the alarm information, and sending a connection request to the remote communication device to establish a connection with the remote communication device through the connection request.
At step 406, a notification message is sent to the remote communication device after establishing a connection with the remote communication device.
In the embodiment of the application, specific information contained in the alarm information can be filled into a preset template to generate notification information. The outbound system can obtain the template corresponding to the specific abnormal reason according to the specific abnormal reason included in the alarm information. For example, the preset template for the server to have abnormal login may be that "the ip address is [ the ip address to be filled in ], the server to have abnormal login, the ip to be logged in ] and the login time are [ the time to be filled in ]. After receiving the warning message, the outbound system may fill the template according to the specific information contained in the warning message to generate the notification message. For example, the complete notification message may be "abnormal login occurs to a server with an ip address of x.x.x.x.x, the login ip is y.y.y, and the login time is xx minutes xx seconds".
The outbound system can also acquire the number of the remote communication equipment corresponding to the specific abnormal reason according to the specific abnormal reason so as to send a connection request to the remote communication equipment according to the number of the remote communication equipment. That is, in the outbound system, the telephone number of the operation and maintenance person responsible for handling the specific abnormal reason may be preset, and when the specific abnormal reason occurs in the system, the outbound system may dial a call to the operation and maintenance person according to the preset telephone number.
After the connection is successfully established, the outbound system may send notification information to the remote communication device to instruct the remote communication device to send first indication information to the outbound system according to the notification information.
After sending the notification message, the outbound system may further receive third indication information sent by the remote communication device, where the third indication information is used to indicate that the remote instruction processing flow is ended, for example, "do not process", "end", and so on. After receiving the third indication information, the outbound system may disconnect from the remote communication device, not continue to determine the target object and the target operation, and match to obtain the target instruction set. That is, the operation and maintenance personnel can actively end the remote instruction processing flow through the third indication information.
According to the remote instruction processing method provided by the embodiment of the application, after the alarm information sent by the monitoring system is received, the connection request can be actively sent to the remote communication equipment, and the notification information can be sent to the remote communication equipment. According to the embodiment of the application, when the server is abnormal, the operation and maintenance personnel can be timely notified of the server with the fault and the reason of the fault, so that the operation and maintenance personnel can send the first indication information according to the reason of the fault, the outbound system can construct the target instruction set according to the first indication information, the server executes the target instruction set, and the efficiency of the operation and maintenance personnel for remotely processing the server fault can be improved.
In one embodiment, as shown in fig. 5, in step 204, determining the target object according to the first indication information includes:
step 502, in case that the target object is not included in the first indication information, determining whether there is alarm information.
And step 504, under the condition that the alarm information exists, acquiring the target object from the alarm information.
Step 506, or, in the case that there is no alarm information, repeatedly sending a prompt message to the remote communication device to instruct the remote communication device to feed back the second indication information through the indication information until the target object is included in the second indication information.
Step 508, or, in the case that the target object is included in the first indication information, acquiring the target object from the first indication information.
In this embodiment of the application, if the first indication information includes the target object, the outbound system may directly obtain the target object from the first indication information. If the first indication information does not include the target object, the outbound system may adopt any one of the following methods to obtain the target object according to different specific situations: and when the alarm information exists, acquiring the target object from the alarm information, or when the alarm information does not exist, repeatedly sending prompt information to the remote communication equipment to instruct the remote communication equipment to send second indication information comprising the target object to the outbound system.
In the case that the target object is not included in the first indication information, the outbound system may detect whether there is alarm information. If the alarm information exists, the connection with the remote communication equipment is initiated by an outbound system, and in the case, the target object, namely the server (or service) with the abnormality in the alarm information can be considered, so that the server (or service) with the abnormality in the alarm information can be used as the target object; if no alarm information exists, the prompt information can be repeatedly sent to the remote communication equipment to instruct the remote communication equipment to send second indication information comprising the target object to the outbound call system. For example, the prompt message may be sent once every predetermined time interval, after each time the prompt message is sent, the second prompt message may be received, and if the second prompt message is not received or the target object is not included in the second prompt message, the prompt message may be sent again after the predetermined time interval.
According to the remote instruction processing method provided by the embodiment of the application, the target object can be directly obtained from the first indication information under the condition that the first indication information comprises the target object; under the condition that the first indication information does not comprise the target object, the target object can be directly obtained from the alarm information when the alarm information exists; only when the alarm information does not exist, the prompt information needs to be sent to the remote communication equipment to indicate the remote communication equipment to send second indication information including the target object in response to the prompt information, so that the speed of acquiring the target object can be increased, and the efficiency of the operation and maintenance personnel for remotely processing the server fault is further improved.
In one embodiment, as shown in fig. 6, in step 206, matching the associated instructions of the target instruction according to the target object and the target instruction, and constructing a target instruction set according to the target instruction and each associated instruction, includes:
step 602, matching a target associated instruction corresponding to the target object from the associated instructions of the target instruction.
And step 604, constructing a target instruction set according to the target instruction and the target association instruction.
In the embodiment of the application, when the same target instruction is in different target objects, the associated instructions may be correspondingly different. For example, if the a service and the B service have an association relationship, and the B service must be simultaneously started when the a service is stopped (or a specific operation must be simultaneously performed on the B service when the a service is stopped, or the like), when the target object is the a service and the target instruction is an operation instruction for stopping the service, the association instruction of the target instruction includes an operation instruction for starting the B service; when the target object is a C service which has no association relationship with the B service, and the target instruction is an operation instruction for stopping the service, the association instruction of the target instruction does not include an operation instruction for starting the B service.
For example, the association instructions of each operation instruction under different target objects may be predefined, so that after the target instruction and the target object are obtained, the target association instruction of the target instruction is obtained according to the target object, and then a target instruction set is constructed according to the target instruction and each target association instruction. Referring to fig. 7, if the target instruction is an operation instruction E, when the target object is not the a service, the target related instruction of the operation instruction E is an operation instruction D, and when the target object is the a service, the target related instruction of the operation instruction E is an operation instruction D and an operation instruction F. After further performing target associated instruction matching to obtain a target instruction set, when the target object is not the service a, the target instruction set will be the operation instruction a, the operation instruction B, the operation instruction C, the operation instruction D, and the operation instruction E, and when the target object is the service a, the target instruction set will be the operation instruction a, the operation instruction B, the operation instruction C, the operation instruction D, the operation instruction E, the operation instruction F, and the operation instruction G.
According to the remote instruction processing method provided by the embodiment of the application, different target associated instructions can be matched for the target instructions according to different target objects, and the target instruction set is constructed according to the target instructions and the target associated instructions, so that the remote instruction processing method can be suitable for scenes with different target objects and different associated instructions of the target instructions.
In one embodiment, as shown in fig. 8, in step 604, constructing a target instruction set according to the target instructions and the target associated instructions includes:
step 802, for any target association instruction, determining an association instruction of the target association instruction for the target object, taking the association instruction of the target association instruction for the target object as a new target association instruction, and repeatedly executing the step of determining the association instruction of the target association instruction for the target object until the target association instruction does not have the association instruction for the target object.
And step 804, constructing and obtaining a target instruction set by adopting the target instructions and the target associated instructions.
In the embodiment of the application, a target instruction set can be constructed by repeating the steps of determining the association instruction of each target association instruction for the target object and taking the association instruction of each target association instruction for the target object as a new target association instruction. As shown in fig. 7, taking the target object as the service a and the target instruction as the operation instruction E as an example, when determining that the operation instruction E is a target associated instruction for the service a: after the operation instruction D and the operation instruction F, the operation instruction D and the operation instruction F may be used as new target related instructions, and a target related instruction (an operation instruction B, an operation instruction C, and an operation instruction G) of the operation instruction D for the a service and a target related instruction (an operation instruction a) of the operation instruction F for the a service are determined, and further, the operation instruction B, the operation instruction C, the operation instruction G, and the operation instruction a are used as new target related instructions, and a target related instruction (an operation instruction a) of the operation instruction B for the a service, a target related instruction (an operation instruction C) of the operation instruction C for the a service, a target related instruction (an operation instruction a) of the operation instruction G for the a service and a target related instruction (none) of the operation instruction a for the a service are determined, and further, the operation instruction a is used as a new target related instruction, and a target related instruction (none) of the operation instruction a for the a service is determined. When the target association instruction does not have an association instruction for the target object, the step of repeatedly determining the association instruction of the target association instruction for the target object may be stopped, and the obtained target association instructions and the target instructions are constructed into a target instruction set according to the sequence in the process, that is, in the above example, the target instruction set includes an operation instruction a, an operation instruction B, an operation instruction C, an operation instruction D, an operation instruction E, an operation instruction F, and an operation instruction G.
According to the remote instruction processing method provided by the embodiment of the application, the target instruction set can be constructed by repeatedly determining the associated instruction of each target associated instruction for the target object and taking the associated instruction of each target associated instruction for the target object as a new target associated instruction. According to the method and the device, only the associated instructions of the operation instructions aiming at the operation objects need to be set in advance, when the target instruction set is constructed, the associated instructions of the operation instructions can be repeatedly determined to obtain the target instruction set, and a target instruction set does not need to be set aiming at each target operation of each target object, so that the early development time can be greatly saved.
In one embodiment, before receiving the first indication information sent by the remote communication device in step 202, the method further includes:
and determining account information corresponding to the remote communication equipment, and acquiring the operation authority of the account information.
In the embodiment of the application, each account information has the corresponding operation authority, and the operation authority is used for representing the operation of which operation object the account information is authorized to perform. The account information corresponding to the remote communication device may be directly determined according to the number of the remote communication device, or prompt information instructing the remote communication device to provide authentication information (which may include an account password, a dynamic voice key, a voice password, and the like) may be sent to the remote communication device before the first instruction information sent by the remote communication device is received. After the remote communication device sends the verification information to the outbound system, the outbound system can further compare the verification information sent by the remote communication device with the account information stored in the database, and if the verification information can be matched with certain account information, the account information corresponding to the remote communication device can be determined to be the account information. If the verification information does not match any account information, a prompt may be sent to the remote communication device instructing the remote communication device to send the correct verification information.
After determining the account information corresponding to the remote communication device, the operation authority of the account information may be acquired to determine whether the remote communication device is authorized to perform the target operation on the target object.
In step 204, obtaining a target instruction corresponding to a target operation includes:
and determining a permission matching result according to the operation permission, the target object and the target operation.
And under the condition that the authority matching result representation account information has the authority of executing the target operation on the target object, acquiring a target instruction corresponding to the target operation.
In the embodiment of the application, only when the operation authority representation account information of the account information has the right to perform the target operation on the target object, the process of obtaining the target instruction corresponding to the target operation and establishing the target instruction set according to the target instruction matching correlation instruction can be started. For example, the operation authority may include an operation that the account information is authorized to perform for each operation object, when a target operation matches any operation that the account information is authorized to perform for the target object, the authority matching result may be determined to be passed, and if the target operation cannot match any operation that the account information is authorized to perform for the target object, the authority matching result may be determined to be not passed.
And when the permission matching result is that the target instruction corresponding to the target operation is passed, the outbound system can acquire the target instruction corresponding to the target operation. And when the permission matching result is that the target operation is not passed, the outbound system can send prompt information to the remote communication equipment to inform the remote communication equipment that the target operation is not authorized to be carried out.
According to the remote instruction processing method provided by the embodiment of the application, the target instruction corresponding to the target operation can be obtained only under the condition that the operation authority representation account information of the account information has the right to perform the target operation on the target object, and the target instruction set is constructed according to the target instruction matched with the associated instruction, so that the situation that personnel without the operation authority change the server setting at will can be avoided, and the safety of the server can be improved.
In one embodiment, as shown in fig. 9, a remote instruction processing method is provided, which is exemplified by the method applied to the server 106 in fig. 1, and includes the following steps:
step 902, receiving a target instruction set, where the target instruction set is an instruction set constructed by the outbound system according to a target object, a target instruction, and each associated instruction of the target instruction, and the target object and the target instruction are an operation object and an operation instruction obtained according to instruction information sent by the remote communication device.
Step 904, executing the target instruction set aiming at the target object, and obtaining the execution result of the target instruction set.
Step 906, sending the execution result to the outbound system, so that the outbound system sends corresponding feedback information to the remote communication device according to the execution result.
In the embodiment of the application, the server may receive a target instruction set sent by the outbound system and execute the target instruction set. The method for constructing the target instruction set may refer to the related description in the foregoing embodiments, and the embodiments of the present application are not described herein again.
After executing the target instruction set, the server may obtain an execution result of the target instruction set (e.g., "0" represents successful execution and "1" represents failed execution), and send the execution result to the outbound system, so that the outbound system sends feedback information to the remote communication device according to the execution result and a preset template. For example, the feedback information may be "operation success" when the execution result indicates that the target instruction set is successfully executed, and may be "operation failure" when the execution result indicates that the target instruction set is failed to be executed, so that the remote communication device may know the execution result of the target instruction set.
The remote instruction processing method provided by the embodiment of the application can receive the target instruction set sent by the outbound system, and send the execution result to the outbound system after the target instruction set is executed, so that the outbound system sends feedback information to the remote communication equipment according to the execution result. Because the target instruction set is obtained by the outbound system according to the first indication information of the remote communication equipment, a fixed instruction set does not need to be established in advance for each operation of each target object, so that the flexibility of the operation and maintenance personnel in operating the server can be improved, the operation and maintenance personnel can also adjust the server through the outbound system even if the operation and maintenance personnel are far away from the server, and the efficiency of the operation and maintenance personnel in actively adjusting or repairing the server can be improved. Meanwhile, the execution result is sent to the outbound system after the target instruction set is executed, so that the operation and maintenance personnel can know the execution result of the target instruction set, the next operation can be performed according to the execution result of the target instruction set, and the efficiency of the operation and maintenance personnel in actively adjusting or repairing the server is further improved.
In one embodiment, as shown in fig. 10, after obtaining the execution result of the target instruction set in step 904, the method further includes:
step 1002, detecting the running state of the target object and/or the server.
And 1004, under the condition that the running state of the target object and/or the server represents that the server is abnormal, restoring the server to the state before the target instruction set is executed.
In the embodiment of the application, the running states of the target object and the server can be detected after the target instruction set is executed. If the target object or the server is abnormal in operation, the abnormal operation can be considered to be caused by the execution of the target instruction set, and at this time, the target object or the server can be restored to the state before the execution of the target instruction set according to the log record. Further, the server may also send a system recovery identifier to the outbound system, so that the outbound system sends feedback information to the remote communication device according to the system recovery identifier, so that the remote communication device may know that the server has recovered to the state before the target instruction set is executed.
According to the remote instruction processing method provided by the embodiment of the application, the running states of the target object and the server can be detected after the target instruction set is executed, the execution result of the target instruction set is returned under the condition that the target object or the server runs abnormally, and the target object or the server is restored to the state before the target instruction set is executed, so that the problem that the server is abnormal after the target instruction set is executed is partially solved.
In order to make the embodiments of the present application better understood by those skilled in the art, the embodiments of the present application are described below by specific examples.
Illustratively, as shown in FIG. 11, a schematic diagram of a remote instruction processing method is shown.
In this embodiment, the corresponding relationship between each keyword and the target object and the target operation and the corresponding relationship between the target operation and the target instruction may be set first, and the two corresponding relationships may be encapsulated as the first application program and the second application program, respectively. And after the outbound system receives the first indication information, identifies the first indication information as characters and extracts the keywords, the outbound system can acquire a target object and a target operation by calling the first application program and acquire a target instruction by calling the second application program.
In addition, the associated instruction of each operation instruction for each operation object can be preset, and the associated instruction of each operation instruction for each operation object is packaged into a third application program, and after the outbound system acquires the target instruction, the third application program can be called to acquire the target instruction set.
Taking a specific scenario as an example, in the scenario, when the server has an illegal access, the operation and maintenance staff needs to stop the illegal access by shutting down the access service (assuming that the service name is service) in the internet isolation area. When detecting the illegal access, the monitoring system sends alarm information to the outbound system, wherein the alarm information comprises the server (assuming that the ip address of the server is x.x.x.x) in which the illegal access occurs and the specific abnormal reason why the server in which the illegal access occurs. After receiving the alarm information, the outbound system can generate notification information according to a preset template, and generates a connection request to the remote communication equipment according to the number of the remote communication equipment of the operation and maintenance personnel responsible for processing the specific abnormal reason, which is reserved in the database, and sends the notification information to the remote communication equipment after establishing connection with the remote communication equipment.
After listening to the notification message, the operation and maintenance person may cause the remote communication device to send a first indication message, such as "turning off the service on the server with ip address x.x.x.x.x", to the outbound system. After receiving the first indication information, the outbound system can convert the first indication information into characters through a natural language processing technology, extracts keywords 'shutdown service', 'ip address x.x.x.x server' and 'service', calls a first application program, determines that a target object is 'service on a server with an ip address x.x.x.x' (the target server is the server with the ip address x.x.x.x.x), calls a second application program, and determines that a target operation is 'shutdown service'.
It should be noted that, in this scenario, since the connection with the remote communication device is initiated by the outbound system actively, the outbound system may not perform permission verification according to the operation permission, the target object, and the target operation corresponding to the remote communication device, and the fact that the outbound system actively initiates a connection request to the remote communication device indicates that the remote communication device has the operation permission.
Further, the outbound system may construct the target instruction set by calling a third application. The manner of constructing the target instruction set may refer to the related description of the foregoing embodiments, and the embodiments of the present application are not described herein again. The finally obtained target instruction set may be ssh x.x.x.x (a login target server may use a fixed system user name and password of an emergency processing user)), pgrep service (obtain pid of a target object), kill-9pid (close target object) ".
After the target instruction set is obtained, the outbound system can send the target instruction set to the target server by calling an interface corresponding to the target server, so that the target server executes the target instruction set. After the target server executes the target instruction set, the target server can obtain an execution result and send the execution result to the outbound system, so that the outbound system can send feedback information to the remote communication equipment according to the execution result, and the remote communication equipment can know the execution result of the target instruction set. Meanwhile, the execution result may be recorded in a log for later inspection.
It should be noted that the outbound system can establish a connection with multiple remote communication devices at the same time, and execute the remote instruction processing flow according to the first indication information of the multiple remote communication devices at the same time. The outbound system may also actively limit the number of telecommunications devices allowed to establish a connection with the outbound system simultaneously, i.e. the number of simultaneous communications, based on how many telecommunications devices are expected to establish a connection with the outbound system simultaneously during a certain time period. For example, when a certain period of time is expected to have 20 telecommunication devices simultaneously connected to the outbound system, the outbound system may limit the number of simultaneous communications to 20, at which time the 21 st telecommunication device that needs to establish a connection with the outbound system needs to wait. When a certain time period is expected to have 10 telecommunication devices simultaneously connected with the outbound system, the outbound system can limit the number of simultaneous communications to 10, and the 11 th telecommunication device needing to be connected with the outbound system needs to wait. By limiting the number of simultaneous communications, the outbound system may allocate fewer system resources to the process of processing remote instructions during a time period when the number of remote communication devices with which connections are expected to be established is low, thereby conserving system resources and performing other tasks.
According to the remote instruction processing method, the capability of calling the interface of the outbound system can be combined with the simple operation instruction, so that the outbound system can carry out simple emergency processing on the target object in an emergency according to the first indication information of the operation and maintenance personnel, dependence on manpower in the process of remotely modifying server configuration and repairing server faults can be reduced, labor waste of the operation and maintenance personnel can be reduced, and the working pressure of the operation and maintenance personnel in non-working time can be effectively reduced.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
In one embodiment, a remote instruction processing system is provided, the system comprising an outbound system and a server, wherein:
the outbound system is used for receiving first indication information sent by remote communication equipment after connection with the remote communication equipment is established, determining a target object and target operation according to the first indication information, and acquiring a target instruction corresponding to the target operation;
the outbound system is further used for matching the associated instructions of the target instructions according to the target objects and the target instructions, constructing a target instruction set according to the target instructions and the associated instructions, and sending the target instruction set to a target server corresponding to the target objects;
the server is used for receiving the target instruction set and executing the target instruction set aiming at the target object;
the server is also used for acquiring the execution result of the target instruction set and sending the execution result to the outbound system;
the outbound system is also used for sending feedback information to the remote communication equipment according to the execution result.
In the embodiment of the present application, the specific operations performed in the data interaction process between the outbound system and the server and in the data transmission process between the outbound system and the server may refer to the relevant description parts of the foregoing embodiments, and the embodiments of the present application are not described herein again.
The remote instruction processing system provided by the embodiment of the application can receive the first indication information sent by the remote communication equipment after the outbound system is connected with the remote communication equipment, construct the target instruction set according to the first indication information, and further send the target instruction set to the target server corresponding to the target object, so that the target server executes the target instruction set, and sends the execution result to the outbound system, so that the outbound system sends the feedback information to the remote communication equipment according to the execution result. According to the embodiment of the application, even if the operation and maintenance personnel are far away from the server, the operation and maintenance personnel can adjust the server in time through the outbound system without the need of enabling the operation and maintenance personnel to go to the location of the server or remotely indicating the on-duty personnel to adjust the server through the telephone. Meanwhile, the target instruction set is constructed in a mode of matching the associated instructions of the target instructions, and a fixed instruction set does not need to be constructed in advance for each operation of each target object, so that the flexibility of operation of the operation and maintenance personnel on the server can be improved, and the efficiency of the operation and maintenance personnel actively adjusting or repairing the server is improved.
Based on the same inventive concept, the embodiment of the present application further provides a remote instruction processing apparatus for implementing the above-mentioned remote instruction processing method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the remote instruction processing device provided below may refer to the limitations in the above remote instruction processing method, and details are not described here.
In one embodiment, as shown in fig. 12, there is provided a remote instruction processing apparatus including: a first receiving module 1202, a first determining module 1204, a constructing module 1206, a first transmitting module 1208, wherein:
a first receiving module 1202, configured to receive first indication information sent by a remote communication device after a connection is established with the remote communication device;
a first determining module 1204, configured to determine a target object and a target operation according to the first indication information, and obtain a target instruction corresponding to the target operation;
a constructing module 1206, configured to match the associated instruction of the target instruction according to the target object and the target instruction, and construct a target instruction set according to the target instruction and each associated instruction;
a first sending module 1208, configured to send the target instruction set to a target server corresponding to the target object, so that the target server executes the target instruction set for the target object.
The remote instruction processing device provided by the embodiment of the application can receive the first indication information sent by the remote communication equipment after establishing connection with the remote communication equipment, construct the target instruction set according to the first indication information, and further send the target instruction set to the target server corresponding to the target object, so that the target server executes the target instruction set. According to the embodiment of the application, even if the operation and maintenance personnel are far away from the server, the operation and maintenance personnel can adjust the server in time through the outbound system without the need of enabling the operation and maintenance personnel to go to the location of the server or remotely indicating the on-duty personnel to adjust the server through the telephone. Meanwhile, the target instruction set is constructed in a mode of matching the associated instructions of the target instructions, and a fixed instruction set does not need to be constructed in advance for each operation of each target object, so that the flexibility of operation of the operation and maintenance personnel on the server can be improved, and the efficiency of the operation and maintenance personnel actively adjusting or repairing the server is improved.
In one embodiment, the apparatus further comprises:
the second receiving module is used for receiving the alarm information sent by the monitoring system;
the second determining module is used for determining notification information according to the alarm information and sending a connection request to the remote communication equipment so as to establish connection with the remote communication equipment through the connection request;
and the second sending module is used for sending the notification information to the remote communication equipment after the connection with the remote communication equipment is established.
In one embodiment, the first determining module 1204 is further configured to:
determining whether alarm information exists or not under the condition that the first indication information does not include a target object;
under the condition that the alarm information exists, acquiring the target object from the alarm information; or,
under the condition that the alarm information does not exist, repeatedly sending prompt information to the remote communication equipment so as to indicate the remote communication equipment to feed back second indication information through the indication information until the second indication information comprises the target object; or,
and acquiring the target object from the first indication information under the condition that the target object is included in the first indication information.
In one embodiment, the building module 1206 is further configured to:
matching a target associated instruction corresponding to the target object from associated instructions of the target instruction;
and constructing a target instruction set according to the target instructions and the target associated instructions.
In one embodiment, the building module 1206 is further configured to:
for any target correlation instruction, determining a correlation instruction of the target correlation instruction for the target object, taking the correlation instruction of the target correlation instruction for the target object as a new target correlation instruction, and repeatedly executing the step of determining the correlation instruction of the target correlation instruction for the target object until the correlation instruction of the target correlation instruction for the target object does not exist;
and constructing to obtain a target instruction set by adopting the target instructions and the target associated instructions.
In one embodiment, the apparatus further comprises:
the third determining module is used for determining account information corresponding to the remote communication equipment and acquiring the operation authority of the account information;
the first determining module 1204 is further configured to:
determining a permission matching result according to the operation permission, the target object and the target operation;
and under the condition that the permission matching result represents that the account information has the permission for executing the target operation on the target object, acquiring a target instruction corresponding to the target operation.
In one embodiment, as shown in fig. 13, there is provided a remote instruction processing apparatus including: a receiving module 1302, an executing module 1304, and a sending module 1306, wherein:
a receiving module 1302, configured to receive a target instruction set, where the target instruction set is an instruction set that is constructed by an outbound system according to a target object, a target instruction, and each associated instruction of the target instruction, and the target object and the target instruction are an operation object and an operation instruction that are obtained according to indication information sent by a remote communication device;
an execution module 1304, configured to execute the target instruction set on the target object, and obtain an execution result of the target instruction set;
a sending module 1306, configured to send the execution result to the outbound system, so that the outbound system sends corresponding feedback information to the remote communication device according to the execution result.
The remote instruction processing device provided by the embodiment of the application can receive a target instruction set sent by an outbound system, and send an execution result to the outbound system after the target instruction set is executed, so that the outbound system sends feedback information to the remote communication equipment according to the execution result. Because the target instruction set is obtained by the outbound system according to the first indication information of the remote communication equipment, a fixed instruction set does not need to be constructed in advance for each operation of each target object, so that the flexibility of operation and maintenance personnel in operating the server can be improved, the operation and maintenance personnel can adjust the server through the outbound system even if the operation and maintenance personnel are far away from the server, and the efficiency of the operation and maintenance personnel in actively adjusting or repairing the server can be improved. Meanwhile, the execution result is sent to the outbound system after the target instruction set is executed, so that the operation and maintenance personnel can know the execution result of the target instruction set, the next operation can be performed according to the execution result of the target instruction set, and the efficiency of the operation and maintenance personnel in actively adjusting or repairing the server is further improved.
In one embodiment, the apparatus further comprises:
the detection module is used for detecting the running state of the target object and/or the server;
and the recovery module is used for recovering the server to the state before the target instruction set is executed under the condition that the running state of the target object and/or the server represents that the server is abnormal.
The respective modules in the above-described remote instruction processing apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 14. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a remote instruction processing method.
Those skilled in the art will appreciate that the architecture shown in fig. 14 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the above-described method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In an embodiment, a computer program product is provided, comprising a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, databases, or other media used in the embodiments provided herein can include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), magnetic Random Access Memory (MRAM), ferroelectric Random Access Memory (FRAM), phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (14)

1. A method for remote instruction processing, the method comprising:
after connection with remote communication equipment is established, first indication information sent by the remote communication equipment is received;
determining a target object and a target operation according to the first indication information, and acquiring a target instruction corresponding to the target operation;
according to the target object and the target instruction, matching the associated instruction of the target instruction, and according to the target instruction and each associated instruction, constructing a target instruction set;
and sending the target instruction set to a target server corresponding to the target object so that the target server executes the target instruction set aiming at the target object.
2. The method of claim 1, wherein prior to receiving the first indication sent by the remote communication device, the method further comprises:
receiving alarm information sent by a monitoring system;
determining notification information according to the alarm information, and sending a connection request to the remote communication equipment so as to establish connection with the remote communication equipment through the connection request;
sending the notification information to the remote communication device after establishing a connection with the remote communication device.
3. The method according to claim 1 or 2, wherein the determining a target object according to the first indication information comprises:
determining whether alarm information exists or not under the condition that the first indication information does not comprise a target object;
under the condition that the alarm information exists, acquiring the target object from the alarm information; or,
under the condition that the alarm information does not exist, repeatedly sending prompt information to the remote communication equipment so as to indicate the remote communication equipment to feed back second indication information through the indication information until the second indication information comprises the target object; or,
and acquiring the target object from the first indication information under the condition that the target object is included in the first indication information.
4. The method of claim 1, wherein the matching of the associated instructions of the target instruction according to the target object and the target instruction and the construction of the target instruction set according to the target instruction and each of the associated instructions comprises:
matching a target associated instruction corresponding to the target object from associated instructions of the target instruction;
and constructing a target instruction set according to the target instructions and the target associated instructions.
5. The method of claim 4, wherein constructing a target instruction set based on the target instructions and each of the target associated instructions comprises:
for any target correlation instruction, determining a correlation instruction of the target correlation instruction for the target object, regarding the correlation instruction of the target correlation instruction for the target object as a new target correlation instruction, and repeatedly executing the step of determining the correlation instruction of the target correlation instruction for the target object until the correlation instruction for the target object does not exist;
and constructing to obtain a target instruction set by adopting the target instructions and the target associated instructions.
6. The method of claim 1, wherein prior to receiving the first indication sent by the remote communication device, the method further comprises:
determining account information corresponding to the remote communication equipment, and acquiring operation permission of the account information;
the obtaining of the target instruction corresponding to the target operation includes:
determining a permission matching result according to the operation permission, the target object and the target operation;
and under the condition that the permission matching result represents that the account information has the permission for executing the target operation on the target object, acquiring a target instruction corresponding to the target operation.
7. A method for remote instruction processing, the method comprising:
receiving a target instruction set, wherein the target instruction set is an instruction set which is constructed by an outbound system according to a target object, a target instruction and each associated instruction of the target instruction, and the target object and the target instruction are an operation object and an operation instruction which are obtained according to indication information sent by remote communication equipment;
executing the target instruction set aiming at the target object, and acquiring an execution result of the target instruction set;
and sending the execution result to the outbound system so that the outbound system sends corresponding feedback information to the remote communication equipment according to the execution result.
8. The method of claim 7, wherein after obtaining the results of the execution of the target instruction set, the method further comprises:
detecting the running state of the target object and/or the server;
and under the condition that the running state of the target object and/or the server represents that the server is abnormal, restoring the server to the state before the target instruction set is executed.
9. A remote instruction processing system, the system comprising an outbound system and a server, wherein:
the outbound system is used for receiving first indication information sent by remote communication equipment after establishing connection with the remote communication equipment, determining a target object and target operation according to the first indication information, and acquiring a target instruction corresponding to the target operation;
the outbound system is further used for matching the associated instructions of the target instructions according to the target objects and the target instructions, constructing a target instruction set according to the target instructions and the associated instructions, and sending the target instruction set to a target server corresponding to the target objects;
the server is used for receiving the target instruction set and executing the target instruction set aiming at the target object;
the server is also used for obtaining the execution result of the target instruction set and sending the execution result to the outbound system;
the outbound system is also used for sending feedback information to the remote communication equipment according to the execution result.
10. A remote instruction processing apparatus, characterized in that the apparatus comprises:
the first receiving module is used for receiving first indication information sent by remote communication equipment after connection with the remote communication equipment is established;
the first determining module is used for determining a target object and a target operation according to the first indication information and acquiring a target instruction corresponding to the target operation;
the construction module is used for matching the associated instructions of the target instructions according to the target objects and the target instructions and constructing a target instruction set according to the target instructions and the associated instructions;
and the first sending module is used for sending the target instruction set to a target server corresponding to the target object so that the target server executes the target instruction set aiming at the target object.
11. A remote instruction processing apparatus, characterized in that the apparatus comprises:
the system comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving a target instruction set, the target instruction set is an instruction set which is constructed by an outbound system according to a target object, a target instruction and each associated instruction of the target instruction, and the target object and the target instruction are an operation object and an operation instruction which are obtained according to indication information sent by remote communication equipment;
the execution module is used for executing the target instruction set aiming at the target object and acquiring an execution result of the target instruction set;
and the sending module is used for sending the execution result to the outbound system so that the outbound system sends corresponding feedback information to the remote communication equipment according to the execution result.
12. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 8.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
14. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 8 when executed by a processor.
CN202211121677.1A 2022-09-15 2022-09-15 Remote instruction processing method, device, computer equipment and storage medium Active CN115460052B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211121677.1A CN115460052B (en) 2022-09-15 2022-09-15 Remote instruction processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211121677.1A CN115460052B (en) 2022-09-15 2022-09-15 Remote instruction processing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115460052A true CN115460052A (en) 2022-12-09
CN115460052B CN115460052B (en) 2024-06-18

Family

ID=84304749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211121677.1A Active CN115460052B (en) 2022-09-15 2022-09-15 Remote instruction processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115460052B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112925219A (en) * 2021-02-03 2021-06-08 青岛海尔科技有限公司 Method and device for executing smart home scene
CN114019807A (en) * 2021-09-24 2022-02-08 北京声智科技有限公司 Data processing method, device, system, equipment and readable storage medium
CN114067992A (en) * 2021-11-01 2022-02-18 武汉联影医疗科技有限公司 Medical device control method, remote medical control system, device, and medium
CN114137888A (en) * 2021-12-10 2022-03-04 珠海格力电器股份有限公司 Linkage control method of equipment, processor and equipment linkage control system
CN114384810A (en) * 2020-10-16 2022-04-22 青岛海尔洗衣机有限公司 Device control method, device, electronic device and storage medium
CN114389936A (en) * 2021-11-26 2022-04-22 上海景域智能科技有限公司 Cross-cloud multi-cluster deployment operation and maintenance method, system, processor and storage medium
CN114553571A (en) * 2022-02-25 2022-05-27 中国工商银行股份有限公司 Server management method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114384810A (en) * 2020-10-16 2022-04-22 青岛海尔洗衣机有限公司 Device control method, device, electronic device and storage medium
CN112925219A (en) * 2021-02-03 2021-06-08 青岛海尔科技有限公司 Method and device for executing smart home scene
CN114019807A (en) * 2021-09-24 2022-02-08 北京声智科技有限公司 Data processing method, device, system, equipment and readable storage medium
CN114067992A (en) * 2021-11-01 2022-02-18 武汉联影医疗科技有限公司 Medical device control method, remote medical control system, device, and medium
CN114389936A (en) * 2021-11-26 2022-04-22 上海景域智能科技有限公司 Cross-cloud multi-cluster deployment operation and maintenance method, system, processor and storage medium
CN114137888A (en) * 2021-12-10 2022-03-04 珠海格力电器股份有限公司 Linkage control method of equipment, processor and equipment linkage control system
CN114553571A (en) * 2022-02-25 2022-05-27 中国工商银行股份有限公司 Server management method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115460052B (en) 2024-06-18

Similar Documents

Publication Publication Date Title
JP6396887B2 (en) System, method, apparatus, and non-transitory computer readable storage medium for providing mobile device support services
US10798218B2 (en) Environment isolation method and device
CN111193609B (en) Application abnormity feedback method and device and application abnormity monitoring system
CN112035472B (en) Data processing method, device, computer equipment and storage medium
CN111405006B (en) Method and device for processing remote login failure and remote login system
CN111614548A (en) Message pushing method and device, computer equipment and storage medium
JP2009294837A (en) Failure monitoring system and device, monitoring apparatus, and failure monitoring method
CN116073512A (en) Operation and maintenance method, device, equipment and storage medium of electric intelligent terminal
CN111190761B (en) Log output method and device, storage medium and electronic equipment
CN112488325A (en) Operation and maintenance work order processing method and device, computer equipment and storage medium
CN115460052B (en) Remote instruction processing method, device, computer equipment and storage medium
WO2021012562A1 (en) Blockchain data cleaning method and apparatus, computer device, and storage medium
CN110620695A (en) Data processing method and related equipment
CN115242621B (en) Network private line monitoring method, device, equipment and computer readable storage medium
CN115935414A (en) Block chain based data verification method and device, electronic equipment and storage medium
CN116010199A (en) Application service self-adjustment method, device, computer equipment and storage medium
CN110087232A (en) A kind of call processing method based on smart machine, device and server
CN114257632A (en) Disconnection reconnection method and device, electronic equipment and readable storage medium
CN110750366A (en) Message processing method and device, computer equipment and storage medium
US11953995B1 (en) Centralized data backup platform supporting multiple data environments
CN115361274B (en) Alarm message processing method and device
CN111741032B (en) Data transmission control method
CN101163063A (en) Method of real-time display controlled server alarm message on browser
CN114168413A (en) Server operation and maintenance processing method and device based on block chain and computer equipment
CN115442269A (en) Block chain-based network connectivity monitoring method and device

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
GR01 Patent grant