Server remote management method and device

文档序号:7288 发布日期:2021-09-17 浏览:43次 中文

1. A server remote management method is applied to a proxy server, and comprises the following steps:

receiving request information sent by terminal equipment, wherein the request information is used for requesting to operate a target server;

acquiring access information of a target Baseboard Management Controller (BMC) corresponding to the target server;

establishing connection with the target BMC through the access information;

receiving a first graphical interface sent by the target BMC, wherein the first graphical interface is used for operating the target server;

processing the first graphical interface based on a preset processing mode to obtain a second graphical interface;

and sending the second graphical interface to the terminal equipment so that a user can remotely operate the target server through the second graphical interface.

2. The method of claim 1, wherein establishing the connection with the target BMC through the access information comprises:

creating a target management and control example;

starting a KVM switcher IKVM client with a remote management function in the target management and control example;

establishing connection with the target BMC through the IKVM client and the access information;

the receiving of the first graphical interface sent by the target BMC includes:

and receiving a first graphical interface sent by the target BMC through the IKVM client.

3. The method of claim 2, wherein prior to processing the first graphical interface based on the pre-set processing mode, the method further comprises:

outputting the first graphical interface to a graphical interface service of the target management and control instance through the IKVM client;

and extracting the first graphical interface according to the video frame cache data of the graphical interface service by the target management and control example.

4. The method of claim 3, wherein prior to sending the second graphical interface to the terminal device, the method further comprises:

and converting the second graphical interface into data of a preset transmission protocol.

5. The method according to any one of claims 1-4, further comprising:

receiving an operation instruction sent by the terminal equipment, wherein the operation instruction is an instruction generated according to an input event of a user in the second graphical interface;

and sending the operation instruction to the target BMC.

6. The method according to any one of claims 1-4, wherein the request information carries a user identifier of a target user; before processing the first graphical interface based on a preset processing mode and acquiring a second graphical interface, the method further comprises:

acquiring authority information of the target user based on the user identification;

and determining the preset processing mode according to the authority information.

7. The method of any of claims 1-4, wherein the accessing information comprises: the network protocol IP address of the target BMC and the access password of the target BMC.

8. A server remote management method is applied to terminal equipment and comprises the following steps:

sending request information to a proxy server, wherein the request information is used for requesting to operate a target server;

receiving a second graphical interface sent by the proxy server; the second graphical interface is obtained by processing a first graphical interface by the proxy server based on a preset processing mode, and the first graphical interface is sent to the proxy server by a target BMC corresponding to the target server and used for operating the target server;

and displaying the second graphical interface so that a user can remotely operate the target server through the second graphical interface.

9. The method of claim 8, further comprising:

receiving an input event of a user in the second graphical interface;

generating an operation instruction according to the input event;

and sending the operation instruction to the proxy server.

10. A proxy server, comprising:

the first communication unit is used for receiving request information sent by terminal equipment, and the request information is used for requesting to operate a target server in a server cluster;

the acquisition unit is used for acquiring the access information of a target Baseboard Management Controller (BMC) corresponding to the target server;

the second communication unit is used for establishing connection with the target BMC through the access information;

the second communication unit is further configured to receive a first graphical interface sent by the target BMC, where the first graphical interface is a graphical interface used for operating the target server;

the processing unit is used for processing the first graphical interface based on a preset processing mode to obtain a second graphical interface;

the first communication unit is further configured to send the second graphical interface to the terminal device, so that a user can perform remote operation on the target server through the second graphical interface.

11. A terminal device, comprising:

the server comprises a sending unit, a receiving unit and a sending unit, wherein the sending unit is used for sending request information to the proxy server, and the request information is used for requesting to operate a target server in the server cluster;

the receiving unit is used for receiving a second graphical interface sent by the proxy server; the second graphical interface is obtained by processing a first graphical interface by the proxy server based on a preset processing mode, and the first graphical interface is sent to the proxy server by a target BMC corresponding to the target server and used for operating the target server;

