A method for realizing KVM function based on IPMI, BMC and storage medium

Through IPMI and switching chip technology, the flexibility problem of KVM function services in multi-node servers is solved, and flexible KVM function services and GPU diagnostic processing for multi-node servers are realized, improving user experience and efficiency.

CN115426237BActive Publication Date: 2024-09-20POWERLEADER TELECOM TECH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202210905786.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2024-09-20
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

In multi-node servers, BMC can only provide KVM function services for one node and cannot flexibly switch to other nodes, resulting in poor user experience and requiring the user to enter the computer room to insert equipment for operation.

Method used

Obtain the out-of-band management IP of the multi-node server through IPMI, determine the target node, switch the KVM device signal to the target node through the switching chip, establish a physical connection channel, provide KVM functional services, including PCIE and USB signal switching, and can diagnose and Handling GPU glitches.

Benefits of technology

It implements flexible KVM function services for multi-node servers, improving user experience. Users can provide KVM functions for any node without entering the computer room to insert devices, which enhances diagnosis and processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115426237B
    Figure CN115426237B
Patent Text Reader

Abstract

The embodiment of the present application discloses a method, BMC and storage medium for implementing KVM function based on IPMI, which is used to flexibly provide KVM function services for multi-node servers and improve user experience. The method of the embodiment of the present application includes: the baseboard management controller BMC obtains the out-of-band management IP of each node in the multi-node server, and each node has been configured with the intelligent platform management interface IPMI function; the BMC determines the target node that needs keyboard, video or mouse KVM function from each node through the out-of-band management IP, and the target node is any server node among the nodes; the BMC switches the signal output by the KVM device to the target node, and the KVM device establishes a physical connection channel with the target node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of out-of-band management technology, and in particular to a method for implementing a KVM function based on IPMI, a BMC, and a storage medium. Background Art

[0002] KVM is the abbreviation of Keyboard Video Mouse. KVM can access and control computers by directly connecting to the keyboard, video or mouse port. KVM technology does not require the target server to modify the software. This means that the target computer can be accessed at any time in the BIOS environment. The Baseboard Management Controller (BMC) can perform firmware upgrades, view machine devices, and other operations on the machine when the machine is not turned on.

[0003] In a multi-node server, due to the existence of multiple nodes and the BMC having only one high-speed serial computer expansion bus standard (Peripheral Component Interconnect Express, PCIE) bus, the KVM function service can only be provided for one node, which is not flexible enough. If you want to provide KVM function service for another node, you need to enter the computer room to find the node and insert the relevant equipment, which is very troublesome and the user experience is very poor. Summary of the invention

[0004] The embodiments of the present application provide a method, a BMC, and a storage medium for implementing a KVM function based on IPMI, which can flexibly provide KVM function services for a multi-node server and improve user experience.

[0005] A first aspect of an embodiment of the present application provides a method for implementing a KVM function based on IPMI, including:

[0006] The BMC obtains the out-of-band management IP address of each node in the multi-node server, and each node has been configured with the Intelligent Platform Management Interface (IPMI) function;

[0007] The BMC determines a target node requiring a KVM function from each of the nodes through the out-of-band management IP, wherein the target node is any server node among the nodes;

[0008] The BMC switches the signal output by the KVM device to the target node, and a physical connection channel is established between the KVM device and the target node.

[0009] Optionally, the BMC switching the signal output by the KVM device to the target node includes:

[0010] The BMC switches the PCIE signal output by itself to the target node, the BMC and the target node establish a PCIE physical connection channel, and the first switching chip is used to switch the PCIE output signal of the device;

[0011] The BMC switches a first USB signal output by a USB keyboard and / or a second USB signal output by a USB mouse to the target node, a USB physical connection channel is established between the USB keyboard and the target node, and a USB physical connection channel is established between the USB mouse and the target node.

[0012] Optionally, the BMC switching the PCIE signal output by itself to the target node includes:

[0013] The BMC switches the PCIE signal output by itself to the target node through a first switching chip, where the first switching chip is used to switch the PCIE signal of the device;

[0014] The BMC switches the first USB signal output by the USB keyboard and / or the second USB signal output by the USB mouse to the target node, including:

