Machine operation and maintenance method and device, electronic equipment and storage medium
By introducing an operations and maintenance agent between the operations and maintenance server and the user's machine, and utilizing machine identification and communication address, the problems of heavy workload for operations and maintenance personnel and leakage of sensitive information are solved, achieving efficient operations and maintenance without the need for accounts and passwords, and improving privacy protection.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
- Filing Date
- 2021-07-21
- Publication Date
- 2026-04-24
AI Technical Summary
In existing technologies, maintenance personnel face a heavy workload when performing maintenance on user machines, and there is a high risk of sensitive information leakage, especially in cloud service provider scenarios, where effective maintenance cannot be carried out without accounts and passwords.
By introducing an operations and maintenance agent between the operations and maintenance server and the user's machine, and using machine identification and communication address, the system can automatically acquire the target operations and maintenance tasks and transmit the results, avoiding the need to enter account and password information, reducing the operational burden on operations and maintenance personnel, and improving the privacy protection of sensitive information.
It effectively reduces the operational burden on operations and maintenance personnel, minimizes the exposure of sensitive information, and enhances privacy protection during operations and maintenance. Especially in the context of cloud service providers, it enables effective operations and maintenance without the need for accounts and passwords.
Smart Images

Figure CN115701072B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of machine operation and maintenance, and more particularly to a machine operation and maintenance method, apparatus, electronic device and storage medium. Background Technology
[0002] Operations and maintenance (O&M) are essentially the operation and maintenance of machines at each stage of their lifecycle, aiming to achieve a mutually acceptable state in terms of cost, stability, and efficiency.
[0003] To operate the machine, existing maintenance methods typically require maintenance personnel to enter a username and password on the machine's interface to verify their permissions. Once both the username and password are verified, the personnel can log in and perform maintenance operations. It is evident that the current maintenance methods, requiring username and password verification, impose a significant operational burden on maintenance personnel. Summary of the Invention
[0004] This application provides a first type of machine operation and maintenance method, apparatus, electronic device and storage medium to solve the problem of heavy operational burden for operation and maintenance personnel when performing operation and maintenance in the prior art.
[0005] In a first aspect, this application provides a machine operation and maintenance method, characterized in that the method is applied to an operation and maintenance server, and the method includes: upon receiving a task acquisition request from a target user machine, searching for a target operation and maintenance task that matches the task acquisition request in a locally stored set of operation and maintenance tasks; sending the target operation and maintenance task to the target user machine according to the communication address provided in the task acquisition request; and receiving the operation and maintenance result from the target user machine, wherein the operation and maintenance result is obtained by the target user machine executing the target operation and maintenance task.
[0006] In an optional illustrative embodiment of this specification, finding the target operation and maintenance task that matches the task acquisition request in the locally stored set of operation and maintenance tasks includes: identifying the machine identifier carried in the task acquisition request, wherein the machine identifier is used to represent the target user machine among all machines; and selecting the operation and maintenance task that matches the machine identifier carried in the task acquisition request from the set of operation and maintenance tasks as the target operation and maintenance task.
[0007] In an optional illustrative embodiment of this specification, after receiving the operation and maintenance results of the target user machine, the method further includes: storing the operation and maintenance results, wherein the operation and maintenance results carry a machine identifier of the target user machine that generated the operation and maintenance results; upon receiving an operation and maintenance result retrieval request sent by the operation and maintenance device, finding the operation and maintenance result corresponding to the operation and maintenance result retrieval request based on the machine identifier carried in each stored operation and maintenance result; and sending the found operation and maintenance result to the operation and maintenance device that generated the operation and maintenance result retrieval request.
[0008] In an optional illustrative embodiment of this specification, each user machine in the machine set is a physical machine or a virtual machine running on the hardware resources of a physical machine. Each user machine runs an operation and maintenance agent. The task acquisition request is generated by the operation and maintenance agent of the target user machine. Before receiving the task acquisition request from the target user machine, the method further includes: assigning an operation and maintenance agent to the target user machine upon receiving an access request from the target user machine; determining the machine identifier of the target user machine; and sending the machine identifier of the target user machine to the operation and maintenance agent running on the user machine.
[0009] In an optional illustrative embodiment of this specification, before receiving a task acquisition request from the target user machine, the method further includes: receiving an operation and maintenance task sent by the target operation and maintenance device; and adding the received operation and maintenance task to the operation and maintenance task set.
[0010] Secondly, this application provides a second type of machine operation and maintenance method. The method is applied to a terminal, on which an operation and maintenance agent runs. The method includes: determining a communication address, where the communication address represents the address for receiving a target operation and maintenance task, the target operation and maintenance task being an operation and maintenance task executed by the target user machine when performing operation and maintenance on the target user machine; generating a task acquisition request, the task acquisition request carrying the communication address; sending the task acquisition request to an operation and maintenance server; receiving the target operation and maintenance task sent by the operation and maintenance server; acquiring the operation and maintenance result, the operation and maintenance result being obtained by the target user machine executing the target operation and maintenance task; and sending the operation and maintenance result to the operation and maintenance server.
[0011] Thirdly, this application provides a first type of machine operation and maintenance device, which is applied to an operation and maintenance server. The device includes: a task search module configured to: upon receiving a task retrieval request from a target user machine, search for a target operation and maintenance task that matches the task retrieval request in a locally stored set of operation and maintenance tasks; a target operation and maintenance task sending module configured to: send the target operation and maintenance task to the target user machine according to the communication address provided in the task retrieval request; and an operation and maintenance result receiving module configured to: receive the operation and maintenance result from the target user machine, wherein the operation and maintenance result is obtained by the target user machine executing the target operation and maintenance task.
[0012] Fourthly, a maintenance device for a second machine is provided. This device is applied to a terminal, on which a maintenance agent runs. The device includes: a communication address determination module configured to obtain a communication address, which represents the address for receiving a target maintenance task. The target maintenance task is a maintenance task executed by the target user machine when maintenance is performed on the target user machine; a task acquisition request generation module configured to generate a task acquisition request, which carries the communication address; a task acquisition request sending module configured to send the task acquisition request to the maintenance server; a target maintenance task receiving module configured to receive the target maintenance task sent by the maintenance server; a maintenance result acquisition module configured to acquire maintenance results, which are obtained by the target user machine executing the target maintenance task; and a maintenance result sending module configured to send the maintenance results to the maintenance server.
[0013] Fifthly, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; the memory is used to store computer programs; and the processor is used to execute the steps of the machine operation and maintenance method of any embodiment of the first aspect and / or the second aspect when executing the program stored in the memory.
[0014] In a sixth aspect, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of a machine maintenance method as described in any of the embodiments of the first and / or second aspects.
[0015] The technical solutions provided in this application have the following advantages compared with the prior art:
[0016] The machine operation and maintenance method provided in this application effectively reduces the operational burden on operation and maintenance personnel when performing operation and maintenance on user machines. In the machine operation and maintenance process described in this specification, the end corresponding to the user machine actively obtains the target operation and maintenance task from the operation and maintenance server; operation and maintenance personnel do not need to enter an account and corresponding password to log in to the user machine. Therefore, the machine operation and maintenance method in this specification effectively reduces the burden on operation and maintenance personnel. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 A schematic diagram illustrating a scenario involving a machine maintenance method provided in an embodiment of this application;
[0020] Figure 2 A flowchart illustrating a machine maintenance method provided in an embodiment of this application;
[0021] Figure 3 A schematic diagram illustrating the process of determining a machine identifier for a target user's machine, provided as an embodiment of this application, for a machine operation and maintenance method.
[0022] Figure 4 For corresponding Figure 2 A schematic diagram of the maintenance equipment for the first type of machine in the method process;
[0023] Figure 5 For corresponding Figure 2 A schematic diagram of the maintenance equipment for the second type of machine in the method process;
[0024] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0026] Typically, user machines are used to provide data processing resources for users to perform business operations. On the one hand, there is a certain degree of isolation between different user machines to ensure that different user machines provide data processing resources to different users; on the other hand, there is also a certain degree of isolation between user machines and maintenance personnel. Maintenance personnel need to log in to user machines with an account and password to improve the management of user machine access permissions and protect user machine privacy.
[0027] For a user's machine, periodic and multiple maintenance operations may be required. This means that maintenance personnel need to enter their account and password each time they perform maintenance, which increases the workload of maintenance personnel and also increases the risk of sensitive information such as account and password being exposed to others.
[0028] Furthermore, in some cases, sensitive information such as usernames and passwords serves two purposes: authenticating operations and maintenance personnel and representing their communication addresses. This is particularly relevant in scenarios where cloud service providers offer cloud services to users. Cloud service providers typically divide the hardware resources of cloud operations and maintenance servers (which can be physical machines) into multiple virtual machines. These virtual machines act as user machines, providing data processing resources to users. Without usernames and passwords, operations and maintenance personnel cannot obtain the communication addresses of the virtual machines, thus hindering their operations and maintenance activities.
[0029] In view of this, and to address the problems existing in the current technology, such as the heavy operational burden on maintenance personnel when performing maintenance on user machines, the significant risk of sensitive information leakage, and the inability to log in to user machines without an account and password, thus hindering maintenance operations, this manual presents the machine maintenance process.
[0030] Before explaining the machine maintenance methods in this manual, the scenarios and at least some of the concepts involved in this manual will be introduced first.
[0031] In this specification, the operation and maintenance server can interact with multiple user machines (optionally, this interaction can be achieved through a communication connection between the operation and maintenance server and the user machines). For example, the scenarios for the machine operation and maintenance methods described in this specification can be as follows: Figure 1 As shown, in Figure 1 In the scenario shown, the operations and maintenance server interacts with user machines 1 to n. For the sake of clarity, the following description uses any one of the user machines (hereinafter referred to as the target machine) as an example to illustrate the operations and maintenance process of the machine in this manual.
[0032] Corresponding to Figure 1 In the scenario illustrated, the hardware architecture involved in the machine operation and maintenance process described in this manual may include servers and terminals. The server and terminal can be electrically connected via a persistent connection. The terminal can serve as the hardware carrier for both the user machine and various executable programs running on the maintenance machine.
[0033] The business scenarios involved in the processes described in this specification may include cloud service providers. A terminal may correspond to one or more user machines. One user may correspond to one or more user machines. The data processing resources provided by the cloud service provider can be implemented through the user machines.
[0034] A user machine is a machine used to provide data processing capabilities to users. In some optional embodiments, a user machine may be a physical machine, in which case there is physical isolation between user machines; in other optional embodiments, several (one or more) of the multiple user machines may be several virtual machines that rely on the hardware resources of a physical machine to run, in which case there is partial physical isolation between user machines.
[0035] Because there is some information isolation between user machines and the operations and maintenance (O&M) server, an O&M agent can run on the user machine to enable interaction between them. This allows the user machine and the O&M server to communicate and connect through the O&M agent. When there are multiple user devices, there are also multiple O&M agents, with each O&M agent corresponding to a user machine.
[0036] This specification does not impose specific restrictions on the distribution of each user machine. For example, in one optional embodiment, each user machine may be centrally configured; in another optional embodiment, each user machine may be distributed.
[0037] The maintenance tasks described in this specification are tasks that the user machine needs to execute when monitoring the status of the user machine. In an optional embodiment of this specification, the maintenance task can be a shell script. After the user machine executes the maintenance task, it generates maintenance results corresponding to the maintenance task, which can represent the status of the user machine.
[0038] like Figure 2 As shown, the machine maintenance methods in this manual may include:
[0039] S200: The terminal determines the communication address.
[0040] In this specification, the terminal may be a physical machine. The terminal can provide hardware resources for operation and maintenance. The target operation and maintenance agent can use the terminal to perform at least part of the operation and maintenance process of the machine described in this specification. Therefore, the steps performed by the terminal below can all be regarded as being implemented under the management of the target operation and maintenance agent.
[0041] The target operations and maintenance agent mentioned in this manual refers to the operations and maintenance agent running on the target user's machine. The target operations and maintenance agent has certain management permissions over the target user's machine.
[0042] The communication address represents the address where the target maintenance task is received. The target maintenance task is the maintenance task executed by the target user machine when maintenance is performed on the target user machine. In one optional embodiment of this specification, the communication address may represent the address of the target maintenance agent when the maintenance server and the target maintenance agent communicate; in another optional embodiment of this specification, the communication address may represent the address of the target user machine running the target maintenance agent when the maintenance server and the target maintenance agent communicate.
[0043] Furthermore, in an optional embodiment described herein, the communication address can be fixed. After performing this step, the target maintenance agent can store the communication address locally. When performing machine maintenance procedures again subsequently, it is unnecessary to repeat this step; instead, the stored communication address is read directly from the local machine. In this embodiment, since the communication address does not need to be retrieved again, it saves the target maintenance agent's data processing capacity.
[0044] In another optional embodiment of this specification, the communication address is regenerated each time the machine is maintained. Therefore, the target maintenance agent needs to obtain the communication address again each time the machine is maintained. In this embodiment, since the communication address used each time the machine is maintained may not be the same, it helps to improve privacy protection during the machine maintenance process.
[0045] S202: The terminal generates a task retrieval request, which carries a communication address.
[0046] After obtaining the communication address, the target operation and maintenance agent adds the data corresponding to the communication address to the first specified field to obtain the task acquisition request. This process is implemented by the hardware resources provided by the terminal.
[0047] S204: The terminal sends a task acquisition request to the operation and maintenance server.
[0048] In optional embodiments of this specification, the target maintenance agent relies on a physical machine. For example, the target maintenance agent can be an application running on a physical machine (terminal). The target maintenance agent can then send task retrieval requests to the maintenance server through the physical interface of the physical machine.
[0049] In some optional illustrative implementations, the user machine may be a virtual machine. This could result in multiple virtual machines providing data processing capabilities based on the hardware resources of the same physical machine. In this case, multiple virtual machines may share the physical interface of a single physical machine. If the operations and maintenance server cannot obtain the communication address of the virtual machine, it will send the operations and maintenance task to the physical interface of the physical machine, instead of directly sending the task to a specific virtual machine corresponding to that physical machine.
[0050] By using the machine operation and maintenance methods described in this manual, the target operation and maintenance agent provides the communication address of the target user machine to the operation and maintenance server, which can effectively reduce the negative impact caused by information isolation between the operation and maintenance server and the user machine.
[0051] S206: When the operation and maintenance server receives a task retrieval request from the target user's machine, it searches for the target operation and maintenance task that matches the task retrieval request in the locally stored set of operation and maintenance tasks.
[0052] In this manual, the operation and maintenance server pre-stores a set of operation and maintenance tasks. Each operation and maintenance task to be executed by the user's machine is an element in the set of operation and maintenance tasks.
[0053] As can be seen from the foregoing, there may be multiple user machines interacting with the operations and maintenance server. Therefore, not all operations and maintenance tasks in the set of operations and maintenance tasks are necessarily required to be executed by the target user machine. In other words, some operations and maintenance tasks in the set of operations and maintenance tasks may be required to be executed by other user machines besides the target user machine.
[0054] In an optional embodiment of this specification, when generating a task acquisition request, the target operation and maintenance agent also obtains the machine identifier of the target user's machine, adds the machine identifier to a second specified field, and obtains the task acquisition request.
[0055] Subsequently, when the operations and maintenance server receives a task retrieval request, it parses the machine identifier from the second specified field in the task retrieval request and selects the operations and maintenance tasks that match the machine identifier in the operations and maintenance task set as the target operations and maintenance tasks.
[0056] In further optional embodiments of this specification, the operation and maintenance server communicates with multiple operation and maintenance devices, as exemplified by scenarios such as... Figure 1 As shown. In Figure 1 In this scenario, the operations and maintenance (O&M) server is communicatively connected to O&M devices 1 through m. One O&M device provides O&M services to one or more user machines, but not to other O&M devices. For example, O&M device 1 provides O&M services to user machine 1 and user machine 2; while O&M device m provides O&M services to user machine n.
[0057] To prevent confusion between maintenance tasks sent from various maintenance devices to the maintenance server, in an optional embodiment of this specification, the maintenance devices do not need to know the machine identifiers of the user machines requiring their maintenance services in advance. The maintenance server pre-configures a designated account for each maintenance device and stores the correspondence between the designated account and the machine identifier. Then, after receiving the maintenance results from the target user machine, if a maintenance result retrieval request is received from a maintenance device, the server searches for the maintenance result corresponding to the request based on the machine identifiers carried in the stored maintenance results and the correspondence between the designated account and the machine identifier. The found maintenance result is then sent to the maintenance device that generated the maintenance result retrieval request.
[0058] In another optional embodiment of this specification, before generating an operation and maintenance task, the operation and maintenance device obtains the machine identifier of the user machine that requires its operation and maintenance services. The operation and maintenance device adds the machine identifier of the user machine that requires its operation and maintenance services to a third specified field to obtain the operation and maintenance task, and sends the operation and maintenance task to the operation and maintenance server.
[0059] As can be seen, the process described in this document can establish a correspondence between the maintenance equipment and the user machine through the machine identifier, so that the maintenance server can determine the target maintenance task that matches the user machine in the maintenance task set (the machine identifier corresponding to the maintenance task is the same as the identifier of the target user machine).
[0060] In an optional embodiment, when the operations and maintenance server performs this step, it can identify the machine identifier carried in the task acquisition request, whereby the machine identifier represents the target user machine among all machines. From the set of operations and maintenance tasks, the operations and maintenance task that matches the machine identifier carried in the task acquisition request is selected as the target operations and maintenance task.
[0061] S208: The operations and maintenance server sends the target operations and maintenance task to the target user's machine according to the communication address provided in the task acquisition request.
[0062] This manual does not impose a specific limit on the number of target maintenance tasks that the maintenance server determines from the maintenance task set. Therefore, it is possible that the maintenance server may send multiple target maintenance tasks to the target user's machine.
[0063] Since the task retrieval request sent by the operations and maintenance agent to the operations and maintenance server carries a communication address, even if there is information isolation between the operations and maintenance server and the user machine, the operations and maintenance server can still send the target operations and maintenance task to the user machine corresponding to the target operations and maintenance task.
[0064] S210: The target operation and maintenance agent receives the target operation and maintenance task sent by the operation and maintenance server.
[0065] In this specification, the operation and maintenance agent can be used to realize the interaction between the operation and maintenance server and the target user machine. After the operation and maintenance server sends the target operation and maintenance task to the communication address, the target operation and maintenance agent can obtain the target operation and maintenance task from the communication address.
[0066] Optionally, the target maintenance agent can send the target maintenance task to the control unit of the target user machine, so that the user machine can execute the target maintenance task and generate maintenance results under the control of the control unit.
[0067] S212: Terminal obtains operation and maintenance results.
[0068] In one optional embodiment of this specification, after the target user machine generates the operation and maintenance results, it can store the results in a designated location, and the terminal (under the control of the target operation and maintenance agent) can retrieve the results from the designated location. In another optional embodiment of this specification, the target user equipment can send the generated operation and maintenance results to the target operation and maintenance agent.
[0069] S214: The terminal sends the maintenance results to the maintenance server.
[0070] If the operation and maintenance results can indicate the status of the user's machine to a certain extent, then after the target operation and maintenance agent sends the operation and maintenance results to the operation and maintenance server, the operation and maintenance personnel can obtain the operation and maintenance results from the operation and maintenance server to know the status of the user's machine.
[0071] In the machine maintenance method described herein, the user machine actively retrieves the target maintenance task from the maintenance server. This effectively avoids the need for maintenance personnel to enter their account and password when logging into the user machine, reducing their workload. Furthermore, since the maintenance server does not need to actively send the target maintenance task to the target user machine, it does not need to know the target user machine's communication address beforehand. This allows for a degree of isolation between the user machine's communication address and the maintenance personnel, reducing the exposure of the communication address. Therefore, the machine maintenance method described in this specification effectively reduces the burden on maintenance personnel and improves the privacy protection of sensitive information such as accounts, passwords, and communication addresses.
[0072] Since multiple maintenance devices may communicate with the maintenance server separately in real-world scenarios, in order for the maintenance server to identify the maintenance device corresponding to the maintenance result from among multiple maintenance devices, in an optional embodiment of this specification, after obtaining the maintenance result, the target maintenance agent adds the machine identifier of the target user's machine to the maintenance result, and then sends the maintenance result with the added machine identifier to the maintenance server.
[0073] After receiving the maintenance results, the maintenance server can identify the machine identifier carried in the maintenance results.
[0074] As can be seen, the machine operation and maintenance methods described in this manual eliminate the need for sensitive information such as accounts and passwords during the interaction between the operation and maintenance server and the operation and maintenance machine, effectively preventing information leakage during the interaction between the operation and maintenance server and the operation and maintenance machine.
[0075] After receiving the maintenance results, the target maintenance device can store them locally. When maintenance personnel need to retrieve the results, they can log into the device to obtain them and thus understand the status of the user's machine.
[0076] In an optional embodiment of this specification, maintenance personnel can log in to the target maintenance device using their authentication information. If the authentication information matches the corresponding information on the target maintenance device, the target maintenance device will display the maintenance results to the maintenance personnel. Therefore, the process in this specification achieves privacy protection for maintenance results by authenticating the maintenance personnel through the target maintenance device. This process does not require logging into the user's machine with an account and password, effectively avoiding excessive exposure of the user's machine.
[0077] In a further optional embodiment of this specification, the target maintenance device is not only used to display maintenance results to maintenance personnel, but also to obtain maintenance tasks from them. Specifically, the target maintenance device displays an interactive interface to the maintenance personnel (which may display the machine identifier of the user machine being maintained by the maintenance personnel) to guide them in generating maintenance tasks. The target maintenance device then sends the maintenance tasks to the maintenance server. After receiving the maintenance tasks from the target maintenance device, the maintenance server adds the received tasks to the maintenance task set, awaiting acquisition by the target maintenance agent.
[0078] As can be seen, the operations and maintenance server in this manual is used to provide services to the target user machines that interact with it during the operations and maintenance process. For user machines that have not previously established interaction with the operations and maintenance server, the following steps can be taken, such as... Figure 3 As shown, establish interaction with the operations and maintenance server:
[0079] S300: The operations and maintenance server receives an access request sent by the target user's machine.
[0080] S302: The operation and maintenance server assigns an operation and maintenance agent to the target user machine, so that the target operation and maintenance agent assigned to the target user machine runs on the target user machine.
[0081] S304: The operations and maintenance server detects whether the target operations and maintenance agent is running on the target user's machine. If yes, proceed to step S306. If no, repeat step S302, or continue the detection process until the result is yes.
[0082] S306: The operations and maintenance server determines the machine identifier of the target user's machine.
[0083] In this manual, the operation and maintenance server can determine the machine identifier for the target user machine through its own identification rules. The machine identifier is used to distinguish each user machine that interacts with the operation and maintenance server.
[0084] S308: The operations and maintenance server sends the machine identifier of the target user machine to the operations and maintenance agent running on the user machine, so that the operations and maintenance agent can carry the machine identifier in the task acquisition request when generating the task acquisition request in subsequent steps.
[0085] As can be seen, the machine operation and maintenance process described in this manual can effectively enable the operation and maintenance server to manage the user machines it interacts with.
[0086] Based on the same approach, this manual further provides a maintenance device for the first type of machine, applied to the terminal. For example... Figure 4 As shown, the maintenance device for the first type of machine includes one or more of the following modules:
[0087] The task lookup module 400 is configured to: upon receiving a task retrieval request from a target user machine, search for the target maintenance task that matches the task retrieval request in the locally stored set of maintenance tasks;
[0088] The target maintenance task sending module 402 is configured to send the target maintenance task to the target user's machine according to the communication address provided in the task acquisition request.
[0089] The operation and maintenance result receiving module 404 is configured to receive the operation and maintenance results of the target user machine, wherein the operation and maintenance results are obtained by the target user machine from performing the target operation and maintenance task.
[0090] In an optional illustrative embodiment of this specification, the task search module 400 is specifically configured to: identify the machine identifier carried in the task acquisition request, wherein the machine identifier is used to represent the target user machine among all machines; and select the operation and maintenance task that matches the machine identifier carried in the task acquisition request from the set of operation and maintenance tasks, as the target operation and maintenance task.
[0091] In an optional illustrative embodiment of this specification, the first type of machine maintenance device further includes a first interaction module configured to store maintenance results, wherein the maintenance results carry a machine identifier of the target user machine that generated the maintenance results; if a maintenance result retrieval request is received from the maintenance device, the maintenance result corresponding to the maintenance result retrieval request is found according to the machine identifier carried in each of the stored maintenance results; and the found maintenance result is sent to the maintenance device that generated the maintenance result retrieval request.
[0092] In one optional illustrative embodiment of this specification, each user machine in the machine set is a physical machine or a virtual machine that runs on the hardware resources of a physical machine. Each user machine has an operation and maintenance agent running on it, and the task acquisition request is generated by the operation and maintenance agent of the target user machine.
[0093] In an optional illustrative embodiment of this specification, the first type of machine operation and maintenance device further includes a machine identifier allocation module, configured to allocate an operation and maintenance agent to the target user machine upon receiving an access request sent by the target user machine; determine the machine identifier of the target user machine; and send the machine identifier of the target user machine to the operation and maintenance agent running on the user machine.
[0094] In an optional illustrative embodiment of this specification, the maintenance device for the first type of machine further includes a third interaction module configured to receive maintenance tasks sent by the target maintenance device and add the received maintenance tasks to the maintenance task set.
[0095] Based on the same approach, this specification further provides a maintenance device for the first type of machine. This maintenance device is applied to a terminal, and a maintenance agent runs on the terminal, such as... Figure 5 As shown, the machine's maintenance equipment includes one or more of the following modules:
[0096] The communication address determination module 500 is configured to: obtain the communication address, which represents the address for receiving the target maintenance task. The target maintenance task is the maintenance task executed by the target user machine when performing maintenance on the target user machine.
[0097] The task retrieval request generation module 502 is configured to generate a task retrieval request, which carries a communication address.
[0098] The task retrieval request sending module 504 is configured to send task retrieval requests to the operations and maintenance server.
[0099] The target maintenance task receiving module 506 is configured to receive target maintenance tasks sent by the maintenance server.
[0100] The operation and maintenance result acquisition module 508 is configured to: acquire operation and maintenance results, which are obtained by the target user's machine from the execution of the target operation and maintenance task;
[0101] The operation and maintenance result sending module 510 is configured to send the operation and maintenance results to the operation and maintenance server.
[0102] like Figure 6 As shown in the figure, this application provides an air conditioner control device, including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0103] Memory 113 is used to store computer programs;
[0104] In one embodiment of this application, when the processor 111 executes the program stored in the memory 113, it implements the machine operation and maintenance control method provided in any of the foregoing method embodiments, including:
[0105] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the machine operation and maintenance method provided in any of the foregoing method embodiments.
[0106] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0107] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for operating and maintaining a machine, characterized in that, The method is applied to an operation and maintenance server, and the method includes: Upon receiving a task retrieval request from a target user machine, the system searches for a target maintenance task matching the task retrieval request in a locally stored set of maintenance tasks. This includes: identifying the machine identifier carried in the task retrieval request, wherein the machine identifier represents the target user machine among all machines, and the target maintenance task is a maintenance task pre-stored in the maintenance server corresponding to the target user machine; and selecting the maintenance task matching the machine identifier carried in the task retrieval request from the set of maintenance tasks as the target maintenance task. The target maintenance task is sent to the target user's machine according to the communication address provided in the task acquisition request; Receive the operation and maintenance results of the target user machine, wherein the operation and maintenance results are obtained by the target user machine performing the target operation and maintenance task; Each user machine in all the machines is a physical machine or a virtual machine running on the hardware resources of a physical machine. Each user machine runs an operations and maintenance agent. The task retrieval request is generated by the operations and maintenance agent of the target user machine. Before receiving the task retrieval request from the target user machine, the method further includes: Upon receiving an access request from the target user machine, an operation and maintenance agent is assigned to the target user machine; Determine the machine identifier of the target user's machine; The machine identifier of the target user machine is sent to the operation and maintenance agent running on the user machine.
2. The method according to claim 1, characterized in that, After receiving the operation and maintenance results of the target user's machine, the method further includes: The operation and maintenance results are stored, wherein the operation and maintenance results carry the machine identifier of the target user machine that generated the operation and maintenance results; If a request to obtain operation and maintenance results is received from the operation and maintenance equipment, the operation and maintenance result corresponding to the request is found based on the machine identifier carried in each stored operation and maintenance result. The found maintenance results are sent to the maintenance device that generated the maintenance result retrieval request.
3. The method according to claim 1, characterized in that, Before receiving a task retrieval request from the target user's machine, the method further includes: Receive maintenance tasks sent by the target maintenance equipment; Add the received operation and maintenance tasks to the operation and maintenance task set.
4. A method for the operation and maintenance of a machine, characterized in that, The method is applied to a terminal that communicates with the maintenance server as described in claim 1, and the terminal runs an maintenance agent. The method includes: Determine the communication address, which represents the address for receiving the target maintenance task. The target maintenance task is the maintenance task executed by the target user machine when performing maintenance on the target user machine. Generate a task retrieval request, wherein the task retrieval request carries the communication address; The task acquisition request is sent to the operations and maintenance server so that the operations and maintenance server can identify the machine identifier carried in the task acquisition request. The machine identifier is used to represent the target user machine among all machines. The target operations and maintenance task is an operations and maintenance task corresponding to the target user machine that is pre-stored in the operations and maintenance server. From the set of operations and maintenance tasks, the operations and maintenance task that matches the machine identifier carried in the task acquisition request is selected as the target operations and maintenance task. Receive the target maintenance task sent by the maintenance server; Obtain the operation and maintenance results, which are obtained by the target user machine performing the target operation and maintenance task; The operation and maintenance results are sent to the operation and maintenance server.
5. A machine maintenance device, characterized in that, The device is used in the operation and maintenance server, and the device includes: The task search module is configured to: upon receiving a task retrieval request from a target user machine, search for a target maintenance task matching the task retrieval request in a locally stored set of maintenance tasks, including: identifying the machine identifier carried in the task retrieval request, wherein the machine identifier is used to represent the target user machine among all machines, and the target maintenance task is a maintenance task corresponding to the target user machine that is pre-stored in the maintenance server; and selecting the maintenance task matching the machine identifier carried in the task retrieval request from the set of maintenance tasks as the target maintenance task. The target maintenance task sending module is configured to send the target maintenance task to the target user machine according to the communication address provided in the task acquisition request; The operation and maintenance result receiving module is configured to receive the operation and maintenance result of the target user machine, wherein the operation and maintenance result is obtained by the target user machine performing the target operation and maintenance task; It also includes a module for performing the following steps before receiving a task acquisition request from a target user machine: upon receiving an access request from the target user machine, assigning an operation and maintenance agent to the target user machine; determining the machine identifier of the target user machine; and sending the machine identifier of the target user machine to the operation and maintenance agent running on the user machine, wherein each user machine is a physical machine or a virtual machine running on the hardware resources of a physical machine, and an operation and maintenance agent runs on each user machine, and the task acquisition request is generated by the operation and maintenance agent of the target user machine.
6. A machine maintenance device, characterized in that, The device is applied to a terminal, the terminal communicates with the maintenance server as described in claim 5, and the terminal runs an maintenance agent. The device includes: The communication address determination module is configured to: obtain a communication address, wherein the communication address represents the address for receiving the target maintenance task, and the target maintenance task is the maintenance task executed by the target user machine when performing maintenance on the target user machine; The task acquisition request generation module is configured to generate a task acquisition request, wherein the task acquisition request carries the communication address; The task acquisition request sending module is configured to: send the task acquisition request to the operation and maintenance server, so that the operation and maintenance server can identify the machine identifier carried in the task acquisition request, wherein the machine identifier is used to represent the target user machine among all machines, and the target operation and maintenance task is an operation and maintenance task corresponding to the target user machine that is pre-stored in the operation and maintenance server; and select the operation and maintenance task that matches the machine identifier carried in the task acquisition request from the set of operation and maintenance tasks, and use it as the target operation and maintenance task. The target maintenance task receiving module is configured to receive the target maintenance task sent by the maintenance server. The operation and maintenance result acquisition module is configured to acquire operation and maintenance results, wherein the operation and maintenance results are obtained by the target user machine executing the target operation and maintenance task; The operation and maintenance result sending module is configured to send the operation and maintenance results to the operation and maintenance server.
7. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in memory, it implements the steps of the operation and maintenance method described in any one of claims 1-3 or claim 4.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of any one of claims 1-3 or the operation and maintenance method described in claim 4.
Citation Information
Patent Citations
Ansible-based operation and maintenance method and related device
CN111061555A
Multi-node automatic operation and maintenance task processing method and system and storage medium
CN112506670A