Device control method and system

By introducing a communication center unit into the cloud computing system, monitoring the communication status of the agent components and reducing the amount of active data, the server data flow pressure problem caused by the large number of cloud servers is solved, and management efficiency and resource utilization are improved.

CN114401273BActive Publication Date: 2024-12-17CHINA CONSTRUCTION BANK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210055124.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-18
Publication Date
2024-12-17
Estimated Expiration
2042-01-18

AI Technical Summary

Technical Problem

In the field of cloud computing, when there are many cloud servers, the server needs to send periodic queries to a large number of Agent components when exploring, resulting in high data flow pressure, which may lead to server downtime and affect management efficiency.

Method used

The communication center unit is introduced to monitor the communication connection status between the agent component and the communication center unit, determine the component's operating status, and send the offline device identifier to the server, and the server performs further detection to reduce the amount of data during the detection process. and resource consumption.

Benefits of technology

It effectively reduces the data flow pressure on the server side, improves work efficiency, promptly detects abnormal equipment, reduces troubleshooting time, and improves resource utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114401273B_ABST
    Figure CN114401273B_ABST
Patent Text Reader

Abstract

The present invention discloses a device control method and system, the device control system includes: at least one managed device, a communication center unit and a server; each managed device is installed with a proxy component, each managed device is persistently connected to the communication center unit through the installed proxy component, and the communication center unit is connected to the server. The communication center unit determines the component operation status of each proxy component respectively, and the communication center unit sends the device identification of the managed device where each proxy component whose component operation status is offline is located to the server; the server determines the managed device whose device operation status is offline from the managed devices corresponding to each device identification. The present invention can reduce the amount of data that the server needs to send, process and respond to in the process of detecting the activity of each proxy component, effectively reduce its data flow pressure, and avoid the adverse consequences caused by data flow pressure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer science and technology, and in particular to a device control method and system. Background Art

[0002] In the field of cloud computing, there may be certain differences between different cloud servers, such as differences in operating systems, computing resource types, and application program interfaces. In order to hide the differences between different cloud servers and manage them in a unified manner, the existing technology can install agent components between different cloud servers, and use the agent components to manage and control different cloud servers in a unified manner.

[0003] Currently, the server used to manage the cloud server can use the liveness detection technology to determine the survival status, that is, the running status, of each Agent component. Specifically, in the current liveness detection technology, the server can perform periodic heartbeat status queries to each Agent component, and each Agent component can periodically return the corresponding status query response result to the server, and the server can determine whether the Agent component is alive based on whether the status query response result of the Agent component is received. It should be noted that the server can also determine whether the cloud server is abnormal based on the survival status of the Agent component.

[0004] However, when the number of cloud servers is large, the server needs to send periodic queries to a large number of Agent components during the detection period, and will also process the heartbeat query response results returned by a large number of Agent components. The data flow pressure on the server is large, which may lead to the adverse consequence of server downtime. Summary of the invention

[0005] In view of the above problems, the present invention provides a device control method and system that overcomes the above problems or at least partially solves the above problems. The technical solution is as follows:

[0006] A device control method is applied to a device control system, the device control system comprising: at least one managed device, a communication center unit and a server; each of the managed devices is installed with an agent component, each of the managed devices is persistently connected to the communication center unit through the installed agent component, and the communication center unit is connected to the server in a communication manner; the device control method comprises:

[0007] The communication center unit determines the component operation status of each of the proxy components respectively by monitoring the communication connection status between each of the proxy components and the communication center unit;

[0008] When it is determined that the component running state of at least one of the proxy components is in an offline state, the communication center unit sends the device identification of the managed device where each of the proxy components whose component running state is in an offline state is located to the server;

[0009] The server detects the device operation status of the managed devices corresponding to each device identifier respectively, and determines the managed devices whose device operation status is offline from the managed devices corresponding to each device identifier.

[0010] Optionally, the communication connection state includes a first state, where the first state is that the connection has been established and is in a normal communication state; the communication center unit determines the component operation state of each of the proxy components by monitoring the communication connection state between each of the proxy components and the communication center unit, including:

[0011] For any of the proxy components, when the communication center unit detects that the communication connection state between the proxy component and the communication center unit is the first state, the communication center unit determines that the component operation state of the proxy component is an online state.

[0012] Optionally, the communication connection state includes: a second state, a third state and / or a fourth state; the second state is that the connection is not established, the third state is that the connection is being closed, and the fourth state is that the connection is closed or cannot be opened;

[0013] The communication center unit determines the component operation status of each of the proxy components by monitoring the communication connection status between each of the proxy components and the communication center unit, including:

[0014] For any of the agent components, when the communication center unit detects that the communication connection state between the agent component and the communication center unit is the second state, the third state or the fourth state, the communication center unit determines that the component operation state of the agent component is offline.