[0015] The BMC switches the first USB signal output by the USB keyboard and / or the second USB signal output by the USB mouse to the target node through a second switching chip, and the second switching chip is used for switching USB signals of devices.

[0016] Optionally, after the BMC switches the PCIE signal output by itself to the target node, the method further includes:

[0017] The BMC diagnoses the GPU of the target node through its own PCIE signal.

[0018] Optionally, after the BMC diagnoses the GPU of the target node through its own PCIE signal, the method further includes:

[0019] When the GPU is damaged, the BMC processes the graphics processing task for the target node through its own PCIE signal.

[0020] A second aspect of an embodiment of the present application provides a BMC, including:

[0021] An acquisition unit, used to acquire an out-of-band management IP address of each node in a multi-node server, wherein each node has been configured with an IPMI function;

[0022] A determination unit, configured to determine a target node requiring a KVM function from among the nodes through the out-of-band management IP;

[0023] The switching unit is used to switch the signal output by the KVM device to the target node, and a physical connection channel is established between the KVM device and the target node.

[0024] Optionally, the switching unit includes:

[0025] A first switching module, used for switching the PCIE signal output by the BMC to the target node, the BMC and the target node have established a PCIE physical connection channel, and the first switching chip is used for switching the PCIE output signal of the device;

[0026] The second switching module is used to switch the first USB signal output by the USB keyboard and / or the second USB signal output by the USB mouse to the target node, the USB keyboard and the target node have established a USB physical connection channel, and the USB mouse and the target node have established a USB physical connection channel.

[0027] Optionally, the first switching module is specifically configured to:

[0028] Switching the PCIE signal output by the BMC to the target node through a first switching chip, wherein the first switching chip is used to switch the PCIE signal of the device;

[0029] The second switching module is specifically used to: switch the first USB signal output by the USB keyboard and / or the second USB signal output by the USB mouse to the target node through the second switching chip, and the second switching chip is used to switch the USB signal of the device.

[0030] Optionally, the BMC further includes:

[0031] The diagnosis unit is used to diagnose the GPU of the target node through its own PCIE signal.

[0032] Optionally, the BMC further includes:

[0033] A unit is provided, which is used to process the graphics processing task for the target node through its own PCIE signal when the GPU is damaged.

[0034] A third aspect of an embodiment of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed on a computer, the computer executes the method described in the first aspect and any possible implementation of the first aspect.

[0035] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0036] The method for implementing KVM functions based on IPMI provided in the embodiment of the present application, after determining the target node, since the KVM device has established a physical connection channel with the target node, the BMC can switch the signal output by the KVM device to the target node and provide KVM function services for the target node. The target node is any node among the nodes in the multi-node server, so the BMC can flexibly provide KVM function services for the multi-node server. If the user wants to provide KVM function services for any node, it only needs to be completed through the BMC, without going to the computer room to insert the relevant KVM device, which provides great convenience for the user and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 A flow chart of an embodiment of a method for implementing a KVM function based on IPMI in an embodiment of the present application;

[0038] Figure 2 This is a flow chart of another embodiment of the method for implementing the KVM function based on IPMI in the embodiment of the present application;

[0039] Figure 3 This is a schematic diagram of the structure of an embodiment of the BMC in the embodiment of the present application;

[0040] Figure 4 It is a structural diagram of another embodiment of the BMC in the embodiment of the present application. DETAILED DESCRIPTION

[0041] The embodiments of the present application provide a method, a BMC and a storage medium for implementing KVM functions based on IPMI, which are used to flexibly provide KVM function services for multi-node servers and improve user experience.

[0042] The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0043] See also Figure 1 In the embodiment of the present application, a method for implementing KVM function based on IPMI includes:

[0044] 101. BMC obtains the out-of-band management IP address of each node in the multi-node server;

[0045] In actual applications, an IPMI connection is established between the BMC and each node in a multi-node server, and each node has a unique out-of-band management IP. If you want to provide KVM function services for a certain node, the BMC needs to know the out-of-band management IP of the node, so the BMC obtains the out-of-band management IP of each node in the multi-node server.

[0046] 102. BMC determines the target node that needs KVM function from each node through the out-of-band management IP;

