Multi-host task management method and device
By automatically identifying and adding new online host information through the built-in scanning tool in the system, the problem of untimely manual maintenance of the host list in the existing technology is solved, and the efficiency and comprehensiveness of host management are improved.
Patent Information
- Application Number
- CN202410661622.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-27
- Publication Date
- 2024-09-20
AI Technical Summary
The existing technology relies on manual maintenance of the host list, resulting in untimely management of new hosts and the problem of untimeliness.
Through the built-in scanning tool in the system, newly online host information is automatically identified and added to the host management list to ensure that all hosts are managed in a timely manner.
It improves the efficiency and comprehensiveness of host management and avoids the problem of neglecting new online hosts due to untimely manual operations.
Smart Images

Figure CN118677765A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a multi-host task management method and device. Background Art
[0002] With the rapid development of information technology, the scale of enterprises is constantly expanding. As a result, the number of hosts increases, and each host performs its own tasks. In this case, based on the decentralized management problem of tasks on many hosts, it is necessary to establish a centralized management system to uniformly manage tasks on all hosts.
[0003] The current centralized management system relies on the administrator to set the target host list to be managed. The platform will perform management operations on the tasks on these target hosts, including but not limited to task synchronization, backup, task editing, and task distribution after task updates. However, relying on manual maintenance of the host list will inevitably miss the hosts that should be managed, such as not promptly adding new hosts to the system management list, which is somewhat untimely. Summary of the invention
[0004] In view of the above problems, the present invention provides a multi-host task management method and device, the main purpose of which is to solve the problem of relying on manual maintenance of the host list. This method may not be able to include new hosts into management in a timely manner, and there is a certain problem of untimeliness.
[0005] In order to solve the above technical problems, the present invention proposes the following solutions:
[0006] In a first aspect, the present invention provides a multi-host task management method, the method comprising:
[0007] Get the host information to be managed configured by the user;
[0008] Use the scanning function to check whether there is any new online host information;
[0009] If so, add the host information to be managed and the newly online host information to the host management list;
[0010] Manage tasks in the corresponding host according to the information of each host in the host management list.
[0011] In a second aspect, the present invention provides a multi-host task management device, the device comprising:
[0012] An acquisition unit, used to acquire the host information to be managed configured by the user;
[0013] A scanning unit, used to use a scanning function to scan whether there is information of a newly online host;
[0014] an adding unit, configured to add the host information to be managed acquired by the acquiring unit and the new online host information scanned by the scanning unit to the host management list if the scanning unit scans that the host exists;
[0015] The management unit is used to manage tasks in the corresponding host according to the information of each host added to the host management list by the adding unit.
[0016] In order to achieve the above-mentioned purpose, according to the third aspect of the present invention, a storage medium is provided, wherein the storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the multi-host task management method of the first aspect mentioned above.
[0017] In order to achieve the above object, according to a fourth aspect of the present invention, a processor is provided, wherein the processor is used to run a program, wherein the multi-host task management method of the first aspect is executed when the program is running.
[0018] According to a fifth aspect of the present invention, there is provided a computer program, which, when executed by a processor, implements the steps of the multi-host task management method of the first aspect.
[0019] By means of the above technical scheme, the present invention provides a multi-host task management method and device, in which the user account can configure the host information that needs to be managed, and then the system will collect the host information that needs to be managed configured by the user account. Secondly, by utilizing the built-in scanning function of the system, the newly online host information can be discovered in time, ensuring that these new hosts can be captured by the system even when they are not managed in time by the user. Subsequently, the system adds the host information to be managed and the newly online host information to the host management list. Finally, the system can perform task management operations on the host corresponding to each host information in this host management list. Compared with the prior art, the present invention automatically identifies the newly online host information through the system, effectively avoiding the problem of ignoring the newly online host due to untimely manual operation, thereby improving the efficiency and comprehensiveness of host management.
[0020] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0022] Figure 1 A flow chart of a multi-host task management method provided by an embodiment of the present invention is shown;
[0023] Figure 2 Another multi-host task management method flow chart provided by an embodiment of the present invention is shown;
[0024] Figure 3 A block diagram showing a composition of a multi-host task management device provided by an embodiment of the present invention;
[0025] Figure 4 A block diagram showing the composition of another multi-host task management device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0027] In view of the problem that the host list maintenance currently relies on manual work, this method may lead to untimely management of newly added hosts. In order to solve this problem, the present invention has a built-in scanning tool in the system. This scanning tool can timely discover newly online hosts that the user has not managed in time. In this way, the system can not only respond to the user's configured host requirements to be managed, but also automatically identify newly online hosts. This method significantly improves the efficiency and accuracy of host management and reduces the problems caused by untimely manual operations.
[0028] The above-mentioned system is a centralized management system. The centralized management system includes a client and a server, and the execution subject of the present invention is the server of the centralized management system. The client interface of the system allows users to add, delete hosts, close optional permissions of hosts, add, modify, delete tasks of hosts, configure task operations of hosts, etc. The centralized management system also has a built-in scanning function.
[0029] It should be noted that the above is only a brief description of the functions of the centralized management system, and the centralized management system of the present invention does not have only the above functions. The detailed functions of the centralized management system will be described in detail in the implementation method of a multi-host task management method provided by the present invention. The specific execution steps of the method are as follows: Figure 1 As shown, including:
[0030] 101. Obtain the host information to be managed configured by the user.
[0031] In this embodiment, the user can configure the information of the host to be managed through the client page of the centralized management system. After configuration, click Submit, and the server of the centralized management system can obtain the information of the host to be managed configured by the user, that is, the host information to be managed.
[0032] The user account of the user can be a common user account or an administrator account, and both the common user account and the administrator account have the right to configure the host information that they manage or know in the configuration of the host. In some embodiments, when the user has a task management demand for the host, such as modifying the task of the host on the client interface, at this time, the common user account can only manage the tasks corresponding to its own host, and cannot manage the tasks of other user accounts. The administrator account can, according to its own management authority scope, have the right to manage the tasks of all hosts within the scope. Through such permission settings, it is ensured that different user accounts can only operate within their authority scope.
[0033] 102. Use the scanning function to scan whether there is any new online host information.
[0034] In this step, the user account can pre-define and configure the network segment information to be maintained in the centralized management system. The network segment information includes the IP address range to be maintained, the purpose of the network segment, and the estimated time when the host is online. It should be noted that these network segment information needs to be approved after creation and can only be used after approval to ensure the accuracy and effectiveness of these network segment information to meet future network needs and management requirements.
[0035] After that, according to the expected time when the host will come online, a suitable IP address can be assigned to the newly online host within the IP address range to be maintained. In this way, when the new host is connected to the network, the centralized management system can automatically scan the information of the host based on the scanning function and manage and monitor the host accordingly.
[0036] In addition, if you want the centralized management system to manage and monitor the host accordingly, you need to implant a plug-in (agent) in the host's operating system. The role of this plug-in is to enhance the interaction between the centralized management system and the host. It allows the centralized management system to collect real-time information about the host, execute remote command operations on the host, and report the host's status information to the centralized management system. In this way, two-way task transmission and efficient information interaction between the host and the centralized management platform are achieved.
[0037] In addition, the centralized management system can use the scanning function to scan in a scheduled or real-time manner whether there is information about a newly online host that matches the network segment information to be maintained. If so, execute step 103. If not, execute subsequent steps based on the host to be managed configured by the user. The subsequent steps include at least adding the host information to be managed to the host management list and managing the tasks in the host corresponding to the host information to be managed.
[0038] Among them, the scanning function can be realized by a component built into the system.
[0039] 103. Add the host information to be managed and the newly online host information to the host management list.
[0040] In step 102, if the centralized management system detects the information of the newly online host, it will automatically add it to the host management list. In addition, the information of the host to be managed configured by the user account will also be added to the host management list. After the accuracy and security of the newly online host and the host to be managed are verified, the corresponding information of the two can be added to the host management list.
[0041] It should be noted that the newly online host and the hosts to be managed configured in the user account may be the same host. Therefore, after adding the information of the newly online host and the hosts to be managed to the host management list, the centralized management system needs to check them in the host management list.
[0042] If there is duplicate host information in the host management list, the centralized management system will only retain one of the host information in the host management list to ensure the uniqueness and accuracy of the host information in the host management list.
[0043] The host management list can be a fixed list pool in the centralized management system, which may also contain previously added host information. Therefore, when new online host information and host information to be managed are added to the list pool, their corresponding hosts will be managed together with the hosts corresponding to the previously added host information. In this way, the centralized management system can comprehensively and effectively monitor and manage all hosts in the network segment.
[0044] In addition, the host management list can also be dynamic and real-time, that is, the centralized management system will generate a host management list in real time based on the currently acquired host information. In this mode, the host management list only contains the host information currently acquired by the centralized management system, and does not include the host information that has been added before. This dynamic list design enables the system to reflect the host status in the network in real time.
[0045] 104. According to the information of each host in the host management list, manage the tasks in the corresponding host.
[0046] In this step, the centralized management system can manage the tasks in the host corresponding to each host information in the host management list, including but not limited to tasks synchronization, backup, and distribution.
[0047] When synchronizing tasks, the centralized management system can convert the task data in the host into a format that it can recognize and process. Similarly, when distributing tasks to the host, the centralized management system will also convert the tasks into a format that the host can recognize and execute to ensure the smooth execution of the host tasks.
[0048] In addition, to facilitate user operations, the client interface of the centralized management system provides the function of managing single or multiple host tasks at the same time. Through this interface, user accounts can easily monitor, adjust and optimize multiple host tasks with permissions at the same time to meet various network management needs. This centralized management method improves the efficiency and security of task management.
[0049] This embodiment uses task synchronization as an example to illustrate task management. When task management includes other management such as deletion and monitoring, the method in this embodiment can also be used for management.
[0050] In some examples, when a centralized management system performs task management, two methods can be used. One is for the user to trigger the corresponding script through the button operation on the page to perform task management. The other is to pre-deploy scripts in the centralized management system. These scripts will automatically run under certain conditions to capture and synchronize management tasks. No matter which method you choose - whether it is to trigger the script through a page button or to rely on pre-deployed scripts for automatic execution - the IP address of the host that needs to capture the task needs to be configured in advance to ensure the accuracy and effectiveness of the synchronization operation.
[0051] However, in the above two main methods - users trigger scripts through page buttons and centralized management systems automatically run pre-deployed scripts - both may be affected by permission restrictions in some cases. For example, hosts corresponding to certain IP addresses are not managed by the user account. Due to permission restrictions, these two methods may only be able to capture tasks within their respective permission ranges, thereby ignoring hosts outside the permission range of the user account or ignoring other hosts in the host management list. In order to deal with this situation, a task capture method for checking for gaps can be introduced. When the above two methods cannot fully cover all hosts, this method of checking for gaps will be enabled to capture tasks on ignored hosts to ensure the integrity and accuracy of task synchronization.
[0052] This method can be started after the above main methods (i.e. the user triggers the script through the page button or the system automatically runs the pre-deployed script) are executed. The specific plan is:
[0053] According to the host information to be managed set by the current user account, determine the target host information in the host management list except the management authority scope of the current user account;
[0054] Send a management application request to the management account corresponding to the target host information;
[0055] If the feedback corresponding to the management application request is allowed, a corresponding crawling script is generated according to the IP address of the target host information and a preset script template, and the crawling script is executed to obtain the management task corresponding to the target host information.
[0056] In one example, the management application request includes management permissions, such as deletion, synchronization, monitoring, etc., then the feedback corresponding to the management application request includes at least the permission of some management permissions, such as monitoring and synchronization are allowed, and deletion is not allowed. Correspondingly, when generating a crawling script, a crawling script with allowed management permissions will be generated based on the feedback, so that when executing the crawling script, the management tasks corresponding to the allowed management permissions can be obtained. For example, the management application request includes the management permissions of deletion, synchronization, and monitoring, and the corresponding feedback includes the management permissions that allow monitoring and synchronization, then the generated crawling script can only obtain the tasks of monitoring and synchronization. In one implementation method, the preset script template includes a management permission field. When the centralized management system receives the feedback corresponding to the management application request, it parses the feedback, obtains the allowed management permission field, and matches and fills it into the preset script template; then based on the filled script template, a crawling script corresponding to the allowed management permissions is generated.
[0057] In this way, it can be ensured that operations on the target host are performed on the basis of explicit authorization by the host, reducing the potential risk of illegal operations. Especially in a centralized management system with multiple users and multiple permissions, it can significantly improve the correct use of resources, protect sensitive data and system stability.
[0058] In addition to the above-mentioned task crawling method of checking for missing items and filling gaps with explicit authorization from the target host, since the centralized management system is specially designed and deployed by the enterprise to efficiently manage multiple hosts within it, the system can also automatically generate and execute the corresponding crawling script directly based on the IP address of the target host and the preset script template, without sending a management application request to the target host.
[0059] However, it is worth noting that the hosts within the enterprise may undertake specific business tasks. If the centralized management system performs task management operations without explicit authorization from the target host, potential risks may arise.
[0060] Therefore, the above two methods of task capture for checking for deficiencies and filling gaps - obtaining feedback corresponding to the target host's management application request and directly performing operations without sending a management application request to the target host, can evaluate whether it is necessary to obtain explicit authorization from the target host first according to the specific situation.
[0061] It should also be made clear that the two methods of users triggering scripts through page buttons or the system automatically running pre-deployed scripts can be used at the same time, or one or the other can be selected.
[0062] Based on the above Figure 1 It can be seen from the implementation method that the present invention provides a multi-host task management method, in which the user account can configure the host information that needs to be managed, and then the system will collect the host information that needs to be managed configured by the user account. Secondly, by utilizing the built-in scanning function of the system, the newly online host information can be discovered in time, ensuring that these new hosts can be captured by the system even when they are not managed in time by the user. Subsequently, the system adds the host information to be managed and the newly online host information to the host management list. Finally, the system can perform task management operations on the host corresponding to each host information in this host management list. Compared with the prior art, the present invention automatically identifies the newly online host information through the system, effectively avoiding the problem of ignoring the newly online host due to untimely manual operation, thereby improving the efficiency and comprehensiveness of host management.
[0063] Furthermore, as a Figure 1 The embodiment shown in the figure is refined and expanded. The embodiment of the present invention also provides another multi-host task management method, such as Figure 2 As shown, the specific steps are as follows:
[0064] 201. Obtain information of hosts to be managed configured by the user.
[0065] 202. Use the scanning function to scan whether there is any new online host information.
[0066] Among them, the implementation method of step 201 to step 202 is the same as that of step 101 to step 102, and can achieve the same technical effects and solve the same technical problems, and will not be repeated here.
[0067] 203. Verify whether the host to be managed corresponding to the host to be managed information and the newly online host corresponding to the newly online host information are manageable hosts.
[0068] It should be noted that in this embodiment, user accounts can maintain department group relationships in the centralized management system in advance. Each department in the department group corresponds to an IP address range. Each IP address in the IP address range has a corresponding IP status. The IP status of the IP address reflects whether the corresponding host is offline, online, or under maintenance. Each IP address corresponds to a host.
[0069] Therefore, in this step, the IP address in the host information can be verified to determine whether the host to be managed and the newly online host are manageable hosts. The address connectivity verification method, such as the Ping command, can be used for verification. The command sends an ICMP echo request to the IP address of the host to be managed and the newly online host. If the host responds to the request and returns an echo reply, it means that the IP address corresponding to the host is reachable and the host is a manageable host because it can communicate and interact with the centralized management system normally.
[0070] However, if the host does not respond to the request or returns a timeout error, this may indicate that the IP address corresponding to the host is unreachable or that the host is currently in an unmanageable state. In this case, the host can be temporarily defined as an unmanageable host because it may not be able to communicate and interact normally with the centralized management system for some reason (such as network failure, host failure, or configuration error, etc.). By verifying the IP address, the hosts to be managed and the newly launched hosts can be verified to ensure that only real and valid hosts can be included in the management scope. This step effectively filters out unmanageable or unqualified hosts, thereby reducing potential errors and unnecessary resource consumption during management and maintenance.
[0071] It should be noted that even if a host is identified as an unmanageable host during the current verification process, it does not mean that it will never be manageable. As the network environment and host status change, previously unmanageable hosts may become manageable in the future. Therefore, if the centralized management system subsequently obtains a host that is currently identified as unmanageable, it also needs to re-perform manageability verification to ensure that all manageable hosts can be included in the management scope.
[0072] Finally, if the host to be managed and the newly online host are identified as manageable hosts, step 204 is executed; if they are identified as unmanageable hosts, the unmanageable hosts are not processed, and only the hosts existing in the host management list are managed.
[0073] If some of the hosts to be managed and the newly-launched hosts are identified as manageable hosts and others are identified as unmanageable hosts, then step 204 may be performed based on the manageable hosts.
[0074] 204. Add the to-be-managed host information corresponding to the to-be-managed host that is a manageable host and the newly-online host information corresponding to the newly-online host to the host management list.
[0075] In this embodiment, after the host to be managed and the newly online host are identified as manageable hosts in step 203, their corresponding host information can be added to the host management list so that the host can be managed according to the host information later.
[0076] By adding the host information representing the host entity to the host management list, the centralized management system can connect and effectively manage the corresponding host based on this information. It should be clear that the host itself, as a physical or virtual entity, cannot be directly added to the management list; in fact, the host information that can identify and locate these entities is added to the list to achieve centralized management of the host.
[0077] The host information may include an IP address, an IP status corresponding to the IP address, and an operating system type corresponding to the host.
[0078] In this embodiment, the preferred host management list is a fixed list pool, which may contain previously configured host information.
[0079] It should be clarified that the "fixed list pool" here does not mean that the host information listed in it always remains unchanged, but that this list pool exists continuously as a "container". New host information can be added to this "container" at any time, and the host information that has been added and managed will also be retained. Therefore, the content of the list pool can be dynamically expanded, while it remains unchanged as a "container".
[0080] 205. Check whether there is host information to be removed in the host management list.
[0081] 206. Remove the host information to be removed from the host management list to obtain a target host management list.
[0082] In step 205 to step 206, in view of the fact that in this embodiment, the host management list is preferably set as a fixed list pool, which means that the list pool may contain previously configured host information, which may include offline host information that has been discontinued, host information that is undergoing maintenance, and normal online host information.
[0083] In addition, when configuring the host information to be managed, the user account may not check the IP status in the host information, so there is a possibility that some host information that is actually offline or under maintenance is configured.
[0084] Therefore, we need to perform an IP status check on each host information in the host management list in step 205 to determine whether there is host information that needs to be removed. The host information to be removed refers to the host information whose IP status is displayed as offline or under maintenance.
[0085] Once the host information to be removed is identified, it can be removed from the host management list in step 206, and the user-selectable permissions of the hosts corresponding to the host information on the client interface of the centralized management platform system are closed accordingly (these permissions cover various operations that the user account can perform on the host in the client interface). After this step, a target host management list can be obtained, which only contains manageable host information with an IP status of online.
[0086] Host removal can effectively avoid the occupation of invalid resources and significantly improve overall resource utilization. In addition, for hosts that are offline or under maintenance, closing their related optional permissions can prevent unnecessary misoperations on these hosts, further reduce the occupation of invalid resources, and ensure the efficiency and stability of system operation.
[0087] 207. According to the information of each host in the target host management list, manage the tasks in the corresponding host.
[0088] After obtaining the target host management list, the centralized management system will establish a connection with the host corresponding to the host information in the target host management list (it can be connected simultaneously or one by one, and simultaneous connection is preferred in the present invention). After the connection, the system will back up the task files in each host. After the backup is completed, the centralized management system will convert the task files in each host into a first target format that it can recognize and generate a first task file. Then, the first task file will be synchronized to the system's database and client interface. After the synchronization is completed, the centralized management system will disconnect from each host to reduce the resource consumption of the centralized management system.
[0089] When the centralized management system converts the task files in each host into the first target format recognizable by itself to generate the first task file, at least the following processes (i) to (v) are included:
[0090] (I): The operating system type of each host can be clarified, and the second target format applicable to these operating system types can be determined.
[0091] (ii) Identify the operating system type of the centralized management system and determine the first target format supported by the system type.
[0092] (III): Based on the determined second target format of each host and the first target format of the centralized management system, a bidirectional format converter is established for each pair of hosts and the centralized management system. This format converter has two main functions: one is to convert the task files on the host into the first target format that the centralized management system can recognize, and the other is to convert the tasks to be distributed by the centralized management system into the second target format that the host can recognize.
[0093] (IV): Using these format converters customized for each host, the task files in each host are converted into the first target format recognizable by the centralized management system, thereby generating the corresponding first task files.
[0094] (V): In order to ensure efficient operation of the system and convenience of subsequent maintenance, the operating system type of each host can be associated with the corresponding format converter, and this information can be stored in the database for subsequent query and use.
[0095] It should be clear that the preset format converter can be configured to be applicable to any system according to actual needs. This means that no matter what the operating system type of the host is, the corresponding format converter can be configured to ensure that the task file can be correctly converted and pushed between the host and the centralized management system. Such a design greatly enhances the compatibility and versatility of the system, so that the present invention can be widely used in various complex network environments.
[0096] In addition, the preset format converter has a certain degree of flexibility in deployment. It can be independent of the centralized management system and each host as a separate service or tool, or it can be deployed as an internal component of the centralized management system. This design enables the format converter to flexibly choose the deployment location according to actual needs and system architecture, so as to better meet the user's usage and management needs.
[0097] In this way, by setting a preset format converter between each pair of hosts and the centralized management system, it is possible to ensure that the issuance and execution of tasks are not restricted by the operating system environment, greatly improving the compatibility and universality of the system. In addition, the automated format conversion process eliminates the need for manual intervention and reduces the errors and time consumption caused by manual conversion of task formats.
[0098] When the centralized management system connects to each host in the target host management list, it will also monitor the operating system service status of each host, and identify whether there are IP addresses that frequently access each host by analyzing the service logs and network traffic data in the operating system service. For frequently accessed IP addresses, the centralized management system will perform a ban operation on the host, restricting the operation and access rights of the IP address on the host to prevent potential malicious behavior or unauthorized access.
[0099] The centralized management system will mark the IP status of the host that is frequently accessed by a certain IP address as under maintenance, and remove the host's information from the target host management list. In this way, the system can ensure that reliable and secure hosts are managed, avoid managing abnormal hosts, and improve the security and stability of the entire system.
[0100] In some examples, the user account can also configure the task files to be pushed for each authorized host through the client interface of the centralized management system. These task files to be pushed can be obtained by modifying, deleting or adding the first task file that has been synchronized to the centralized management system, that is, they are modified on the basis of the original synchronized task file. At the same time, the user account also has the right to generate a new task file completely independently for the authorized host.
[0101] In the client interface of the centralized management platform, there is a task configuration interface, which allows the user account to fill in the relevant content of the new task in detail, including the specific description of the task, the scheduled execution time, and the host resources required to be allocated. After completing the information filling, the centralized management platform will automatically generate a new task file based on this information.
[0102] At the same time, the centralized management system will detect in real time whether there are task files to be pushed for each host in the target host management list. When there are task files to be pushed for a host, the connection with the host can be reestablished.
[0103] After establishing a connection with the host, the centralized management system will back up the current task file being executed by the host. After the backup is completed, the centralized management system will parse the current task file into the first target format that it can recognize, obtain the current target task file, and synchronize the current target task file to the client interface and database.
[0104] Furthermore, the centralized management system can integrate the current target task file of the host with the task file to be pushed of the host to obtain the target task file corresponding to each host. In this way, it can be ensured that the task file finally pushed to each host reflects the latest task requirements and changes.
[0105] During the operation of the centralized management platform, when the current target task file needs to be integrated with the task file to be pushed by the host, the task contents in the two task files are actually merged to form a new target task file containing all tasks. This step effectively reduces the interruption or conflict that may be caused by task updates and switching, ensuring business continuity.
[0106] Subsequently, the centralized management system may perform a packaging operation on the target task files corresponding to each host according to the preset configuration, and obtain a packaged target task file corresponding to each host.
[0107] Finally, the centralized management system can parse the encapsulated target task files corresponding to each host into the second target format recognizable by each host and push them to each host. The specific steps are as follows:
[0108] Based on the pre-stored association between the operating system type and the format converter corresponding to each host, when pushing task files, the following process can be adopted to ensure the accuracy of format conversion and smooth push:
[0109] (1): You can obtain the current operating system type of each host.
[0110] (2): According to the operating system type of each host, a pre-stored preset format converter corresponding to the host is matched in the database.
[0111] (3): For each host, the corresponding preset format converter can be used to parse the encapsulated target task file in the centralized management system into a second target format that matches the host operating system, and the parsed file is pushed to the corresponding host.
[0112] For example, if the user account specifies in the client interface that when a task in the host fails to execute, a prompt message needs to be sent to the centralized management system, then the encapsulation process will add an execution statement (such as a method, function or corresponding code) for the corresponding task in the target task file, and the execution statement will be triggered when the task fails to execute, and a prompt message will be sent to the centralized management system. Through such encapsulation processing, the centralized management system can be informed in time when the task fails to execute, so as to take corresponding processing measures.
[0113] It should be noted that encapsulation can also be other specified processing of the task, which does not necessarily mean issuing a prompt when the execution fails, but can also be a notification of the execution progress, etc.
[0114] Finally, it should be made clear that the task file referred to in this embodiment is a comprehensive file that contains all the tasks that the host needs to execute. These tasks are integrated into a single task file in the form of programming statements, and each task describes its execution requirements and logic through specific statements.
[0115] Therefore, to add, modify or delete tasks for a host, the corresponding programming statements are added, deleted and modified in a comprehensive file.
[0116] Finally, it should be emphasized that the operations performed on each host mentioned in the present invention do not mean that the operations must be performed on all hosts in the target host management list. In fact, the present invention allows for targeted selection and management of specific hosts based on actual needs. Therefore, in practical applications, it is possible to choose which hosts to perform operations on, and which specific operations to perform. Although the term "each host" is used in the present invention, this is only to make it clear that the implementation process for the host in the present invention is consistent, and it does not require that the same operations be performed on all hosts.
[0117] In the present invention, the user account can edit the tasks of the host at the front end, and the actual synchronization, distribution and backup of the tasks of the host are performed by the back end of the centralized management system. In addition, no matter what operation is performed on the host in the centralized management system, it will not affect the task status being executed in the host.
[0118] Furthermore, as a response to the above Figure 1 In order to realize the method shown in the figure, the embodiment of the present invention also provides a multi-host task management device for Figure 1 The device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Figure 3 As shown, the device comprises:
[0119] The acquisition unit 301 is used to acquire the host information to be managed configured by the user;
[0120] A scanning unit 302 is used to use a scanning function to scan whether there is any new online host information;
[0121] The adding unit 303 is used to add the host information to be managed acquired by the acquiring unit 301 and the new online host information scanned by the scanning unit 302 to the host management list if the scanning unit 302 scans that it exists;
[0122] The management unit 304 is used to manage the tasks in the corresponding host according to the information of each host added to the host management list by the adding unit 303.
[0123] Furthermore, as a response to the above Figure 2 In order to realize the method shown in the figure, the embodiment of the present invention also provides another multi-host task management device for Figure 2 The device embodiment corresponds to the aforementioned method embodiment. For ease of reading, this device embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. Figure 4 As shown, the device comprises:
[0124] The acquisition unit 301 is used to acquire the host information to be managed configured by the user;
[0125] A scanning unit 302 is used to use a scanning function to scan whether there is any new online host information;
[0126] The adding unit 303 is used to add the host information to be managed acquired by the acquiring unit 301 and the new online host information scanned by the scanning unit 302 to the host management list if the scanning unit 302 scans that it exists;
[0127] The management unit 304 is used to manage the tasks in the corresponding host according to the information of each host added to the host management list by the adding unit 303.
[0128] In an optional implementation manner, the adding unit 303 includes:
[0129] The host verification module 3031 is used to verify whether the host to be managed corresponding to the host to be managed information and the newly online host corresponding to the newly online host information are manageable hosts according to the IP address in the host information;
[0130] The information adding module 3032 is used to add the host information to be managed corresponding to the host to be managed verified as a manageable host in the host verification module 3031 and the new online host information corresponding to the new online host to the host management list.
[0131] In an optional implementation manner, the host verification module 3031 is specifically used to:
[0132] Verify whether the IP addresses in the host information to be managed and the newly online host information are real IP addresses according to the address connectivity verification method;
[0133] If yes, the host to be managed and the newly-online host are determined to be manageable hosts.
[0134] In an optional implementation, after the adding unit 303 adds the to-be-managed host information and the newly-online host information to the host management list, the device further includes a host information removing unit 305, and the host information removing unit 305 includes:
[0135] A status detection module 3051 is used to detect whether there is host information to be removed in the host management list according to the IP status corresponding to the IP address in each host information, and the host information to be removed includes host information whose IP status is offline or under maintenance;
[0136] The host information removal module 3052 is used to remove the host information to be removed from the host management list if the status detection module 3051 detects existence, and close the host optional permissions corresponding to the host information to be removed, so as to obtain the target host management list.
[0137] In an optional implementation, the management unit 304 includes:
[0138] A host connection module 3041, used to connect to the corresponding host according to the host information in the target host management list;
[0139] The management file backup module 3042 is used to back up the task files in each host connected to the host connection module 3041;
[0140] A management file parsing module 3043, used for parsing the task file backed up by the file backup module 3042 into a first target format to obtain a first task file of each host;
[0141] The management file synchronization module 3044 is used to synchronize the first task file of each host obtained by the management file parsing module 3043 to the centralized management system database, and disconnect the connection with each host.
[0142] In an optional implementation manner, after the management file synchronization module 3044 executes the operation of synchronizing the first task file of each host to the centralized management system database and disconnecting the connection with each host, the device further includes a file pushing unit 306, and the file pushing unit 306 includes:
[0143] The file detection module 3061 is used to detect whether there is a task file to be pushed for the host corresponding to each host information in the target host management list;
[0144] The push file backup module 3062 is used to connect to each host according to the information of each host and back up the current task file being executed in each host if the file detection module 3061 detects that it exists;
[0145] The push file parsing module 3063 is used to parse the current task file of each host backed up by the push file backup module 3062 into the first target format to obtain the current target task file;
[0146] The file integration module 3064 is used to integrate the current target task file corresponding to each host obtained by the push file parsing module 3063 with the task file to be pushed to obtain the target task file corresponding to each host;
[0147] The file encapsulation module 3065 is used to encapsulate the target task file obtained by the file integration module 3064 according to a preset configuration to obtain the encapsulated target task file corresponding to each host;
[0148] The file pushing module 3066 is used to parse the encapsulated target task file corresponding to each host obtained by the file encapsulation module 3065 into a second target format recognizable by each host and then push it to each host.
[0149] In an optional implementation manner, the file push module 3066 is specifically used to:
[0150] Get the operating system type from each host information;
[0151] According to the operating system type, matching a preset format converter corresponding to each host;
[0152] For each host, the preset format converter is used to parse the encapsulated target task file into a corresponding second target format and then push it to the host. The second target format matches the operating system.
[0153] In an optional implementation, when connecting to each host according to each host information, the device further includes a host monitoring unit 307, and the host monitoring unit 307 includes:
[0154] The host monitoring module 3071 is used to monitor the system service status of the host corresponding to each host information in the target host management list to determine whether there is an IP address that frequently accesses the host;
[0155] The list management module 3072 is used to block the operation permission of the IP address in the host and mark the IP status of the host as under maintenance if the host monitoring module 3071 detects the existence of the IP address;
[0156] The information of the host is removed from the target host management list.
[0157] Furthermore, an embodiment of the present invention further provides a storage medium, wherein the storage medium is used to store a computer program, wherein when the computer program is running, the device where the storage medium is located is controlled to execute the above Figure 1-2 The multi-host task management method described in .
[0158] Furthermore, an embodiment of the present invention further provides a processor, the processor is used to run a program, wherein the program executes the above Figure 1-2 The multi-host task management method described in .
[0159] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0160] It is understandable that the related features in the above methods and devices can be referenced to each other. In addition, the "first", "second" and the like in the above embodiments are used to distinguish the embodiments, but do not represent the advantages and disadvantages of the embodiments.
[0161] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0162] The algorithm and display provided herein are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages can be utilized to realize the content of the present invention described herein, and the description of the above specific languages is for disclosing the best mode of the present invention.
[0163] In addition, the memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0164] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0165] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0166] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0167] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0168] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0169] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0170] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0171] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0172] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0173] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A multi-host task management method, characterized in that: The method comprises: Get the host information to be managed configured by the user; Use the scanning function to check whether there is any new online host information; If so, add the host information to be managed and the newly online host information to the host management list; According to the information of each host in the host management list, the tasks in the corresponding host are managed.
2. The method according to claim 1, characterized in that Adding the host information to be managed and the newly online host information to the host management list includes: Verify, based on the IP addresses in the host information, whether the host to be managed corresponding to the host to be managed information and the newly online host corresponding to the newly online host information are manageable hosts; The managed host information corresponding to the managed host and the newly online host information corresponding to the newly online host are added to the host management list.
3. The method according to claim 2, characterized in that Verify, based on the IP addresses in the host information, whether the host to be managed corresponding to the host to be managed information and the newly online host corresponding to the newly online host information are manageable hosts, including: Verify whether the IP addresses in the host information to be managed and the newly online host information are real IP addresses according to the address connectivity verification method; If yes, the host to be managed and the newly-online host are determined to be manageable hosts.
4. The method according to claim 1, characterized in that: After adding the host information to be managed and the newly online host information to the host management list, the method further includes: According to the IP status corresponding to the IP address in each host information, it is detected whether there is host information to be removed in the host management list, and the host information to be removed includes host information whose IP status is offline or under maintenance; If it exists, the host information to be removed is removed from the host management list, and the host optional authority corresponding to the host information to be removed is closed to obtain the target host management list.
5. The method according to claim 4, characterized in that According to the information of each host in the host management list, managing tasks in the corresponding host includes: Connecting to the corresponding host according to the information of each host in the target host management list; Back up the task files in each host; Parsing the task file into a first target format to obtain a first task file for each host; The first task file of each host is synchronized to the centralized management system database, and the connection with each host is disconnected.
6. The method according to claim 5, characterized in that After synchronizing the first task file of each host to the centralized management system database and disconnecting the connection with each host, the method further includes: Detect whether there is a task file to be pushed for a host corresponding to each host information in the target host management list; If it exists, connect to each host according to the host information and back up the current task files being executed in each host; Parsing the current task file of each host into the first target format to obtain a current target task file; Integrate the current target task file corresponding to each host with the task file to be pushed to obtain the target task file corresponding to each host; Encapsulating the target task file according to the preset configuration to obtain the encapsulated target task file corresponding to each host; The encapsulated target task file corresponding to each host is parsed into a second target format recognizable by each host and then pushed to each host.
7. The method according to claim 6, characterized in that Parsing the encapsulated target task file corresponding to each host into a second target format recognizable by each host and then pushing it to each host, including: Get the operating system type from each host information; According to the operating system type, matching a preset format converter corresponding to each host; For each host, the encapsulated target task file is parsed into a corresponding second target format by using the preset format converter and then pushed to the host, where the second target format matches the operating system.
8. A multi-host task management device, characterized in that: The device comprises: An acquisition unit, used to acquire the host information to be managed configured by the user; A scanning unit, used to use a scanning function to scan whether there is information of a newly online host; an adding unit, configured to add the host information to be managed acquired by the acquiring unit and the new online host information scanned by the scanning unit to the host management list if the scanning unit scans that the host exists; The management unit is used to manage tasks in the corresponding host according to the information of each host added to the host management list by the adding unit.
9. A storage medium, characterized in that: The storage medium includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the multi-host task management method according to any one of claims 1 to 7.
10. A processor, characterized in that: The processor is used to run a program, wherein the program, when running, executes the multi-host task management method as described in any one of claims 1 to claim 7.