[0015] Optionally, the device identifier is an IP address of the managed device; the server detects the device operation status of the managed device corresponding to each device identifier, including:

[0016] For any of the device identifiers, the server detects the device operating status of the managed device corresponding to the device identifier by performing a ping test on the managed device corresponding to the device identifier.

[0017] Optionally, the determining, from the managed devices corresponding to the device identifiers, the managed devices whose device operation status is offline includes:

[0018] The server determines the managed device that fails the ping test as the managed device whose device operation status is offline.

[0019] Optionally, the method further includes:

[0020] The server determines the managed device that passes the ping test as the managed device whose device operation status is online;

[0021] The server sends a self-start command to the agent component in the managed device whose device operation status is online, so as to control the component operation status of the agent component in the managed device whose device operation status is online to be online.

[0022] Optionally, the device control system further includes a configuration management unit, the configuration management unit stores a management range table, the management range table includes a device identifier of at least one host whose device operation status needs to be monitored; before the communication center unit determines the component operation status of each of the proxy components by monitoring the communication connection status between each of the proxy components and the communication center unit, the method further includes:

[0023] The server obtains the managed range table from the configuration management unit, and obtains the device identification of each host from the managed range table;

[0024] The server sends an agent component installation instruction to each host corresponding to the device identifier of each host, so that each host installs the agent component; the host after installing the agent component is the managed device.

[0025] Optionally, the method further includes:

[0026] The server sends the device identifier of the managed device whose device operation status is offline to the configuration management unit;

[0027] The configuration management unit deletes the device identifier of the managed device whose device operation status is offline in the managed range table, obtains a processed managed range table, and sends the processed managed range table to the communication center unit through the server;

[0028] The communication center unit disconnects the communication connection with the target proxy component, and the device identifier of the managed device where the target proxy component is located is not in the processed managed range table.

[0029] A device control system, comprising: at least one managed device, a communication center unit and a server; each of the managed devices is installed with an agent component, each of the managed devices is persistently connected to the communication center unit through the installed agent component, and the communication center unit is connected to the server in a communication manner;

[0030] The communication center unit determines the component operation status of each of the proxy components respectively by monitoring the communication connection status between each of the proxy components and the communication center unit;

[0031] When it is determined that the component running state of at least one of the proxy components is in an offline state, the communication center unit sends the device identification of the managed device where each of the proxy components whose component running state is in an offline state is located to the server;

[0032] The server detects the device operation status of the managed devices corresponding to each device identifier respectively, and determines the managed devices whose device operation status is offline from the managed devices corresponding to each device identifier.

[0033] Optionally, the communication connection state includes a first state, wherein the connection has been established and is in a normal communication state; the communication center unit determines the component operation state of each of the proxy components by monitoring the communication connection state between each of the proxy components and the communication center unit, and is set to:

[0034] For any of the proxy components, when the communication center unit detects that the communication connection state between the proxy component and the communication center unit is the first state, the communication center unit determines that the component operation state of the proxy component is an online state.

[0035] Optionally, the communication connection state includes: a second state, a third state and / or a fourth state; the second state is that the connection is not established, the third state is that the connection is being closed, and the fourth state is that the connection is closed or cannot be opened;

[0036] The communication center unit determines the component operation status of each of the proxy components by monitoring the communication connection status between each of the proxy components and the communication center unit, and is set as follows:

[0037] For any of the agent components, when the communication center unit detects that the communication connection state between the agent component and the communication center unit is the second state, the third state or the fourth state, the communication center unit determines that the component operation state of the agent component is offline.

[0038] Optionally, the device identifier is an IP address of the managed device; the server detects the device operation status of the managed device corresponding to each device identifier respectively, and is set as:

[0039] For any of the device identifiers, the server detects the device operating status of the managed device corresponding to the device identifier by performing a ping test on the managed device corresponding to the device identifier.

[0040] Optionally, the determining, from among the managed devices corresponding to the device identifiers, the managed devices whose device operation status is offline is configured as:

[0041] The server determines the managed device that fails the ping test as the managed device whose device operation status is offline.

[0042] Optionally, the server further determines the managed device that passes the ping test as the managed device whose device operation status is online;

[0043] The server sends a self-start command to the agent component in the managed device whose device operation status is online, so as to control the component operation status of the agent component in the managed device whose device operation status is online to be online.

[0044] Optionally, the device control system further includes a configuration management unit, in which a management range table is stored, and the management range table includes a device identification of at least one host whose device operation status needs to be monitored; before the communication center unit determines the component operation status of each proxy component by monitoring the communication connection status between each proxy component and the communication center unit, the server also obtains the management range table from the configuration management unit, and obtains the device identification of each host from the management range table;