and the display unit is used for displaying the second graphical interface so that a user can remotely operate the target server through the second graphical interface.

12. An electronic device, comprising: a memory for storing a computer program and a processor; the processor is configured to cause the electronic device to implement the server remote management method of any one of claims 1-9 when the computer program is invoked.

13. A computer-readable storage medium, characterized in that a computer program is stored thereon, which, when executed by a computing device, causes the computing device to implement the server remote management method of any one of claims 1 to 9.

14. A computer program product, characterized in that it causes a computer to implement the server remote management method of any one of claims 1 to 9, when said computer program product is run on said computer.

Background

The server is usually equipped with a Baseboard Management Controller (BMC), and based on an Intelligent Platform Management Interface (IPMI) 2.0, the BMC of the server already supports an IKVM (KVM-over-IP, KVM switch with remote Management function) function. The IKVM function in the BMC enables a user to remotely manage the server through the terminal device.

In the prior art, the implementation manner of the remote management of the server by the user through the terminal device is as follows: the method comprises the steps that a user firstly obtains access information of a BMC of a server, then connection is established between the user and the BMC through the access information of the BMC in a browser or a remote management client, the BMC sends a graphical interface of an operating system of the server to a terminal device through the connection established with the terminal device, the terminal device displays the graphical interface of the operating system of the server, and when the terminal device receives an operating instruction input by the user on the graphical interface of the operating system of the server, the operating instruction is sent to the BMC through the connection established with the BMC, so that remote management of the server through the terminal device is achieved. In the process of remotely managing the server through the terminal device, the administrator may also have a need to process a graphical interface of the operating system of the server output by the BMC, for example: and carrying out scaling, watermarking, safety control and other processing on a graphical interface of an operating system of the server output by the BMC. However, in the existing implementation manner of performing remote management on a server through a terminal device, since the BMC of the server directly establishes a connection with the terminal device, and the BMC directly sends the graphical interface of the operating system of the unprocessed server to the terminal device, the requirement for processing the graphical interface of the operating system of the server output by the BMC cannot be met.

Disclosure of Invention

In view of this, the present invention provides a method and an apparatus for remotely managing a server, so as to solve the problem that, in a server management manner in the prior art, a requirement for processing a graphical interface of an operating system of the server output by a BMC cannot be met.

In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:

in a first aspect, an embodiment of the present invention provides a server remote management method, which is applied to a proxy server, and the method includes:

receiving request information sent by terminal equipment, wherein the request information is used for requesting to operate a target server;

acquiring access information of the BMC corresponding to the target server;

establishing connection with the target BMC through the access information;

receiving a first graphical interface sent by the target BMC, wherein the first graphical interface is used for operating the target server;

processing the first graphical interface based on a preset processing mode to obtain a second graphical interface;

and sending the second graphical interface to the terminal equipment so that a user can remotely operate the target server through the second graphical interface.

As an optional implementation manner of the embodiment of the present invention, the establishing a connection with the target BMC through the access information includes:

creating a target management and control example;

starting an IKVM client in the target management and control example;

establishing connection with the target BMC through the IKVM client and the access information;

the receiving of the first graphical interface sent by the target BMC includes:

and receiving a first graphical interface sent by the target BMC through the IKVM client.

As an optional implementation manner of the embodiment of the present invention, before processing the first graphical interface based on the preset processing manner, the method further includes:

outputting the first graphical interface to a graphical interface service of the target management and control instance through the IKVM client;

and extracting the first graphical interface according to the video frame cache data of the graphical interface service by the target management and control example.

As an optional implementation manner of the embodiment of the present invention, before sending the second graphical interface to the terminal device, the method further includes:

and converting the second graphical interface into data of a preset transmission protocol.

As an optional implementation manner of the embodiment of the present invention, the method further includes:

receiving an operation instruction sent by the terminal equipment, wherein the operation instruction is an instruction generated according to an input event of a user in the second graphical interface;

and sending the operation instruction to the target BMC.

As an optional implementation manner of the embodiment of the present invention, the request information carries a user identifier of a target user; before processing the first graphical interface based on a preset processing mode and acquiring a second graphical interface, the method further comprises:

acquiring authority information of the target user based on the user identification;

and determining the preset processing mode according to the authority information.

As an optional implementation manner of the embodiment of the present invention, the access information includes: the network protocol IP address of the target BMC and the access password of the target BMC.

In a second aspect, an embodiment of the present invention provides a server remote management method, which is applied to a terminal device, and the method includes:

sending request information to a proxy server, wherein the request information is used for requesting to operate a target server;

receiving a second graphical interface sent by the proxy server; the second graphical interface is obtained by processing a first graphical interface by the proxy server based on a preset processing mode, and the first graphical interface is sent to the proxy server by a target BMC corresponding to the target server and used for operating the target server;

and displaying the second graphical interface so that a user can remotely operate the target server through the second graphical interface.

As an optional implementation manner of the embodiment of the present invention, the method further includes:

receiving an input event of a user in the second graphical interface;

generating an operation instruction according to the input event;

and sending the operation instruction to the proxy server.

In a third aspect, an embodiment of the present invention provides a proxy server, including:

the first communication unit is used for receiving request information sent by terminal equipment, and the request information is used for requesting to operate a target server in a server cluster;

the acquisition unit is used for acquiring the access information of a target Baseboard Management Controller (BMC) corresponding to the target server;

the second communication unit is used for establishing connection with the target BMC through the access information;

the second communication unit is further configured to receive a first graphical interface sent by the target BMC, where the first graphical interface is a graphical interface used for operating the target server;

the processing unit is used for processing the first graphical interface based on a preset processing mode to obtain a second graphical interface;

the first communication unit is further configured to send the second graphical interface to the terminal device.

As an optional implementation manner of the embodiment of the present invention, the second communication unit is specifically configured to create a target management and control instance; starting an IKVM client in the target management and control example; and establishing connection with the target BMC through the IKVM client and the access information.

As an optional implementation manner of the embodiment of the present invention, the second communication unit is specifically configured to receive, by the IKVM client, a first graphical interface sent by the target BMC.

As an optional implementation manner of the embodiment of the present invention, the processing unit is further configured to output, by the IKVM client, the first graphical interface to a graphical interface service of the target management and control instance before the first graphical interface is processed based on the preset processing manner; and extracting the first graphical interface according to the video frame cache data of the graphical interface service through the target management and control instance.

As an optional implementation manner of the embodiment of the present invention, the first communication unit is further configured to convert the second graphical interface into data of a preset transmission protocol before sending the second graphical interface to the terminal device.

As an optional implementation manner of the embodiment of the present invention, the first communication unit is further configured to receive an operation instruction sent by the terminal device, where the operation instruction is an instruction generated according to an input event of a user in the second graphical interface;

the second communication unit is further configured to send the operation instruction to the target BMC.

As an optional implementation manner of the embodiment of the present invention, the request information carries a user identifier of a target user; the processing unit is further configured to obtain the authority information of the target user based on the user identifier before the first graphical interface is processed based on a preset processing mode and a second graphical interface is obtained; and determining the preset processing mode according to the authority information.

As an optional implementation manner of the embodiment of the present invention, the access information includes: the network protocol IP address of the target BMC and the access password of the target BMC.

In a fourth aspect, an embodiment of the present invention provides a terminal device, including:

the server comprises a sending unit, a receiving unit and a sending unit, wherein the sending unit is used for sending request information to the proxy server, and the request information is used for requesting to operate a target server in the server cluster;

the receiving unit is used for receiving a second graphical interface sent by the proxy server; the second graphical interface is obtained by processing a first graphical interface by the proxy server based on a preset processing mode, and the first graphical interface is sent to the proxy server by a target BMC corresponding to the target server and used for operating the target server;

and the display unit is used for displaying the second graphical interface so that a user can remotely operate the target server through the second graphical interface.

As an alternative implementation of the embodiment of the present invention,

the display unit is further used for receiving an input event of a user in the second graphical interface and generating an operation instruction according to the input event;

the sending unit is further configured to send the operation instruction to the proxy server.

In a fifth aspect, an embodiment of the present invention provides an electronic device, including: a memory for storing a computer program and a processor; the processor is configured to, when the computer program is called, enable the electronic device to implement the server remote management method according to any one of the above embodiments.

In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a computing device, the computing device is enabled to implement the server remote management method according to any one of the above embodiments.

In a seventh aspect, an embodiment of the present invention provides a computer program product, which when run on a computer, causes the computer to implement the server remote management method described in any one of the foregoing embodiments.

The server remote management method provided by the embodiment of the invention firstly receives request information which is sent by terminal equipment and used for requesting to operate a target server through a proxy server, secondly obtains access information of BMC corresponding to the target server, secondly establishes connection with the target BMC through the access information, and receives a graphical interface of an operating system of the target server, which is sent by the target BMC, and then processes the first graphical interface based on a preset processing mode to obtain a second graphical interface, and finally sends the second graphical interface to the terminal equipment. In the remote management method for the server provided by the embodiment of the invention, the terminal device and the BMC of the server are not directly connected, but are respectively connected with the terminal device and the BMC of the server through the proxy server, so that the embodiment of the invention can process the graphical interface of the operating system of the server sent by the BMC of the server in the proxy server, and then send the processed graphical interface of the operating system of the server to the terminal device, therefore, the embodiment of the invention can meet the requirement of processing the graphical interface of the operating system of the server output by the BMC, and solves the problem that the requirement of processing the graphical interface of the operating system of the server output by the BMC in the server management mode in the prior art cannot be met.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.

Fig. 1 is a scene architecture diagram of a server remote management method according to an embodiment of the present invention;

FIG. 2 is a flowchart illustrating steps of a method for remotely managing a server according to an embodiment of the present invention;

fig. 3 is a functional diagram of a proxy server according to an embodiment of the present invention;

fig. 4 is a second flowchart illustrating steps of a server remote management method according to an embodiment of the present invention;

fig. 5 is a block diagram of a proxy server according to an embodiment of the present invention;

fig. 6 is a block diagram of a terminal device according to an embodiment of the present invention;

fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.

Detailed Description

In order that the above objects, features and advantages of the present invention may be more clearly understood, a solution of the present invention will be further described below. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.

In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, but the present invention may be practiced in other ways than those described herein; it is to be understood that the embodiments described in this specification are only some embodiments of the invention, and not all embodiments.

In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion. Further, in the description of the embodiments of the present invention, "a plurality" means two or more unless otherwise specified.

First, a scenario architecture of a server remote management method according to an embodiment of the present invention is described below.

Referring to fig. 1, a scenario architecture of a server remote management method provided in an embodiment of the present invention includes: a server cluster (illustrated by including the server 101, the server 102, and the server 103 in fig. 1) composed of a plurality of servers, a proxy server 21, and a plurality of terminal devices (illustrated by including the terminal device 301, the terminal device 302, and the terminal device 303 in fig. 1).

Among them, the server is equipped with a Baseboard Management Controller (BMC) supporting the IKVM, and the BMC of the server can output a graphical interface of an operating system of the server to the proxy server 202.

The proxy server 21 includes: the administration database 201IKVM service 202. The management and control database 201 is used for storing access information of a BMC of a server, and the IKVM service 202 is used for creating a management and control instance for each request information in response to the request information sent by the terminal device for requesting the operation of the server, acquiring access information of the corresponding BMC, and establishing a connection with the BMC of the server requested to be operated by the terminal device through the management and control instance and the access information, so as to receive a graphical interface of an operating system of the server sent by the BMC of the server. The proxy server 21 is further configured to, after receiving the graphical interface of the operating system of the server sent by the BMC of the server, process the graphical interface of the operating system of the server sent by the BMC, and send the processed graphical interface of the operating system of the server to the terminal device.

