Equipment control method and device, electronic equipment and storage medium
By receiving status messages from the cloud management platform and performing network connection control, the problem of low security of cloud computer resources is solved, network disconnection measures are realized for cloud terminal devices, preventing unauthorized operations, and improving the security of cloud resource pool and stability.
Patent Information
- Application Number
- CN202410849982.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-11-19
AI Technical Summary
Cloud computer resources are low in security and are susceptible to illegal operations and unauthorized access, resulting in resource occupation and waste of shared server resources.
By receiving the status message sent by the cloud management platform, setting the system attribute value according to the status message, and performing network connection control operations of the cloud terminal device, including disconnecting the network to prevent unauthorized operations and improving the security of the cloud resource pool.
It effectively prevents unauthorized operations of cloud terminal devices when cloud resource pools are subject to security threats, improves the overall security and stability of cloud computer resources, and ensures that communications always operate in a secure state.
Smart Images

Figure CN118984229A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of device control technology, and in particular to a device control method, device, electronic device and storage medium. Background Art
[0002] With the popularity of Android products, Android products have entered the traditional PC (Personal Computer) industry. As long as an Android device (such as all-in-one machine, card machine, notebook) is equipped with cloud computer resources APK (Android application package), it can enter the cloud-based Windows, UOS, Linux and other operating systems through the account and password purchased by the platform to realize office and entertainment functions.
[0003] However, with the popularity of cloud computing devices, the security of cloud computing resources has become a necessary issue. Illegal users attack cloud computing resource servers through clients, perform illegal operations on cloud resource pools with GPUs, initiate large-scale concurrency, occupy shared server resources, and other behaviors, which will lead to low security of cloud computing resources. Summary of the invention
[0004] The present invention provides a device control method, apparatus, electronic device and storage medium, which are used to solve the defect of low security of cloud computer resources in the prior art and improve the security of computer resources.
[0005] The present invention provides a device control method, comprising the following steps: Receive a status message sent by the cloud management platform; the status message includes status information of the cloud resource pool; According to the status message, set the property value of the system; According to the attribute value, a network connection control operation of the cloud terminal device is performed.
[0006] According to a device control method provided by the present invention, a network connection control operation of a cloud terminal device is executed according to the attribute value, comprising: Determining communication information between the cloud terminal device and the cloud resource pool according to the attribute value; According to the communication information, a network connection control operation of the cloud terminal device is performed.
[0007] According to a device control method provided by the present invention, determining the communication information between the cloud terminal device and the cloud resource pool according to the attribute value includes: If the attribute value is a set security threshold, it is determined that the communication between the cloud terminal device and the cloud resource pool is secure; if the attribute value is a set alarm threshold, it is determined that there is an alarm in the communication between the cloud terminal device and the cloud resource pool; If the attribute value is a set abnormal threshold, it is determined that the communication between the cloud terminal device and the cloud resource pool is abnormal.
[0008] According to a device control method provided by the present invention, executing the network connection control operation of the cloud terminal device according to the communication information includes: If the communication information indicates that the communication between the cloud terminal device and the cloud resource pool is secure, maintaining the communication between the cloud terminal device and the cloud resource pool; If the communication information indicates that there is an alarm in the communication between the cloud terminal device and the cloud resource pool, disconnecting the network of the cloud terminal device according to the duration of the network disconnection; the duration of the network disconnection is determined according to the alarm level; If the communication information indicates that the communication between the cloud terminal device and the cloud resource pool is abnormal, the network of the cloud terminal device is disconnected.
[0009] According to a device control method provided by the present invention, the method further includes: Determine the number of alarm status messages sent by the cloud management platform; the attribute value corresponding to the alarm status message is a set alarm threshold; When the number is greater than a set number threshold, the network of the cloud terminal device is disconnected.
[0010] According to a device control method provided by the present invention, disconnecting the network of the cloud terminal device includes: Disconnect the Ethernet interface or the wireless local area network WLAN interface of the cloud terminal device.
[0011] According to a device control method provided by the present invention, setting a property value of the system according to the status message includes: Determining a message type of the status message; According to the message type, a property value of the system is set.
[0012] The present invention also provides a device control device, comprising the following modules: A receiving module, used to receive a status message sent by the cloud management platform; the status message includes status information of the cloud resource pool; an attribute setting module, used to set the attribute value of the system according to the status message; The control module is used to execute the network connection control operation of the cloud terminal device according to the attribute value.
[0013] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, any of the device control methods described above is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the device control method described in any one of the above is implemented.
[0015] The device control method, apparatus, electronic device and storage medium provided by the present invention receive status messages sent by a cloud management platform; the status messages include status information of a cloud resource pool; according to the status messages, attribute values of the system are set; according to the attribute values, network connection control operations of cloud terminal devices are executed. When the cloud resource pool is subject to security threats, the present invention executes network connection control operations of cloud terminal devices to prevent further use by unauthorized operations, thereby improving the security of cloud computer resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 It is a flow chart of the device control method provided by the present invention.
[0018] Figure 2 It is a flow chart of a method for locking illegal operations of cloud computer devices on an Android platform provided by the present invention.
[0019] Figure 3 It is a structural schematic diagram of the equipment control device provided by the present invention.
[0020] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0022] In related technologies, cloud computer resources can access data as long as the username and password are correct. After the cloud terminal device (such as a cloud terminal device) is connected to the network, enter the username and password on the login interface and click login; after the cloud management platform is verified, data can be interacted with the remote cloud resource pool, so as to carry out normal office and entertainment.
[0023] When a user performs illegal operations on the cloud resource pool, maintenance personnel can restrict the user account on the cloud management platform, such as blacklisting or whitelisting, or monitor its behavior to ensure the stability of the cloud resource pool. However, it is impossible to restrict cloud terminal devices, resulting in low security of cloud computer resources.
[0024] Based on the above problems, the present invention proposes a device control method, specifically a method for locking illegal operations of cloud computer devices based on an Android platform. This method not only restricts users through a cloud management platform, but also locks and restricts the use of devices operated by users.
[0025] Combine the following Figure 1-Figure 4 The device control method, apparatus, electronic device and storage medium of the present invention are described.
[0026] Figure 1 It is a flow chart of the device control method provided by the present invention, such as Figure 1 As shown, the method includes the following: Step 101: Receive a status message sent by the cloud management platform.
[0027] In a cloud computing environment, a cloud resource pool is a virtualized resource pool that centrally manages and allocates computing resources (such as CPU, memory, storage space, etc.). A cloud resource pool can include multiple physical servers or virtual machines. These resources are integrated together through virtualization technology for use by different cloud services and applications.
[0028] In the embodiment of the present invention, the cloud management platform is responsible for managing and monitoring the entire cloud resource pool. The cloud resource pool periodically (e.g., every 5 to 10 seconds) reports the current status information to the cloud management platform, where the status information includes but is not limited to: 1) Computing resource usage: CPU usage: CPU utilization of each virtual machine or physical server. Memory usage: Memory usage of each virtual machine or physical server. Storage space usage: Storage resource usage, including disk space usage and remaining space. Network bandwidth: Network resource usage, including bandwidth utilization and traffic statistics.
[0029] 2) Virtualization layer information: Virtual machine status: the operating status of each virtual machine, such as powered on, powered off, paused, etc. Container status: the status of each container, such as running, stopped, etc.
[0030] 3) Health status and alarms: System load: System load of the entire resource pool, such as average load and load balancing status. Faults and alarms: Hardware or software fault information, such as disk failure, network anomaly, etc.
[0031] 4) Runtime environment data: Operating system version: operating system and version information of each virtual machine or physical server. Application deployment: application and service information deployed in each virtual machine or container.
[0032] After the cloud management platform obtains the current status information of the cloud resource pool, it converts the status information into a message and sends it to each cloud terminal device, for example, through the network or a dedicated management channel to send the status message to each cloud terminal device.
[0033] The cloud terminal device receives a status message sent by the cloud management platform, and the status message includes status information of the cloud resource pool.
[0034] Step 102: Set the property value of the system according to the status message.
[0035] After receiving the status message sent by the cloud management platform, the cloud terminal device determines the message type of the status message, and then sets the system attribute value according to the message type. Different message types reflect different states from normal operation to potential problems to serious errors, which helps the cloud resource pool to respond and solve problems quickly when they occur.
[0036] In the embodiment of the present invention, the following message types are defined: 1) HANDLE_MSG_OK: Indicates that the message is processed normally and is used to indicate that there are no abnormal situations.
[0037] 2)HANDLE_MSG_WARN1, HANDLE_MSG_WARN2, and HANDLE_MSG_WARN3: Represent different levels of warning messages, used to indicate some potential problems or unusual situations, but not fatal.
[0038] 3)HANDLE_MSG_ERROR: represents an error / exception message, which is used to indicate that some error or exception has occurred and needs to be handled or corrected.
[0039] The cloud terminal device sets the received message type as the property value of the CURRENT_BOX_MSG_VAL system through the setprop CURRENT_BOX_MSG_VAL command. It can be understood that this method enables the cloud terminal device to dynamically record and process messages transmitted from the cloud management platform, and take corresponding processing and response measures according to different message types.
[0040] In one embodiment, assuming that the message type of the status message received by the cloud terminal device is HANDLE_MSG_OK, the attribute value CURRENT_BOX_MSG_VAL is set to HANDLE_MSG_OK. Assuming that the message type of the status message received by the cloud terminal device is HANDLE_MSG_WARN1, the attribute value CURRENT_BOX_MSG_VAL is set to HANDLE_MSG_WARN1. Assuming that the message type of the status message received by the cloud terminal device is HANDLE_MSG_ERROR, the attribute value CURRENT_BOX_MSG_VAL is set to HANDLE_MSG_ERROR.
[0041] Step 103: Execute a network connection control operation of the cloud terminal device according to the attribute value.
[0042] The cloud terminal device performs network connection control operations according to the attribute values, such as performing a network disconnection operation or a complete network disconnection operation.
[0043] The device control method provided by the embodiment of the present invention receives a status message sent by a cloud management platform; the status message includes the status information of a cloud resource pool; according to the status message, the attribute value of the system is set; according to the attribute value, the network connection control operation of the cloud terminal device is executed. When the cloud resource pool is subject to a security threat, the present invention executes the network connection control operation of the cloud terminal device to prevent further use by unauthorized operations, thereby improving the security of cloud computer resources.
[0044] Based on the above embodiment, according to the attribute value, executing the network connection control operation of the cloud terminal device includes: Step 120, determining communication information between the cloud terminal device and the cloud resource pool according to the attribute value; Step 121: Execute a network connection control operation of the cloud terminal device according to the communication information.
[0045] If the attribute value is the set security threshold, the communication between the cloud terminal device and the cloud resource pool is determined to be secure; if the attribute value is the set alarm threshold, it is determined that there is an alarm in the communication between the cloud terminal device and the cloud resource pool; if the attribute value is the set abnormality threshold, it is determined that the communication between the cloud terminal device and the cloud resource pool is abnormal.
[0046] For example, the cloud terminal device periodically (e.g., every 5 seconds) determines the current attribute value CURRENT_BOX_MSG_VAL through the Demon apk: If CURRENT_BOX_MSG_VAL = HANDLE_MSG_OK, it means that the communication between the current cloud terminal device and the cloud resource pool is secure; If CURRENT_BOX_MSG_VAL = HANDLE_MSG_WARN1, it means that there is a level 1 warning in the communication between the current cloud terminal device and the cloud resource pool; If CURRENT_BOX_MSG_VAL = HANDLE_MSG_WARN2, it means that there is a level 2 warning in the communication between the current cloud terminal device and the cloud resource pool; If CURRENT_BOX_MSG_VAL = HANDLE_MSG_WARN3, it means that there is a level 3 warning in the communication between the current cloud terminal device and the cloud resource pool; If CURRENT_BOX_MSG_VAL = HANDLE_MSG_ERROR, it means that the communication between the current cloud terminal device and the cloud resource pool is abnormal, that is, the secure communication is destroyed.
[0047] Among them, HANDLE_MSG_OK is the set safety threshold; HANDLE_MSG_WARN1, HANDLE_MSG_WARN2 and HANDLE_MSG_WARN3 are the set warning thresholds; HANDLE_MSG_ERROR is the set abnormal threshold.
[0048] By periodically checking the current attribute value, the system can understand the changes in the communication security status in real time and take corresponding countermeasures to ensure that the communication between the cloud terminal device and the cloud resource pool always remains in a secure state.
[0049] In one embodiment, if the communication information is that the communication between the cloud terminal device and the cloud resource pool is secure, the communication between the cloud terminal device and the cloud resource pool is maintained; if the communication information is that there is an alarm in the communication between the cloud terminal device and the cloud resource pool, the network of the cloud terminal device is disconnected according to the duration of the network disconnection; the duration of the network disconnection is determined according to the alarm level; if the communication information is that the communication between the cloud terminal device and the cloud resource pool is abnormal, the network of the cloud terminal device is disconnected.
[0050] For example, the cloud terminal device takes necessary communication measures according to the current CURRENT_BOX_MSG_VAL value: CURRENT_BOX_MSG_VAL = HANDLE_MSG_OK, and the cloud terminal device and the cloud resource pool maintain normal communication; CURRENT_BOX_MSG_VAL=HANDLE_MSG_WARN1, the cloud terminal device is disconnected from the network for 10 minutes, and a message is sent to the user through the cloud management platform to remind the user; CURRENT_BOX_MSG_VAL = HANDLE_MSG_WARN2, the cloud terminal device is disconnected from the network for 20 minutes, and a message is sent to the user through the cloud management platform to remind the user; CURRENT_BOX_MSG_VAL=HANDLE_MSG_WARN3, the cloud terminal device is disconnected from the network for 30 minutes, and a message is sent to the user through the cloud management platform to remind the user; CURRENT_BOX_MSG_VAL = HANDLE_MSG_ERROR. The cloud terminal device is completely unable to access the Internet and needs to be returned to the factory for repair. A message is sent to the user through the cloud management platform to remind the user.
[0051] In one embodiment, when it is detected that the current attribute value is HANDLE_MSG_WARN1, HANDLE_MSG_WARN2 or HANDLE_MSG_WARN3, the network of the cloud terminal device is disconnected according to the network disconnection duration, that is, the Ethernet interface or the wireless local area network WLAN (Wireless Local Area Networks) interface of the cloud terminal device is disconnected, and the specific implementation method is as follows: 1) Attribute value monitoring and execution action: When the Demon apk detects that the attribute value is HANDLE_MSG_WARN1, HANDLE_MSG_WARN2 or HANDLE_MSG_WARN3, it executes the operation of disconnecting the Ethernet interface or WLAN interface. For example, use the command ifconfig eth0 down to disconnect the Ethernet interface and ifconfig wlan0 down to disconnect the WLAN interface.
[0052] 2) Timer and power-off record: In order to ensure that the timer can continue to record time after the device is turned off, a counter is added. The function of this counter is to permanently save the current timer value when the device is turned off. In this way, when the device is powered on again, the value of this counter can be read and the timing can continue from the last recorded time point.
[0053] 3) Network recovery: After disconnecting from the network, restore the connection of the Ethernet interface and WLAN interface by executing the ifconfig eth0 up and ifconfig wlan0up commands. These commands will restart the corresponding network interface, so that the device can reconnect to the network.
[0054] When a potential risk is found in the communication, the embodiment of the present invention temporarily blocks the unsafe communication by disconnecting the network connection to reduce the possible security risk. At the same time, the counter is designed to ensure that the timer can keep recording even if the device is turned off, so that the monitoring and control logic can continue to operate normally after the device is powered on again.
[0055] In one embodiment, when the Demon apk detects that the current attribute value is HANDLE_MSG_ERROR, the Ethernet interface or WLAN interface is completely disconnected to ensure that the cloud terminal device will not continue to be used due to logging into other accounts. At the same time, the cloud management platform will also record the SN (Serial Number, product serial number) number of the device for notes. The specific implementation method is as follows: 1) The attribute value is HANDLE_MSG_ERROR: When the Demon apk detects that the attribute value is HANDLE_MSG_ERROR, it means that the cloud resource pool is subject to illegal operations.
[0056] 2) Execute the operation: Completely shut down the Ethernet interface and WLAN interface: When the attribute value is HANDLE_MSG_ERROR, disconnect the Ethernet interface and WLAN interface. For example, through the ifconfigeth0 down and ifconfig wlan0 down commands, these commands will completely stop the Ethernet interface and WLAN interface of the device from working, thus preventing the device from continuing to access the network or perform other operations through these interfaces.
[0057] The purpose of disconnecting a network node is to ensure that the device cannot continue to use network resources or access specific services. This measure is taken to protect the security of the system or data in the event that the device encounters a major failure or unauthorized access.
[0058] 3) Record the SN number of the device for notes: The cloud management platform needs to record the serial number of the current cloud terminal device in order to identify and track the status and operation history of the device. By recording the SN number, you can create a behavior record of the device, including the occurrence of HANDLE_MSG_ERROR and the corresponding operations performed.
[0059] When unauthorized access to the cloud resource pool is detected, the embodiment of the present invention will take measures to disconnect the network connection of the cloud terminal device to ensure that the cloud terminal device is no longer in use and prevent further operation or access. At the same time, the cloud management platform records the SN number of the device to ensure comprehensive tracking and management of the device status and operation.
[0060] In one embodiment, the number of alarm status messages sent by the cloud management platform is determined, wherein the attribute value corresponding to the alarm status message is a set alarm threshold; when the number is greater than the set number threshold, the network of the cloud terminal device is disconnected. For example, when the number of level 1, level 2, and level 3 alarm messages received by the cloud terminal device is greater than the set number threshold, it means that the cloud resource pool has been subjected to unauthorized / illegal operations, and the network of the cloud terminal device needs to be disconnected.
[0061] The embodiment of the present invention determines whether to disconnect the network connection by monitoring and responding to the type and quantity of messages received by the device, so as to maintain the stability of cloud computer resources.
[0062] In order to further analyze and explain the device control method provided by the present invention, refer to Figure 3 And the following examples.
[0063] The embodiment of the present invention specifically proposes a method for locking illegal operations of cloud computer devices based on an Android platform, which mainly protects the cloud resource pool by: 1. The cloud management platform monitors user behavior in the cloud resource pool. If illegal operations are detected, a message is sent to the cloud computer terminal device; 2. After receiving the message, the cloud computer terminal device determines the illegal operation according to the type of message sent, and sets the attribute value of the illegal operation according to the message type; 3. After the cloud computer terminal device detects the attribute value, it determines the measures to be taken on the device according to the severity of the situation; 4. For minor cases or misoperations, SMS reminders and warnings will be sent through the cloud management platform; for more serious cases, the device will be disconnected from the network for 30 minutes (the client will directly shut down the network node) and SMS reminders will be sent; for serious cases, the network will be completely disconnected and the network node will be kept down. This ensures that no matter how the customer operates, they cannot use the device that has been illegally operated to connect to the cloud resource pool.
[0064] In the related art, locking only locks the account and restricts each user who opens a cloud resource pool. The locking of the embodiment of the present invention not only locks the login account, but also can effectively restrict the device. More strictly, it can prevent the device from connecting to the Internet, ensuring that there is no possibility of secondary illegal operation of this login device. When illegal operation occurs, the uniqueness of the account and device can be locked.
[0065] The content of the embodiments of the present invention improves the interactivity of cloud computer terminal devices and cloud management platforms, ensuring that the cloud resource pool will not become unstable due to malicious damage by users when shared by multiple users, and jointly restricting illegal operations from the platform and terminal devices to protect the security of network resources.
[0066] The specific implementation of the embodiment of the present invention is as follows: (1) The cloud management platform monitors the status of the cloud resource pool in real time, and the cloud resource pool reports its current status to the cloud management platform every 5 to 10 seconds.
[0067] (2) The cloud management platform sends the current status of the cloud resource pool to each cloud computer terminal device in the form of a message.
[0068] (3) After receiving the message type sent by the cloud management platform, the cloud computer terminal device sets this value to the system property setprop CURRENT_BOX_MSG_VAL.
[0069] (4) The cloud computer terminal device periodically (e.g., every 5 seconds) uses the Demon apk to determine the current attribute value CURRENT_BOX_MSG_VAL: If CURRENT_BOX_MSG_VAL = HANDLE_MSG_OK, it means that the communication between the current cloud computer terminal device and the cloud resource pool is secure. Based on this, the cloud computer terminal device and the cloud resource pool maintain normal communication.
[0070] If CURRENT_BOX_MSG_VAL = HANDLE_MSG_WARN1, it means that there is a level 1 warning in the communication between the current cloud computer terminal device and the cloud resource pool. Based on this, the cloud computer terminal device is disconnected from the network for 10 minutes, and a message is sent to the user through the cloud management platform to remind him.
[0071] If CURRENT_BOX_MSG_VAL = HANDLE_MSG_WARN2, it means that there is a level 2 warning in the communication between the current cloud computer terminal device and the cloud resource pool. Based on this, the cloud computer terminal device is disconnected from the network for 20 minutes, and a message is sent to the user through the cloud management platform to remind him.
[0072] If CURRENT_BOX_MSG_VAL = HANDLE_MSG_WARN3, it means that there is a level 3 warning in the communication between the current cloud computer terminal device and the cloud resource pool. Based on this, the cloud computer terminal device is disconnected from the network for 30 minutes, and a message is sent to the user through the cloud management platform to remind him.
[0073] If CURRENT_BOX_MSG_VAL = HANDLE_MSG_ERROR, it means that the communication between the current cloud computer terminal device and the cloud resource pool is abnormal, that is, the secure communication is destroyed; based on this, the cloud computer terminal device is completely unable to access the Internet and is returned to the factory for repair, and a message is sent to the user through the cloud management platform to prompt.
[0074] (5) When the Demon apk detects that the current attribute value is HANDLE_MSG_WARN1, HANDLE_MSG_WARN2, or HANDLE_MSG_WARN3, it disconnects the Ethernet or WLAN network node (the disconnection command is: "ifconfig eth0down" or "ifconfig wlan0 down"). When the timer expires, it connects the Ethernet or WLAN network node (the network connection command is: "ifconfig eth0 up" or "ifconfig wlan0 up"). In order to avoid the device shutting down during the timer recording time, a counter can be added to record the current number to ensure that the time can be recorded the next time the device is powered on.
[0075] (6) When the Demon apk detects that the current attribute value is HANDLE_MSG_ERROR, it will completely shut down the Ethernet and WLAN network nodes to ensure that the terminal device will not continue to be used to log in to other accounts. At the same time, the platform should also record the SN number of the device for notes.
[0076] The method for locking illegal operations of cloud computer devices on an Android platform provided by the embodiment of the present invention has the following advantages: 1) The cloud management platform can monitor the status of the cloud resource pool in real time and send the current status information of the cloud resource pool to the cloud computer terminal device. This real-time feedback mechanism can quickly discover communication anomalies or security threats, and help take timely measures to deal with problems.
[0077] 2) Multiple attribute values are defined, and corresponding treatment measures are clearly defined for each attribute value. This classification and process clarity enables targeted and appropriate response measures to be taken at different security risk levels, improving overall security and stability.
[0078] 3) When communication anomalies or security breaches occur, the cloud computer terminal device can automatically disconnect the network connection (such as Ethernet or WLAN) according to the current status to prevent further security threats from spreading. The introduction of timers and counters ensures that the device can continue to record even when it is turned off in the disconnected state, so as to effectively restore the network connection when the device is powered on again.
[0079] 4) When communication anomalies or security issues occur, the cloud management platform will send text messages to users for timely reminders, improving users' perception and feedback capabilities of the device's security status. This timely communication can help users take necessary actions to protect device and data security.
[0080] 5) When the cloud resource pool is threatened, the system can completely prohibit the device from accessing the Internet to prevent further use by unauthorized operations. In addition, recording the device's SN and related information will also help with subsequent tracking and management to ensure that the device will not connect to the cloud resource pool again before the security issue is resolved.
[0081] The embodiments of the present invention improve the overall security and stability of cloud computer resources, and also provide a flexible and effective response plan to help protect user data and devices from malicious attacks and illegal use threats.
[0082] The device control apparatus provided by the present invention is described below. The device control apparatus described below and the device control method described above can be referenced to each other.
[0083] refer to Figure 3 The device control apparatus provided by the present invention includes a receiving module 301, a property setting module 302 and a control module 303.
[0084] The receiving module 301 is used to receive a status message sent by the cloud management platform; the status message includes status information of the cloud resource pool; The property setting module 302 is used to set the property value of the system according to the status message; The control module 303 is used to execute the network connection control operation of the cloud terminal device according to the attribute value.
[0085] The device control device provided by the embodiment of the present invention receives a status message sent by a cloud management platform; the status message includes the status information of a cloud resource pool; according to the status message, the attribute value of the system is set; according to the attribute value, the network connection control operation of the cloud terminal device is executed. When the cloud resource pool is subject to a security threat, the present invention executes the network connection control operation of the cloud terminal device to prevent further use by unauthorized operations, thereby improving the security of cloud computer resources.
[0086] In one embodiment, the control module 303 is specifically used to: determine the communication information between the cloud terminal device and the cloud resource pool according to the attribute value; and perform a network connection control operation of the cloud terminal device according to the communication information.
[0087] In one embodiment, the control module 303 is specifically used to: if the attribute value is a set security threshold, determine that the communication between the cloud terminal device and the cloud resource pool is secure; if the attribute value is a set alarm threshold, determine that there is an alarm in the communication between the cloud terminal device and the cloud resource pool; if the attribute value is a set abnormality threshold, determine that the communication between the cloud terminal device and the cloud resource pool is abnormal.
[0088] In one embodiment, the control module 303 is specifically used to: if the communication information is that the communication between the cloud terminal device and the cloud resource pool is secure, then maintain the communication between the cloud terminal device and the cloud resource pool; if the communication information is that there is an alarm in the communication between the cloud terminal device and the cloud resource pool, then disconnect the network of the cloud terminal device according to the duration of the network disconnection; the duration of the network disconnection is determined according to the alarm level; if the communication information is that the communication between the cloud terminal device and the cloud resource pool is abnormal, then disconnect the network of the cloud terminal device.
[0089] In one embodiment, the method further includes: determining the number of alarm status messages sent by the cloud management platform; the attribute value corresponding to the alarm status message is a set alarm threshold; and when the number is greater than the set number threshold, disconnecting the network of the cloud terminal device.
[0090] In one embodiment, the control module 303 is further used to: disconnect the Ethernet interface or the wireless local area network WLAN interface of the cloud terminal device.
[0091] In one embodiment, the property setting module 302 is specifically used to: determine the message type of the status message; and set the property value of the system according to the message type.
[0092] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the device control method, which includes: receiving a status message sent by a cloud management platform; the status message includes the status information of a cloud resource pool; according to the status message, setting the property value of the system; according to the property value, executing the network connection control operation of the cloud terminal device.
[0093] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0094] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the device control method provided by the above-mentioned methods, and the method includes: receiving a status message sent by a cloud management platform; the status message includes status information of a cloud resource pool; according to the status message, setting a system attribute value; according to the attribute value, executing a network connection control operation of a cloud terminal device.
[0095] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the device control method provided by the above-mentioned methods, the method comprising: receiving a status message sent by a cloud management platform; the status message comprises status information of a cloud resource pool; according to the status message, setting a property value of the system; and according to the property value, executing a network connection control operation of a cloud terminal device.
[0096] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A device control method, characterized in that: include: Receive status messages sent by the cloud management platform; The status message includes status information of the cloud resource pool; According to the status message, set the property value of the system; According to the attribute value, a network connection control operation of the cloud terminal device is performed.
2. The device control method according to claim 1, characterized in that: According to the attribute value, a network connection control operation of the cloud terminal device is performed, including: Determining communication information between the cloud terminal device and the cloud resource pool according to the attribute value; According to the communication information, a network connection control operation of the cloud terminal device is performed.
3. The device control method according to claim 2, characterized in that: The determining, according to the attribute value, the communication information between the cloud terminal device and the cloud resource pool comprises: If the attribute value is a set security threshold, it is determined that the communication between the cloud terminal device and the cloud resource pool is secure; if the attribute value is a set alarm threshold, it is determined that there is an alarm in the communication between the cloud terminal device and the cloud resource pool; If the attribute value is a set abnormal threshold, it is determined that the communication between the cloud terminal device and the cloud resource pool is abnormal.
4. The device control method according to claim 3, characterized in that: The performing of the network connection control operation of the cloud terminal device according to the communication information includes: If the communication information indicates that the communication between the cloud terminal device and the cloud resource pool is secure, maintaining the communication between the cloud terminal device and the cloud resource pool; If the communication information indicates that there is an alarm in the communication between the cloud terminal device and the cloud resource pool, disconnecting the network of the cloud terminal device according to the duration of the network disconnection; the duration of the network disconnection is determined according to the alarm level; If the communication information indicates that the communication between the cloud terminal device and the cloud resource pool is abnormal, the network of the cloud terminal device is disconnected.
5. The device control method according to claim 1, characterized in that: The method further comprises: Determine the number of alarm status messages sent by the cloud management platform; the attribute value corresponding to the alarm status message is a set alarm threshold; When the number is greater than a set number threshold, the network of the cloud terminal device is disconnected.
6. The device control method according to claim 4 or 5, characterized in that: Disconnecting the network of the cloud terminal device includes: Disconnect the Ethernet interface or the wireless local area network WLAN interface of the cloud terminal device.
7. The device control method according to claim 1, characterized in that: The step of setting a property value of a system according to the status message includes: Determining a message type of the status message; According to the message type, a property value of the system is set.
8. A device control device, characterized in that: include: A receiving module is used to receive status messages sent by the cloud management platform; The status message includes status information of the cloud resource pool; An attribute setting module, used to set the attribute value of the system according to the status message; The control module is used to execute the network connection control operation of the cloud terminal device according to the attribute value.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the device control method according to any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the device control method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Website availability alarm method and device based on multiline monitoring and electronic device
CN107579861A
Abnormal behavior detection method, apparatus and device, and storage medium
CN109660502A
Intelligent alarm processing method and device for power monitoring system based on knowledge base
CN113516565A
Operation and maintenance early warning method and device, electronic equipment and storage medium
CN113672467A
Network blocking method and device, electronic device and storage medium
CN113965406A
