Method for solving multi-computer one-key shutdown of heterogeneous system

By deploying central control services and message queue services in heterogeneous systems and installing client control software on client computers, the MQTT protocol is used to achieve the issuance and execution of one-click shutdown commands, the problem of unified key shutdown by multiple computers in heterogeneous systems is solved, and an efficient and secure management process is achieved.

CN119847614AActive Publication Date: 2025-04-18BEIJING BEIHANG TIANYU ZHANGYING UAV TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411760824.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-04-18
Estimated Expiration
2044-12-03

AI Technical Summary

Technical Problem

The prior art is difficult to realize the unified one-key shutdown of multiple computers in heterogeneous systems, resulting in complex management and inefficient management, especially in heterogeneous systems, which cannot achieve unified cross-platform management.

Method used

By deploying central control services and message queue services on the central control server of the Linux system, and installing client control software on the client computer of the Windows system, the MQTT protocol is used to realize the registration and communication between the client and the central control server, and the issuance and execution of one-click shutdown commands are realized.

Benefits of technology

It realizes unified one-key shutdown of multiple computers in heterogeneous systems, simplifies management processes, improves management efficiency, reduces operation and maintenance costs, and ensures the safety and reliability of the shutdown process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847614A_ABST
    Figure CN119847614A_ABST
Patent Text Reader

Abstract

The invention relates to a method for solving multi-computer one-key shutdown in a heterogeneous system. The problems that in the prior art, management is complex, and efficiency is low are solved. A central control server is deployed in a network environment, and a set of central control service and a set of message queue service are deployed in the server; client control software is installed and deployed on each client computer; an administrator or an operator sends a one-key power-off instruction on the client computer with the one-key power-off control authority; after receiving the shutdown instruction, the central control service sends the shutdown instruction to the message queue service to each client computer in the network environment; after receiving the shutdown instruction, each client computer firstly performs own state detection, feeds back a shutdown confirmation instruction to the central control service after a shutdown condition is met, and executes own shutdown operation of the client computer; and the central control service receives the shutdown confirmation instruction of each client and then completes self shutdown, so that unified shutdown operation of the plurality of computers is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for solving the one-key shutdown problem of multiple computers in a heterogeneous system, and in particular to a method for solving the one-key shutdown problem of multiple computers in a heterogeneous system (Linux system and Windows system) in the technical field of computer management and automated operation and maintenance. Background Art

[0002] With the development and application of information technology, enterprises, schools, scientific research institutions and various organizations usually deploy a large number of computers, which run different operating systems to form heterogeneous systems, such as Linux and Windows systems. Centralized management of several computers in heterogeneous systems, especially unified shutdown operations, has become an increasingly important task.

[0003] In Windows operating systems, administrators can directly shut down devices through the shutdown option in the start menu, or use command line tools. For example, the "shutdown-st 0" command ("-s" means shutdown, "-t 0" means immediate execution, and the time interval is 0 seconds). In Linux systems, you can use the "shutdown-h now" command ("-h" means stopping the system, and "now" means immediate execution). These commands send signals to the hardware to orderly stop running processes and services, and eventually cut off the power supply. Administrators execute different commands for different operating systems, resulting in complex management, low efficiency, and prone to omissions or operational errors. In some cases, computers or servers need to be installed in cabinets. Due to site restrictions, it is not convenient for personnel to directly access the computers. At this time, administrators cannot shut down computers with different operating systems by executing different shutdown commands.

[0004] At present, although there are some remote control and management tools on the market, most of them can only be used in a single operating system environment, which brings great inconvenience to system management.

[0005] Therefore, there is an urgent need for a solution that can support one-click shutdown of multiple computers in a heterogeneous system to simplify the management process and improve management efficiency. Summary of the invention

[0006] The purpose of the present invention is to provide a method for one-key shutdown of multiple computers in a heterogeneous system, which can achieve unified management of multiple computers across platforms and realize one-key remote shutdown operation, thereby solving the problems of complex management and low efficiency in the prior art.