The terminal device is configured to send an access request for requesting an operation on a specified server to the proxy server 21 (fig. 1 illustrates an example in which the terminal device 301 sends an access request for requesting an operation on the server 101 to the proxy server 21, the terminal device 302 sends an access request for requesting an operation on the server 102 to the proxy server 21, and the terminal device 303 sends an access request for requesting an operation on the server 103 to the proxy server 21), receive a graphical interface of an operating system of the corresponding server sent by the proxy server 21, and display a graphical interface of an operating system of the server.

In addition, the terminal device is further configured to generate an operation instruction according to an operation input by the user in the displayed graphical interface of the operating system of the server, and send the operation instruction to the proxy server 21, and the proxy server 21 is further configured to send the operation instruction to the corresponding server, so that the user can remotely operate the server through the terminal device.

The terminal device provided by the embodiment of the present invention may be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), an intelligent watch, and an intelligent bracelet terminal device, and the server and the proxy server may be devices such as a desktop server, a rack server, a cabinet server, and a blade server, or the terminal device, the server, and the proxy server may be other types of devices.

On the basis of the above content, an embodiment of the present invention provides a server remote management method, and as shown in fig. 2, the server remote management method includes the following steps:

s201, the terminal device sends request information to the proxy server.

Correspondingly, the proxy server receives the request information sent by the terminal equipment.

The request information is used for requesting to operate the target server.

Specifically, the terminal device may carry an identifier of the server in the request information, so as to indicate the server requesting the operation through the identifier of the server. The server identifier may be an IP address, an Identity Document (ID), or the like of the server.

S202, the proxy server obtains access information of a target Baseboard Management Controller (BMC) corresponding to the target server.

Specifically, the implementation manner of the proxy server acquiring the access information of the target BMC may be: and reading the access information corresponding to the target server from the management and control database. The management and control database stores access information corresponding to each server, and when request information for requesting operation on a target server is received, the access information corresponding to the target server is read, so that the access information of the target BMC is obtained. It should be further noted that the management and control database may be local data of the proxy server or may be a remote database, which is not limited in the embodiment of the present invention.

Optionally, the access information may include: a network Protocol (IP) address of the target BMC and an access password of the target BMC.

S203, the proxy server establishes connection with the target BMC through the access information.

As an optional implementation manner in this embodiment of the present invention, an implementation manner in which the proxy server establishes a connection with the target BMC through the access information may include the following steps a to c:

step a, the proxy server creates a target management and control example.

Specifically, an IKVM service is run in the proxy server, and a target management and control instance may be created through the IKVM service.

Step b, the proxy server starts a KVM switch (KVM-over-IP, IKVM) client with a remote management function in the target management and control example.

The IKVM client may be an IKVM client JViewer provided by a server vendor.

And step c, the proxy server establishes connection with the target BMC through the IKVM client and the access information.

In the above embodiment, the proxy server creates a target management and control instance, starts the IKVM client in the target management and control instance, and further establishes a connection with the target BMC through the IKVM client and the access information, so that the proxy server in the above embodiment may establish a connection with multiple terminal devices and multiple servers at the same time, and thus the server remote management method provided by the embodiment of the present invention may be suitable for managing and controlling multiple servers in a server cluster.

S204, the target BMC of the target server sends a first Graphical User Interface (GUI) to the proxy server.

Correspondingly, the proxy server receives the first graphical interface sent by the target BMC.

The first graphical interface is used for carrying out remote operation on the target server.

A graphical interface (GUI) refers to a computer-operated user interface that is displayed graphically. Specifically, in the embodiment of the present invention, the graphical interface of the operating system of the target server refers to a user interface of the operating system of the target server displayed in a graphical manner.