[0045] The server sends an agent component installation instruction to each host corresponding to the device identifier of each host, so that each host installs the agent component; the host after installing the agent component is the managed device.

[0046] Optionally, the server further sends the device identifier of the managed device whose device operation status is offline to the configuration management unit;

[0047] The configuration management unit deletes the device identifier of the managed device whose device operation status is offline in the managed range table, obtains a processed managed range table, and sends the processed managed range table to the communication center unit through the server;

[0048] The communication center unit disconnects the communication connection with the target proxy component, and the device identifier of the managed device where the target proxy component is located is not in the processed managed range table.

[0049] The device control method and system proposed in this embodiment, the device control system includes: at least one managed device, a communication center unit and a server; each managed device is installed with an agent component, each managed device is persistently connected to the communication center unit through the installed agent component, and the communication center unit is connected to the server. The communication center unit determines the component operation status of each agent component by monitoring the communication connection status between each agent component and the communication center unit; when it is determined that the component operation status of at least one agent component is offline, the communication center unit sends the device identification of the managed device where each agent component with the component operation status of offline is located to the server; the server detects the device operation status of the managed device corresponding to each device identification, and determines the managed device with the device operation status of offline from the managed devices corresponding to each device identification. The present invention can reduce the amount of data that the server needs to send, process and respond to during the detection of each proxy component, effectively reduce its data flow pressure, avoid the adverse consequences caused by data flow pressure, and ensure the work efficiency of the server; for the proxy component detected to be in an offline state, the present invention can further detect the device operation status of the managed device where it is located, so as to determine the managed device whose device operation status is abnormal, that is, offline, and realize the detection of abnormal managed devices, so that technical personnel can timely discover abnormal managed devices and perform troubleshooting to ensure troubleshooting efficiency. For the proxy component whose component operation status is online, the present invention can eliminate the need to further detect the device operation status of the managed device where it is located, effectively reducing the consumption of detection resources and improving resource utilization.

[0050] 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 in accordance with 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

[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0052] Figure 1 A flow chart of a first device control method provided by an embodiment of the present invention is shown;

[0053] Figure 2 A flowchart of a third device control method provided by an embodiment of the present invention is shown;

[0054] Figure 3 A schematic structural diagram of a device control system provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0055] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0056] like Figure 1 As shown, this embodiment proposes a first device control method, which can be applied to a device control system. The device control system may include: at least one managed device, a communication center unit and a server; each managed device is installed with an agent component, each managed device is persistently connected to the communication center unit through the installed agent component, and the communication center unit is connected to the server; the device control method may include the following steps:

[0057] S101, the communication center unit determines the component operation status of each proxy component by monitoring the communication connection status between each proxy component and the communication center unit;

[0058] Among them, the managed device can be an electronic device whose operating status (such as shutdown and online) is to be monitored and operated and managed.

[0059] Optionally, the managed device may be an electronic device such as a cloud server, a mobile phone, and a tablet computer. The present invention does not limit the type of the managed device.

[0060] Optionally, the above-mentioned managed devices may be at least part of the cloud servers in the cluster cloud server.

[0061] Specifically, the present invention can first determine each managed device whose operating status needs to be monitored and operated and managed, and then install an agent component, namely, an Agent component, in each managed device.

[0062] Optionally, the Agent component may include one or more processes. Specifically, the Agent component may include a communication building process such as a core process, which may be used to build a two-way communication connection with the communication center unit;

[0063] Specifically, the Agent component may include a monitoring process such as a circled process, which is used to periodically monitor whether other processes in the Agent component are running normally. If it is detected that a process in the Agent component is not running normally, the circled process can trigger the non-operating process to start up automatically.

[0064] Specifically, the Agent component may include an upgrade process such as an upgrade process, which is used to upgrade the Agent component.

[0065] Optionally, a scheduled task can be set in the server and / or managed device to periodically monitor the operation status of each process in the Agent component. If a process is detected to be abnormally offline, the abnormally offline process can be triggered to automatically restart to ensure the normal operation of the Agent component.

[0066] The communication center unit may be a module or device for monitoring the survival status of each proxy component, ie, the running status of the component. It should be noted that the communication center unit may be a program code or a physical device.

[0067] Among them, the server can be used to perform operation and maintenance management and operation status monitoring of each managed device.

[0068] Specifically, after the Agent component is installed in a managed device, the Agent component can send a request to create a persistent connection to the communication center unit; after receiving the request, the communication center unit can create a persistent connection with the Agent component and return information about the created connection to the Agent component.

[0069] The persistent connection may be a Websocket connection. At this time, after the Agent component is installed in a managed device, the Agent component may send an http request to the communication center unit to create a persistent connection based on the Websocket persistent connection protocol.

