CN112968929B - Server management method and system - Google Patents

Server management method and system Download PDF

Info

Publication number
CN112968929B
CN112968929B CN202110124809.5A CN202110124809A CN112968929B CN 112968929 B CN112968929 B CN 112968929B CN 202110124809 A CN202110124809 A CN 202110124809A CN 112968929 B CN112968929 B CN 112968929B
Authority
CN
China
Prior art keywords
server
management platform
program
kvm
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110124809.5A
Other languages
Chinese (zh)
Other versions
CN112968929A (en
Inventor
伍旭鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Anchnet Network Technology Co ltd
Original Assignee
Shanghai Anchnet Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Anchnet Network Technology Co ltd filed Critical Shanghai Anchnet Network Technology Co ltd
Priority to CN202110124809.5A priority Critical patent/CN112968929B/en
Publication of CN112968929A publication Critical patent/CN112968929A/en
Application granted granted Critical
Publication of CN112968929B publication Critical patent/CN112968929B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The embodiment of the invention provides a server management method and a system, wherein the method comprises the following steps: the method comprises the steps that a server management platform starts a virtual desktop environment matched with a JRE version required by a KVM program of a target server according to a control request sent by a target remote management client, starts the KVM program of the target server in the virtual desktop environment, and establishes connection with the target server through the KVM program; and the server management platform manages the target server through the KVM program according to the control command sent by the target remote management client. According to the method and the system, the remote management client does not need to install the JRE, only needs to use the web page, and can manage various target servers of the KVM program based on various JRE versions through the server management platform, so that the server management is light.

Description

Server management method and system
Technical Field
The present invention relates to the field of information technologies, and in particular, to a server management method and a server management system.
Background
A server is a kind of computer, and provides a computing service or an application service to a client including a PC, a smart phone, an ATM, and the like in a network. At present, most of servers are hosted in an internet data center, and management of the servers is usually done in a remote form, that is, after an operator of the data center performs remote management configuration on the basis of the servers, a server administrator manages/operates the servers in a remote form through a KVM (keyboard/display/Mouse) program for managing the servers installed on a client.
Generally, a KVM program of a server is a GUI (Graphical User Interface) client program developed based on JAVA, and therefore, managing the server using the KVM program of the server requires installing a JAVA Runtime Environment at a PC client of an administrator side according to a JRE (JAVA Runtime Environment) version based on the KVM program of the current server, so as to run the KVM program of the server.
However, since the versions of JRE based on which GUI clients of the respective servers are developed may be different, such as JRE6, JRE8, JRE11, etc., in practice, it often happens that multiple servers that a PC client needs to manage need KVM programs of different JRE versions, such as: when a PC client needs to manage a new server and an old server simultaneously, JRE versions needed by KVM programs of the new server and the old server are different, the JRE version switching operation of the client is complex, and multiple versions of JRE are easy to be confused when running simultaneously, so that the programs are not normally run.
Disclosure of Invention
In order to solve the above problem, embodiments of the present invention provide a server management method and system, which aim to implement convenient management of multiple servers at the same time.
The embodiment of the invention provides a server management method, which is applied to a computer network, wherein the computer network comprises the following steps: the method comprises the following steps of a server management platform, a plurality of servers and a remote management client, wherein the method comprises the following steps:
a target remote management client sends a control request for a target server to a server management platform according to a first operation of a server administrator in a Web page, wherein the target remote management client is any one of remote management clients;
the server management platform starts a virtual desktop environment matched with the JRE version required by the KVM program of the target server according to the control request;
the server management platform starts a KVM program of the target server in the virtual desktop environment and establishes connection with the target server through the KVM program;
the target remote management client sends a control command for the target server to the server management platform according to a second operation of a server administrator in the Web page;
and the server management platform manages the target server through the KVM program according to the control command.
Alternatively to this, the first and second parts may,
the server management platform is configured with a plurality of virtual desktop environments in advance, wherein the virtual desktop environments are respectively provided with JREs of different versions;
the server management platform pre-installs KVM programs of the plurality of servers to be managed.
Alternatively to this, the first and second parts may,
the KVM programs of the plurality of servers are installed under a shared file directory of a host of the server management platform;
the shared file directory is accessed by a plurality of virtual desktop environments with different versions of JRE installed, so that the server management platform starts the KVM program corresponding to the target server through the virtual desktop environment matched with the JRE version required by the KVM program of the target server.
Optionally, the starting, by the server management platform, the virtual desktop environment matched with the JRE version required by the KVM program of the target server according to the control request includes:
the server management platform selects a virtual desktop environment matched with the JRE version required by the KVM program of the target server based on the pre-stored corresponding relation;
and starting the virtual desktop environment through virtualization software.
Optionally, the pre-storing, in the host database of the server management platform, the correspondence between each of the plurality of servers and the KVM program includes: the corresponding relation between the server identification and the KVM program name; the KVM program name carries corresponding JRE version information, and the JRE version information is mapped to a corresponding virtual desktop environment; the control request carries a server identifier of the target server;
the server management platform starts a virtual desktop environment matched with the JRE version required by the KVM program of the target server according to the control request, and the method comprises the following steps: the server management platform queries the KVM program name corresponding to the server identifier according to the server identifier carried by the control request based on the corresponding relation between the server identifier and the KVM program name; the server management platform starts a corresponding virtual desktop environment according to the JRE version information carried in the KVM program name;
the server management platform starts the KVM program of the target server in the virtual desktop environment, including: and the server management platform starts the KVM program corresponding to the KVM program name in the virtual desktop environment.
Optionally, the server management platform configures the virtual desktop environment using an Xwindow component of a linux system;
after the server management platform starts the KVM program of the target server in the virtual desktop environment and connects to the target server through the KVM program, the method further includes:
the server management platform uses an Xwindow background program to periodically detect the size of a program window of the KVM program;
when the size of the program window is detected to be inconsistent with the size of the virtual desktop, the size of the virtual desktop is adjusted according to the size of the program window, and the program window is made to be always paved on the virtual desktop.
Optionally, the starting, by the server management platform, a KVM program of the target server in the virtual desktop environment, and establishing a connection with the target server through the KVM program includes:
the server management platform is connected with the BMC of the target server through the KVM program and establishes connection with the target server;
the server management platform manages the target server through the KVM program according to the control command, and the method comprises the following steps:
the server management platform generates a second control command according to the control command;
the server management platform sends the second control command to the BMC of the target server through the KVM program;
and the BMC of the target server responds to the second control command, executes the management of the target server and realizes the management of the target remote management client to the target server.
The embodiment of the invention also provides a server management system, which is applied to a computer network, wherein the computer network comprises: server management platform, many servers, remote management customer end, the system includes:
the client request module is used for sending a control request for a target server to the server management platform by a target remote management client according to a first operation of a server administrator in a Web webpage, wherein the target remote management client is any one of the remote management clients;
the desktop starting agent module is used for starting a virtual desktop environment matched with the JRE version required by the KVM program of the target server by the server management platform according to the control request;
the program starting agent module is used for the server management platform to start the KVM program of the target server in the virtual desktop environment and establish connection with the target server through the KVM program;
the client control module is used for sending a control command of the target server to the server management platform by the target remote management client according to a second operation of a server administrator in the Web webpage;
and the control agent module is used for managing the target server by the server management platform through the KVM program according to the control command.
Optionally, the system further includes:
the virtual desktop environment configuration module is used for the server management platform to configure a plurality of virtual desktop environments in advance, wherein the virtual desktop environments are respectively provided with JREs with different versions;
and the KVM program configuration module is used for pre-installing the KVM programs of the servers to be managed by the server management platform.
Optionally, the system further includes:
the KVM program configuration submodule is used for installing the KVM programs of the servers under the shared file directory of the host of the server management platform;
the shared file directory is accessed by a plurality of virtual desktop environments with different versions of JRE installed, so that the server management platform starts the KVM program corresponding to the target server through the virtual desktop environment matched with the JRE version required by the KVM program of the target server.
Optionally, the system further includes:
a virtual desktop environment starting module, configured to select, by the server management platform, a virtual desktop environment that matches the JRE version required by the KVM program of the target server based on a pre-stored correspondence;
and starting the virtual desktop environment through virtualization software.
Optionally, the system further includes:
a correspondence storage module, in which a correspondence between each of the plurality of servers and the KVM program is stored in advance in a host database of the server management platform, and which includes: the corresponding relation between the server identification and the KVM program name; the KVM program name carries corresponding JRE version information, and the JRE version information is mapped to a corresponding virtual desktop environment;
the control request carries a server identifier of the target server;
the server management platform starts a virtual desktop environment matched with the JRE version required by the KVM program of the target server according to the control request, and the method comprises the following steps:
the KVM program name query module is used for the server management platform to query the KVM program name corresponding to the server identifier according to the server identifier carried by the control request based on the corresponding relation between the server identifier and the KVM program name;
a virtual desktop environment starting submodule, configured to start, by the server management platform, a corresponding virtual desktop environment according to the JRE version information carried in the KVM program name;
the server management platform starts the KVM program of the target server in the virtual desktop environment, including:
and the KVM program starting submodule is used for starting the KVM program corresponding to the KVM program name in the virtual desktop environment by the server management platform.
Optionally, the system further includes:
the server management platform configuring the virtual desktop environment with an Xwindow component of a linux system;
after the server management platform starts the KVM program of the target server in the virtual desktop environment and connects to the target server through the KVM program, the method further includes:
the window detection module is used for periodically detecting the size of a program window of the KVM program by the server management platform by using an Xwindow background program;
and the desktop adjusting module is used for adjusting the size of the virtual desktop according to the size of the program window when the fact that the size of the program window is inconsistent with the size of the virtual desktop is detected, so that the program window is always paved on the virtual desktop.
Optionally, the system further includes:
the server management platform starts a KVM program of the target server in the virtual desktop environment, and establishes a connection with the target server through the KVM program, including:
the connection establishing module is used for connecting the server management platform with the BMC of the target server through the KVM program and establishing connection with the target server;
the server management platform manages the target server through the KVM program according to the control command, and the method comprises the following steps:
the second control command generation module is used for generating a second control command by the server management platform according to the control command;
the connection establishment submodule is used for the server management platform to send the second control command to the BMC of the target server through the KVM program;
and the control agent submodule is used for responding to the second control command by the BMC of the target server, executing the management of the target server and realizing the management of the target remote management client to the target server.
It can be seen from the above technical solutions that the embodiments of the present invention provide a server management method and system, where a server management platform provides a KVM program of a server to be managed and a desktop virtual environment installed with multiple JRE versions, so that a remote management client obtains a program management page provided by the server management platform in the form of a web page without installing a JRE and a KVM program, and can manage multiple target servers through the server management platform, thereby avoiding tedious operations and program confusion when the client manages the KVM program based on multiple target servers of various JRE versions in the prior art, and on the other hand, the remote management client of the server is not limited to a PC and can be extended to various mobile terminals.
Drawings
FIG. 1 is a schematic environmental diagram of a computer network remotely managed by a server in the related art;
FIG. 2 is a schematic diagram of an environment of a computer network remotely managed by a server according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of a method for managing a server according to an embodiment of the present invention;
fig. 4 is a block diagram of a server management system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic diagram of remote management of a server in the related art. As shown in fig. 1, an administrator of a server generally manages the server in a data center in a remote manner by using a PC client. Specifically, a technician may install a KVM client program of the server on the PC client in advance, and then a server administrator operates in the KVM client program of the PC client to control a virtual KVM program provided by a BMC (Baseboard management Controller) of the server, that is, to implement management of the server by using a simulated keyboard/display/mouse, including installation of software, setting and configuration of the server, management of a user and a database, maintenance of a task, and the like.
As shown in fig. 1, in an actual application scenario, the same PC client often needs to manage multiple servers at the same time, and assuming that the KVM program of server a is developed based on JRE6, the PC client for management needs to install not only the KVM client program developed based on JRE6 but also JRE6 to run the KVM client program; assuming that the KVM program of server B is developed based on JRE8, the PC client for management is required to install JRE8 in addition to the KVM client developed based on JRE8 to run the KVM client. The PC client needs to manage the server A and the server B, and then JRE6 and JRE8 need to be installed at the same time, the JRE version switching operation in the PC environment is complex, and multiple versions of JRE run simultaneously, which is easy to cause confusion, so that the program runs abnormally.
In addition, because the existing mobile terminal is based on systems such as android, IOS and the like, JRE and KVM client programs cannot be installed, server management can still be completed only in a PC environment, the portability of server management is further limited, and the convenience management of the server is not facilitated.
Based on the analysis of the above problems, embodiments of the present invention provide a server management method and system, which can avoid the problem of program operation errors caused by the operation confusion of multiple versions of JRE of a client in server management, and can remotely manage a server by using a mobile terminal, so that the client managed by the server is no longer limited to a PC environment.
In addition, the KVM program of the server according to the embodiment of the present invention, specifically, the KVM client program of the server, is not directly equivalent to the virtual KVM program provided by the BMC of the server.
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
Referring to fig. 2, fig. 2 is a schematic diagram of an environment of a computer network according to an embodiment of the present invention. As shown in fig. 2, the method provided by the embodiment of the present invention is applied to a computer network, where the computer network includes: the system comprises a server management platform, a plurality of servers and a remote management client.
In this embodiment, a server management platform included in the computer network, that is, a proxy server common to a plurality of servers. The server management platform may be a server cluster formed by a plurality of hosts, and may also deploy the corresponding number of hosts according to the number of servers managed by the server management platform, that is, according to the pressure of the management load.
The remote management client may be a PC, or may be a mobile terminal, such as a mobile phone, a tablet computer, or the like.
In this embodiment, the server management platform is respectively located in the same computer network with the plurality of servers and the remote management client, and can respectively establish a trusted network connection with the plurality of servers and the remote management client.
Optionally, the server management platform is located in a data center where a plurality of servers are located, and can facilitate establishing a trusted network connection with the plurality of servers.
Referring to fig. 3, fig. 3 is a flowchart illustrating steps of a server management method according to an embodiment of the present invention. As shown in fig. 3, the method specifically includes the following steps:
and S31, the target remote management client sends a control request for the target server to the server management platform according to the first operation of the server administrator in the Web page, wherein the target remote management client is any one of the remote management clients.
The target server is a server which a server administrator wants to manage through a target remote management client, and the server administrator can click the target server in a Web page through the target remote management client.
The first operation may be a click, a slide, or the like of a function button that issues a control request in a Web page by a server administrator. For example, the server administrator may click a "start control" function button corresponding to the target server, and the browser of the target remote management client generates a control request and sends the control request to the target server.
The Web page is a functional Web page provided by the server management platform to the remote management client. Specifically, the server administrator may link and open the Web page using a local browser of the target remote management client or an application with a Web browsing function.
The Web page can be an HTML5 page and a FLASH page, and correspondingly, the control request can be an HTML5 request and a FLASH request.
In one embodiment, the server management platform may manage the identity, authority, of a server administrator using the remote management client. Specifically, the method may include:
the target remote management client can input an administrator account and a password through a server administrator login page correspondingly provided by the server management platform, perform administrator identity authentication and complete login;
and the server management platform provides corresponding server management service according to the authority corresponding to the identity of the administrator.
Wherein the server management service comprises: the server which a server administrator using a target remote management client has authority to manage is aggregated and provided to the target remote management client. For example, after the server administrator completes login in the server management platform through the target remote management client, the server administrator may click on "my server", and then the "my server" page is aggregated to display all servers that the server administrator has authority to manage.
Further, the server management platform may rank the servers that the server administrator has the authority to manage according to the initial of the server identifier.
Further, the server management platform may also provide a retrieval function, enabling an administrator to search for a target server desired to be managed from all servers having authority management. For example, when the current server administrator account has the management rights of hundreds of servers, the server administrator wants to manage one of the servers, and may search a "my server" Web page displayed on the target remote management client for a server identifier of the target server, such as a name or a unique identifier ID of the server, obtain information of the target server to be managed, and click a control request function button of the target server.
S32, the server management platform starts the virtual desktop environment matched with the JRE version required by the KVM program of the target server according to the control request.
In this embodiment, each of the virtual desktop environments configured by the server management platform is installed with a version of a JRE, and the versions of the JREs are in one-to-one correspondence.
Specifically, after the server management platform receives the control request, the server management platform can analyze the information carried by the control request, and start the corresponding virtual desktop environment based on the virtualization technology according to the analyzed information. For example, when the information carried by the control request itself includes a JRE version number required by the KVM program corresponding to the target server, the corresponding virtual desktop environment may be directly started according to the JRE version number.
In an optional implementation, the server is managed by the server management platform, and the proxy server needs to be configured in advance, specifically including:
the server management platform is configured with a plurality of virtual desktop environments in advance, wherein the virtual desktop environments are respectively provided with JREs of different versions;
the server management platform pre-installs KVM programs of the plurality of servers to be managed.
Optionally, the JRE may include: JRE6, JRE7, JRE8, JRE11, and the like.
S33, the server management platform starts a KVM program of the target server in the virtual desktop environment, and establishes a connection with the target server through the KVM program.
Specifically, in order to further reduce the database pressure of the server management platform, in an alternative embodiment, the present invention further provides a method for configuring a KVM program, which specifically includes the following steps:
the KVM programs of the plurality of servers are installed under a shared file directory of a host of the server management platform;
the shared file directory is accessed by a plurality of virtual desktop environments with different versions of JRE installed, so that the server management platform starts the KVM program corresponding to the target server through the virtual desktop environment matched with the JRE version required by the KVM program of the target server.
Accordingly, when the server management platform starts the virtual desktop environment, the shared file directory of the KVM program installed with the target server may be further accessed in the virtual desktop environment, and the KVM program of the target server is started.
By this embodiment, the KVM program is installed in the shared file directory, and the shared file directory is accessed by each virtual desktop environment, so that the KVM program can be accessed by any virtual desktop environment. For example, if a KVM program is developed based on a high-version JRE, such as JRE11, and provides the capability of being backward compatible with a low-version JRE, such as JRE6, JRE8, etc., any virtual desktop environment that installs JRE6, JRE8, and JRE11 can launch the KVM program.
And S34, the target remote management client sends a control command to the target server to the server management platform according to the second operation of the server administrator in the Web page.
Specifically, the second operation is the operation of clicking, sliding and the like of a function button for sending a control command in a KVM program window page by a server administrator through a Web page; the control command may be an HTML5 command, a FLASH command.
In this embodiment, after receiving the control request of the target server, the server management platform may receive the control command of the target server simultaneously when the virtual desktop environment and the KVM program are started. After the server management platform establishes connection with the target server through the KVM program, the KVM program window page is remotely displayed to the Web page of the target remote management client, and the target server is managed according to a control command generated by a user through second operation of the Web page in the KVM program window page.
The server management platform can remotely provide the desktop window provided by the virtual desktop environment to the remote management client in the form of a webpage through a local VNC client of the server management platform. Optionally, the Server management platform may provide the desktop environment to the noVNC component based on the RFB protocol through the VNC Server component, so that the remote management client may access the virtual desktop environment through the Web. The nonVNC component may enable a remote management client to access the vnc server, and thus the virtual desktop environment, via web technology directly using a local browser.
Considering that the server management platform often consumes a certain time to start the virtual desktop environment and the KVM program after receiving the control request of the target server, at this stage, the server administrator issues the control command to the server management platform through the second operation performed by the Web page, and the feedback of the server management platform will not be obtained temporarily. Illustratively, an animation of a small circle turning wait may be presented, or text may be presented that alerts the user to wait for a response.
S35, the server management platform manages the target server through the KVM program according to the control command.
Because the control command sent by the target remote management client is a Web command and cannot directly manage the target server, the server management platform can generate a program command according to the control command sent by the target remote management client and send the program command to the target server to manage the target server.
In this embodiment, after the administrator successfully authenticates the target remote management client, the administrator may also manage multiple servers with authority management at the same time, and the server management platform may start at least one virtual desktop environment at the same time, and correspondingly provide multiple Web pages to respectively provide multiple KVM program window pages corresponding to the multiple servers.
In an optional implementation manner, an embodiment of the present invention further provides a method for managing a target server through a server management platform, where the method specifically includes the following steps:
the server management platform starts a KVM program of the target server in the virtual desktop environment, and establishes a connection with the target server through the KVM program, including:
the server management platform is connected with the BMC of the target server through the KVM program and establishes connection with the target server;
the server management platform manages the target server through the KVM program according to the control command, and the method comprises the following steps:
the server management platform generates a second control command according to the control command;
the server management platform sends the second control command to the BMC of the target server through the KVM program;
and the BMC of the target server responds to the second control command, executes the management of the target server and realizes the management of the target remote management client to the target server.
The second control command is a program control command generated by the KVM program, and can control the virtual KVM program provided by the BMC of the target server, so as to control the target server and complete the management of the target remote management client to the target server.
Through the embodiment, the server management platform is added in the existing computer network, the server management platform is used as an agent for managing the server, and a plurality of virtual desktop environments and KVM programs are installed, so that the management client can realize the management of the target server through the server management platform only in a webpage mode, the problems that JRE version conflicts and management is disordered when the management client manages a plurality of servers in the related technology are solved, the management client can be expanded into a mobile terminal, and the convenience of server management is realized.
In order to enable the server management platform to select a KVM program corresponding to the target server and a matching operating environment according to the control request, in an optional implementation manner, an embodiment of the present invention further provides a method for starting a virtual desktop environment, where the method specifically includes the following steps:
the server management platform selects a virtual desktop environment matched with the JRE version required by the KVM program of the target server based on the pre-stored corresponding relation;
and starting the virtual desktop environment through virtualization software.
Furthermore, Qemu virtualization software can be selected, the matched virtual desktop environment is directly selected according to the information carried by the control request, and the Qemu virtualization software can automatically create and start the virtual machine.
The pre-stored correspondence may be correspondence between a server and a virtual desktop environment, and includes: and the server management platform directly starts the corresponding virtual desktop environment according to the server identifier.
With reference to the foregoing embodiment, in an optional implementation manner, the correspondence relationship pre-stored by the server management platform may further include: and the server management platform can directly start the KVM program corresponding to the server in the virtual desktop environment according to the corresponding relation between the server and the KVM program.
Consider that a KVM program may have compatibility with multiple versions of a JRE, i.e., one server may correspond to multiple virtual desktop environments. In order to reduce the storage and computation pressure of the host database of the server management platform, in an alternative implementation, an embodiment of the present invention further provides a method for starting a virtual desktop environment and a KVM program, where the method specifically includes the following steps:
the pre-storing of the corresponding relationship between each of the plurality of servers and the KVM program in the host database of the server management platform includes: the corresponding relation between the server identification and the KVM program name; the KVM program name carries corresponding JRE version information, and the JRE version information is mapped to a corresponding virtual desktop environment; the control request carries a server identifier of the target server;
the server management platform starts a virtual desktop environment matched with the JRE version required by the KVM program of the target server according to the control request, and the method comprises the following steps: the server management platform queries the KVM program name corresponding to the server identifier according to the server identifier carried by the control request based on the corresponding relation between the server identifier and the KVM program name; the server management platform starts a corresponding virtual desktop environment according to the JRE version information carried in the KVM program name;
the server management platform starts the KVM program of the target server in the virtual desktop environment, including: and the server management platform starts the KVM program corresponding to the KVM program name in the virtual desktop environment.
Since the server identification can be the unique identification ID or server name of the server, it is difficult to directly identify the JRE version required by the KVM program from the identification text, and the server identification is not easily modified. However, the KVM program name and the virtual desktop environment name can be pre-configured, so that the KVM program name and the virtual desktop environment name contain JRE version information. The server management platform can start the corresponding virtual desktop environment from the JRE version information provided in the KVM program name only by the correspondence between the server identifier and the KVM program name, and then start the corresponding KVM program based on the KVM program name. For example, if a certain KVM program supports both JRE6 and JRE8, the KVM program name of the KVM program may be XXX JRE6 and JRE 8; the virtual desktop environment names of the plurality of virtual desktop environments may be YYY JRE6, YYY JRE8, YYY JRE11 … ….
Through the embodiment, the virtual desktop environment is selected and the KVM program is started by directly identifying the corresponding KVM program name by the server, so that the storage pressure and the calculation pressure of a database of the server management platform are reduced as much as possible, the starting response time of the administrator management server is reduced, and the efficiency of starting the virtual desktop environment and the KVM program is effectively improved.
In order to further improve the operation experience of a server administrator when managing a server, in an optional implementation manner, an embodiment of the present invention further provides a method for adjusting the size of a virtual desktop, where the method specifically includes:
the server management platform configuring the virtual desktop environment with an Xwindow component of a linux system;
after the server management platform starts the KVM program of the target server in the virtual desktop environment and connects to the target server through the KVM program, the method further includes:
the server management platform uses an Xwindow background program to periodically detect the size of a program window of the KVM program;
when the size of the program window is detected to be inconsistent with the size of the virtual desktop, the size of the virtual desktop is adjusted according to the size of the program window, and the program window is made to be always paved on the virtual desktop.
Wherein the virtual desktop is a virtual display main screen area provided by a virtual desktop environment in the server management platform.
Because the window sizes of various KVM programs may not be consistent, and the window size of each KVM program may also change during the use process, in this embodiment, the size of the virtual desktop is always adjusted to be consistent with the size of the program window, so that the KVM program window in the Web page displayed to the target remote management client is always in a full-screen state, and user experience is improved.
Through the embodiment, the invention realizes the following beneficial effects:
(1) according to the method provided by the embodiment of the invention, the server management platform is provided to uniformly manage the servers in the data center, so that an administrator can use the remote management client to manage the servers through the server management platform in a webpage mode, the management client does not need to install JRE and KVM programs, and various problems caused by switching of multi-version JRE and simultaneous operation are avoided;
(2) the method provided by the embodiment of the invention has no performance requirement on the remote management client, and the remote management client is not limited to the requirement of a KVM program on a PC environment any longer, and the server can be managed by any mobile terminal which can realize web page browsing.
Referring to fig. 4, fig. 4 is a block diagram of a server management system according to an embodiment of the present invention. As shown in fig. 4, in combination with the above embodiments, an embodiment of the present invention provides a server management system, where the system includes:
a client request module 61, configured to send a control request for a target server to the server management platform by a target remote management client according to a first operation of a server administrator in a Web page, where the target remote management client is any one of the remote management clients;
a desktop start agent module 62, configured to start, by the server management platform according to the control request, a virtual desktop environment matched with the JRE version required by the KVM program of the target server;
a program starting agent module 63, configured to start, by the server management platform, a KVM program of the target server in the virtual desktop environment, and establish a connection with the target server through the KVM program;
the client control module 64 is configured to send a control command to the target server to the server management platform by the target remote management client according to a second operation of a server administrator in the Web page;
and a control agent module 65, configured to manage, by the server management platform, the target server through the KVM program according to the control command.
Optionally, the system further includes:
the virtual desktop environment configuration module is used for the server management platform to configure a plurality of virtual desktop environments in advance, wherein the virtual desktop environments are respectively provided with JREs with different versions;
and the KVM program configuration module is used for pre-installing the KVM programs of the servers to be managed by the server management platform.
Optionally, the system further includes:
the KVM program configuration submodule is used for installing the KVM programs of the servers under the shared file directory of the host of the server management platform;
the shared file directory is accessed by a plurality of virtual desktop environments with different versions of JRE installed, so that the server management platform starts the KVM program corresponding to the target server through the virtual desktop environment matched with the JRE version required by the KVM program of the target server.
Optionally, the system further includes:
a virtual desktop environment starting module, configured to select, by the server management platform, a virtual desktop environment that matches the JRE version required by the KVM program of the target server based on a pre-stored correspondence;
and starting the virtual desktop environment through virtualization software.
Optionally, the system further includes:
a correspondence storage module, in which a correspondence between each of the plurality of servers and the KVM program is stored in advance in a host database of the server management platform, and which includes: the corresponding relation between the server identification and the KVM program name; the KVM program name carries corresponding JRE version information, and the JRE version information is mapped to a corresponding virtual desktop environment;
the control request carries a server identifier of the target server;
the server management platform starts a virtual desktop environment matched with the JRE version required by the KVM program of the target server according to the control request, and the method comprises the following steps:
the KVM program name query module is used for the server management platform to query the KVM program name corresponding to the server identifier according to the server identifier carried by the control request based on the corresponding relation between the server identifier and the KVM program name;
a virtual desktop environment starting submodule, configured to start, by the server management platform, a corresponding virtual desktop environment according to the JRE version information carried in the KVM program name;
the server management platform starts the KVM program of the target server in the virtual desktop environment, including:
and the KVM program starting submodule is used for starting the KVM program corresponding to the KVM program name in the virtual desktop environment by the server management platform.
Optionally, the system further includes:
the server management platform configuring the virtual desktop environment with an Xwindow component of a linux system;
after the server management platform starts the KVM program of the target server in the virtual desktop environment and connects to the target server through the KVM program, the method further includes:
the window detection module is used for periodically detecting the size of a program window of the KVM program by the server management platform by using an Xwindow background program;
and the desktop adjusting module is used for adjusting the size of the virtual desktop according to the size of the program window when the fact that the size of the program window is inconsistent with the size of the virtual desktop is detected, so that the program window is always paved on the virtual desktop.
Optionally, the system further includes:
the server management platform starts a KVM program of the target server in the virtual desktop environment, and establishes a connection with the target server through the KVM program, including:
the connection establishing module is used for connecting the server management platform with the BMC of the target server through the KVM program and establishing connection with the target server;
the server management platform manages the target server through the KVM program according to the control command, and the method comprises the following steps:
the second control command generation module is used for generating a second control command by the server management platform according to the control command;
the connection establishment submodule is used for the server management platform to send the second control command to the BMC of the target server through the KVM program;
and the control agent submodule is used for responding to the second control command by the BMC of the target server, executing the management of the target server and realizing the management of the target remote management client to the target server.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of 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, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should be further noted that, in the present embodiment, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or terminal that comprises the element.
The server management method and system provided by the present invention are described in detail above, a specific example is applied in this embodiment to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A server management method applied to a computer network, the computer network comprising: the method comprises the following steps of a server management platform, a plurality of servers and a remote management client, wherein the method comprises the following steps:
a target remote management client sends a control request for a target server to a server management platform according to a first operation of a server administrator in a Web page, wherein the target remote management client is any one of remote management clients;
the server management platform starts a virtual desktop environment matched with the JRE version required by the KVM program of the target server according to the control request; wherein, any one virtual desktop environment configured by the server management platform is provided with one version of JRE;
the server management platform starts a KVM program of the target server in the virtual desktop environment and establishes connection with the target server through the KVM program;
the target remote management client sends a control command for the target server to the server management platform according to a second operation of a server administrator in the Web page;
the server management platform controls and manages the target server by controlling the KVM program provided by the BMC of the target server according to the control command;
wherein the KVM program is a keyboard/display/mouse program, the JRE is a JAVA runtime environment, and the BMC is a baseboard management controller.
2. The method of claim 1,
the server management platform is configured with a plurality of virtual desktop environments in advance, wherein the virtual desktop environments are respectively provided with JREs of different versions;
the server management platform pre-installs KVM programs of the plurality of servers to be managed.
3. The method of claim 2,
the KVM programs of the plurality of servers are installed under a shared file directory of a host of the server management platform;
the shared file directory is accessed by a plurality of virtual desktop environments with different versions of JRE installed, so that the server management platform starts the KVM program corresponding to the target server through the virtual desktop environment matched with the JRE version required by the KVM program of the target server.
4. The method of claim 1, wherein the server management platform, based on the control request, launches a virtual desktop environment that matches the JRE version required by the KVM program of the target server, comprising:
the server management platform selects a virtual desktop environment matched with the JRE version required by the KVM program of the target server based on the pre-stored corresponding relation;
and starting the virtual desktop environment through virtualization software.
5. The method of claim 4, wherein pre-storing the respective associations of the plurality of servers with the KVM program in the host database of the server management platform comprises: the corresponding relation between the server identification and the KVM program name; the KVM program name carries corresponding JRE version information, and the JRE version information is mapped to a corresponding virtual desktop environment; the control request carries a server identifier of the target server;
the server management platform starts a virtual desktop environment matched with the JRE version required by the KVM program of the target server according to the control request, and the method comprises the following steps: the server management platform queries the KVM program name corresponding to the server identifier according to the server identifier carried by the control request based on the corresponding relation between the server identifier and the KVM program name; the server management platform starts a corresponding virtual desktop environment according to the JRE version information carried in the KVM program name;
the server management platform starts the KVM program of the target server in the virtual desktop environment, including: and the server management platform starts the KVM program corresponding to the KVM program name in the virtual desktop environment.
6. The method of claim 1, wherein the server management platform utilizes an Xwindow component of a linux system to configure the virtual desktop environment;
after the server management platform starts the KVM program of the target server in the virtual desktop environment and connects to the target server through the KVM program, the method further includes:
the server management platform uses an Xwindow background program to periodically detect the size of a program window of the KVM program;
when the size of the program window is detected to be inconsistent with the size of the virtual desktop, the size of the virtual desktop is adjusted according to the size of the program window, and the program window is made to be always paved on the virtual desktop.
7. The method of claim 1,
the server management platform starts a KVM program of the target server in the virtual desktop environment, and establishes a connection with the target server through the KVM program, including:
the server management platform is connected with the BMC of the target server through the KVM program and establishes connection with the target server;
the server management platform manages the target server through the KVM program according to the control command, and the method comprises the following steps:
the server management platform generates a second control command according to the control command;
the server management platform sends the second control command to the BMC of the target server through the KVM program;
and the BMC of the target server responds to the second control command, executes the management of the target server and realizes the management of the target remote management client to the target server.
8. A server management system applied to a computer network, the computer network comprising: server management platform, many servers, remote management customer end, the system includes:
the client request module is used for sending a control request for a target server to the server management platform by a target remote management client according to a first operation of a server administrator in a Web webpage, wherein the target remote management client is any one of the remote management clients;
the desktop starting agent module is used for starting a virtual desktop environment matched with the JRE version required by the KVM program of the target server by the server management platform according to the control request; wherein, any one virtual desktop environment configured by the server management platform is provided with one version of JRE;
the program starting agent module is used for the server management platform to start the KVM program of the target server in the virtual desktop environment and establish connection with the target server through the KVM program;
the client control module is used for sending a control command of the target server to the server management platform by the target remote management client according to a second operation of a server administrator in the Web webpage;
the control agent module is used for controlling and managing the target server by controlling the KVM program provided by the BMC of the target server by the server management platform according to the control command;
wherein the KVM program is a keyboard/display/mouse program, the JRE is a JAVA runtime environment, and the BMC is a baseboard management controller.
CN202110124809.5A 2021-01-29 2021-01-29 Server management method and system Active CN112968929B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110124809.5A CN112968929B (en) 2021-01-29 2021-01-29 Server management method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110124809.5A CN112968929B (en) 2021-01-29 2021-01-29 Server management method and system

Publications (2)

Publication Number Publication Date
CN112968929A CN112968929A (en) 2021-06-15
CN112968929B true CN112968929B (en) 2021-11-30

Family

ID=76272452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110124809.5A Active CN112968929B (en) 2021-01-29 2021-01-29 Server management method and system

Country Status (1)

Country Link
CN (1) CN112968929B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113407286B (en) * 2021-06-29 2024-04-09 北京字节跳动网络技术有限公司 Remote management method and device for server
CN113535203A (en) * 2021-07-06 2021-10-22 海南视联通信技术有限公司 Server upgrading method, device, equipment and storage medium
CN115150382B (en) * 2022-07-25 2024-04-12 浪潮卓数大数据产业发展有限公司 Method, equipment and medium for remotely executing command by server based on VNC

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103699430A (en) * 2014-01-06 2014-04-02 山东大学 Working method of remote KVM (Kernel-based Virtual Machine) management system based on J2EE (Java 2 Platform Enterprise Edition) framework
CN103797461A (en) * 2012-03-29 2014-05-14 株式会社北洋银行 Network system and method for controlling same
CN106959882A (en) * 2016-01-12 2017-07-18 深圳市深信服电子科技有限公司 Virtual desktop implementation method and device
CN108021425A (en) * 2017-12-28 2018-05-11 南开大学 A kind of virtual desktop system and operation method for integrating multiple Graphics Application windows
CN109992343A (en) * 2019-03-27 2019-07-09 上海达龙信息科技有限公司 Control method, control system and the electronic equipment of virtual cloud desktop server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011069784A1 (en) * 2009-12-11 2011-06-16 International Business Machines Corporation System and method of managing software content in virtual desktop environments
JP2016048413A (en) * 2014-08-27 2016-04-07 株式会社東芝 System, virtual desktop environment selection method, and information processing device
CN110390195B (en) * 2019-06-26 2021-05-25 苏州浪潮智能科技有限公司 Method and system for managing and controlling program operation in virtual environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103797461A (en) * 2012-03-29 2014-05-14 株式会社北洋银行 Network system and method for controlling same
CN103699430A (en) * 2014-01-06 2014-04-02 山东大学 Working method of remote KVM (Kernel-based Virtual Machine) management system based on J2EE (Java 2 Platform Enterprise Edition) framework
CN106959882A (en) * 2016-01-12 2017-07-18 深圳市深信服电子科技有限公司 Virtual desktop implementation method and device
CN108021425A (en) * 2017-12-28 2018-05-11 南开大学 A kind of virtual desktop system and operation method for integrating multiple Graphics Application windows
CN109992343A (en) * 2019-03-27 2019-07-09 上海达龙信息科技有限公司 Control method, control system and the electronic equipment of virtual cloud desktop server

Also Published As

Publication number Publication date
CN112968929A (en) 2021-06-15

Similar Documents

Publication Publication Date Title
CN112968929B (en) Server management method and system
US9928101B2 (en) Certificate based connection to cloud virtual machine
US10127057B2 (en) Method and apparatus for dynamically implementing application function
US9489227B2 (en) Apparatus and method for virtual desktop service
US9386079B2 (en) Method and system of virtual desktop infrastructure deployment studio
RU2421785C2 (en) Automated control of device drivers
CN106911729B (en) Remote installation method of operating system suitable for domestic processor
CN107992308B (en) Plug-in management method for android terminal application program
CN108351769B (en) Dashboard as a remote computing service
CN104113430A (en) Cloud computing data center automatic deployment software framework design
US20090254641A1 (en) Network card capable of remote boot and method thereof
CN105306225A (en) Openstack-based physical machine remote shutdown method
CN106209445B (en) A kind of Visualized data centre disposed by network
US20130238673A1 (en) Information processing apparatus, image file creation method, and storage medium
CN105426301A (en) Linux platform based Oracle database pressure test method
CN111866557B (en) Configuration method and device of large-screen display equipment, storage medium and electronic equipment
US11385919B1 (en) Machine image launch system
US11757976B2 (en) Unified application management for heterogeneous application delivery
CN115913913A (en) Network card pre-starting execution environment function fault positioning method and device
CA3183412A1 (en) Methods and systems for managing computing virtual machine instances
US8504684B1 (en) Control of data storage system management application activation
CN101729495A (en) Network servo system and method of remotely installing file thereof
CN111600751A (en) Data center management method and system
US20160203009A1 (en) Methods for emulating computing devices and devices thereof
US20230401049A1 (en) Multi-mode support for a launcher

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant