Server remote control method and device, server and storage medium

By using the master server to process the graphical user interface data of the controlled server in the server cluster to generate a virtual interface and perform remote control, the problem of difficult hardware and maintenance costs is solved, and efficient management of multiple servers is achieved and cost reduction is achieved.

CN119248677AInactive Publication Date: 2025-01-03ZHEJIANG DAHUA TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411307778.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2025-01-03
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In server clusters, it is difficult for the prior art to reduce hardware costs and maintenance costs at the same time. Using BMC management servers can reduce maintenance costs but increase hardware costs, while server clusters without BMC reduce hardware costs but increase maintenance costs.

Method used

By sending control instructions in the main control server to establish a session with the controlled server, receiving and processing graphical user interface data to generate a virtual interface, and sending simulated instructions in the virtual interface for remote control, the unified management of multiple controlled servers is realized and remote control.

Benefits of technology

This method enables a small number of master servers with BMC to manage and remotely control multiple controlled servers, reducing hardware and maintenance costs while increasing the response speed of remote control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248677A_ABST
    Figure CN119248677A_ABST
Patent Text Reader

Abstract

The invention relates to a server remote control method and device, a server and a storage medium, and the method comprises the steps: building a session with at least one corresponding controlled server through transmitting a control instruction; based on the session, receiving graphical user interface data transmitted by at least one controlled server, and processing the graphical user interface data through a BMC (Baseboard Management Controller) to obtain a corresponding virtual interface; the simulation instruction is sent to at least one controlled server, so that the controlled server is remotely controlled in the corresponding virtual interface. According to the method and the device, the virtual interface of the controlled server can be generated through the master control server with the BMC in the server cluster so as to perform remote control and management on the controlled server, the plurality of controlled servers can be managed only by a small number of master control servers with the BMC in the server cluster, and the hardware cost and the maintenance cost are comprehensively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server management technology, and in particular to a server remote control method, device, server and storage medium. Background Art

[0002] A baseboard management controller (BMC) is an embedded microcontroller that is usually integrated on a server motherboard and is used to monitor, manage, and maintain the server's hardware and systems.

[0003] In the server cluster, most of the current servers have BMC. Using BMC to manage the server can reduce the server maintenance cost, but the server hardware cost is relatively high. If a server cluster without BMC is used, the server hardware cost can be reduced, but the management and maintenance cost will be relatively high. Therefore, for the current server cluster, it is necessary to comprehensively reduce the hardware cost and maintenance cost. Summary of the invention

[0004] Based on this, it is necessary to provide a server remote control method, device, server and storage medium that can comprehensively reduce hardware cost and maintenance cost in response to the above technical problems.

[0005] In a first aspect, a server remote control method is provided in this embodiment, which is applied to a server cluster, wherein the server cluster includes a master server and a controlled server; the method is applicable to at least one master server having a BMC; the method includes:

[0006] Establishing a session with at least one of the corresponding controlled servers by sending a control instruction;

[0007] Based on the session, receiving graphical user interface data transmitted by at least one of the controlled servers, and obtaining a corresponding virtual interface through the BMC processing;

[0008] By sending a simulation instruction to at least one of the controlled servers, the controlled server is remotely controlled in the corresponding virtual interface.

[0009] In some of the embodiments, it also includes:

[0010] A connection is established in advance with at least one of the controlled servers, and the controlled servers are managed in a unified manner.

[0011] In some of the embodiments, obtaining the corresponding virtual interface through the BMC processing includes:

[0012] The graphical user interface data is parsed and outputted through a graphics processing unit in the BMC to obtain the virtual interface.

[0013] In some of the embodiments, it also includes:

[0014] Through the virtual interface, multiple controlled servers are remotely controlled simultaneously.

[0015] In a second aspect, a server remote control method is provided in this embodiment, which is applied to a server cluster, wherein the server cluster includes a master server and a controlled server; the method is applicable to at least one of the controlled servers; the method includes:

[0016] In response to the control instruction sent by the main control server, establish a session with the main control server;

[0017] Based on the session, transmitting the collected graphical user interface data to the main control server;

[0018] Perform interface operations in response to the simulation instructions sent by the main control server.

[0019] In some of the embodiments, it also includes:

[0020] In response to the control instruction, a transmission parameter of the graphical user interface data is adjusted.

[0021] In a third aspect, a server remote control device is provided in this embodiment, which is applied to a server cluster, wherein the server cluster includes a master server and a controlled server; the device is applicable to at least one master server having a BMC; the device includes:

[0022] A first control module, configured to send a control instruction to establish a session with at least one of the corresponding controlled servers; and to send a simulation instruction to at least one of the controlled servers to remotely control the controlled servers in a corresponding virtual interface;

[0023] A first communication module, configured to receive graphical user interface data transmitted by at least one of the controlled servers based on the session;

[0024] The graphics processing module is used to obtain a corresponding virtual interface through the BMC processing.

[0025] In a fourth aspect, a server remote control device is provided in this embodiment, which is applied to a server cluster, wherein the server cluster includes a master server and a controlled server; the device is applicable to at least one of the controlled servers; the device includes:

[0026] A second control module is used to establish a session with the main control server in response to a control instruction sent by the main control server; and to perform interface operations in response to a simulation instruction sent by the main control server;

[0027] A second communication module, configured to transmit the collected graphical user interface data to the main control server based on the session;

[0028] The graphics acquisition module is used to acquire the graphical user interface data.

[0029] In a fifth aspect, a server is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the server remote control method described in the first aspect or the second aspect is implemented.

[0030] In a sixth aspect, in this embodiment, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the server remote control method described in the first aspect or the second aspect is implemented.

[0031] Compared with the related art, the server remote control method, device, server and storage medium provided in this embodiment are applied to a server cluster, and the server cluster includes a master control server and a controlled server; the server remote control method is applicable to at least one master control server with a BMC; the server remote control method includes: establishing a session with at least one corresponding controlled server by sending a control instruction; receiving graphical user interface data transmitted by at least one controlled server based on the session, and obtaining a corresponding virtual interface through BMC processing; sending a simulation instruction to at least one controlled server to remotely control the controlled server in the corresponding virtual interface. Through this embodiment, a virtual interface of a controlled server can be generated through a master control server with a BMC in a server cluster to remotely control and manage the controlled server. Only a small number of master control servers with a BMC are needed in a server cluster to manage multiple controlled servers, which comprehensively reduces hardware costs and maintenance costs.

[0032] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0034] Figure 1is a hardware structure block diagram of a terminal of a server remote control method in an embodiment;

[0035] Figure 2 is a flow chart of a server remote control method in an embodiment;

[0036] Figure 3 is a flow chart of a server remote control method in another embodiment;

[0037] Figure 4 is a flow chart of a server remote control method in yet another embodiment;

[0038] Figure 5 is a structural block diagram of a server remote control device in an embodiment;

[0039] Figure 6 is a structural block diagram of a server remote control device in another embodiment;

[0040] Figure 7 The diagram is a schematic diagram of the structure of a server cluster in an embodiment.

[0041] In the figure: 102, processor; 104, memory; 106, transmission device; 108, input and output device; 10, first control module; 20, first communication module; 30, graphics processing module; 40, second control module; 50, second communication module; 60, graphics acquisition module. DETAILED DESCRIPTION

[0042] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0043] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0044] The method embodiment provided in this embodiment can be executed in a terminal, a computer or a similar computing device. For example, running on a terminal such as a server, Figure 1 FIG. 1 is a hardware structure diagram of a terminal of the server remote control method of this embodiment. Figure 1 As shown, the terminal may include one or more ( Figure 1 Only one is shown in the figure) processor 102 and memory 104 for storing data, wherein processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA. The above terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0045] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the server remote control method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0046] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by the communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

[0047] A baseboard management controller (BMC) is an embedded microcontroller that is usually integrated on a server motherboard and is used to monitor, manage, and maintain the server's hardware and systems.

[0048] In the server cluster, most of the current servers have BMC. Using BMC to manage the server can reduce the server maintenance cost, but the server hardware cost is relatively high. If a server cluster without BMC is used, the server hardware cost can be reduced, but the management and maintenance cost will be relatively high. Therefore, for the current server cluster, it is necessary to comprehensively reduce the hardware cost and maintenance cost.

[0049] In this embodiment, a server cluster is provided, including a master server and a controlled server. The master server and the controlled server may be physical servers such as tower servers, rack servers, blade servers, etc. The master server has a BMC, which can realize remote management and hardware monitoring, and the controlled server may be a server without a BMC.

[0050] In this embodiment, a server remote control method is provided, which is applicable to the above-mentioned at least one master control server having a BMC. Figure 2is a flow chart of the server remote control method in this embodiment. Figure 2 As shown, the method comprises the following steps:

[0051] Step S210: Establishing a session with at least one corresponding controlled server by sending a control instruction.

[0052] Specifically, the master server and the controlled servers in the server cluster are connected in advance, and the controlled servers are incorporated into the management network of the master server to complete the networking.

[0053] When the master server needs to manage the controlled server, it determines at least one corresponding controlled server based on the relevant information of the management network stored in the master server, sends a control instruction, and establishes a session after the controlled server responds. The establishment of a session is a logical connection between servers based on the network connection.

[0054] It should be noted that each master server in the server cluster can be connected to multiple controlled servers, but each controlled server is only connected to one master server with a BMC.

[0055] Step S220: Based on the session, receiving graphical user interface data transmitted by at least one controlled server, and obtaining a corresponding virtual interface through BMC processing.

[0056] Specifically, after establishing a session, graphical user interface (GUI) data transmitted by at least one controlled server is received through the session, wherein the graphical user interface data is the server interface GUI image data collected by the controlled server, and the graphical user interface data is processed by the BMC in the master server to obtain the corresponding virtual interface of the controlled server. The master server can establish sessions with multiple controlled servers at the same time, and display the virtual interfaces of multiple controlled servers in the master server accordingly, thereby realizing unified management.

[0057] Step S230: Sending a simulation instruction to at least one controlled server to remotely control the controlled server in a corresponding virtual interface.

[0058] Specifically, in the master control server, the virtual interface of each controlled server can be viewed through the web interface, client, or other external display device provided by the BMC. Furthermore, the master control server is also configured with input devices such as a mouse and a keyboard. According to the operation of the virtual interface in the master control server, a simulation instruction is generated and sent to at least one corresponding controlled server to remotely control the controlled server in the virtual interface. Among them, the virtual interface includes but is not limited to the hardware status of the server, such as: CPU usage, memory usage, hard disk health, network interface card status, etc.; system information: such as the version of the operating system, patch installation status, installed software list, etc.; logs and alarms: the system log records the operation records, error information and warning information of the server to help users troubleshoot and monitor. Remote control includes but is not limited to the system configuration, application management, data management, security management, load balancing, troubleshooting and diagnosis, and automated management of the controlled server.

[0059] Finally, the remote control of the controlled server is terminated by sending an end instruction.

[0060] Through the above steps, a virtual interface of a controlled server can be generated through a master control server with a BMC in a server cluster to remotely control and manage the controlled server, especially for a mixed cluster including a master control server with a BMC and a controlled server without a BMC, only a small number of master control servers with a BMC are needed to manage and remotely control multiple controlled servers without relying on remote desktop tools, which comprehensively reduces the hardware cost and maintenance cost of the server cluster. In addition, the graphical user interface data is collected and transmitted in the above steps, and the server does not need to process graphical user interface events, so it can respond faster during remote control.

[0061] In some of the embodiments, it also includes:

[0062] Establish a connection with at least one controlled server in advance and manage the controlled servers in a unified manner.

[0063] Specifically, the establishment of a network connection between the master server and the controlled server can be achieved through the control module therein. When the IP of the controlled server is known, the connection is established directly through the network based on the IP of the controlled server. When the IP of the controlled server is unknown, the control module in the master server connects through multicast, broadcast, etc., and the control module in the controlled server responds and then establishes a connection.

[0064] When establishing a connection, the control module of the controlled server uploads the relevant information of the controlled server (e.g., server ID, IP address, MAC address, network configuration information, etc.) to the control module of the master server, which is saved in the master server and manages the controlled servers in a unified manner. In the unified management, the controlled servers can be grouped according to specific rules, for example, according to the server type, CPU size, model, etc., so that it is more convenient to manage according to the groups.

[0065] In this embodiment, the master server and the controlled servers in the server cluster are connected in advance, and the controlled servers are incorporated into the management network of the master server to complete the networking.

[0066] In some of the embodiments, obtaining the corresponding virtual interface through BMC processing in the above step S220 includes the following steps:

[0067] The graphical user interface data is parsed and outputted through the graphics processing unit in the BMC to obtain a virtual interface.

[0068] Specifically, the control module of the master server receives the graphical user interface data transmitted by the controlled server and then transmits it to the graphics processing module. The graphics processing module transmits the graphical user interface data to the graphics processing unit of the BMC chip through the V4L2 (Video for Linux 2) framework, and the graphics processing unit performs local parsing and processing on the graphical user interface data and finally outputs it through VGA (Video Graphics Array) to obtain the virtual interface corresponding to each controlled server, and each virtual interface corresponds to the interface (desktop) of the controlled server.