[0070] Specifically, the communication center unit may use readystate to determine the communication connection status with a certain proxy component.

[0071] Optionally, the communication connection state includes a first state, where the connection is established and in a normal communication state; in this case, step S101 may include:

[0072] For any proxy component, when the communication center unit detects that the communication connection state between the proxy component and the communication center unit is in the first state, the communication center unit determines that the component operation state of the proxy component is in the online state.

[0073] Specifically, the communication center unit can monitor the communication connection status of each proxy component that is in communication connection with it, and can determine the component operation status of the corresponding proxy component according to the communication connection status. For example, for a first proxy component and a second proxy component that are in communication connection with the communication center unit, the communication center unit can monitor the communication connection status of the first proxy component and the communication connection status of the second proxy component, respectively, determine the component operation status of the first proxy component according to the communication connection status of the first proxy component, and determine the component operation status of the second proxy component according to the communication connection status of the second proxy component.

[0074] Specifically, when the communication center unit monitors that the communication connection state between a certain proxy component and itself is in the first state, the communication center unit may determine that the component operation state of the proxy component is in the online state.

[0075] Optionally, the communication connection state includes: a second state, a third state and / or a fourth state; the second state is that the connection is not established, the third state is that the connection is being closed, and the fourth state is that the connection is closed or cannot be opened; in this case, step S101 may include:

[0076] For any proxy component, when the communication center unit detects that the communication connection state between the proxy component and the communication center unit is the second state, the third state or the fourth state, the communication center unit determines that the component operation state of the proxy component is the offline state.

[0077] Specifically, when the communication center unit detects that the communication connection state between a certain proxy component and itself is in the second state, the third state or the fourth state, the communication center unit can determine that the component operation state of the proxy component is in the offline state.

[0078] S102: When it is determined that the component running state of at least one proxy component is in an offline state, the communication center unit sends the device identification of the managed device where each proxy component whose component running state is in an offline state is located to the server;

[0079] Specifically, when determining that the running state of a proxy component is an offline state, the communication center unit may obtain the device identification of the managed device where the proxy component is located, and send the device identification of the managed device to the server.

[0080] It is understandable that when it is determined that the component operation status of multiple proxy components is offline, the communication center unit can obtain the device identification of the managed devices where the multiple proxy components are located, and then send the obtained device identification of each managed device to the server. For example, when it is determined that the component operation status of the first proxy component and the second proxy component is offline, the communication center unit can obtain the device identification of the managed device where the first proxy component is located, and obtain the device identification of the managed device where the second proxy component is located.

[0081] It should be noted that, compared with the prior art, the server can receive the information sent by the communication center unit to inform the abnormal proxy component only when the communication center unit detects that the running state of the component is an offline proxy component, that is, an abnormal proxy component, without periodically sending status queries to each proxy component, and without periodically receiving the status query response results sent by each proxy component, and even more without processing the status query response results periodically sent by each proxy component. Therefore, the present invention can reduce the amount of data that the server needs to send, process and respond to in the process of detecting the activity of each proxy component, effectively reduce its data flow pressure, avoid the adverse consequences caused by data flow pressure, and ensure the work efficiency of the server.

[0082] Optionally, the device control system may further include: a message queue, and the communication center unit is connected to the server through the message queue; in this case, step S102 may include:

[0083] The communication center unit sends the device identifier of the managed device where each proxy component whose component operation status is offline is located to the message queue;

[0084] The server obtains each device ID from the message queue.

[0085] Optionally, the message queue can be a Kafka message queue. In this case, a device management component Ant-lss can be set in the server, which can subscribe to messages in the Kafka message queue. When the Kafka message queue receives a new message, that is, the device identifier of the managed device, the new message is read from the Kafka message queue to ensure the real-time acquisition of information.

[0086] S103, the server detects the device operation status of each managed device corresponding to each device identifier;

[0087] Specifically, the server may determine the managed device whose proxy component is in an offline state based on the device identification of the managed device received and sent by the communication center unit.

[0088] It should be noted that the offline of the proxy component may be caused by the offline of the managed device. In addition, in order to facilitate the visual management and real-time maintenance of the managed host, the online and offline status of the managed device needs to be regularly fed back to the operation and maintenance management personnel.

[0089] Specifically, the present invention can add a reconciliation mechanism to realize automatic troubleshooting of offline managed devices. In the reconciliation mechanism, the present invention can further detect the device operation status of the managed device where the proxy component is in an offline state, and determine the managed device whose device operation status is in an offline state from the managed device where the proxy component is in an offline state. At this time, the present invention can realize the automatic detection of abnormal, i.e., offline managed devices, and inform the technicians after detecting the abnormal managed devices, so that the technicians can timely discover the abnormal managed devices and perform troubleshooting, reduce the losses caused by the failure, and ensure the troubleshooting and maintenance efficiency, without the need to manually inspect the abnormal managed devices in multiple managed devices, reduce the pressure of human operation and maintenance management, and enhance the efficiency of automated management of managed devices. For the proxy component whose component operation status is online, the present invention can consider that the device operation status of the managed device where it is located is online, without further detecting the device operation status of the managed device where it is located, effectively reducing the consumption of detection resources and improving resource utilization.

[0090] S104. The server determines a managed device whose device operation status is offline from the managed devices corresponding to each device identifier.

[0091] Specifically, after detecting the device operating status of the managed devices corresponding to each device identifier, the server can determine the managed devices that are in an offline state.

[0092] It should be noted that the server can record the device operation status of each managed device in a table and output the table to the display screen for display, so as to inform the technicians of the device operation status of each managed device. When the device operation status of a managed device changes, the server can modify the device operation status of the managed device recorded in the table accordingly, and display the contents of the modified table on the display screen.

[0093] Optionally, in the second device control method proposed in this embodiment, the device identifier is the IP address of the managed device; in this case, step S103 may include:

[0094] For any device identification, the server detects the device operation status of the managed device corresponding to the device identification by performing a ping test on the managed device corresponding to the device identification.

[0095] Specifically, after receiving the device identification of the managed device sent by the communication center unit, the server can organize the received device identifications of each managed device into an EXCEL table, and then can perform a ping test on the corresponding managed device for the device identification of each managed device in the EXCEL table. For example, for the first device identification and the second device identification, the server can perform a ping test on the corresponding managed device for the first device identification, and perform a ping test on the corresponding managed device for the second device identification.

[0096] Optionally, in the second device control method described above, step S104 may include:

[0097] The server determines the managed devices that pass the ping test as managed devices whose running status is online.

[0098] The server sends a self-start command to the agent component in the managed device whose device operation status is online, so as to control the component operation status of the agent component in the managed device whose device operation status is online to be online.

[0099] Specifically, when the server performs a ping test on a managed device, if the ping is successful, it can be determined that the device operation status of the managed device is online, and at this time, it can be determined that the device operation status of the managed device is normal.

[0100] It should be noted that, for a managed device, if the component operation status of the agent component installed in the managed device is offline, and the device operation status of the managed device is online, it can be explained that the abnormality of the agent component is not caused by the managed device. At this time, the present invention can control the agent component to self-start and put it in an online state.

[0101] Optionally, for a managed device whose detected device operating status is online, the server may send a self-startup command to the agent component in the managed device through the communication center unit, thereby triggering the agent component to automatically start up and enter an online state.

[0102] Optionally, the proxy component may include a self-starting process such as an executor process, which is used to automatically start the proxy component when receiving a self-starting command sent by the server; of course, the present invention can also manually start the proxy component that needs to be started by manually starting it. In this case, the present invention can restore the online status of the proxy component in the managed device that is not offline after it goes offline due to an abnormality, thereby avoiding the inability to monitor and operate the managed device whose device operation status is online due to the abnormal offline of the proxy component.

[0103] Optionally, in the above-mentioned device control system, the server device may also communicate directly with each managed device without going through the communication center unit. In this case, for a managed device whose detected device operation status is online, the server may directly send a self-start command to the managed device, triggering the agent component in the managed device to automatically start and enter the online state.

[0104] Optionally, in the second device control method described above, step S104 may include:

[0105] The server determines the managed devices that fail the ping test as managed devices whose operating status is offline.

[0106] Specifically, when the server performs a ping test on a managed device, if the ping fails, it can be determined that the device operation status of the managed device is offline. At this time, the server can determine that the managed device that cannot be pinged is an abnormal device, output the device identifier of the managed device, and remind the technician to investigate and handle the abnormality of the managed device.

[0107] The device control method proposed in this embodiment can be applied to a device control system, which includes: at least one managed device, a communication center unit and a server; each managed device is installed with an agent component, each managed device is persistently connected to the communication center unit through the installed agent component, and the communication center unit is connected to the server. The communication center unit determines the component operation status of each agent component by monitoring the communication connection status between each agent component and the communication center unit; when it is determined that the component operation status of at least one agent component is offline, the communication center unit sends the device identification of the managed device where each agent component with the component operation status being offline is located to the server; the server detects the device operation status of the managed device corresponding to each device identification, and determines the managed device with the device operation status being offline from the managed devices corresponding to each device identification. The present invention can reduce the amount of data that the server needs to send, process and respond to during the detection of each proxy component, effectively reduce its data flow pressure, avoid the adverse consequences caused by data flow pressure, and ensure the work efficiency of the server; for the proxy component detected to be in an offline state, the present invention can further detect the device operation status of the managed device where it is located, so as to determine the managed device whose device operation status is abnormal, that is, offline, and realize the detection of abnormal managed devices, so that technical personnel can timely discover abnormal managed devices and perform troubleshooting to ensure troubleshooting efficiency. For the proxy component whose component operation status is online, the present invention can eliminate the need to further detect the device operation status of the managed device where it is located, effectively reducing the consumption of detection resources and improving resource utilization.