[0047] After obtaining the out-of-band management IP of each node, because the BMC can only provide KVM function services for one node at a time, the BMC can determine an out-of-band management IP based on the obtained out-of-band management IP of each node, and the node corresponding to the out-of-band management IP is the target node.

[0048] It should be noted that there are multiple ways to determine the target node, for example, a user randomly selects an out-of-band management IP from all out-of-band management IPs acquired by the BMC, and the node corresponding to the out-of-band management IP is the target node; for example, a user has already determined an out-of-band management IP in advance, and inputs the out-of-band management IP in the management interface of the BMC, and the BMC determines the corresponding target node according to the user's input information. This is not limited in this embodiment.

[0049] 103. The BMC switches the signal output by the KVM device to the target node.

[0050] Since the KVM device and the target node have established a physical connection channel, the BMC can switch the signal of the KVM device to the target node through the physical connection, thereby providing the target node with KVM functional services. In this embodiment, the KVM device includes a mouse, a keyboard, a graphics card, etc., which are not specifically limited here, because the BMC contains an integrated graphics card, and the BMC also belongs to the KVM device. In this embodiment, the physical connection channel includes a network cable, a USB cable, a PCIE cable, etc., which are not specifically limited here. It should be noted that since the BMC and each node are in a one-to-many relationship, in order to realize that the BMC and each node have physical connection channels connected, then the physical connection channel drawn from the BMC end needs to be connected to one or more one-to-many bridges in succession, and finally connected to each node. However, not all of these physical connection channels have signal transmission of the KVM device. At the same time, only the physical connection channel between the BMC and the target node has signal transmission, and other physical transmission channels do not. When the target node changes, the physical connection channel with signal transmission also changes.

[0051] In this embodiment, the BMC first obtains the out-of-band management IP of each node in the multi-node server, and then determines the target node that needs the KVM function through the out-of-band management IP. Since the KVM device and the target node have established a physical connection channel, the BMC can switch the signal output by the KVM device to the target node and provide the KVM function service for the target node. The target node is any server node among the nodes, so the BMC can flexibly provide KVM function services for the multi-node server. If the user wants to provide KVM function services for any node, it only needs to be completed through the BMC, without going to the computer room to insert the relevant KVM equipment, which provides great convenience for the user.

[0052] See also Figure 2 Another embodiment of the method for implementing KVM function based on IPMI in the embodiment of the present application includes:

[0053] 201. BMC obtains the out-of-band management IP address of each node in the multi-node server;

[0054] 202. The BMC determines the target node that needs the KVM function from each node through the out-of-band management IP;

[0055] In this embodiment, steps 201 to 202 are similar to steps 101 to 102 in the aforementioned embodiment and are not described again here.

[0056] 203. The BMC switches the PCIE signal output by itself to the target node through the first switching chip;

[0057] Under normal circumstances, the PCIE signal output by the BMC itself can only provide services for the local machine. If you want to provide a PCIE signal to the target node, you need to switch the PCIE output by the BMC. Therefore, the BMC switches the PCIE signal output by itself to the PCIE interface that is physically connected to the target node through the first switching chip, and then transmits it to the target node from the PCIE interface via the physical connection channel, thereby providing the target node with a PCIE signal. It should be noted that the first switching chip is a chip that can switch channels for PCIE signals, such as the PEX88000 PCIe Switch series chips, etc., which are not specifically limited here. It should be noted that since the PCIE signal is switched from the BMC, it is equivalent to using the BMC as the GPU of the target node. Therefore, the target node needs to support PCIE hot plugging.

[0058] 204. The BMC switches the first USB signal output by the USB keyboard and / or the second USB signal output by the USB mouse to the target node through the second switching chip;

[0059] Under normal circumstances, the USB signal output by the USB keyboard or USB mouse connected to the BMC can only provide services for the local machine. If you want to provide a USB signal for the target node, you need to switch the USB signal output by the USB keyboard or USB mouse. Therefore, the BMC switches the first USB signal output by the USB keyboard connected to the host where the BMC is located and / or the second USB signal output by the USB mouse connected to the local machine to the USB interface connected to the target node through a physical channel through the second switching chip (it should be noted that the first USB signal and the second USB signal cannot reuse an interface, so the second switching chip switches them to two different USB interfaces respectively), and then transmits them from the USB interface to the target node via the physical connection channel, thereby providing the target node with the first USB signal and / or the second USB signal. It should be noted that the second switching chip is a chip that can switch channels for USB signals, such as VL163 QFN28 USB series chips, etc., which are not specifically limited here. It should be noted that, since the USB signal is switched from a USB keyboard connected to the host where the BMC is located and / or a USB mouse connected to the host where the BMC is located, it is equivalent to using the USB keyboard and / or the USB mouse as the keyboard and / or mouse of the target node. Therefore, the target node needs to support USB hot plugging.

