CN117319368A - Remote control management method and related device - Google Patents

Remote control management method and related device Download PDF

Info

Publication number
CN117319368A
CN117319368A CN202311378344.1A CN202311378344A CN117319368A CN 117319368 A CN117319368 A CN 117319368A CN 202311378344 A CN202311378344 A CN 202311378344A CN 117319368 A CN117319368 A CN 117319368A
Authority
CN
China
Prior art keywords
virtual machine
target
control request
response result
server
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.)
Pending
Application number
CN202311378344.1A
Other languages
Chinese (zh)
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.)
Agricultural Bank Of China Ltd Jiangxi Branch
Original Assignee
Agricultural Bank Of China Ltd Jiangxi Branch
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 Agricultural Bank Of China Ltd Jiangxi Branch filed Critical Agricultural Bank Of China Ltd Jiangxi Branch
Priority to CN202311378344.1A priority Critical patent/CN117319368A/en
Publication of CN117319368A publication Critical patent/CN117319368A/en
Pending legal-status Critical Current

Links

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45562Creating, deleting, cloning virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a remote control management method and a related device, comprising the following steps: at least one KVM virtual machine is built in the client in advance, and each KVM virtual machine is used for controlling a corresponding server; under the condition that a control request to a target server is received, selecting a target KVM virtual machine corresponding to the control request; based on the target KVM virtual machine, issuing the control request to the target server so as to enable the target server to respond to the control request; and acquiring a response result of the target server, and transmitting the response result to the client. In the process, the KVM virtual machine is built in the client, and the KVM virtual machine is based on a hardware supported virtualization technology and does not depend on specific software or an operating system, so that the compatibility problem of an initial environment of a client browser and a Java running environment JRE does not exist, and the problem of remote monitoring failure caused by the compatibility problem is avoided.

Description