[0007] The present invention is achieved by the following technical solutions:

[0008] A method for one-key shutdown of multiple computers in a heterogeneous system comprises the following steps:

[0009] 1) Deployment of Linux system (server)

[0010] A central control server is deployed in the network environment, and the server runs the Linux operating system. A set of central control services and a set of message queue services are deployed on the central control server, which are responsible for sending shutdown instructions to all registered clients and recording operation logs;

[0011] 2) Installation and configuration of client computers

[0012] Install the one-key shutdown client control software on the client computer (Windows system) in the network environment, set the shutdown delay time and permission settings through the configuration file, the permission is whether the software on the local computer has the permission to trigger the one-key shutdown operation, and set the software to start automatically when powered on;

[0013] 3) Power on and start the Linux system (server)

[0014] After the central control server is powered on, the message queue service is started, and then the central control service is started, and the connection and test communication with the message queue service are completed. After the communication is normal, the central control service opens the network interface and waits for the client control software to issue a switch command;

[0015] 4) Power on and start up multiple client computers

[0016] After multiple client computers are powered on, the one-key shutdown client control software on each computer automatically starts, registers with the message queue service in the central control server through the MQTT protocol, and establishes a unique communication channel with the message queue service. The client control software with one-key shutdown operation permission is activated and can be double-clicked to trigger the one-key shutdown command. The client control software without one-key shutdown operation permission is grayed out and only has the function of receiving shutdown commands and executing self-shutdown operations;

[0017] 5) Perform one-key operation

[0018] The administrator or operator double-clicks the button of the client control software on the client computer with one-key shutdown control authority, and the client control software sends a one-key shutdown command to the central control server through the TCP / IP interface; after the central control service in the central control server receives the shutdown command, it sends the shutdown command to the message queue service, and the message queue service sends the shutdown command to each client computer in the network environment through the message pipeline; after each client computer receives the shutdown command, in order to ensure the safety and reliability of the shutdown process, it first performs its own status detection, and after the detection meets the shutdown conditions, it will confirm the shutdown command and feedback it to the central control service by calling the TCP / IP interface, and finally wait for the preset delayed shutdown time to expire, and then execute the client computer's own shutdown operation; after receiving the shutdown confirmation command from each client, the central control service completes its own shutdown.

[0019] A method for solving the one-key shutdown of multiple computers in a heterogeneous system is applied to a drone command and control center system. The drone command and control center system is a typical heterogeneous system. The background processing service and the front-end program are deployed in the Linux system. The streaming computer, the access computer and the seat computers are Windows systems. The server, the streaming computer and the access computer are installed in a cabinet, and the seat computers are installed on the operating seat. The specific implementation process is as follows:

[0020] 1) First, deploy a set of central control services and a set of message queue services on the server;

[0021] 2) Secondly, the client control software is installed in the access computer, streaming computer and each seat computer, and the software is set to start automatically upon power-on. Through the configuration file setting, one of the seat computers has the one-key shutdown control right; at the same time, the configuration file can be freely configured to delay the shutdown time of each seat computer after receiving the shutdown command;

[0022] 3) After the drone system is powered on, the server and seat computers are powered on in turn, the central control service and message queue service in the server are started, and the connection and test communication between the two services are completed. After the communication is normal, the central control service opens the network interface and waits for the client control software to issue a switch command; the one-key shutdown client control software on each seat computer is started, and it is registered with the message queue service in the server through the MQTT protocol, and a unique communication channel is established with the message queue service;

[0023] 4) Perform flight monitoring tasks;

[0024] 5) After the mission is completed, the drone system needs to be shut down. At this time, the seat computer operator with one-key shutdown control authority only needs to double-click the one-key shutdown client software button, and all Windows computers and Linu servers in the control network will be shut down one by one.

[0025] Beneficial effects of the present invention:

[0026] 1) Efficient and convenient

[0027] The implementation scheme of the present invention simplifies the process of multi-platform device management, makes shutdown operations more convenient and efficient, and reduces operation and maintenance costs.