[0060] 205. The BMC diagnoses the GPU of the target node through its own PCIE signal;

[0061] After the BMC switches its own PCIE signal to the target node through the first switching chip, the PCIE signal can be used to diagnose whether the GPU of the target node is normal. Specifically, the PCIE signal of the BMC and the PCIE signal of the GPU of the target node can be used alternately. If the target node can work normally when the PCIE signal of the BMC is used, but the target node cannot work normally when the PCIE signal of the GPU of the target node is used, it can be determined that the GPU of the target node has a fault.

[0062] In this embodiment, the BMC can diagnose the GPU of the target node through its own PCIE signal, without the need for the user to enter the computer room for on-site diagnosis, thereby improving the diagnosis efficiency and the user experience.

[0063] 206. When the GPU is damaged, the BMC processes the graphics processing tasks for the target node through its own PCIE signal.

[0064] In this embodiment, if the GPU of the target node is damaged, since the BMC has switched its own PCIE signal to the target node through the first switching chip, the BMC can temporarily process the graphics processing task for the target node through its own PCIE signal. At this time, the user can be notified to repair or replace the GPU of the target node as soon as possible.

[0065] In this embodiment, the BMC can temporarily process the graphics processing task of the target node, so that before the GPU of the target node is repaired or replaced, the image processing task of the target node can still be processed without interrupting the image processing task, thereby improving efficiency.

[0066] See also Figure 3 In the embodiment of the present application, an embodiment of BMC includes:

[0067] The acquisition unit 301 is used to acquire the out-of-band management IP of each node in the multi-node server, and each node has been configured with an IPMI function;

[0068] A determination unit 302 is used to determine a target node requiring a KVM function from each node through an out-of-band management IP;

[0069] The switching unit 303 is used to switch the signal output by the KVM device to the target node. A physical connection channel is established between the KVM device and the target node.

[0070] In this embodiment, the acquisition unit 301 first acquires the out-of-band management IP of each node in the multi-node server, and the determination unit 302 then determines the target node that needs the KVM function through the out-of-band management IP. Since the KVM device and the target node have established a physical connection channel, the switching unit 303 can switch the signal output by the KVM device to the target node to provide the KVM function service for the target node. The target node is any server node among the nodes, so the BMC can flexibly provide KVM function services for the multi-node server. If the user wants to provide KVM function services for any node, it only needs to be completed through the BMC, without going to the computer room to insert the relevant KVM equipment, which provides great convenience for the user.

[0071] See also Figure 4 , another embodiment of the BMC in the embodiment of the present application includes:

[0072] The acquisition unit 401 is used to acquire the out-of-band management IP of each node in the multi-node server, and each node in the multi-node server has been configured with an IPMI function;

[0073] A determination unit 402 is used to determine a target node requiring a KVM function from each node through an out-of-band management IP;

[0074] The switching unit 403 is used to switch the signal output by the KVM device to the target node. A physical connection channel is established between the KVM device and the target node.

[0075] In this embodiment, the switching unit 403 may include a first switching module 4031 and a second switching module 4032 .

[0076] A first switching module 4031 is used to switch the PCIE signal output by the BMC to the target node through a first switching chip, the first switching chip is used to switch the PCIE signal of the device, and the first switching chip is used to switch the PCIE output signal of the device;

[0077] The second switching module 4032 is used to switch the first USB signal output by the USB keyboard and / or the second USB signal output by the USB mouse to the target node through the second switching chip. The second switching chip is used to switch the USB signal of the device. A USB physical connection channel is established between the USB keyboard and the target node, and a USB physical connection channel is established between the USB mouse and the target node.