[0069] In this embodiment, the received graphical user interface data is parsed and outputted on the main control server, thereby obtaining a virtual interface corresponding to the controlled server.

[0070] Some of the embodiments also include: remotely controlling multiple controlled servers simultaneously through a virtual interface.

[0071] Specifically, the master server can establish connections with multiple controlled servers and maintain sessions at the same time. Accordingly, the virtual interfaces of multiple controlled servers can be maintained in the master server at the same time. Furthermore, each virtual interface can be switched in the master server to remotely control each controlled server separately, or multiple virtual interfaces can be displayed at the same time, and one or more virtual interfaces can be selected for remote control each time. The display forms of multiple virtual interfaces include but are not limited to four-grid, nine-grid, etc.

[0072] In this embodiment, by establishing and maintaining a session between the main control server and multiple controlled servers, multiple controlled servers can be remotely controlled at the same time, thereby improving management convenience and reducing maintenance costs.

[0073] This embodiment also provides a server remote control method, which is applicable to at least one controlled server. Figure 3 is a flow chart of a server remote control method in another embodiment. Figure 3 As shown, the method comprises the following steps:

[0074] Step S310: Establishing a session with the main control server in response to a control instruction sent by the main control server.

[0075] Specifically, the master server and the controlled server in the server cluster are connected in advance, and the controlled server is incorporated into the management network of the master server to complete the networking. When the connection is established, the control module of the controlled server uploads the relevant information of the controlled server (for example, server ID, IP address, MAC address, network configuration information, etc.) to the control module of the master server, which is saved in the master server and the controlled servers are managed uniformly.

[0076] When the master server needs to manage the controlled server, it determines at least one corresponding controlled server to send a control instruction according to the relevant information of the management network stored in the master server. The controlled server responds to the control instruction and establishes a session with the master server.

[0077] Step S320: Based on the session, the collected graphical user interface data is transmitted to the main control server.

[0078] Specifically, after the session is established, a sampling command is sent to the graphics acquisition module through the control module. The graphics acquisition module in the controlled server calls the CPU soft acquisition driver through the V4L2 framework to collect the graphical user interface data of the server desktop. After the collection is completed, encoding and data packaging are performed, and the graphical user interface data is transmitted to the control module of the main control server through the communication module.

[0079] Step S330, performing interface operations in response to the simulation instructions sent by the main control server.

[0080] Specifically, in response to the simulation instruction sent by the master server, the operation corresponding to the simulation instruction is performed in the desktop of the controlled server, thereby realizing remote control. The simulation instruction can be a simulation instruction corresponding to the operation implemented by the master server in the virtual interface through input devices such as a mouse and keyboard.

[0081] Finally, in response to the end instruction sent by the main control server, the collection of graphical user interface data is stopped.

[0082] Through the above steps, a virtual interface of a controlled server can be generated through a master control server with a BMC in a server cluster to remotely control and manage the controlled server, especially for a mixed cluster including a master control server with a BMC and a controlled server without a BMC, only a small number of master control servers with a BMC are needed to manage and remotely control multiple controlled servers without relying on remote desktop tools, which comprehensively reduces the hardware cost and maintenance cost of the server cluster. In addition, the graphical user interface data is collected and transmitted in the above steps, and the server does not need to process graphical user interface events, so it can respond faster during remote control.

[0083] In some of the embodiments, it also includes:

[0084] In response to the control instruction, a transmission parameter of the graphical user interface data is adjusted.

[0085] Specifically, in response to the control instruction, a session is established and the graphics acquisition module in the controlled server is controlled to start working, and encoding and data packaging are performed after the acquisition is completed. Through the control instruction, the working state of the graphics acquisition module can also be adjusted, that is, the transmission parameters of the graphical user interface data, such as frame rate, pixel size, etc., can be adjusted.

[0086] In this embodiment, the controlled server can adjust the working state of the graphic acquisition module during the transmission of the graphical user interface data by responding to the control instruction.

[0087] The present embodiment is described and illustrated below through preferred embodiments.

[0088] Figure 4 is a flow chart of the server remote control method in this embodiment, which is applied to a server cluster, wherein the server cluster includes at least one master server with a BMC and at least one controlled server, such as Figure 4 As shown, the method comprises the following steps:

[0089] Step S410: Establish a connection between the master server and the controlled servers through a network, save relevant information of the controlled servers in the master server, and group and uniformly manage the controlled servers.