Remote control management method and related device
Technical Field
The present invention relates to the field of remote control technologies, and in particular, to a remote control management method and a related device.
Background
In the process of remote control based on the WebUI, a client based on the WebUI is required to log in a corresponding server, so that remote control on the server is realized.
However, in the process of remotely controlling the server by the client browser based on WebUI, there is a problem that the initial environment of the client browser is compatible with the Java running environment JRE (Java Runtime Environment), resulting in a problem that the server cannot be identified in the remote control process and the remote control fails, such as system crash.
Disclosure of Invention
In view of this, the present invention provides a remote control management method and related device, which are used to solve the problem that in the prior art, in the process of remotely controlling a server by a client browser based on WebUI, there is a compatibility problem between the initial environment of the client browser and the Java running environment JRE (Java Runtime Environment), so that the server cannot be identified in the remote control process, and the problem of remote control failure such as system crash occurs. The specific scheme is as follows:
a remote control management method, comprising:
at least one KVM virtual machine is built in the client in advance, wherein each KVM virtual machine is used for controlling a corresponding server;
under the condition that a control request to a target server is received, selecting a target KVM virtual machine corresponding to the control request;
based on the target KVM virtual machine, issuing the control request to the target server so as to enable the target server to respond to the control request;
and acquiring a response result of the target server, and transmitting the response result to the client.
In the above remote control management method, optionally, when a control request to a target server is received, selecting a target KVM virtual machine corresponding to the control request includes:
acquiring a first identifier corresponding to the control request and a second identifier corresponding to each KVM virtual machine;
traversing each second identifier, and searching whether target second identifiers with the same first identifier exist in each second identifier;
and if the target KVM virtual machine exists, taking the KVM virtual machine corresponding to the target second identifier as the target KVM virtual machine.
In the foregoing remote control management method, optionally, the issuing, based on the target KVM virtual machine, the control request to the target server includes:
issuing the control request to a front-end proxy service in an Https mode so that the front-end proxy service can complete encryption and unloading of the certificate, and forwarding the control request to an application server;
after receiving the control request, the application server acquires a request data field in the control request, analyzes and sequences the request data field into a Json character string, and sends the Json character string to a received pipe node of the target server based on a non-blocking thread and a multiplexing mode;
and the managed node processes the Json character string based on an IBMC entity pulling Pme-web method to obtain an initial response result.
In the foregoing remote control management method, optionally, the managed node processes the Json string based on an IBMC entity pull pme_web method, including:
performing deserialization processing on the Json character string based on cJson.Parse () to obtain a reconstruction object;
the reconstructed object is converted to a byte stream based on a json.stringfy () function, where the byte stream is the initial response result.
In the foregoing remote control management method, optionally, obtaining a response result of the target server, and transmitting the response result to the client, including
Delivering the initial response result to an application server based on pme_set_response ();
the application server carries out json_decode () processing on the response result to obtain a response result, and transmits the response result to the front-end proxy service;
the front-end proxy service delivers the response result to the client.
The remote control management method described above, optionally, further includes:
if the application server receives the remote control request, identifying a JER version in the control request;
and calling corresponding JER based on the JER version, sending a TCP long link to the received node, and locally establishing a link between the client and the JER based on the TCP long link.
A remote control management apparatus comprising:
the system comprises a built-in module, a server and a client, wherein the built-in module is used for pre-embedding at least one KVM (keyboard video mouse) virtual machine in the client, and each KVM virtual machine is used for controlling a corresponding server;
the selecting module is used for selecting a target KVM virtual machine corresponding to a control request under the condition that the control request to a target server is received;
the issuing and responding module is used for issuing the control request to the target server based on the target KVM virtual machine so as to enable the target server to respond to the control request;
and the acquisition and transmission module is used for acquiring the response result of the target server and transmitting the response result to the client.
The above remote control management device, optionally, the selecting module includes:
the acquisition unit is used for acquiring a first identifier corresponding to the control request and a second identifier corresponding to each KVM virtual machine;
the searching unit is used for traversing each second identifier and searching whether target second identifiers with the same first identifier exist in each second identifier or not;
and the determining unit is used for taking the KVM virtual machine corresponding to the target second identifier as a target KVM virtual machine if the target second identifier exists.
In the foregoing remote control management device, optionally, the issuing and responding module includes:
the issuing and forwarding unit is used for issuing the control request to a front-end proxy service in an Https mode so that the front-end proxy service can complete encryption and unloading of the certificate and forwarding the control request to an application server;
the acquiring and transmitting unit is used for acquiring a request data field in the control request after the control request is received by the application server, analyzing and serializing the request data field into a Json character string, and transmitting the Json character string to a received pipe node of the target server based on a non-blocking thread and a multiplexing mode;
and the processing unit is used for processing the Json character string by the managed node based on the IBMC entity pulling Pme-web method to obtain an initial response result.
In the foregoing remote control management device, optionally, the acquiring and transmitting module includes:
a first transfer unit configured to transfer the initial response result to an application server based on pme_set_response ();
the second transfer unit is used for performing json_decode () processing on the response result by the application server to obtain a response result, and transferring the response result to the front-end proxy service;
and the third transfer unit is used for transferring the response result to the client by the front-end proxy service.
A storage medium comprising a stored program, wherein the program performs the remote control management method described above.
A processor for running a program, wherein the program executes the remote control management method described above.
Compared with the prior art, the invention has the following advantages:
the invention discloses a remote control management method and a related device, comprising the following steps: at least one KVM virtual machine is built in the client in advance, wherein each KVM virtual machine is used for controlling a corresponding server; under the condition that a control request to a target server is received, selecting a target KVM virtual machine corresponding to the control request; based on the target KVM virtual machine, issuing the control request to the target server so as to enable the target server to respond to the control request; and acquiring a response result of the target server, and transmitting the response result to the client. In the process, the KVM virtual machine is built in the client, and the KVM virtual machine is based on a hardware supported virtualization technology and does not depend on specific software or an operating system, so that the compatibility problem of an initial environment of a client browser and a Java running environment JRE does not exist, and the problem of remote monitoring failure caused by the compatibility problem is avoided.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a remote control management method disclosed in an embodiment of the invention;
fig. 2 is a schematic diagram of an implementation process of a remote control management method according to an embodiment of the present invention;
fig. 3 is a block diagram of a remote control management device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention discloses a remote control management method and a related device, which are applied to a process of remotely controlling a server, wherein in the prior art, the problem of compatibility between an initial environment of a client browser and a Java running environment JRE (Java Runtime Environment) exists in the process of remotely controlling a Web UI, and the problem of failure in remote control such as incapability of identifying the server, system breakdown and the like in the process of remote control is caused. Based on the above problems, the present invention provides a remote control management method, which virtualizes a computer into a plurality of logical computers through a virtualization technology. A plurality of logic computers are operated on one computer at the same time, each logic computer can operate different operating systems, and application programs can operate in mutually independent spaces without being influenced, so that the working efficiency of the computer is remarkably improved. The method for redefining and planning the IT resources by using the software can realize the dynamic allocation, flexible scheduling and cross-domain sharing of the IT resources, improve the utilization rate of the IT resources, enable the IT resources to be truly an infrastructure and serve the flexible and variable application requirements in various industries.
The execution flow of the method is shown in fig. 1, and comprises the following steps:
s101, at least one KVM virtual machine is built in a client in advance, wherein each KVM virtual machine is used for controlling a corresponding server;
in the embodiment of the invention, at least one KVM (Kernel-based Virtual Machine) is built in the client in advance, and a corresponding relation is established between the KVM and the server, so that each KVM can be used for controlling the corresponding server, and the KVM is an open-source system virtualization module and is integrated in each main release version of Linux after being 2.6.20. It uses the Linux's own scheduler for management, so its core source code is very small compared to Xen. KVM has become one of the mainstream VMMs in the academia. Virtualization of KVM requires hardware support (such as Intel VT technology or AMD V technology), and is based on complete virtualization of hardware.
In embodiments of the present invention, the inclusion of IBMC and iManan200 in a KVM virtual machine is two distinct functions. IBMC is a remote management console that allows users to remotely access and control servers, including remote desktop control, remote installation systems, and remote control power supply functions. The imann 200 is a single mouse function that can hide the mouse on the local PC in the KVM interface, leaving only the mouse on the live desktop to provide a more convenient operating experience.
The remote control principle based on the KVM virtual machine in the client is that the graphic interface of the KVM virtual machine on a remote server is transmitted to the local through network connection so as to realize the remote control and management of the virtual machine. It typically uses a remote desktop protocol (such as VNC) or SPICE protocol to transport the graphical interface.
The method comprises the following steps:
1. on the remote server, the graphical interface of the KVM virtual machine is converted into pixel data.
2. Pixel data is transmitted locally across the network.
3. And analyzing and displaying the received pixel data on a local screen locally to realize remote graphic control of the virtual machine.
Based on the above method, the user can control and manage the KVM virtual machine on the remote host locally as if operating the local computer, including performing installation of the operating system, configuring the network and storage of the virtual machine, and the like.
S102, under the condition that a control request to a target server is received, selecting a target KVM virtual machine corresponding to the control request;
in the embodiment of the invention, under the condition that a control request for a target server is received, a first identifier corresponding to the control request and a second identifier corresponding to each KVM virtual machine are obtained, wherein the first identifier and the second identifiers are preset, the first identifier is used for distinguishing different control requests, the first identifiers are issued together when issuing the control request, the second identifiers are used for distinguishing different KVM virtual machines, the control request is issued by the target server, and in order to ensure that the corresponding KVM virtual machine can control the corresponding server, the second identifiers corresponding to the KVM virtual machine are set to be the same identifiers as the first identifiers in the control request issued by the corresponding server, therefore, each second identifier is traversed, whether the target second identifiers with the same first identifier exist in each second identifier or not is searched, and if so, the KVM virtual machine corresponding to the target second identifier is taken as the target KVM virtual machine. Otherwise, the target virtual machine corresponding to the control request does not exist, and the result is fed back.
S103, based on the target KVM virtual machine, issuing the control request to the target server so as to enable the target server to respond to the control request;
in the embodiment of the invention, the client accesses the front-end proxy service in an https mode to realize Http data interaction and ssl encryption, after authentication is completed, the Http Post form realizes that the front-end proxy server requests to send a managed node request, wherein the front-end proxy server completes encryption and unloading actions of a certificate on the https service, in addition, the front-end proxy server also bears static page loading and backward forwarding functions of the first request of the client, the application server receives a proxy server control request, acquires a request data field in the control request, semantically analyzes and sequences the request data field into a Json character string, receives the proxy server request and sends data to the managed node in parallel in a non-blocking thread and IO multiplexing mode, and the application server locally uses a php json_node () function to construct the authentication request and the request which can be identified by the managed node iI, and information acquisition and other requests, and considers the problem of unified signing and signing of the BMC certificate, and the X509 is a private certificate by-pass. After receiving the request, the managed node processes the Json character string based on the IBMC entity pulling Pme-web method to obtain an initial response result.
Wherein the php multiplexing code implements logic to:
the method for processing the Json character string based on the IBMC entity pulling pme_web comprises the following steps:
performing deserialization processing on the Json character string based on cJson.Parse () to obtain a reconstruction object;
the reconstructed object is converted to a byte stream based on a json.stringfy () function, where the byte stream is the initial response result.
S104, obtaining a response result of the target server, and transmitting the response result to the client.
In the embodiment of the invention, the initial response result is transmitted to an application server based on pme_set_response (), the application server carries out json_decode () processing on the response result to obtain a response result, and the response result is transmitted to the front-end proxy service. The front-end proxy service delivers the response result to the client.
The invention discloses a remote control management method, which comprises the following steps: at least one KVM virtual machine is built in the client in advance, wherein each KVM virtual machine is used for controlling a corresponding server; under the condition that a control request to a target server is received, selecting a target KVM virtual machine corresponding to the control request; based on the target KVM virtual machine, issuing the control request to the target server so as to enable the target server to respond to the control request; and acquiring a response result of the target server, and transmitting the response result to the client. In the process, the KVM virtual machine is built in the client, and the KVM virtual machine is based on a hardware supported virtualization technology and does not depend on specific software or an operating system, so that the compatibility problem of an initial environment of a client browser and a Java running environment JRE does not exist, and the problem of remote monitoring failure caused by the compatibility problem is avoided.
Further, if the application server receives the remote control request, identifying a JER version in the control request;
and calling corresponding JER based on the JER version, sending a TCP long link to the received node, and locally establishing a link between the client and the JER based on the TCP long link.
In the embodiment of the invention, a KVM remote console can be constructed based on the method, wherein the KVM remote console executes the remote control management method, and the KVM remote controller can realize a visual graphical interface. The system provides a series of management deployment tools such as hardware state monitoring, deployment, energy saving, safety and the like, comprehensively monitors various components of the server, realizes a deep fault diagnosis and fault prediction mechanism of key components of the server, and also provides a series of fault auxiliary positioning tools.
In the embodiment of the invention, the kvm remote console is a software integration environment, and a JER environment (namely Java, extJS and RESTful services) is needed to realize the related functions of the highly fused WEBUI. The JER environment provides support for the Java language so that developers can write the relevant code of the KVM remote console using the Java language. At the same time, the JER environment also integrates an ExtJS framework that can be used to build user interfaces, and is highly customizable and extensible. Furthermore, the JER environment also uses RESTful services to enable communication and data exchange with backend systems.
The method for realizing the high fusion of the KVM remote console tool and the WEBUI related functions is realized through an oVirt management platform. The oVirt is an open source KVM virtualization-based management tool and cloud computing platform that provides complete virtual machine management and monitoring functionality, and provides a Web-based user interface so that a user can manage and control a KVM virtual machine through a Web browser.
The WEBUI of oVirt provides a convenient and easy-to-use graphical interface through which a user can create, edit, start, stop, and delete virtual machines. Meanwhile, the system also provides the functions of monitoring the virtual machine resources and performance statistics, and a user can check the running state of the virtual machine, CPU, memory, network use conditions and other information through WEBUI.
In addition to basic virtual machine management functions, oVirt also supports high-level functions such as virtual machine cloning, snapshot, virtual machine migration, and the like. The user may perform these operations through the WEBUI without using command lines or other tools. In summary, the WEBUI of oVirt provides a convenient and powerful interface that highly fuses the KVM remote console tool with WEBUI-related functions so that a user can easily manage and control the KVM virtual machine through a Web browser
For example, as shown in fig. 2, a specific implementation schematic diagram is that a client sends Https/SSL and httproof (ID, psw, …), after receiving Https/SSL and httproof (ID, psw, …), the Apche server submits a request to execute a corresponding PHP script, the PHP calls a C/PHP interactive function and Json string data to pme_web.c, pme_web.c sends Json (VerifyValue, decrykey, …) to the PHP, the PHP forwards the data to the response generated by the server in an echo manner, and the Apche server delivers httpropense (VerifyValue, decrykey, …) to the client.
Based on the above-mentioned remote control management method, the embodiment of the present invention further provides a remote control management device, where a structural block diagram of the device is shown in fig. 3, and the device includes:
the system comprises a built-in module 201, a selection module 202, a issuing and responding module 203 and an acquisition and transmitting module 204.
Wherein,
the built-in module 201 is configured to build at least one KVM virtual machine in advance in a client, where each KVM virtual machine is configured to control a corresponding server;
the selecting module 202 is configured to select, when a control request to a target server is received, a target KVM virtual machine corresponding to the control request;
the issuing and responding module 203 is configured to issue the control request to the target server based on the target KVM virtual machine, so that the target server responds to the control request;
the obtaining and transmitting module 204 is configured to obtain a response result of the target server, and transmit the response result to the client.
The invention discloses a remote control management device, comprising: at least one KVM virtual machine is built in the client in advance, wherein each KVM virtual machine is used for controlling a corresponding server; under the condition that a control request to a target server is received, selecting a target KVM virtual machine corresponding to the control request; based on the target KVM virtual machine, issuing the control request to the target server so as to enable the target server to respond to the control request; and acquiring a response result of the target server, and transmitting the response result to the client. In the process, the KVM virtual machine is built in the client, and the KVM virtual machine is based on a hardware supported virtualization technology and does not depend on specific software or an operating system, so that the compatibility problem of an initial environment of a client browser and a Java running environment JRE does not exist, and the problem of remote monitoring failure caused by the compatibility problem is avoided.
In the embodiment of the present invention, the selecting module 202 includes:
the device comprises an acquisition unit, a searching unit and a determining unit.
Wherein,
the acquisition unit is used for acquiring a first identifier corresponding to the control request and a second identifier corresponding to each KVM virtual machine;
the searching unit is used for traversing each second identifier and searching whether target second identifiers with the same first identifier exist in each second identifier or not;
the determining unit is configured to take, if the KVM virtual machine corresponding to the target second identifier exists, as a target KVM virtual machine.
In the embodiment of the present invention, the issuing and responding module 203 includes:
the system comprises a transmitting and forwarding unit, an acquiring and transmitting unit and a processing unit.
Wherein,
the issuing and forwarding unit is configured to issue the control request to a front-end proxy service in an Https manner, so that the front-end proxy service completes encryption and offloading of a certificate, and forwards the control request to an application server;
the acquiring and sending unit is used for acquiring a request data field in the control request after the application server receives the control request, analyzing and serializing the request data field into a Json character string, and sending the Json character string to a received pipe node of the target server based on a non-blocking thread and a multiplexing mode;
the processing unit is used for processing the Json character string by the received pipe node based on the IBMC entity pulling Pme-web method to obtain an initial response result.
In an embodiment of the present invention, the acquiring and delivering module 204 includes:
a first transfer unit, a second transfer unit, and a third transfer unit.
Wherein,
the first transfer unit is configured to transfer the initial response result to an application server based on pme_set_response ();
the second transfer unit is configured to perform json_decode () processing on the response result by using the application server to obtain a response result, and transfer the response result to the front-end proxy service;
and the third transfer unit is used for transferring the response result to the client by the front-end proxy service.
The management device comprises a processor and a memory, wherein the built-in module, the selection module, the issuing and responding module, the acquisition and transmitting module and the like are all stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the problem of remote monitoring failure caused by compatibility problem is solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer storage medium, on which a program is stored, which when executed by a processor, implements the remote control management method.
The embodiment of the invention provides a processor which is used for running a program, wherein the remote control management method is executed when the program runs.
An embodiment of the present invention provides an apparatus, where a structural block diagram of the apparatus is shown in fig. 3, and the apparatus includes: a processor 301, a storage medium 302, and a program stored on the storage medium 302 and executable on the processor 302, the processor 301 implementing the following steps when executing the program:
at least one KVM virtual machine is built in the client in advance, wherein each KVM virtual machine is used for controlling a corresponding server;
under the condition that a control request to a target server is received, selecting a target KVM virtual machine corresponding to the control request;
based on the target KVM virtual machine, issuing the control request to the target server so as to enable the target server to respond to the control request;
and acquiring a response result of the target server, and transmitting the response result to the client.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application 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.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, 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 apparatus 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 apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer 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 tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (12)