[0078] In this embodiment, the BMC may further include a diagnosis module 404 and a processing module 405 .

[0079] The diagnosis module 404 is used to diagnose the GPU of the target node through the PCIE signal of the BMC.

[0080] The processing module 405 is used to process the graphics processing task for the target node through the PCIE signal of the BMC when the GPU is damaged.

[0081] In this implementation, the functions of each unit and module are the same as those described above. Figure 2 The steps in the illustrated embodiments correspond to each other and will not be described again here.

[0082] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0083] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0084] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0085] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0086] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

Claims

1. A method for implementing KVM function based on IPMI, characterized in that: include: The baseboard management controller BMC obtains the out-of-band management IP of each node in the multi-node server, and each node has been configured with the intelligent platform management interface IPMI function; The BMC determines a target node that needs a keyboard, video or mouse KVM function from each of the nodes through the out-of-band management IP, and the target node is any server node among the nodes; The BMC switches the signal output by the KVM device to the target node, and a physical connection channel is established between the KVM device and the target node; The BMC switches the signal output by the KVM device to the target node, including: The BMC switches the PCIE signal output by itself to the target node, and a PCIE physical connection channel is established between the BMC and the target node, wherein the target node supports PCIE hot plug; The BMC switches a first USB signal output by a universal serial bus USB keyboard and / or a second USB signal output by a USB mouse to the target node, wherein a USB physical connection channel is established between the USB keyboard and the target node, and a USB physical connection channel is established between the USB mouse and the target node; After the BMC switches the PCIE signal output by itself to the target node, the method further includes: The BMC diagnoses the graphics processor GPU of the target node through its own PCIE signal. Specifically, the BMC alternately uses the PCIE signal of the BMC and the PCIE signal of the GPU of the target node to perform diagnosis.

2. The method according to claim 1, characterized in that The BMC switches the PCIE signal output by itself to the target node, including: The BMC switches the PCIE signal output by itself to the target node through a first switching chip, where the first switching chip is used to switch the PCIE signal of the device; The BMC switches the first USB signal output by the USB keyboard and / or the second USB signal output by the USB mouse to the target node, including: The BMC switches the first USB signal output by the USB keyboard and / or the second USB signal output by the USB mouse to the target node through a second switching chip, and the second switching chip is used for switching USB signals of devices.

3. The method according to claim 1, characterized in that After the BMC diagnoses the GPU of the target node through its own PCIE signal, the method further includes: When the GPU is damaged, the BMC processes the graphics processing tasks for the target node by itself.

4. A BMC, characterized in that: include: An acquisition unit, used to acquire an out-of-band management IP address of each node in a multi-node server, wherein each node has been configured with an IPMI function; A determination unit, configured to determine a target node requiring a KVM function from among the nodes through the out-of-band management IP; A switching unit, used for switching the signal output by the KVM device to the target node, wherein a physical connection channel is established between the KVM device and the target node; The switching unit comprises: A first switching module is used to switch the PCIE signal output by the BMC to the target node, the BMC and the target node have established a PCIE physical connection channel, wherein the target node supports PCIE hot plug; A second switching module, used for switching a first USB signal output by a USB keyboard and / or a second USB signal output by a USB mouse to the target node, wherein a USB physical connection channel is established between the USB keyboard and the target node, and a USB physical connection channel is established between the USB mouse and the target node; The BMC also includes: The diagnosis unit is used to diagnose the GPU of the target node through the PCIE signal of the BMC, specifically, alternately use the PCIE signal of the BMC and the PCIE signal of the GPU of the target node to perform diagnosis.

5. The BMC according to claim 4, characterized in that: The first switching module is specifically used for: Switching the PCIE signal output by the BMC to the target node through a first switching chip, wherein the first switching chip is used to switch the PCIE signal of the device; The second switching module is specifically used for: The first USB signal output by the USB keyboard and / or the second USB signal output by the USB mouse is switched to the target node through a second switching chip, and the second switching chip is used for switching USB signals of the device. 6 . A computer-readable storage medium having a program stored thereon, wherein when the program is executed on a computer, the computer is caused to execute the method according to claim 1 .

Citation Information

Cited By

  • Server and server management system therefor

    US12769689B2

  • Server and server management system therefor

    US20250053536A1