[0090] Step S420: In the controlled server connected to the main control server, a control instruction is sent accordingly. After the controlled server responds to the control instruction, a session is established between the two parties.

[0091] Step S430, collecting the graphical user interface data of the server desktop in the controlled server and transmitting it to the control module of the main control server.

[0092] Step S440: After receiving the graphical user interface data, the main control server parses and outputs the graphical user interface data through the BMC to obtain a virtual interface corresponding to the controlled server.

[0093] Step S450: Sending a simulation instruction to at least one controlled server to remotely control the controlled server in a corresponding virtual interface.

[0094] Step S460: The controlled server responds to the simulation instruction and performs corresponding operations in the server interface.

[0095] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0096] This embodiment can generate a virtual interface of a controlled server through a master control server with a BMC in a server cluster to remotely control and manage the controlled server, especially for a mixed cluster including a master control server with a BMC and a controlled server without a BMC, only a small number of master control servers with a BMC are needed to manage and remotely control multiple controlled servers, without relying on remote desktop tools, which comprehensively reduces the hardware cost and maintenance cost of the server cluster. In addition, the graphical user interface data is collected and transmitted in the above steps, and the server does not need to process graphical user interface events, so it can respond faster during remote control.

[0097] In this embodiment, a server remote control device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. The terms "module", "unit", "subunit", etc. used below can implement a combination of software and / or hardware of predetermined functions. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0098] Figure 5 : is a structural block diagram of the server remote control device in this embodiment. The device is applied to a server cluster, which includes a master server and a controlled server. The device is applicable to at least one master server with a BMC. Figure 5 As shown, the device comprises:

[0099] The first control module 10 is used to send a control instruction to establish a session with at least one corresponding controlled server; and to send a simulation instruction to at least one controlled server to remotely control the controlled server in a corresponding virtual interface;

[0100] A first communication module 20, configured to receive graphical user interface data transmitted by at least one controlled server based on a session;

[0101] The graphic processing module 30 is used to obtain a corresponding virtual interface through BMC processing.

[0102] Through the device provided in this embodiment, a virtual interface of a controlled server can be generated through a master control server with a BMC in a server cluster to remotely control and manage the controlled server, especially for a mixed cluster including a master control server with a BMC and a controlled server without a BMC, only a small number of master control servers with a BMC are needed to manage and remotely control multiple controlled servers, without relying on remote desktop tools, which comprehensively reduces the hardware cost and maintenance cost of the server cluster. In addition, the graphical user interface data is collected and transmitted in the above steps, and the server does not need to process graphical user interface events, so it can respond faster during remote control.

[0103] Figure 6 1 is a structural block diagram of a server remote control device in another embodiment, which is applied to a server cluster, and the server cluster includes a master server and a controlled server; the device is applicable to at least one controlled server. Figure 6 As shown, the device comprises:

[0104] The second control module 40 is used to establish a session with the main control server in response to a control instruction sent by the main control server; and to perform interface operations in response to a simulation instruction sent by the main control server;

[0105] A second communication module 50 is used to transmit the collected graphical user interface data to the main control server based on the session;

[0106] The graphic acquisition module 60 is used to acquire the graphic user interface data.

[0107] Through the device provided in this embodiment, a virtual interface of a controlled server can be generated through a master control server with a BMC in a server cluster to remotely control and manage the controlled server, especially for a mixed cluster including a master control server with a BMC and a controlled server without a BMC, only a small number of master control servers with a BMC are needed to manage and remotely control multiple controlled servers, without relying on remote desktop tools, which comprehensively reduces the hardware cost and maintenance cost of the server cluster. In addition, the graphical user interface data is collected and transmitted in the above steps, and the server does not need to process graphical user interface events, so it can respond faster during remote control.

[0108] Figure 7 Schematic diagram of the structure of the server cluster in this embodiment. Figure 7As shown, the server cluster includes at least one master server (one is shown in the figure) having a BMC and at least one controlled server (two are shown in the figure).

[0109] The above-mentioned server remote control device is installed in the main control server and the controlled server respectively, and a connection between the two servers is established through the network. The main control server includes a first control module, a first communication module and a graphics processing module; the controlled server includes a second control module, a second communication module and a graphics acquisition module. Among them, the first control module can control the first communication module, the graphics processing module and the second control module, and the second control module can control the second communication module, the graphics acquisition module and the current server. The first communication module and the second communication module can transmit data and various instructions through the network to realize data exchange between the main control server and the controlled server. The graphics sampling module can collect the graphical user interface data of the controlled server desktop through software collection, and encode and package the image data. The graphics processing module can decode the graphical user interface data and process the graphical user interface data through the built-in image processing function of the BMC.