[0108] based on Figure 1 ,like Figure 2 As shown, this embodiment proposes a third device control method. In this method, the device control system also includes a configuration management unit, and the configuration management unit stores a management range table, and the management range table includes the device identification of at least one host whose device operation status needs to be monitored; at this time, before step S101, the method may also include:

[0109] S201, the server obtains a management scope table from the configuration management unit;

[0110] S202, the server obtains the device identification of each host from the managed range table;

[0111] The managed scope table may record the device identifiers of hosts whose device operating status needs to be monitored and whose operation and maintenance management needs to be performed.

[0112] It should be noted that the device identification recorded in the managed scope table can be formulated by technical personnel according to actual conditions, and the present invention is not limited to this.

[0113] Specifically, the server may obtain the management range table from the configuration management unit, and read the device identifier of each host from the management range table.

[0114] S203, the server sends an agent component installation instruction to each host corresponding to the device identifier of each host, so that each host installs the agent component; the host after the agent component is installed is a managed device.

[0115] Specifically, after reading the device identification of each host from the managed range table, the server can send the proxy component installation instruction to each host corresponding to each device identification, triggering each host to install the proxy component. The proxy component in each host can be sent by the server or issued in advance by other management components of the proxy component. The present invention does not limit the source of the proxy component in each host.

[0116] It is understandable that after the installation of the proxy component, the host can be Figure 1 The managed devices in.

[0117] It should be noted that the present invention can realize the automatic installation of the agent component on the designated host and the unified operation and maintenance management of multiple managed devices through the configuration management unit and the setting of the management scope table.

[0118] Optionally, the third device control method may further include:

[0119] The server sends the device identifier of the managed device whose operation status is offline to the configuration management unit;

[0120] The configuration management unit deletes the device identifier of the managed device whose device operation status is offline in the managed range table, obtains the processed managed range table, and sends the processed managed range table to the communication center unit through the server;

[0121] The communication center unit disconnects the communication connection with the target proxy component, and the device identifier of the managed device where the target proxy component is located is not in the post-processing managed range table.

[0122] Specifically, when the server detects that the device operation status of a managed device is offline, it can send the device identification of the managed device to the configuration management unit by calling the configuration management OpenAPI interface. At this time, the configuration management unit can remove the device identification of the managed device from the managed scope table, determine that the relevant configuration data of the managed device is invalid data, ensure the correctness of the host data and 100% online of the agent component, and ensure business continuity. The configuration management unit can return the new managed scope table, that is, the processed managed scope table, to the server.

[0123] It is understandable that when obtaining the managed scope table, the server can actively obtain it from the configuration management unit, or wait for the configuration management unit to issue it.

[0124] Specifically, after obtaining the processed managed scope table, the server can redetermine the managed devices that need to be monitored and operated and managed based on the processed managed scope table, eliminate the managed devices that no longer need to be monitored and operated and managed, and include new managed devices that need to be monitored and operated and managed.

[0125] Specifically, the server can send the managed range table to the communication center unit, triggering the communication center unit to perform corresponding processing. Specifically, for the proxy component in the managed device that is still recorded in the managed range table after processing, the communication center unit can maintain the communication connection with the proxy component and maintain monitoring of the component operation status of the proxy component;

[0126] Specifically, for the agent component in the managed device that has been removed from the managed range table after processing, the managed device is already in an offline state. The present invention can no longer need to monitor and operate the managed device. The communication center unit can disconnect the communication connection with the agent component and no longer monitor the component operation status of the agent component, thereby reducing the consumption of detection resources and improving resource utilization.

[0127] Optionally, the present invention can also add a new host device identifier to the management scope table of the configuration management unit during the monitoring and operation and maintenance management of each managed device. At this time, the server can control the new host to install the agent component, include it in the monitoring scope of the communication center unit, and include it in the detection and operation and maintenance management scope of the server.

[0128] Optionally, the configuration management unit may not be a component of the device control system of the present invention, but may be an independent upstream system of the device control system of the present invention, that is, a configuration management system.

[0129] The device control method proposed in this embodiment can use the configuration management unit and the management scope table to specify the managed devices, and include the specified managed devices in the monitoring and operation and maintenance management scope of the communication center unit and the server, thereby ensuring the implementation of monitoring and operation and maintenance management of the managed devices.

[0130] and Figure 1 The method shown corresponds to Figure 3 As shown, this embodiment proposes a device control system. The device control system may include: at least one managed device, a communication center unit and a server; each of the managed devices is installed with an agent component, each of the managed devices is persistently connected to the communication center unit through the installed agent component, and the communication center unit is connected to the server in a communication manner;

[0131] The communication center unit determines the component operation status of each of the proxy components respectively by monitoring the communication connection status between each of the proxy components and the communication center unit;

[0132] When it is determined that the component running state of at least one of the proxy components is in an offline state, the communication center unit sends the device identification of the managed device where each of the proxy components whose component running state is in an offline state is located to the server;

[0133] The server detects the device operation status of the managed devices corresponding to each device identifier respectively, and determines the managed devices whose device operation status is offline from the managed devices corresponding to each device identifier.

[0134] It should be noted that the specific processing process of the managed equipment, communication center unit and server and the technical effects brought about by it can be referred to Figure 1 Steps S101, S102, S103 and S104 in the embodiment are not described in detail here.

[0135] Optionally, the communication connection state includes a first state, wherein the connection has been established and is in a normal communication state; the communication center unit determines the component operation state of each of the proxy components by monitoring the communication connection state between each of the proxy components and the communication center unit, and is set to:

[0136] For any of the proxy components, when the communication center unit detects that the communication connection state between the proxy component and the communication center unit is the first state, the communication center unit determines that the component operation state of the proxy component is an online state.

[0137] Optionally, the communication connection state includes: a second state, a third state and / or a fourth state; the second state is that the connection is not established, the third state is that the connection is being closed, and the fourth state is that the connection is closed or cannot be opened;

[0138] The communication center unit determines the component operation status of each of the proxy components by monitoring the communication connection status between each of the proxy components and the communication center unit, and is set as follows:

[0139] For any of the agent components, when the communication center unit detects that the communication connection state between the agent component and the communication center unit is the second state, the third state or the fourth state, the communication center unit determines that the component operation state of the agent component is offline.

[0140] Optionally, the device identifier is an IP address of the managed device; the server detects the device operation status of the managed device corresponding to each device identifier respectively, and is set as:

[0141] For any of the device identifiers, the server detects the device operating status of the managed device corresponding to the device identifier by performing a ping test on the managed device corresponding to the device identifier.

[0142] Optionally, the determining, from among the managed devices corresponding to the device identifiers, the managed devices whose device operation status is offline is configured as:

[0143] The server determines the managed device that fails the ping test as the managed device whose device operation status is offline.

[0144] Optionally, the server further determines the managed device that passes the ping test as the managed device whose device operation status is online;

[0145] The server sends a self-start command to the agent component in the managed device whose device operation status is online, so as to control the component operation status of the agent component in the managed device whose device operation status is online to be online.

[0146] Optionally, the device control system further includes a configuration management unit, in which a management range table is stored, and the management range table includes a device identification of at least one host whose device operation status needs to be monitored; before the communication center unit determines the component operation status of each proxy component by monitoring the communication connection status between each proxy component and the communication center unit, the server also obtains the management range table from the configuration management unit, and obtains the device identification of each host from the management range table;

[0147] The server sends an agent component installation instruction to each host corresponding to the device identifier of each host, so that each host installs the agent component; the host after installing the agent component is the managed device.

[0148] Optionally, the server further sends the device identifier of the managed device whose device operation status is offline to the configuration management unit;

[0149] The configuration management unit deletes the device identifier of the managed device whose device operation status is offline in the managed range table, obtains a processed managed range table, and sends the processed managed range table to the communication center unit through the server;

[0150] The communication center unit disconnects the communication connection with the target proxy component, and the device identifier of the managed device where the target proxy component is located is not in the processed managed range table.

[0151] The device control system proposed in this embodiment can reduce the amount of data that the server needs to send, process and respond to during the detection of each proxy component, effectively reduce its data flow pressure, avoid the adverse consequences caused by data flow pressure, and ensure the work efficiency of the server; for the proxy component detected to be in an offline state, the present invention can further detect the device operation status of the managed device where it is located, so as to determine the managed device whose device operation status is abnormal, that is, offline, and realize the detection of abnormal managed devices, so that technical personnel can timely discover abnormal managed devices and perform troubleshooting to ensure troubleshooting efficiency. For the proxy component whose component operation status is online, the present invention can eliminate the need to further detect the device operation status of the managed device where it is located, effectively reducing the consumption of detection resources and improving resource utilization.

[0152] 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.