1. A remote control management method, comprising:
at least one KVM virtual machine is built in the client in advance, wherein each KVM virtual machine is used for controlling a corresponding server;
under the condition that a control request to a target server is received, selecting a target KVM virtual machine corresponding to the control request;
based on the target KVM virtual machine, issuing the control request to the target server so as to enable the target server to respond to the control request;
and acquiring a response result of the target server, and transmitting the response result to the client.
2. The remote control management method according to claim 1, wherein, in the case of receiving a control request to a target server, selecting a target KVM virtual machine corresponding to the control request, comprises:
acquiring a first identifier corresponding to the control request and a second identifier corresponding to each KVM virtual machine;
traversing each second identifier, and searching whether target second identifiers with the same first identifier exist in each second identifier;
and if the target KVM virtual machine exists, taking the KVM virtual machine corresponding to the target second identifier as the target KVM virtual machine.
3. The remote control management method according to claim 1, wherein issuing the control request to the target server based on the target KVM virtual machine includes:
issuing the control request to a front-end proxy service in an Https mode so that the front-end proxy service can complete encryption and unloading of the certificate, and forwarding the control request to an application server;
after receiving the control request, the application server acquires a request data field in the control request, analyzes and sequences the request data field into a Json character string, and sends the Json character string to a received pipe node of the target server based on a non-blocking thread and a multiplexing mode;
and the managed node processes the Json character string based on an IBMC entity pulling Pme-web method to obtain an initial response result.
4. The remote control management method according to claim 3, wherein the managed node processes the Json string based on an IBMC entity pull pme_web method, comprising:
performing deserialization processing on the Json character string based on cJson.Parse () to obtain a reconstruction object;
the reconstructed object is converted to a byte stream based on a json.stringfy () function, where the byte stream is the initial response result.
5. The remote control management method according to claim 3, wherein obtaining a response result of the target server, and transmitting the response result to the client, comprises
Delivering the initial response result to an application server based on pme_set_response ();
the application server carries out json_decode () processing on the response result to obtain a response result, and transmits the response result to the front-end proxy service;
the front-end proxy service delivers the response result to the client.
6. A remote control management method according to claim 3, further comprising:
if the application server receives the remote control request, identifying a JER version in the control request;
and calling corresponding JER based on the JER version, sending a TCP long link to the received node, and locally establishing a link between the client and the JER based on the TCP long link.
7. A remote control management apparatus, comprising:
the system comprises a built-in module, a server and a client, wherein the built-in module is used for pre-embedding at least one KVM (keyboard video mouse) virtual machine in the client, and each KVM virtual machine is used for controlling a corresponding server;
the selecting module is used for selecting a target KVM virtual machine corresponding to a control request under the condition that the control request to a target server is received;
the issuing and responding module is used for issuing the control request to the target server based on the target KVM virtual machine so as to enable the target server to respond to the control request;
and the acquisition and transmission module is used for acquiring the response result of the target server and transmitting the response result to the client.
8. The remote control management apparatus according to claim 7, wherein the selection module includes:
the acquisition unit is used for acquiring a first identifier corresponding to the control request and a second identifier corresponding to each KVM virtual machine;
the searching unit is used for traversing each second identifier and searching whether target second identifiers with the same first identifier exist in each second identifier or not;
and the determining unit is used for taking the KVM virtual machine corresponding to the target second identifier as a target KVM virtual machine if the target second identifier exists.
9. The remote control management apparatus according to claim 7, wherein the issuing and responding module includes:
the issuing and forwarding unit is used for issuing the control request to a front-end proxy service in an Https mode so that the front-end proxy service can complete encryption and unloading of the certificate and forwarding the control request to an application server;
the acquiring and transmitting unit is used for acquiring a request data field in the control request after the control request is received by the application server, analyzing and serializing the request data field into a Json character string, and transmitting the Json character string to a received pipe node of the target server based on a non-blocking thread and a multiplexing mode;
and the processing unit is used for processing the Json character string by the managed node based on the IBMC entity pulling Pme-web method to obtain an initial response result.
10. The remote control management apparatus according to claim 9, wherein the acquisition and delivery module includes:
a first transfer unit configured to transfer the initial response result to an application server based on pme_set_response ();
the second transfer unit is used for performing json_decode () processing on the response result by the application server to obtain a response result, and transferring the response result to the front-end proxy service;
and the third transfer unit is used for transferring the response result to the client by the front-end proxy service.
11. A storage medium comprising a stored program, wherein the program performs the remote control management method of claims 1-6.
12. A processor for running a program, wherein the program when run performs the remote control management method of claims 1-6.
CN202311378344.1A 2023-10-23 2023-10-23 Remote control management method and related device Pending CN117319368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311378344.1A CN117319368A (en) 2023-10-23 2023-10-23 Remote control management method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311378344.1A CN117319368A (en) 2023-10-23 2023-10-23 Remote control management method and related device