[0028] 2) Cross-platform support

[0029] The present invention can uniformly manage computers of Linux and Windows systems in heterogeneous systems, implement a one-key shutdown operation, and significantly reduce the workload and error risk of administrators.

[0030] 3) Safe and reliable

[0031] Perform status detection before shutdown to ensure the safety and reliability of the shutdown process and avoid data loss or system damage due to unexpected situations. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a design scheme diagram of the method of the present invention;

[0033] Figure 2 This is a one-key shutdown operation flow chart;

[0034] Figure 3 This is a diagram of the one-button shutdown deployment plan for the UAV system command and control center. DETAILED DESCRIPTION

[0035] The present invention provides a method for solving the one-key shutdown of multiple computers in a heterogeneous system. The design scheme of the present invention is as follows Figure 1 As shown, a set of central control services and a set of message queue services are deployed in the Linux server of the heterogeneous system, and the client control software is installed in the window system computer. After the entire system is powered on, all services and control software are automatically started, and all client control software establishes a communication connection with the central control service.

[0036] The one-key shutdown operation flow chart of the present invention is as follows Figure 2As shown, the administrator or operator double-clicks the button of the client control software on the client computer with one-key shutdown control authority, and the client control software sends a one-key shutdown command to the central control server through the TCP / IP interface; after the central control service receives the shutdown command, it sends the shutdown command to the message queue service, and the message queue service sends the shutdown command to each client computer in the network environment through the message pipeline; after each client computer receives the shutdown command, in order to ensure the safety and reliability of the shutdown process, it first performs its own status detection, and after the detection meets the shutdown conditions, it feeds back the confirmation shutdown command to the central control service, and finally waits for the preset delayed shutdown time (n1 seconds, n2 seconds, and n3 seconds are all freely settable shutdown delay times) to expire, and then executes the client computer's own shutdown operation; after receiving the shutdown confirmation command from each client, the central control service completes its own shutdown to ensure that all computers in the network environment have completed the shutdown operation.

[0037] like Figure 3 As shown in the figure, the UAV command and control center system is a typical heterogeneous system. The background processing services and front-end programs are deployed in the Linux system, and the streaming computer, access computer and each seat computer are Windows systems. The server, streaming computer and access computer are installed in the cabinet, and each seat computer is installed on the operating seat. The cabinet is placed behind the integrated display screen, with a small space, and personnel cannot enter to perform computer-related operations.

[0038] The specific implementation process of the present invention in the UAV command and control center system is as follows:

[0039] 1) First, deploy a set of central control services and a set of message queue services on the server;

[0040] 2) Secondly, install the client control software in the access computer, streaming computer and each seat computer, and set the software to start automatically upon power-on. Through the configuration file settings, one of the seat computers has one-key shutdown control; at the same time, the configuration file can freely configure the delay shutdown time of each seat computer after receiving the shutdown command;

[0041] 3) After the UAV system is powered on, the server and seat computers are powered on in turn, the central control service and message queue service in the server are started, and the connection and test communication between the two services are completed. After the communication is normal, the central control service opens the network interface and waits for the client control software to issue a switch command; the one-key shutdown client control software on each seat computer is started, and it is registered with the message queue service in the server through the MQTT protocol, and a unique communication channel is established with the message queue service.

[0042] 4) Perform flight monitoring tasks;

[0043] 5) After the mission is completed, the drone system needs to be shut down. At this time, the seat computer operator with one-key shutdown control authority only needs to double-click the one-key shutdown client software button, and all Windows computers and Linu servers in the control network will be shut down one by one.

Claims