[0153] 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 device control method, characterized in that: Applied to a device control system, the device control system comprises: at least one managed device, a communication center unit and a server; each of the managed devices is installed with an agent component, each of the managed devices is persistently connected to the communication center unit through the installed agent component, and the communication center unit is connected to the server in a communication manner; the device control method comprises: The communication center unit determines the component operation status of each of the proxy components respectively by monitoring the communication connection status between each of the proxy components and the communication center unit; When it is determined that the component running state of at least one of the proxy components is in an offline state, the communication center unit obtains the device identification of the managed device where the proxy component is located, and sends the device identification of the managed device where each of the proxy components whose component running state is in an offline state is located to the server; The server detects the device operation status of the managed devices corresponding to each device identifier respectively, and determines the managed devices whose device operation status is offline from the managed devices corresponding to each device identifier.

2. The device control method according to claim 1, characterized in that: The communication connection state includes a first state, where the connection is established and in a normal communication state; the communication center unit determines the component operation state of each of the proxy components by monitoring the communication connection state between each of the proxy components and the communication center unit, including: For any of the proxy components, when the communication center unit detects that the communication connection state between the proxy component and the communication center unit is the first state, the communication center unit determines that the component operation state of the proxy component is an online state.

3. The device control method according to claim 1, characterized in that: The communication connection state includes: a second state, a third state and / or a fourth state; the second state is that the connection is not established, the third state is that the connection is being closed, and the fourth state is that the connection is closed or cannot be opened; The communication center unit determines the component operation status of each of the proxy components by monitoring the communication connection status between each of the proxy components and the communication center unit, including: For any of the agent components, when the communication center unit detects that the communication connection state between the agent component and the communication center unit is the second state, the third state or the fourth state, the communication center unit determines that the component operation state of the agent component is offline.

4. The device control method according to claim 1, characterized in that: The device identifier is the IP address of the managed device; The server detects the device operation status of the managed device corresponding to each device identifier, including: For any of the device identifiers, the server detects the device operating status of the managed device corresponding to the device identifier by performing a ping test on the managed device corresponding to the device identifier.

5. The device control method according to claim 4, characterized in that: The determining, from the managed devices corresponding to the device identifiers, the managed devices whose device operation status is offline includes: The server determines the managed device that fails the ping test as the managed device whose device operation status is offline.

6. The device control method according to claim 4, characterized in that: The method further comprises: The server determines the managed device that passes the ping test as the managed device whose device operation status is online; The server sends a self-start command to the agent component in the managed device whose device operation status is online, so as to control the component operation status of the agent component in the managed device whose device operation status is online to be online.

7. The device control method according to claim 1, characterized in that: The device control system further includes a configuration management unit, wherein the configuration management unit stores a management range table, wherein the management range table includes a device identifier of at least one host whose device operation status needs to be monitored; before the communication center unit determines the component operation status of each of the proxy components by monitoring the communication connection status between each of the proxy components and the communication center unit, the method further includes: The server obtains the managed range table from the configuration management unit, and obtains the device identification of each host from the managed range table; The server sends an agent component installation instruction to each host corresponding to the device identifier of each host, so that each host installs the agent component; the host after installing the agent component is the managed device.

8. The device control method according to claim 7, characterized in that: The method further comprises: The server sends the device identifier of the managed device whose device operation status is offline to the configuration management unit; The configuration management unit deletes the device identifier of the managed device whose device operation status is offline in the managed range table, obtains a processed managed range table, and sends the processed managed range table to the communication center unit through the server; The communication center unit disconnects the communication connection with the target proxy component, and the device identifier of the managed device where the target proxy component is located is not in the processed managed range table.

9. A device control system, characterized in that: The device control system comprises: at least one managed device, a communication center unit and a server; each of the managed devices is installed with an agent component, each of the managed devices is persistently connected to the communication center unit through the installed agent component, and the communication center unit is connected to the server in communication; The communication center unit determines the component operation status of each of the proxy components respectively by monitoring the communication connection status between each of the proxy components and the communication center unit; When it is determined that the component running state of at least one of the proxy components is in an offline state, the communication center unit obtains the device identification of the managed device where the proxy component is located, and sends the device identification of the managed device where each of the proxy components whose component running state is in an offline state is located to the server; The server detects the device operation status of the managed devices corresponding to each device identifier respectively, and determines the managed devices whose device operation status is offline from the managed devices corresponding to each device identifier.

10. The device control system according to claim 9, characterized in that: The communication connection state includes a first state, in which the connection is established and in a normal communication state; the communication center unit determines the component operation state of each of the proxy components by monitoring the communication connection state between each of the proxy components and the communication center unit, and is set as: For any of the proxy components, when the communication center unit detects that the communication connection state between the proxy component and the communication center unit is the first state, the communication center unit determines that the component operation state of the proxy component is an online state.