Publications (1)

Publication Number Publication Date
CN117319368A true CN117319368A (en) 2023-12-29

Family

ID=89249808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311378344.1A Pending CN117319368A (en) 2023-10-23 2023-10-23 Remote control management method and related device

Country Status (1)

Country Link
CN (1) CN117319368A (en)

Similar Documents

Publication Publication Date Title
US10827008B2 (en) Integrated user interface for consuming services across different distributed networks
US10956191B2 (en) Systems and methods for customizing and programming a cloud-based management server
US11178207B2 (en) Software version control without affecting a deployed container
US10003672B2 (en) Apparatus, systems and methods for deployment of interactive desktop applications on distributed infrastructures
US8739157B2 (en) System and method for managing cloud deployment configuration of an application
US9400671B2 (en) Computer host with a baseboard management controller to manage virtual machines
CN103677858B (en) Method, system and the equipment of software virtual machine management in a kind of cloud environment
Yang et al. A profile-based approach to just-in-time scalability for cloud applications
CN103019802B (en) A kind of virtual machine management method and platform
KR20200070085A (en) Method and apparatus for processing information
US9268546B2 (en) Deployment and hosting of platform independent applications
CN103034527A (en) Hybrid virtualization cloud computing resource optimal control method and system
CN103309721A (en) Virtual machine monitor management system and method
US20130151594A1 (en) Deployment and hosting of platform independent applications
KR101680702B1 (en) System for web hosting based cloud service
WO2018236691A1 (en) Systems and methods for running software applications on distributed application frameworks
US20130151595A1 (en) Deployment and hosting of platform independent applications
US10318343B2 (en) Migration methods and apparatuses for migrating virtual machine including locally stored and shared data
CN110221910B (en) Method and apparatus for performing MPI jobs
JP2013246817A (en) Remote card content management using synchronous server-side scripting
CN114416169A (en) Data processing method, medium, device and computing equipment based on micro front end
CN105389096A (en) Browser based data interaction method and apparatus
US11262997B2 (en) Parallel software deployment system
CN112491940A (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
CN117319368A (en) Remote control management method and related device

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