CN108375964A - A kind of dialog mode device management method and device - Google Patents

A kind of dialog mode device management method and device Download PDF

Info

Publication number
CN108375964A
CN108375964A CN201810144946.3A CN201810144946A CN108375964A CN 108375964 A CN108375964 A CN 108375964A CN 201810144946 A CN201810144946 A CN 201810144946A CN 108375964 A CN108375964 A CN 108375964A
Authority
CN
China
Prior art keywords
machine
module
message
input
window
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
CN201810144946.3A
Other languages
Chinese (zh)
Other versions
CN108375964B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201810144946.3A priority Critical patent/CN108375964B/en
Publication of CN108375964A publication Critical patent/CN108375964A/en
Application granted granted Critical
Publication of CN108375964B publication Critical patent/CN108375964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/41835Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by programme execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Quality & Reliability (AREA)
  • Manufacturing & Machinery (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

This application discloses a kind of dialog mode device management method and devices.This method includes:Dialog box of the displaying for machine handing, and the operation inputted is received by the dialog box;The operation is parsed, determines that the corresponding actuator of the operation and collection of machines, the collection of machines include at least one machine according to the analysis result of the operation;The actuator is called, so that the actuator executes the operation for the collection of machines;And the implementing result that the actuator returns is received, and the implementing result is shown in the dialog box.Using these technical solutions, can the flexibility of hoisting machine bulk management and the treatment effeciency of batch operation, and improve the resource utilization of dialog mode machine handing device.

Description

Conversational machine management method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for managing a session-based machine.
Background
With the explosive development of the internet and information technology, the corresponding software system is more and more complex, and the required machine resource scale is larger and larger, which brings many challenges to operators. One challenge often encountered is how to efficiently manage and operate multiple machines.
In response to this challenge, there are generally two ways to respond. The first method is that an operator logs in all the devices managed by the operator through one device without log-in, and then controls other devices through specific scripts and tools to perform batch operation, but this method needs to perform corresponding configuration on each device, and is relatively troublesome to operate, so that the method is suitable for the situation that the number of devices is small and the devices are not shared, and the universality is poor. The second method is to pre-establish an operation platform for the task of batch operation, and issue the user operation flow through the platform to perform batch operation on the machine, but this method cannot meet the temporary and fragmented batch operation of the operator, and has poor flexibility.
Therefore, the existing machine batch processing mode cannot simultaneously have the capability of large-scale batch operation and meet the requirements of temporary and non-curable batch operation.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for managing an interactive machine, which can improve flexibility of batch management of machines and processing efficiency of batch operations, and improve resource utilization of the interactive machine management apparatus.
The technical scheme of the invention is realized as follows:
the invention provides a conversational machine management method, which comprises the following steps:
displaying a dialog window for machine management, and receiving input operation through the dialog window;
analyzing the operation, and determining an actuator and a machine set corresponding to the operation according to an analysis result of the operation, wherein the machine set comprises at least one machine;
invoking the executor to cause the executor to perform the operation on the set of machines; and a process for the preparation of a coating,
and receiving an execution result returned by the executor, and displaying the execution result in the dialog window.
The present invention also provides a dialogue-type machine management apparatus, including: a display module, a user interface module, a parsing module, a calling module and a receiving module, wherein,
the display module is used for displaying a conversation window for machine management;
the user interface module is used for receiving input operation through the dialog window displayed by the display module;
the analysis module is used for analyzing the operation received by the user interface module, and determining an actuator and a machine set corresponding to the operation according to the analysis result of the operation, wherein the machine set comprises at least one machine;
the calling module is used for calling the executor determined by the analysis module so as to enable the executor to execute the operation on the machine set; and a process for the preparation of a coating,
the receiving module is used for receiving the execution result returned by the executor;
the display module is used for displaying the execution result received by the receiving module in the conversation window.
The present invention also provides a computer-readable storage medium storing computer-readable instructions for causing at least one processor to execute the method described in the embodiments of the present application.
Compared with the prior art, the invention provides a conversational batch machine operation mode, and overcomes the defects of complicated personal management and inflexible platform management in the prior art. The design mode of the dialogue-platform-based interactive machine management device can have the capability of large-scale batch operation and meet the requirements of temporary and non-solidified batch operation, improves the flexibility of machine batch management and the processing efficiency of batch operation, has magnitude improvement on user experience, and also improves the resource utilization rate of the dialogue-type machine management device.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts. Wherein,
FIG. 1 is a schematic diagram of a session-based machine management system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for session based machine management according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a dialog window according to an embodiment of the present invention;
FIG. 4 is an exemplary flowchart of a method for conversational machine management according to another embodiment of the invention;
FIG. 5 is a schematic diagram showing the organization of a machine in accordance with one embodiment of the present invention;
FIG. 6 is a diagram illustrating a dialog window according to another embodiment of the present invention;
FIG. 7 is an exemplary flowchart of a method for conversational machine management according to yet another embodiment of the invention;
FIG. 8 is an exemplary flow diagram of a parsing operation in accordance with an embodiment of the present invention;
FIG. 9 is a block diagram of an example of an interactive machine management apparatus according to the present invention;
FIG. 10 is a schematic diagram of a session-based machine management apparatus according to another embodiment of the present invention;
FIG. 11 is a block diagram of an interactive machine management device according to another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic structural diagram of a conversational machine management system according to an embodiment of the invention. As shown in FIG. 1, the interactive machine management system 100 includes an interactive machine management apparatus 110 and machine sets 131 to 13N. The conversational machine management device 110 includes a conversational window 120 and a file database 111 for machine management, the machine set 131 includes a machine 1311 and a machine 1312, the machine set 132 includes a machine 1321, a machine 1322, and a machine 1323, and the machine set 13N includes a machine 13N 1.
Specifically, the dialog window 120 may include a dialog display sub-window 121, a software presentation sub-window 122, and an input/operation sub-window 123. The dialog display sub-window 121 is used for displaying dialog contents between the dialog machine management device 110 and the user; the software display sub-window 122 is used for displaying software and scripts used by the management machine or user-defined user instructions and the like; the input/operation sub-window 123 is used for a user to input an instruction, upload a file, or an operation performed by the user for a machine management button, and the like. The file database 111 is used for storing software, scripts and user instructions displayed in the dialog window, and may be specifically divided into a software library, a script library and a user instruction library (not shown in the figure).
In the embodiment of the present invention, the operation input by the user is received through the dialog window, and the dialog machine management device 110 parses the operation and then invokes the corresponding executor to execute the operation on the relevant machine set. The interactive device management apparatus 110 may be connected to all devices by wire or wirelessly.
In a specific application, the dialogue-type machine management apparatus 110 may be a dialogue robot, and may use its nickname and avatar when performing a dialogue with the user in the dialogue display sub-window 121. The devices included in the device set may be servers or other devices having a certain function. The user can be a machine, software on the machine, an operator of a system, a manager, a maintainer and the like.
FIG. 2 is a flowchart illustrating a method for session based machine management according to an embodiment of the present invention. As shown in fig. 2, the method may include the steps of:
step 201, a dialog window for machine management is displayed, and input operation is received through the dialog window.
In the embodiment of the application, in order to implement a conversational machine management mode, before any input of a user is received, a conversational window for machine management is firstly displayed. The dialog window may be composed of a plurality of sub-windows, each of which is responsible for presenting specific information or receiving an operation input by a user.
FIG. 3 is a diagram illustrating a dialog window according to an embodiment of the present invention. The dialog window 300 includes several sub-windows, as follows: a nickname "small M" of the dialogue-type machine management apparatus is displayed in the sub-window 310, and an avatar of "small M" is displayed in 311, and the avatar is displayed in association with each piece of information displayed in the sub-window 320. The sub-window 320 displays the dialog content of the dialog machine management device "small M" to the user, for example, when the dialog window starts to be presented, a prompt message "hello, small M will serve you" is displayed in a box 321. The sub-window 330 is used for a user to upload a file for bulk distribution of the file to one or more collections of machines. In sub-window 340 the user may enter any command that is desired to be executed, such as a linux instruction or a machine management instruction provided by an embodiment of the present invention. Sub-window 350 is a "send" operation button that the user can click after entering the instruction at 330 to make the dialog machine management device receive the instruction. In addition, the sub-window 360 displays buttons for controlling the dialog window 300, which are minimize, maximize, and close, respectively, from left to right.
Step 202, analyzing the operation, and determining an actuator and a machine set corresponding to the operation according to an analysis result of the operation, wherein the machine set comprises at least one machine.
In the application, the received operation can be file uploading by a user, linux instruction inputting and user-defined machine management instruction inputting. The result of the parsing determines which executor to use for the operation and for which set of machines to perform the operation.
Step 203, invoke the executor to make the executor execute the operation on the machine set.
Through the step, the executor executes the input operation on each machine in the machine set simultaneously, and batch processing of the machines in the machine set is realized.
And step 204, receiving the execution result returned by the executor, and displaying the execution result in the dialog window.
After the executor returns the execution result, the execution result may be presented in a dialog window 300 shown in FIG. 3. For example, after the user uploads a file in the sub-window 330, the execution result information is displayed in block 326: "your uploaded files have been copied to all machines and saved".
Through the embodiment, the dialogue window for machine management is displayed, the input operation and the analysis operation are received through the dialogue window, the actuator and the machine set corresponding to the operation are determined according to the analysis result of the operation, the actuator is called to enable the actuator to execute the operation aiming at the machine set, the execution result returned by the actuator is received, and the execution result is displayed in the dialogue window, so that the dialogue type batch machine operation mode is realized, and the defects that in the prior art, personal management is complicated, and platform management is not flexible enough are overcome. Particularly for the temporary and fragmented batch operation tasks, the operator can input any instruction or file to be executed in an input box of the conversation window, the instruction or file can be executed on the corresponding machine set, and the execution result is returned to the operator in a conversation mode after the execution is finished, so that the temporary and fragmented batch operation tasks are met.
In addition, the design mode of the 'dialogue is a platform' can improve the operation efficiency of the batch machine by more than 100% in practical use, and compared with the prior art, the use threshold is further reduced, the 'ready-to-use-at-the-hand' state is achieved, and the user experience is improved in magnitude.
Therefore, the machine management method has the capability of large-scale batch operation and can meet the requirements of temporary and non-solidified batch operation, the flexibility of machine batch management and the processing efficiency of batch operation are improved, and the resource utilization rate of the interactive machine management device is improved.
FIG. 4 is a flowchart illustrating a method for session based machine management according to another embodiment of the present invention. As shown in fig. 4, the method comprises the following steps:
step 401, an organization structure of a plurality of machines is established in advance, and the organization structure comprises a plurality of machine sets.
In the embodiment of the application, all machines to be operated in batches are managed according to a certain organization structure, and then batch machine processing is carried out based on the organization structure. Specifically, each set of machines may be obtained according to the functional division of the machines, that is, machines having the same function are combined in one set.
Before the dialog window is presented, the organizational structure is presented, and the start-up options for machine management are presented, step 402.
In the embodiment of the invention, the organization structure of the machine is a visual organization mode. Fig. 5 is a schematic diagram showing the organization of a machine according to an embodiment of the invention. As shown in fig. 5, on the image interface presenting the dialog window, an organization structure window 500 is first presented before the dialog window is presented. Therein, the established organizational structure is displayed in block 510, comprising a collective designation 511 "demo-system" of all machine sets, under which 2 machine sets 512 and 513 are divided, named "demo-module 1" and "demo-module 2", respectively. The boot option for machine management is shown in block 530.
And step 403, when an operation of selecting a machine set from the organization structure and an operation of triggering the starting option are received, displaying the conversation window.
This step, when presenting a dialog window for machine management triggered presentation, includes two operations: receiving an operation of selecting one machine set; and secondly, receiving the operation of triggering the starting option. Referring to FIG. 5, after the user clicks on the machine set "demo-Module 1" and then clicks on the Start Option 530, a dialog window may be presented in the form of a floating window on top of the organizational structure window 500. That is, on the image interface, after the organization structure window 500 is presented, the dialog window 300 is presented in the form of a floating window.
In addition, in fig. 5, a resource showing option 540 is also shown for showing hardware resource information of the conversational machine management device, such as CPU running state, memory usage state, and the like. After the user clicks the resource display option 540, all the hardware resource information is displayed in the form of floating windows, so that the user can judge whether any hardware is abnormal according to the information.
In an embodiment, after receiving an operation of selecting a set of machines from an organization structure, before receiving an operation of triggering a start option, the method may further include: exposing at least one of a name of the selected set of machines, names of all machines in the set of machines, a work path, and descriptive information for the input variable.
In the embodiment of the present application, the selected set of machines is shown to include three elements, which are: a name of the set of machines, a username and password common to the set of machines, and a work path common to the set of machines.
Referring to fig. 5, in block 520, a plurality of items of information are sequentially shown, specifically: the name "demo-module 1" of the selected machine set is shown in 521, the names of 2 machines in the machine set, in particular IP addresses 10.1.1.0 and 10.1.1.2, are shown in 522, the working path "/data/home/testenv/test _ soft/" common to the machine set is shown in 525, and descriptive information "wrapping an input variable in K-V format, such as port 8080", for the input variable is shown in 526, i.e. the format used when defining the input variable.
In addition, in view of security issues, for each machine set, a user name and a password common to the machine set are pre-configured, and when performing batch operations, options are further provided for the user to enter the user name and the password in 520, specifically, the user name "testenv" is entered in 523 and the password is entered in 524.
In another embodiment, the displaying of the dialog window specifically includes: the names of all machines in the selected set of machines, the work path, and descriptive information for altering the set of machines or the work path are presented in a dialog window.
Referring to fig. 3, in the sub-window 320 in the dialog window 300, the names of all machines in the selected set of machines are further shown, specifically, the information "i'm currently managed machine is 10.1.1.0 is output in 322; 10.1.1.2 ", and further indicative information is shown in 323: "please ensure these machines, you are the responsible person, otherwise the command cannot be executed successfully". At 324, a work path is shown, specifically "my current work directory is: data/home/testenv/test _ soft ".
In addition, in the embodiment of the present application, batch operation and management on all machines in the organization structure are implemented through a dialog window, so that a way for changing the machine set or the working path is provided through the dialog window, and in block 325, descriptive information "change the machine and the working directory needing to be operated through the machine management instruction @ m, @ cd, view specific usage and other machine management instruction use @ l" is shown. The description of the machine management instructions will be given in detail in the embodiment described in fig. 7 below.
In yet another embodiment, presenting the conversation window includes: and displaying at least one of a software library, a script library and a user instruction library corresponding to the selected machine set in a dialog window.
FIG. 6 is a diagram illustrating a dialog window according to another embodiment of the present invention. As shown in fig. 6, on the basis of the sub-windows 310 to 360 included in the dialog window shown in fig. 3, a sub-window 610 further includes software required for managing a machine set, wherein the software commonly used by the operator is used to separately establish a link button "public library software", and when the user clicks the "public library software", information of all the common software "public library software" is displayed in a block 601, and the "public library software" includes the following common software: . . . ". The child window 620 provides the user with the scripts needed to manage the collection of machines; the sub-window 630 provides the user with a user instruction library for solidifying and settling the flow frequently operated for the machine set, and the batch operation instructions frequently used by the user can be solidified by using any Linux instructions and the machine management instructions described below.
The sub-windows 610, 620 and 630 are all provided with an "upload" button, the user can click the button to upload corresponding software, scripts or user instructions, in addition, file names of the corresponding software, scripts or user instructions are displayed in the three windows, after the user clicks one of the file names, an operation menu is displayed in a floating window form, including operations of deletion, distribution, execution and the like, and the user can further select to perform batch operation.
Step 404, analyzing the operation, and determining an actuator and a machine set corresponding to the operation according to an analysis result of the operation, wherein the machine set comprises at least one machine.
In step 405, an executor is invoked, such that the executor performs an operation on the set of machines.
And 406, receiving the execution result returned by the executor, and displaying the execution result in the dialog window.
Here, the steps 404 and 406 correspond to the steps 202 and 204, and are not described herein again.
With the present embodiment, an organization structure of a plurality of machines is established in advance, and the organization structure includes a plurality of machine sets. Before the dialog window is presented, the organizational structure is presented and the start-up options for machine management are presented. And when receiving an operation of selecting a machine set from the organization structure and an operation of triggering the starting option, displaying the conversation window. The display dialogue window is triggered by displaying the organization structure window, so that a user can clearly know the whole system for batch machine management, and further batch management is carried out.
When the machine set is managed in batch through the conversation window, considering that a plurality of systems and software are generally deployed on the machine, aiming at common software and scripts in the machine set, a software library and a script library corresponding to the machine set are displayed in the conversation window, so that an operator can clearly know which software is needed on all machines included in the machine set, and install, uninstall, update and the like on the software and the scripts, and the user can conveniently and quickly operate the machine set. In addition, the user instruction library is displayed in the dialogue window, the common operation flow of operators is solidified, the common commands of the user can be clear at a glance through the dialogue window, and the convenience of the user in using the dialogue type machine management device is improved.
FIG. 7 is a flowchart illustrating a method for conversational machine management according to yet another embodiment of the invention. As shown in fig. 7, the method comprises the following steps:
step 701, at least one machine management instruction is configured in advance.
Wherein the at least one machine management instruction is used to switch at least one of a current set of machines, a current working directory, and a current user. In the embodiment of the application, the machine management instruction is a set of custom commands designed for meeting the requirements of flexibly switching machines, switching work catalogs, switching users and the like in the process of operating the machines in batches by operators.
In a specific application, in order to distinguish from a Linux command, when a machine management instruction is configured, the machine management instruction can be identified by @ as a prefix. Table 1 is a table of machine management instruction configurations according to an embodiment of the present invention. As shown in table 1, a total of 9 machine management instructions are configured, and the meaning, the necessary explanation and the example are given for each instruction.
TABLE 1 machine management Command configuration Table
For example, @ scp refers to distributing/copying software/scripts to a machine, and @ sh refers to executing/installing scripts. Through these machine management instructions, the user can generate custom scripts in a user instruction library. For example, custom script us _ demo _ sh, shown at 630 in fig. 6, env includes the following command lines:
# define variable
softName=$1
confName=$2
# distributing files to a Server
@scp soft$softName
@scp soft$confName
# execute installation script
@sh install.sh$softName$confName
It can be seen that the custom script in the user instruction library uses the configured machine management instruction, and calls the software in the software library and the script in the script library.
Step 702, a dialog window for machine management is displayed, and at least one machine management instruction is displayed in the dialog window.
Referring to fig. 6, a dialog window 600 is shown, which includes a sub-window 640, wherein a shortcut comprising a plurality of machine management instructions, such as 641 "set machine" for machine management instruction @ m, 642 "view instruction" for machine management instruction @ l, 643 "execute script" for machine management instruction @ sh, 644 "set directory" for machine management instruction @ cd, 645 "view directory" for machine management instruction @ pwd, 646 "install software" for machine management instruction @ yum.
Step 703, receiving an operation of selecting one machine management instruction from at least one machine management instruction through the dialog window.
As shown in fig. 6, when the user clicks a shortcut key of any one of the machine management commands in the sub-window 640, the interactive machine management device receives an operation of selecting the machine management command.
Step 704, analyzing the operation, and determining an actuator and a machine set corresponding to the operation according to an analysis result of the operation, where the machine set includes at least one machine.
Step 705, invoke the executor to cause the executor to perform operations on the set of machines.
And step 706, receiving the execution result returned by the executor, and displaying the execution result in the dialog window.
Here, the steps 704-706 correspond to the steps 202-204 described above, and are not described herein again.
Through the embodiment, at least one machine management instruction is configured for machine batch operation and is displayed in the dialogue window, so that the user can conveniently and quickly operate the machine management instructions, the machine management instructions are flexibly switched to the machine, the work catalog or the user to be processed, any management operation on all machines can be realized through the single dialogue window, and the efficiency of batch processing is improved.
With respect to the above processing procedure of the parsing operation in step 202, fig. 8 is an exemplary flowchart of the parsing operation according to an embodiment of the present invention. As shown in fig. 8, the method comprises the following steps:
step 801, determine if the operation is a valid input.
In the embodiment of the application, the operation input by the user comprises file uploading by the user, Linux instruction input by the user and machine management instruction input by the user. And judging whether the input instruction is valid input, specifically judging whether the input instruction is legal or not and judging whether the file is executable or not.
And step 802, when the operation is judged to be invalid input, displaying an invalid operation prompt message in a conversation window.
Referring to fig. 3, the invalid operation prompting message is presented in the sub-window 320 so that the user can input the correct operation again according to the message after seeing it.
And 803, when the operation is judged to be the effective input, generating an input message according to the operation.
In the embodiment of the application, the message type is determined according to the content of the operation, and the input message comprises the message type and the content of the operation. The message type is any one of a file, a machine management instruction or a Linux instruction.
In one embodiment, the message format of the configuration input message is json object markup (json) format, specifically { "msgType": wherein "msgType" is used to identify the message type, and there may be 3 values: linux commands ("cmd"), machine management instructions ("system cmd"), and files ("file"); "content" is used to identify the content of an operation. For example, when the user inputs the linux instruction "whoami", the generated input message is { "msgType": "cmd", "content": "whoami" }.
At step 804, a message handler corresponding to the incoming message is determined.
In the embodiment of the application, a corresponding message processor is configured for an input message. A message handler corresponding to the incoming message may be determined based on the message type. As described above, the message types include 3 types: file, machine management instruction and Linux instruction, then the corresponding message processors are file message processor, machine management instruction message processor and Linux instruction message processor, respectively.
Step 805, the message handler is invoked, so that the message handler processes the input message and generates a processing result message.
In the embodiment of the application, the processing performed by the message processor is to determine whether the input message is valid. For example, when the message type is file (file), the file type input message is saved and uploaded to the local after the message processor judges the input message as a valid message.
The processing result message includes the input message and additional information related to the operation. For example, the processing result message includes a message type, content of the operation, and a set of machines corresponding to the operation. As another example, the processing result message includes a message type, content of the operation, a set of machines corresponding to the operation, a user name corresponding to the set of machines, a password, and a work path. For example, for an input message { "msgType": "cmd", "content": "whoamine", the type of which is a Linux instruction, then after the Linux instruction message processor completes the processing, the returned processing result message is { "msgType": "cmd", "content": "whoamine", "user": "test", "password": "test", "host": [ "10.0.0.1" ], and "path":/tmp ". Here, "host" [ "10.0.0.1" ] indicates that the machine set includes one machine, whose IP address is 10.0.0.1.
Step 806, determining an executor corresponding to the input message, and sending the processing result message to the executor, so that the executor executes an operation according to the processing result message.
In the embodiment of the application, a corresponding executor is also configured for the input message, and is used for executing specific operations. The executor corresponding to the input message may be determined according to the message type. When the message type is Linux instruction and file, the corresponding message processor is Linux instruction executor. When the message type is a machine management instruction, the corresponding message processor is a machine management instruction executor.
And the executor reads the machine set and the operation content according to the received processing result message, and executes the operation content on the machine set to obtain an execution result.
In practice, step 802 may transmit the result of the determination to a controller, which controls the display of the invalid operation prompting message in the dialog window. In step 806, the controller receives the processing result message from the message processor, determines an actuator corresponding to the input message according to the message type, and transmits the processing result message to the actuator.
FIG. 9 is a block diagram of an example of an interactive machine management device according to the present invention. As shown in fig. 9, the conversational machine management apparatus 900 includes a presentation module 910, a user interface module 920, a parsing module 930, a calling module 940, and a receiving module 950, wherein,
the display module 910 is configured to display a dialog window for machine management;
the user interface module 920 is configured to receive an input operation through the dialog window displayed by the display module 910;
the parsing module 930 is configured to parse the operation received by the user interface module 920, and determine, according to a parsing result of the operation, an actuator and a machine set corresponding to the operation, where the machine set includes at least one machine;
the invoking module 940 is configured to invoke the executor determined by the parsing module 930, so that the executor performs an operation on the machine set; and a process for the preparation of a coating,
the receiving module 950 is configured to receive an execution result returned by the executor;
the display module 910 is configured to display the execution result received by the receiving module 950 in a dialog window.
FIG. 10 is a block diagram of an interactive machine management device according to another embodiment of the present invention. The interactive device management apparatus 1000 is the interactive device management apparatus 900 shown in fig. 9, and further includes: a management module 1010, a configuration module 1020, and a determination module 1030.
In one embodiment, the management module 1010 is configured to pre-establish an organization structure of a plurality of machines, where the organization structure includes a plurality of machine sets;
the presentation module 910 is further configured to, before presenting the dialog window, present the organization structure established by the management module 1010 and present the start option for machine management; and when receiving an operation of selecting a machine set from the organization structure and an operation of triggering the starting option, displaying the conversation window.
In an embodiment, the presentation module 910 is further configured to present at least one of a name of the selected set of machines, names of all machines in the set of machines, a work path, and descriptive information for the input variable.
In one embodiment, the presentation module 910 is configured to present, in a dialog window, names of all machines in the selected set of machines, a work path, and descriptive information for modifying the set of machines or the work path.
In one embodiment, the presentation module 910 is configured to present at least one of a software library, a script library, and a user instruction library corresponding to the selected machine set in a dialog window.
In one embodiment, the configuration module 1020 is configured to pre-configure at least one machine management instruction;
the presentation module 910 is further configured to present, in a dialog window, at least one machine management instruction configured by the configuration module 1020;
the user interface module 920 is configured to receive an operation of selecting one machine management instruction from at least one machine management instruction through the dialog window displayed by the display module 910.
In an embodiment, the parsing module 930 is configured to generate an input message according to the operation; determining a message processor corresponding to the input message, and calling the message processor to enable the message processor to process the input message and generate a processing result message; and determining an actuator corresponding to the input message, and sending the processing result message to the actuator so that the actuator executes operation according to the processing result message.
In an embodiment, the determining module 1030 is configured to determine whether the operation received by the user interface module 920 is a valid input;
the parsing module 930 is configured to, when the determining module 1030 determines that the operation is the valid input, generate an input message according to the operation;
the presentation module 910 is further configured to present an invalid operation prompting message in the dialog window when the determination module 1030 determines that the operation is an invalid input.
FIG. 11 is a block diagram of an interactive machine management device according to another embodiment of the present invention. The interactive machine management apparatus 1100 may include: a processor 1110, a memory 1120, a port 1130, and a bus 1140. The processor 1110 and the memory 1120 are interconnected by a bus 1140. Processor 1110 can receive and transmit data via port 1130. Wherein,
the processor 1110 is configured to execute modules of machine-readable instructions stored by the memory 1120.
Memory 1120 stores modules of machine-readable instructions executable by processor 1110. The modules of instructions executable by processor 1110 include: a presentation module 1121, a user interface module 1122, a parsing module 1123, a calling module 1124, and a receiving module 1125. Wherein,
the presentation module 1121, when executed by the processor 1110, may be: presenting a dialog window for machine management;
user interface module 1122, when executed by processor 1110, may be: receiving an input operation through a dialog window displayed by the display module 1121;
parsing module 1123, when executed by processor 1110, may be: analyzing the operation received by the user interface module 1122, and determining an actuator and a machine set corresponding to the operation according to an analysis result of the operation, where the machine set includes at least one machine;
the invocation module 1124 when executed by the processor 1110 may be: invoking the executor determined by the parsing module 1123 to enable the executor to execute the operation on the machine set;
the receiving module 1125, when executed by the processor 1110, may be: receiving an execution result returned by the executor;
the presentation module 1121, when executed by the processor 1110, may further be: the execution result received by the receiving module 1125 is shown in a dialog window.
In one embodiment, the instruction modules executable by processor 1110 further include: a management module 1126; wherein the management module 1126, when executed by the processor 1110, may be: the method comprises the steps of establishing an organization structure of a plurality of machines in advance, wherein the organization structure comprises a plurality of machine sets;
the presentation module 1121, when executed by the processor 1110, may further be: before presenting the dialog window, presenting the organization structure established by the management module 1126 and presenting the start-up options for machine management; and when receiving an operation of selecting a machine set from the organization structure and an operation of triggering the starting option, displaying the conversation window.
In one embodiment, the instruction modules executable by processor 1110 further include: a configuration module 1127. Wherein the configuration module 1127, when executed by the processor 1110, may be: for pre-configuring at least one machine management instruction;
the presentation module 1121, when executed by the processor 1110, may further be: presenting at least one machine management instruction configured by the configuration module 1127 in a dialog window;
user interface module 1122, when executed by processor 1110, may be: the dialog window displayed by the display module 1121 receives an operation of selecting one machine management instruction from at least one machine management instruction.
In one embodiment, the instruction modules executable by processor 1110 further include: a decision block 1128. Wherein,
the determining module 1128, when executed by the processor 1110, may be: for determining whether the operation received by the user interface module 1122 is a valid input;
parsing module 1123, when executed by processor 1110, may be: when the judging module 1128 judges that the operation is the valid input, generating an input message according to the operation;
the presentation module 1121, when executed by the processor 1110, may further be: when the determining module 1128 determines that the operation is an invalid input, an invalid operation prompting message is displayed in the dialog window.
It can be seen that the instruction modules stored in the memory 1120, when executed by the processor 1110, can implement various functions of the presentation module, the user interface module, the parsing module, the calling module, the receiving module, the management module, the configuration module and the determining module in the foregoing embodiments.
In the above device and system embodiments, the specific method for each module and unit to implement its own function is described in the method embodiment, and is not described here again.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
In addition, each of the embodiments of the present invention can be realized by a data processing program executed by a data processing apparatus such as a computer. It is clear that the data processing program constitutes the invention. Further, the data processing program, which is generally stored in one storage medium, is executed by directly reading the program out of the storage medium or by installing or copying the program into a storage device (such as a hard disk and/or a memory) of the data processing device. Such a storage medium therefore also constitutes the present invention. The storage medium may use any type of recording means, such as a paper storage medium (e.g., paper tape, etc.), a magnetic storage medium (e.g., a flexible disk, a hard disk, a flash memory, etc.), an optical storage medium (e.g., a CD-ROM, etc.), a magneto-optical storage medium (e.g., an MO, etc.), and the like.
The invention therefore also discloses a storage medium in which a data processing program is stored which is designed to carry out any one of the embodiments of the method according to the invention described above.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (15)

1. A method for conversational machine management, comprising:
displaying a dialog window for machine management, and receiving input operation through the dialog window;
analyzing the operation, and determining an actuator and a machine set corresponding to the operation according to an analysis result of the operation, wherein the machine set comprises at least one machine;
invoking the executor to cause the executor to perform the operation on the set of machines; and a process for the preparation of a coating,
and receiving an execution result returned by the executor, and displaying the execution result in the dialog window.
2. The method of claim 1, further comprising:
pre-establishing an organization structure of a plurality of machines, wherein the organization structure comprises a plurality of machine sets;
before the dialog window is displayed, the organization structure is displayed, and a starting option for machine management is displayed;
the presenting a conversation window for machine management includes:
and when receiving an operation of selecting a machine set from the organization structure and an operation of triggering the starting option, displaying the conversation window.
3. The method of claim 2, further comprising, after receiving an operation to select a set of machines from the organizational structure:
exposing at least one of a name of the selected set of machines, names of all machines in the set of machines, a work path, and descriptive information for the input variable.
4. The method of claim 2, wherein said presenting the conversation window comprises:
and displaying the names of all machines in the selected machine set, the working paths and descriptive information for changing the machine set or the working paths in the dialogue window.
5. The method of claim 2, wherein said presenting the conversation window comprises:
and displaying at least one of a software library, a script library and a user instruction library corresponding to the selected machine set in the dialog window.
6. The method of claim 1, further comprising:
at least one machine management instruction is configured in advance;
presenting the at least one machine management instruction in the dialog window;
the operation of receiving input through the dialog window includes:
an operation of selecting one machine management instruction from the at least one machine management instruction is received.
7. The method of claim 6, wherein the at least one machine management instruction is to switch at least one of a current set of machines, a current working directory, and a current user.
8. The method of claim 1, wherein the parsing the operation comprises:
generating an input message according to the operation;
determining a message processor corresponding to the input message, and calling the message processor to enable the message processor to process the input message and generate a processing result message;
the determining, according to the analysis result of the operation, an actuator corresponding to the operation includes:
and determining an executor corresponding to the input message, and sending the processing result message to the executor, so that the executor executes the operation according to the processing result message.
9. The method of claim 8, wherein the generating an input message according to the operation comprises:
determining a message type according to the content of the operation, wherein the input message comprises the message type and the content of the operation;
the determining a message processor corresponding to the input message includes:
determining a message processor corresponding to the input message according to the message type;
the determining an actuator corresponding to the input message includes:
and determining an actuator corresponding to the input message according to the message type.
10. The method of claim 8, further comprising, prior to the generating an input message according to the operation:
judging whether the operation is valid input;
when the operation is judged to be effective input, generating the input message according to the operation;
and when the operation is judged to be invalid input, displaying an invalid operation prompt message in the conversation window.
11. An interactive machine management apparatus, comprising: a display module, a user interface module, a parsing module, a calling module and a receiving module, wherein,
the display module is used for displaying a conversation window for machine management;
the user interface module is used for receiving input operation through the dialog window displayed by the display module;
the analysis module is used for analyzing the operation received by the user interface module, and determining an actuator and a machine set corresponding to the operation according to the analysis result of the operation, wherein the machine set comprises at least one machine;
the calling module is used for calling the executor determined by the analysis module so as to enable the executor to execute the operation on the machine set; and a process for the preparation of a coating,
the receiving module is used for receiving the execution result returned by the executor;
the display module is used for displaying the execution result received by the receiving module in the conversation window.
12. The apparatus of claim 11, further comprising:
the management module is used for establishing an organization structure of a plurality of machines in advance, and the organization structure comprises a plurality of machine sets;
the display module is further used for displaying the organization structure established by the management module and displaying the starting option for machine management before displaying the conversation window; wherein the dialog window is presented when an operation of selecting a set of machines from the organizational structure and an operation of triggering the launch option are received.
13. The apparatus of claim 11, further comprising:
the configuration module is used for configuring at least one machine management instruction in advance;
the presentation module is further configured to present at least one machine management instruction configured by the configuration module in the dialog window;
the user interface module is used for receiving the operation of selecting one machine management instruction from the at least one machine management instruction through the conversation window displayed by the display module.
14. The apparatus of claim 11, further comprising:
the judging module is used for judging whether the operation received by the user interface module is valid input;
the analysis module is used for generating the input message according to the operation when the judgment module judges that the operation is effective input;
the display module is further configured to display an invalid operation prompt message in the dialog window when the determination module determines that the operation is an invalid input.
15. A computer-readable storage medium having stored thereon computer-readable instructions for causing at least one processor to perform the method of any one of claims 1 to 10.
CN201810144946.3A 2018-02-12 2018-02-12 Conversational machine management method and device Active CN108375964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810144946.3A CN108375964B (en) 2018-02-12 2018-02-12 Conversational machine management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810144946.3A CN108375964B (en) 2018-02-12 2018-02-12 Conversational machine management method and device

Publications (2)

Publication Number Publication Date
CN108375964A true CN108375964A (en) 2018-08-07
CN108375964B CN108375964B (en) 2021-03-02

Family

ID=63017800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810144946.3A Active CN108375964B (en) 2018-02-12 2018-02-12 Conversational machine management method and device

Country Status (1)

Country Link
CN (1) CN108375964B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110412953A (en) * 2019-07-03 2019-11-05 北京云迹科技有限公司 Industrial personal computer bulk management method and system
CN112256372A (en) * 2020-10-20 2021-01-22 北京字跳网络技术有限公司 Information processing method and device and electronic equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186405A (en) * 2013-02-25 2013-07-03 北京网御星云信息技术有限公司 Method and device for implementing unified control of equipment
CN105227340A (en) * 2014-12-05 2016-01-06 远聆(上海)信息科技有限公司 A kind of man-machine network information exchange method and system
JP2016015104A (en) * 2014-07-03 2016-01-28 株式会社オクトバ Batch admission processing device, batch admission processing method, and program
CN105516256A (en) * 2015-11-27 2016-04-20 北京锐安科技有限公司 Batch command operation method and device of Linux host
CN106249735A (en) * 2016-09-09 2016-12-21 合普新能源科技有限公司 The method controlling test and upgrading based on CAN card
CN106527840A (en) * 2015-09-11 2017-03-22 北京国双科技有限公司 Method and device for controlling distributed server
CN106713507A (en) * 2017-02-22 2017-05-24 上海斐讯数据通信技术有限公司 Management method and management system for batches of cloud terminal devices
CN106774205A (en) * 2016-12-21 2017-05-31 北京金风科创风电设备有限公司 Central monitoring equipment and fan monitoring method of intelligent wind power plant

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186405A (en) * 2013-02-25 2013-07-03 北京网御星云信息技术有限公司 Method and device for implementing unified control of equipment
JP2016015104A (en) * 2014-07-03 2016-01-28 株式会社オクトバ Batch admission processing device, batch admission processing method, and program
CN105227340A (en) * 2014-12-05 2016-01-06 远聆(上海)信息科技有限公司 A kind of man-machine network information exchange method and system
CN106527840A (en) * 2015-09-11 2017-03-22 北京国双科技有限公司 Method and device for controlling distributed server
CN105516256A (en) * 2015-11-27 2016-04-20 北京锐安科技有限公司 Batch command operation method and device of Linux host
CN106249735A (en) * 2016-09-09 2016-12-21 合普新能源科技有限公司 The method controlling test and upgrading based on CAN card
CN106774205A (en) * 2016-12-21 2017-05-31 北京金风科创风电设备有限公司 Central monitoring equipment and fan monitoring method of intelligent wind power plant
CN106713507A (en) * 2017-02-22 2017-05-24 上海斐讯数据通信技术有限公司 Management method and management system for batches of cloud terminal devices

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110412953A (en) * 2019-07-03 2019-11-05 北京云迹科技有限公司 Industrial personal computer bulk management method and system
CN112256372A (en) * 2020-10-20 2021-01-22 北京字跳网络技术有限公司 Information processing method and device and electronic equipment
CN112256372B (en) * 2020-10-20 2023-12-26 北京字跳网络技术有限公司 Information processing method and device and electronic equipment

Also Published As

Publication number Publication date
CN108375964B (en) 2021-03-02

Similar Documents

Publication Publication Date Title
CN106713003B (en) Virtual node creating method and device based on network topological graph
TW201315630A (en) Extensible scheme for operating vehicle head unit as extended interface for mobile device
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
CN113296798B (en) Service deployment method, device and readable storage medium
CN112328390B (en) Method, device and storage medium for automatically implementing cloud management platform
CN113626133B (en) Virtual machine control method, device, equipment and computer readable storage medium
CN108375964B (en) Conversational machine management method and device
KR101868712B1 (en) Multi-channel delivery platform
CN110825370A (en) Mobile terminal application development method, device and system
CN110928554A (en) Deployment method, device, equipment and storage medium
US10572213B2 (en) Universal application pinning
CN114338820A (en) Network access method, device, electronic equipment and storage medium
EP3890376B1 (en) Managing connections between a user device and peripheral devices
CN107547217B (en) Router service configuration method and router
CN109074273B (en) Automatic virtual input device
CN115454576B (en) Virtual machine process management method and system and electronic equipment
CN114726789A (en) Method, device, equipment and medium for traffic management and traffic management policy configuration
CN116627595A (en) Virtual machine creation method and related components
US20200192685A1 (en) Chat interface for resource management
WO2023115361A1 (en) Local to remote application switching
US20220397985A1 (en) Transparent Application Window
US11425203B2 (en) Commissioning a virtualized network function
US20180335894A1 (en) Messaging and orchestrating platform in a computer network environment
CN114827133A (en) Application software management method and device and computer
US20120252536A1 (en) Mobile terminal

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