As described in the above example, when the proxy server establishes a connection with the target BMC through the IKVM client and the access information, an implementation manner of the proxy server receiving the first graphical interface sent by the target BMC may be:

and the proxy server receives a first graphical interface sent by the target BMC through the IKVM client.

For example, the IKVM client in the embodiment of the present invention may be an IKVM client provided by a server vendor.

S205, the proxy server processes the first graphical interface based on a preset processing mode to obtain a second graphical interface.

Before processing the first graphical interface based on the preset processing mode, the proxy server further needs to extract the first graphical interface. Optionally, an implementation manner of the proxy server extracting the first image interface may include:

outputting the first graphical interface to a graphical interface service (X server) of the target management and control instance through the IKVM client; and extracting the first graphical interface according to video frame buffer (frame buffer) data of the graphical interface service through the target management and control instance.

Specifically, the X protocol is composed of a graphic interface service (X server) and an X application (X client). The X server is mainly used for managing hardware settings (such as a video card, a hard disk, a mouse and the like) related to display on the host, and is responsible for drawing and displaying screen pictures and informing X clients of actions of input settings (such as a keyboard and a mouse). The X client is mainly responsible for processing events. Since the X server is used for realizing screen drawing and providing font functions, the framebuffer data in the X server is captured, and the first graphical interface can be extracted.

Optionally, processing the first graphical interface based on a preset processing manner may include one or more of the following processes:

and clipping the first graphical interface.

And zooming the first graphical interface.

And adding a watermark to the first graphical interface.

Deleting one or more controls in the first graphical interface.

Adding one or more controls in the first graphical interface.

Disabling one or more controls in the first graphical interface.

S206, the proxy server sends the second graphical interface to the terminal equipment.

Correspondingly, the terminal equipment receives the second graphical interface sent by the proxy server.

As described above, the second graphical interface of the terminal device is a graphical interface obtained by the proxy server processing the first graphical interface based on a preset processing manner, and the first graphical interface is a graphical interface which is sent by the target BMC corresponding to the target server to the proxy server and is used for managing the target server.

Further, since the remote operation of the server generally has a dedicated Protocol, such as a Virtual Network Controller (VNC) Protocol, an open source virtualization desktop transport Protocol (SPICE Protocol for Independent Computing environment, SPICE), and the like, and does not directly use data output by the IKVM client, the proxy server may also convert the second graphical interface into data of a preset transport Protocol before the proxy server sends the second graphical interface to the terminal device.

For example, the preset transport protocol may be a virtual network console VNC, SPICE, or the like, which is not limited in the embodiment of the present invention, and the preset transport protocol may be set according to a remote transport protocol supported by the terminal device in use.

Referring to the functional diagram of the proxy server shown in fig. 3, the main functions of the proxy server include: the method comprises the steps of firstly obtaining a first graphical interface from a target BMC of a target server through an IKVM client, then inputting the first graphical interface into a graphical interface service (X server) through the IKVM client, then capturing a video frame buffer (frame buffer) in the graphical interface service (X server) to obtain the first graphical interface, carrying out processing operations such as cutting, scaling, adding a watermark, deleting a control, adding the control and forbidding the control on the first graphical interface to generate a second graphical interface, and finally sending the second graphical interface to terminal equipment after carrying out format conversion operation on the second graphical interface.

And S207, the terminal equipment displays the second graphical interface so that a user can remotely operate the target server through the second graphical interface.

The server remote management method provided by the embodiment of the invention firstly receives request information which is sent by terminal equipment and used for requesting to operate a target server through a proxy server, secondly obtains access information of a target BMC corresponding to the target server, secondly establishes connection with the target BMC through the access information, and receives a graphical interface of an operating system of the target server, which is sent by the target BMC, and then processes the first graphical interface based on a preset processing mode to obtain a second graphical interface, and finally sends the second graphical interface to the terminal equipment. In the remote management method for the server provided by the embodiment of the invention, the terminal device and the BMC of the server are not directly connected, but are respectively connected with the terminal device and the BMC of the server through the proxy server, so that the embodiment of the invention can process the graphical interface of the operating system of the server sent by the BMC of the server in the proxy server, and then send the processed graphical interface of the operating system of the server to the terminal device, therefore, the embodiment of the invention can meet the requirement of processing the graphical interface of the operating system of the server output by the BMC, and solves the problem that the requirement of processing the graphical interface of the operating system of the server output by the BMC in the operation mode of the server in the prior art cannot be met.

Furthermore, because the operating authority of the BMC is very high, only a few managers can be configured with BMC login authority to avoid malicious operation of the server. However, in this server operation method, if a certain user is configured with BMC login authority, the user can obtain a graphical interface of an operating system of the server through the client to perform any operation on the server, and if a certain user is not configured with BMC login authority, the user cannot obtain the graphical interface of the operating system of the server, and cannot perform any operation on the server. In short, flexible configuration of the server operation authority cannot be performed for different users. In view of the foregoing problems, the server remote management method provided in the embodiment of the present invention further includes: the request information carries a user identifier of a user, that is, the request information carries a user identifier of a target user. Before step S205 (processing the first graphical interface based on a preset processing mode, and acquiring a second graphical interface), the method for remotely managing a server according to the embodiment of the present invention further includes: and the proxy server acquires the authority information of the target user based on the user identification and determines the preset processing mode according to the authority information.

In the server remote management method provided in the above embodiment, the request information carries the user identifier of the target user, and the proxy server may obtain the authority information of the target user based on the user identifier, determine the preset processing mode according to the authority information, and then process the first graphical interface based on the preset processing mode to obtain the second graphical interface, so that the above embodiment may send the graphical interfaces of the operating systems of different servers to different users, thereby configuring different server operating authorities for different users, and implementing flexible configuration of the server operating authorities.

Further, on the basis of the above steps S201 to S207, referring to fig. 4, the server remote management method provided in the embodiment of the present invention further includes the following steps:

s401, the terminal equipment receives an input event of a user in the second graphical interface.

Specifically, the input event may be an operation of a user on a control in the second graphical interface through a user input device such as a mouse, a keyboard, a touch screen, and the like.

And S402, the terminal equipment generates an operation instruction according to the input event.

And S403, the terminal equipment sends the operation instruction to the proxy server.

Correspondingly, the proxy server receives the operation instruction sent by the terminal equipment.

The operation instruction received by the proxy server is an instruction generated according to an input event of a user in the second graphical interface.

S404, the proxy server sends the operation instruction to the target BMC.

Correspondingly, the target BMC of the target server receives the operation instruction sent by the proxy server.

S405, the target BMC executes the operation instruction to the target server.

Based on the same inventive concept, as an implementation of the foregoing method, an embodiment of the present invention further provides a proxy server, where the proxy server embodiment corresponds to the foregoing method embodiment, and details in the foregoing method embodiment are not repeated in this embodiment for convenience of reading, but it should be clear that the proxy server in this embodiment can correspondingly implement all steps performed by the proxy server in the foregoing method embodiment.

The embodiment of the invention provides a proxy server. Fig. 5 is a schematic structural diagram of the proxy server, and as shown in fig. 5, the proxy server 500 includes:

a first communication unit 51, configured to receive request information sent by a terminal device, where the request information is used to request to operate a target server in a server cluster;

an obtaining unit 52, configured to obtain access information of a target baseboard management controller BMC corresponding to the target server;

a second communication unit 53, configured to establish a connection with the target BMC through the access information;

the second communication unit 53 is further configured to receive a first graphical interface sent by the target BMC, where the first graphical interface is a graphical interface used for operating the target server;

the processing unit 54 is configured to process the first graphical interface based on a preset processing mode to obtain a second graphical interface;