1. A method for shutting down multiple computers in a heterogeneous system with one key, characterized by: One or more central control servers are deployed in a network environment, and a set of central control services and a set of message queue services are deployed in the server; client control software is installed and deployed on each client computer, and the configuration can be used to set whether the client computer has the control authority for one-key shutdown and how long the shutdown operation is delayed; the server is turned on, the message queue service is started, and the central control service is started; each client computer is powered on and turned on, and the client control software is automatically started; the administrator or operator double-clicks the button of the client control software on the client computer with one-key shutdown control authority to send a one-key shutdown command; after receiving the shutdown command, the central control service sends the shutdown command to the message queue service, and the message queue service sends the shutdown command to each client computer in the network environment through a message pipeline; after receiving the shutdown command, each client computer ensures the safety and reliability of the shutdown process, first performs its own status detection, and after meeting the shutdown conditions, it feeds back the confirmation shutdown command to the central control service, and finally waits for the preset delayed shutdown time to expire, and then executes the client computer's own shutdown operation; after receiving the shutdown confirmation command from each client, the central control service completes its own shutdown, and finally realizes the unified shutdown operation of multiple computers.

2. A method for one-key shutdown of multiple computers in heterogeneous systems according to claim 1, characterized in that: After the client control software is started, it automatically registers with the message queue service in the central control server through the MQTT protocol and establishes a unique communication channel with the message queue service. If the registration between the client control software and the message queue service fails, it will re-register after a certain period of time, and repeat the registration cycle until the registration is successful and the communication channel is established.

3. A method for one-key shutdown of multiple computers in heterogeneous systems according to claim 1, characterized in that: The single-client control software sends shutdown commands and confirms shutdown commands by communicating with the central control service of the central control server through the TCP / IP protocol to ensure the security and reliability of the commands.

4. A method for solving the one-key shutdown of multiple computers in heterogeneous systems according to claim 1, characterized in that: After each client computer receives the shutdown command from the pipeline established with the message queue service during its initialization, in order to ensure the safety and reliability of the shutdown process, it first performs its own status detection. After detecting that the shutdown conditions are met, it will confirm the shutdown command and feedback it to the central control service.

5. A method for one-key shutdown of multiple computers in heterogeneous systems according to claim 1, characterized in that: Each client computer receives the shutdown command and performs its own status detection. After the shutdown conditions are met, it waits for n seconds and then executes its own shutdown operation. n seconds is the delayed shutdown time preset by the user through the configuration file and can be freely set.

6. A method for one-key shutdown of multiple computers in heterogeneous systems according to claim 1, characterized in that: The method is applied to the UAV command and control center system. The UAV command and control center system is a typical heterogeneous system. The background processing service and the front-end program are deployed in the Linux system. The streaming computer, the access computer and the seat computers are Windows systems. The server, the streaming computer and the access computer are installed in the cabinet, and the seat computers are installed on the operating seat. The specific implementation process is as follows: 1) First, deploy a set of central control services and a set of message queue services on the server; 2) Secondly, the client control software is installed in the access computer, streaming computer and each seat computer, and the software is set to start automatically upon power-on. Through the configuration file setting, one of the seat computers has the one-key shutdown control right; at the same time, the configuration file can be freely configured to delay the shutdown time of each seat computer after receiving the shutdown command; 3) After the drone system is powered on, the server and seat computers are powered on in turn, the central control service and message queue service in the server are started, and the connection and test communication between the two services are completed. After the communication is normal, the central control service opens the network interface and waits for the client control software to issue a switch command; the one-key shutdown client control software on each seat computer is started, and it is registered with the message queue service in the server through the MQTT protocol, and a unique communication channel is established with the message queue service; 4) Perform flight monitoring tasks; 5) After the mission is completed, the drone system needs to be shut down. At this time, the seat computer operator with one-key shutdown control authority only needs to double-click the one-key shutdown client software button, and all Windows computers and Linu servers in the control network will be shut down one by one.

Citation Information

Patent Citations

  • Open system and method for computer

    CN101046748A

  • Method and system for remote centralized shutdown

    CN101610159A

  • Method and system for remotely controlling equipment, server, client equipment and medium

    CN113364979A

  • Cross-cloud multi-cluster deployment operation and maintenance method and system, processor and storage medium

    CN114389936A

  • Shutdown control method

    CN116709475A