[0110] When remote control is required, the corresponding connected controlled server is found in the first control module of the main control server, and then a control command is initiated. After receiving the control command, the controlled server returns response information to the first control module, and then the two parties establish a session.

[0111] In the controlled server, the graphics sampling module calls the CPU soft sampling driver through the V4L2 framework to collect the graphical user interface data of the server desktop. After completing the sampling of the server desktop graphical user interface data, it is transmitted to the first control module of the master server through the second communication module. After receiving the graphical user interface data, the first control module of the master server transmits the data to the graphics processing module. The graphics processing module transmits the graphical user interface data to the graphics processing unit of the BMC chip through the V4L2 framework, and the graphics processing unit processes the graphical user interface data and finally outputs it through VGA.

[0112] The first control module of the main control server controls the desktop operation of the controlled server by sending a simulation instruction to the second control module of the controlled server.

[0113] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0114] This embodiment also provides a server, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0115] Optionally, the server may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0116] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and will not be repeated in this embodiment.

[0117] In addition, in combination with the server remote control method provided in the above embodiments, a storage medium may be provided in this embodiment to implement the method. The storage medium stores a computer program; when the computer program is executed by a processor, any server remote control method in the above embodiments is implemented.

[0118] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0119] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0120] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0121] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0122] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A server remote control method, characterized in that: Applied to a server cluster, the server cluster includes a master server and a controlled server; The method is applicable to at least one master control server having a BMC; the method comprises: Establishing a session with at least one of the corresponding controlled servers by sending a control instruction; Based on the session, receiving graphical user interface data transmitted by at least one of the controlled servers, and obtaining a corresponding virtual interface through the BMC processing; By sending a simulation instruction to at least one of the controlled servers, the controlled server is remotely controlled in the corresponding virtual interface.

2. The server remote control method according to claim 1, characterized in that: Also includes: A connection is established in advance with at least one of the controlled servers, and the controlled servers are managed in a unified manner.

3. The server remote control method according to claim 1, characterized in that: The obtaining of a corresponding virtual interface through the BMC processing includes: The graphical user interface data is parsed and outputted through a graphics processing unit in the BMC to obtain the virtual interface.

4. The server remote control method according to claim 1, characterized in that: Also includes: Through the virtual interface, multiple controlled servers are remotely controlled simultaneously.

5. A server remote control method, characterized in that: Applied to a server cluster, the server cluster includes a master server and a controlled server; The method is applicable to at least one of the controlled servers; the method comprises: In response to the control instruction sent by the main control server, establish a session with the main control server; Based on the session, transmitting the collected graphical user interface data to the main control server; Perform interface operations in response to the simulation instructions sent by the main control server.

6. The server remote control method according to claim 5, characterized in that: Also includes: In response to the control instruction, a transmission parameter of the graphical user interface data is adjusted.

7. A server remote control device, characterized in that: Applied to a server cluster, the server cluster includes a master server and a controlled server; The device is applicable to at least one master control server having a BMC; the device comprises: A first control module, configured to send a control instruction to establish a session with at least one of the corresponding controlled servers; and to send a simulation instruction to at least one of the controlled servers to remotely control the controlled servers in a corresponding virtual interface; A first communication module, configured to receive graphical user interface data transmitted by at least one of the controlled servers based on the session; The graphics processing module is used to obtain a corresponding virtual interface through the BMC processing.

8. A server remote control device, characterized in that: Applied to a server cluster, the server cluster includes a master server and a controlled server; The device is applicable to at least one of the controlled servers; the device comprises: A second control module is used to establish a session with the main control server in response to a control instruction sent by the main control server; and to perform interface operations in response to a simulation instruction sent by the main control server; A second communication module, configured to transmit the collected graphical user interface data to the main control server based on the session; The graphics acquisition module is used to acquire the graphical user interface data.

9. A server, comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the server remote control method according to any one of claims 1 to 4 or claims 5 to 6.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the server remote control method described in any one of claims 1 to 4 or claims 5 to 6 are implemented.

Citation Information

Patent Citations

  • Server remote control method and system

    CN107800810A

  • Remote control method and device

    CN109951726A

  • Multi-node server host control method and device, equipment and storage medium

    CN116723198A