the first communication unit 51 is further configured to send the second graphical interface to the terminal device, so that a user can perform remote operation on the target server through the second graphical interface.

As an optional implementation manner of the embodiment of the present invention, the second communication unit 53 is specifically configured to create a target management and control instance; starting an IKVM client in the target management and control example; establishing connection with the target BMC through the IKVM client and the access information;

the second communication unit 53 is specifically configured to receive, by the IKVM client, the first graphical interface sent by the target BMC.

As an optional implementation manner of the embodiment of the present invention, the processing unit 54 is further configured to output, by the IKVM client, the first graphical interface to a graphical interface service of the target management and control instance before the first graphical interface is processed based on the preset processing manner; and extracting the first graphical interface according to the video frame cache data of the graphical interface service through the target management and control instance.

As an optional implementation manner of the embodiment of the present invention, the first communication unit 51 is further configured to convert the second graphical interface into data of a preset transmission protocol before sending the second graphical interface to the terminal device.

As an optional implementation manner of the embodiment of the present invention, the first communication unit 51 is further configured to receive an operation instruction sent by the terminal device, where the operation instruction is an instruction generated according to an input event of a user in the second graphical interface;

the second communication unit 53 is further configured to send the operation instruction to the target BMC.

As an optional implementation manner of the embodiment of the present invention, the request information carries a user identifier of a target user; the processing unit 54 is further configured to, before the first graphical interface is processed based on a preset processing manner and a second graphical interface is acquired, acquire permission information of the target user based on the user identifier; and determining the preset processing mode according to the authority information.

As an optional implementation manner of the embodiment of the present invention, the access information includes: the network protocol IP address of the target BMC and the access password of the target BMC.

Based on the same inventive concept, as an implementation of the foregoing method, an embodiment of the present invention further provides a terminal device, where the terminal device embodiment corresponds to the foregoing method embodiment, and for convenience of reading, details in the foregoing method embodiment are not repeated one by one in this embodiment, but it should be clear that the terminal device in this embodiment can correspondingly implement all steps performed by the terminal device in the foregoing method embodiment.

The embodiment of the invention provides terminal equipment. Fig. 6 is a schematic structural diagram of the terminal device, and as shown in fig. 6, the terminal device 600 includes:

a sending unit 61, configured to send request information to a proxy server, where the request information is used to request a target server in a server cluster to be operated;

a receiving unit 62, configured to receive the second graphical interface sent by the proxy server; the second graphical interface is obtained by processing a first graphical interface by the proxy server based on a preset processing mode, and the first graphical interface is sent to the proxy server by a target BMC corresponding to the target server and used for operating the target server;

and the display unit 63 is configured to display the second graphical interface, so that a user can perform remote operation on the target server through the second graphical interface.

As an alternative implementation of the embodiment of the present invention,

the display unit 63 is further configured to receive an input event of a user in the second graphical interface, and generate an operation instruction according to the input event;

the sending unit 61 is further configured to send the operation instruction to the proxy server.

Based on the same inventive concept, the embodiment of the invention also provides electronic equipment. Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 7, the electronic device according to the embodiment includes: a memory 71 and a processor 72, the memory 71 being for storing computer programs; the processor 72 is configured to, when the computer program is called, enable the electronic device to implement the server remote management method provided in any of the above embodiments.

Based on the same inventive concept, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a computing device, the computing device is enabled to implement the server remote management method provided in any of the above embodiments.

Based on the same inventive concept, embodiments of the present invention provide a computer program product, which, when running on a computer, enables the computer to implement the server remote management method provided in any of the above embodiments.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied in the medium.

The processor may be a Central Processing Unit (CPU), other general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.

Computer readable media include both permanent and non-permanent, removable and non-removable storage media. Storage media may implement information storage by any method or technology, and the information may be computer-readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transmyedia) such as modulated data signals and carrier waves.

Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:可视化页面的快速生成方法、装置、设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!