Control method and device of host system, storage medium and electronic equipment

By deploying host control devices in the substrate management controller BMC, the state acquisition and switching operations of multi-host systems are realized, and the problem of not being able to obtain the status of other host systems is solved, which improves operation convenience and efficiency.

CN119025064APending Publication Date: 2024-11-26SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411046219.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

In the case of multi-host systems, the prior art cannot obtain the status of other host systems in the currently running host system, resulting in the inability to operate other host systems, increasing operation complexity and reducing operational convenience.

Method used

By deploying the host control device in the substrate management controller BMC, the display interface is used to display the data and status of multiple host systems, the status acquisition and switching operations between host systems are realized, including split screen, screen cutting and splicing display, allowing the View and operate multiple host systems on the same display device.

Benefits of technology

It realizes the viewing of information from multiple host systems on the same display device at the same time, and timely monitors and switches the host system status, saving operators' time and improving problem handling efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119025064A_ABST
    Figure CN119025064A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a host system control method and device, a storage medium and electronic equipment, the method is applied to a host control device, and the host control device is deployed in a baseboard management controller (BMC) and is connected with a plurality of host systems. The method comprises the steps of displaying data in a first host system in a first display interface in target display equipment under the condition that the first host system is determined to be connected with the BMC and is in a running state; under the condition that the state data of the second host system is obtained, displaying the state data of the second host system in a second display interface in the target display equipment; and obtaining the first instruction through the first display interface, and executing the target operation in response to the first instruction under the condition that the first instruction is the target instruction. Through the method and the device, the problem that other host systems cannot be operated under the condition that a plurality of host systems are included in the prior art is solved.
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 computers, and more specifically, to a control method and device for a host system, a storage medium, and an electronic device. Background Art

[0002] In a server system, a baseboard management controller (BMC) is usually used to manage multiple host systems (for example, a dual-host system). Because there is only one BMC, the BMC side design needs to be appropriately adjusted to implement the data transmission function of the multi-host system (for example, the Video Graphics Array (VGA)). In the prior art, when the operator logs in to the host system using VGA, he cannot log in to the BMC to switch the host unless he uses another computer to log in, which increases the complexity of the operator's operation and reduces the convenience of operation. In addition, there is also the problem that when in the current host system, it is impossible to know the status of another host and it is impossible to determine whether it is necessary to switch to another host for operation. Summary of the invention

[0003] The embodiments of the present application provide a control method and device for a host system, a storage medium and an electronic device, so as to at least solve the problem in the related art that when multiple host systems are included, the status of other host systems cannot be obtained in the currently running host system, resulting in an inability to operate other host systems.

[0004] According to an embodiment of the present application, a host system control method is provided, which is applied to a host control device, wherein the host control device is deployed in a baseboard management controller BMC and connected to multiple host systems, and the method includes: when it is determined that the first host system is connected to the BMC and is in a running state, displaying data in the first host system in a first display interface in a target display device, wherein the first host system is a host system among multiple host systems, and the first display interface allows all data in the first host system to be displayed; when status data of the second host system is obtained, displaying status data of the second host system in a second display interface in the target display device, wherein the second host system is a host system among multiple host systems that is not in a running state, and the second display interface only allows status data of the second host system to be displayed; obtaining a first instruction through the first display interface, and when the first instruction is a target instruction, executing a target operation in response to the first instruction.

[0005] In an exemplary embodiment, when it is determined that the first host system is connected to the BMC and is in a running state, data in the first host system is displayed in a first display interface in a target display device, including: when it is determined that the BMC is started, controlling the BMC to perform a configuration initialization operation; when the BMC initialization is completed, detecting the power-on status of multiple host systems through the BMC; when it is determined that multiple host systems are all in a powered-on state, and the first host system is connected to the BMC and is in a running state, controlling the first display interface to display data in the first host system, wherein the first host system is connected to the BMC via a first PCIe bus, and is connected to the BMC via a first communication line, and the first communication line is only used to transmit status data of the first host system.

[0006] In an exemplary embodiment, when the status data of the second host system is obtained, the status data of the second host system is displayed on the second display interface of the target display device, including: receiving a status acquisition instruction sent by the first host system, wherein the status acquisition instruction is an instruction obtained through the first display interface; parsing the status acquisition instruction, and when determining that the status acquisition instruction is used to obtain the status information of the second host system, responding to the status acquisition instruction to obtain the status information of the second host system through a second communication line, wherein the second communication line is only used to transmit the status data of the second host system; sending a split-screen display instruction to the first host system, controlling the first host system to perform a split-screen display operation, so as to display the data in the first host system in the first display interface, and display the status data of the second host system in the second display interface, wherein the split-screen display instruction includes the status data of the second host system, the first display parameter of the first display interface, and the second display parameter of the second display interface.

[0007] In an exemplary embodiment, when the status data of the second host system is acquired, after the second display interface in the target display device displays the status data of the second host system, the method further includes one of the following: sending a first screen switching display instruction to the first host system to control the first host system to perform a first screen switching display operation, wherein the first screen switching display operation includes controlling the first display interface to display the data in the first host system in a full-screen display state, the second display interface is in a hidden state, and the second display interface includes the status data of the second host system, wherein the first screen switching display instruction includes a third display parameter of the first display interface and a fourth display parameter of the second display interface; sending a second screen switching display instruction to the first host system to control the first host system to perform a second screen switching display operation, wherein the second screen switching display operation includes controlling the The first display interface is in a hidden state, the first display interface includes data in the first host system, the second display interface displays status data of the second host system in a full-screen display state, and the second display interface also includes the command operation interface in the first display interface, wherein the command operation interface is used to respond to operation instructions input through other devices, and the second screen switching display instruction includes the fifth display parameter of the first display interface and the sixth display parameter of the second display interface; a splicing display instruction is sent to the first host system to control the first host system to perform a splicing display operation, wherein the splicing display operation includes controlling the first display area in the first display interface to display data in the first host system, and the second display area in the first display interface to display status data of the second host system, and the splicing display instruction includes the seventh display parameter of the first display interface.

[0008] In an exemplary embodiment, a first instruction is obtained through the first display interface, and when the first instruction is a target instruction, a target operation is performed in response to the first instruction, including: parsing the first instruction; when the first instruction is a host switching instruction, responding to the host switching instruction to perform a host switching operation, wherein the host switching operation includes switching the first host system to the second host system, the second host system after switching is connected to the BMC through a second PCIe bus and is in a running state, and is connected to the BMC through a second communication line, and the second communication line is only used to transmit status data of the second host system; controlling the display of data in the second host system in the first display interface; and when the status data of the first host system is obtained, displaying the status data of the first host system in the second display interface.

[0009] In an exemplary embodiment, when the first instruction is a host switching instruction, responding to the host switching instruction, performing a host switching operation includes: when the first instruction is a host switching instruction, responding to the host switching instruction, performing a hot plug operation through the BMC to switch the first host system to the second host system; wherein the hot plug operation includes turning on the second PCIe bus connected between the second host system and the BMC through the BMC.

[0010] In an exemplary embodiment, in the case that the above-mentioned first instruction is a host switching instruction, after responding to the above-mentioned host switching instruction and performing a host switching operation, the above-mentioned method also includes: performing a hot removal operation through the above-mentioned BMC, wherein the above-mentioned hot removal operation includes disconnecting the first PCIe bus connecting the above-mentioned first host system and the above-mentioned BMC through the above-mentioned BMC; controlling the above-mentioned first host system to be connected to the above-mentioned BMC through the first communication line, wherein the above-mentioned first communication line is only used to transmit the status data of the above-mentioned first host system.

[0011] According to another embodiment of the present application, a control device for a host system is provided, which is applied to a host control device. The host control device is deployed in a baseboard management controller BMC and connected to multiple host systems. The device includes: a first display module, which is used to display data in the first host system in a first display interface in a target display device when it is determined that the first host system is connected to the BMC and is in a running state, wherein the first host system is a host system among multiple host systems, and the first display interface allows all data in the first host system to be displayed; a second display module, which is used to display status data of the second host system in a second display interface in the target display device when status data of the second host system is obtained, wherein the second host system is a host system among multiple host systems that is not in a running state, and the second display interface only allows status data of the second host system to be displayed; a first acquisition module, which is used to acquire a first instruction through the first display interface, and when the first instruction is a target instruction, respond to the first instruction to perform a target operation.

[0012] According to another embodiment of the present application, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0013] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when running.

[0014] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0015] Through the present application, when the first host system is connected to the baseboard management controller BMC and is running, the data in this system is displayed at the corresponding position of the display device, and when the status data of the second host system is obtained, the status data of the second host system is displayed at the corresponding position of the target display device, so that the information of the two host systems can be seen at the same time on the same display device, so that the corresponding host system can be operated in time according to the status of the host system. Therefore, the problem in the related art that when multiple host systems are included, the status of other host systems cannot be obtained in the currently running host system, resulting in the inability to operate other host systems can be solved, thereby saving the operator's time and improving the efficiency of problem handling. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a hardware environment schematic diagram of a control method of a host system according to an embodiment of the present application;

[0017] Figure 2 The process of the host system control method according to the embodiment of the present application is as follows Figure 1 ;

[0018] Figure 3 is a schematic structural diagram of the overall control of the host control device according to an embodiment of the present application;

[0019] Figure 4 is a schematic diagram of split-screen display and switched-screen display in a target display device according to an embodiment of the present application;

[0020] Figure 5 is a structural block diagram of a control device of a host system according to an embodiment of the present application;

[0021] Figure 6 A structural block diagram of a control device of a host system according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

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

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

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

[0027] In this embodiment, a host system control method is provided, which is applied to a host control device. The host control device is deployed in a baseboard management controller BMC and is connected to multiple host systems. Figure 2The process of the host system control method according to the embodiment of the present application is as follows Figure 1 ,like Figure 2 As shown, the process includes the following steps:

[0028] Step S202, when it is determined that the first host system is connected to the BMC and is in a running state, displaying data in the first host system in a first display interface in the target display device, wherein the first host system is a host system among the plurality of host systems, and the first display interface allows displaying all data in the first host system;

[0029] Step S204, when the status data of the second host system is obtained, displaying the status data of the second host system on a second display interface in the target display device, wherein the second host system is a host system that is not in a running state among the multiple host systems, and the second display interface only allows displaying the status data of the second host system;

[0030] Step S206: acquiring a first instruction through the first display interface, and executing a target operation in response to the first instruction when the first instruction is a target instruction.

[0031] The execution order of step S202 and step S204 is interchangeable, that is, step S204 may be executed first, and then step S202.

[0032] Optionally, the host control device in this embodiment may include a processor, a controller, or a PCLe MUX. Figure 3 As shown, the first host system is HOST1, the second host system is HOST2, and the host control device includes PCLeMUX. HOST1 and HOST2 are both connected to a PCLe MUX through PCLe. PCLe MUX is connected to BMC through PCLe, and BMC is connected to the target display device.

[0033] Optionally, the host system in this embodiment includes but is not limited to: a Windows host system, a macOS host system, a Linux host system, a Unix host system, etc.

[0034] Optionally, the method for determining whether the host system is connected to the baseboard management controller BMC in this embodiment includes but is not limited to: ensuring that the power of the host system and the BMC is turned on and both are in normal working condition; using an Intelligent Platform Management Interface (IPMI) tool or a command line interface (such as ipmitool) to connect to the BMC and check the status information of the BMC; ensuring that the network card of the host system and the network port of the BMC are properly connected through a network cable, and the network connection between the host system and the BMC can be tested by using the ping command; ensuring that the IPMI function is enabled in the BIOS settings of the host system and the correct BMC IP address and username and password are configured; executing IPMI commands on the host system, such as the ipmitool command, to check whether the connection status and communication with the BMC are normal.

[0035] Optionally, the data in the first host system in this embodiment covers various information and files required for system operation, including but not limited to: operating system files, application files, user data, log files, database files, network data, system configuration files, security certificates and keys, program logs and temporary files, and other system files and data.

[0036] Optionally, the status data of the second host system in this embodiment includes the current operating status and performance indicators of the system, which are used to monitor and evaluate the health and operation of the second host system. The status data may include the following: central processing unit (CPU) usage, memory usage, hard disk usage, network traffic, process status, system load, network connection status, temperature and fan speed, log records, and resource allocation, etc.

[0037] Optionally, the target display device in this embodiment includes but is not limited to a hardware device for displaying image, video or text output, such as a display. The target display device can be connected to multiple host systems. Data of different host systems can be displayed in a split-screen or multi-screen manner.

[0038] Optionally, the first instruction in this embodiment is used to perform corresponding operations on the host system according to actual needs. The first instruction includes but is not limited to: host switching instructions, split-screen display instructions, screen cutting instructions, etc., and the corresponding operations include but are not limited to: switching hosts, setting screen displays, and displaying the auxiliary interface in full screen.

[0039] Through the above steps, when the first host system is connected to the baseboard management controller BMC and is running, the data in this system is displayed at the corresponding position of the display device, and when the status data of the second host system is obtained, the status data of the second host system is displayed at the corresponding position of the target display device, so that the information of the two host systems can be seen at the same time on the same display device, so that the corresponding host system can be operated in time according to the status of the host system. Therefore, the problem in the related art that when multiple host systems are included, the status of other host systems cannot be obtained in the currently running host system, resulting in the inability to operate other host systems can be solved, so that the information of the two host systems can be seen at the same time on the same display device, and the corresponding host system can be operated in time according to the status of the host system, saving the operator's time and improving the efficiency of problem handling.

[0040] In an exemplary embodiment, when it is determined that the first host system is connected to the BMC and is in a running state, data in the first host system is displayed in a first display interface in a target display device, including: when it is determined that the BMC is started, controlling the BMC to perform a configuration initialization operation; when the BMC initialization is completed, detecting the power-on status of multiple host systems through the BMC; when it is determined that multiple host systems are all in a powered-on state and the first host system is connected to the BMC and is in a running state, controlling the first display interface to display data in the first host system, wherein the first host system is connected to the BMC via a first PCIe bus and to the BMC via a first communication line, and the first communication line is only used to transmit status data of the first host system.

[0041] Optionally, in this embodiment, the configuration initialization operation performed on the above-mentioned BMC includes but is not limited to: configuring the BMC's IP address, subnet mask, gateway and other network parameters to ensure that the BMC can be managed and monitored through the network; configuring the BMC's user account and password, determining the authority levels of different users, to ensure that only authorized users can access and manage the BMC; setting the BMC's system time and date to ensure the accuracy and consistency of event records; setting the BMC's system log record level and storage location to record system operating status and event information; setting the BMC's alarm notification method and recipients to promptly notify the administrator of system operating conditions and abnormal events; configuring the BMC's monitoring parameters for system sensors to monitor the system's temperature, fan speed and other hardware status in real time, etc.

[0042] Optionally, after performing the configuration initialization operation on the BMC in this embodiment, the configuration may be tested to ensure that the BMC can work normally and realize the management and monitoring functions. The testing method includes but is not limited to: using automated testing tools, such as Selenium, Appium, etc., to simulate user operations on the BMC interface to verify the correctness and stability of the configuration.

[0043] Optionally, in this embodiment, after the BMC is powered on, it first needs to perform necessary initialization and detect the power-on status of the host. Different operation steps are performed according to the power-on status of the host. The specific operation steps may be: if the host is currently powered on, enter the instruction monitoring process, otherwise it is necessary to wait for the host to be powered on.

[0044] Optionally, the method for determining whether the host system is connected to the baseboard management controller BMC in this embodiment has been described above and will not be repeated here.

[0045] Through the above steps, the configuration initialization operation of the BMC is completed, and it is determined that multiple host systems are in a powered-on state. When the first host system is connected to the BMC and is in a running state, the data in the first host system is displayed in the first display interface, and the host data is displayed at the corresponding position in the target display device, achieving the effect of real-time monitoring of the host status.

[0046] In an exemplary embodiment, when the status data of the second host system is obtained, the status data of the second host system is displayed on the second display interface of the target display device, including: receiving a status acquisition instruction sent by the first host system, wherein the status acquisition instruction is an instruction obtained through the first display interface; parsing the status acquisition instruction, and when determining that the status acquisition instruction is used to obtain the status information of the second host system, responding to the status acquisition instruction to obtain the status information of the second host system through a second communication line, wherein the second communication line is only used to transmit the status data of the second host system; sending a split-screen display instruction to the first host system, controlling the first host system to perform a split-screen display operation, so as to display the data in the first host system in the first display interface, and display the status data of the second host system in the second display interface, wherein the split-screen display instruction includes the status data of the second host system, the first display parameter of the first display interface, and the second display parameter of the second display interface.

[0047] Optionally, in this embodiment, it is determined that the status acquisition instruction is used to obtain status information of the second host system. The status acquisition instruction may include: host information of the first host system (for example, a device number or a device identification identifier), the device number or a device identification identifier of the second host system whose status information is to be obtained, etc., which can uniquely determine the identification of the second host system; obtain all states of the second host system or a specified state, such as: CPU usage, memory usage, hard disk usage, network traffic, process status, system load, etc. of the second host system.

[0048] Optionally, the specific contents included in the status information of the second host system in this embodiment have been described above and will not be repeated here.

[0049] Optionally, the split-screen display instruction in this embodiment may include, in addition to the status data of the second host system, the first display parameter of the first display interface, and the second display parameter of the second display interface, a split-screen format, split-screen setting parameters, etc. The first display parameter and the second display parameter in this embodiment include, but are not limited to, resolution, refresh rate, brightness, contrast, color gamut, etc.

[0050] Optionally, in this embodiment, displaying data in the first host system in the first display interface and displaying status data of the second host system in the second display interface can be accomplished by a specific image processing module.

[0051] For example, Figure 4 As shown, it is a schematic diagram of split-screen display and switched-screen display in the target display device in this embodiment. After obtaining the data to be displayed, the VGA display image is processed, specifically including split-screen settings, switching the size of the main interface and the auxiliary interface, etc. After the processing is completed, the data is sent to the VGA for display. When split-screen display is performed, the images to be displayed in the two host systems need to be spliced. The default split-screen format can be three-thirds screen, and the split-screen format is the top-bottom format after the auxiliary interface is maximized.

[0052] Optionally, in this embodiment, when responding to the status acquisition instruction sent by the first host system, it includes but is not limited to: sending a message to the first host system to confirm that the status acquisition instruction is being sent accordingly; if the first host system does not receive a corresponding response message within a specified time after sending the status acquisition instruction, resending the status acquisition instruction; when the above steps are repeated multiple times and no corresponding response message is received, it is considered that there is an abnormality in the connection between the BMC and the target display device, and the abnormality needs to be further processed.

[0053] This embodiment responds to the received status acquisition instruction, displays the data in the first host system in the first display interface, and displays the status data of the second host system in the second display interface. It can adjust the host data displayed at the corresponding position in the target display device in real time, and uses the main interface and the auxiliary interface to respectively display the two host information, which provides a basis for judging the necessity of host switching and achieves the effect of real-time monitoring of the host status.

[0054] In an exemplary embodiment, when the status data of the second host system is acquired, after the second display interface in the target display device displays the status data of the second host system, the method further includes one of the following: sending a first screen switching display instruction to the first host system to control the first host system to perform a first screen switching display operation, wherein the first screen switching display operation includes controlling the first display interface to display the data in the first host system in a full-screen display state, the second display interface is in a hidden state, and the second display interface includes the status data of the second host system, wherein the first screen switching display instruction includes a third display parameter of the first display interface and a fourth display parameter of the second display interface; sending a second screen switching display instruction to the first host system to control the first host system to perform a second screen switching display operation, wherein the second screen switching display operation includes controlling the The first display interface is in a hidden state, the first display interface includes data in the first host system, the second display interface displays status data of the second host system in a full-screen display state, and the second display interface also includes the command operation interface in the first display interface, wherein the command operation interface is used to respond to operation instructions input through other devices, and the second screen switching display instruction includes the fifth display parameter of the first display interface and the sixth display parameter of the second display interface; a splicing display instruction is sent to the first host system to control the first host system to perform a splicing display operation, wherein the splicing display operation includes controlling the first display area in the first display interface to display data in the first host system, and the second display area in the first display interface to display status data of the second host system, and the splicing display instruction includes the seventh display parameter of the first display interface.

[0055] Optionally, the data content in the host system in this embodiment has been described above, and will not be repeated here. The specific content of the status data of the host system has been described above, and will not be repeated here.

[0056] Optionally, in this embodiment, the first screen switching display instruction sent to the first host system is used to control the first host system to perform a first screen switching display operation. The first screen switching display instruction includes but is not limited to: specifying the content to be displayed on the screen; adjusting the parameters of the screen layout; switching the parameters of the screen mode; adjusting the parameters of the display effect, for example: specifying the screen brightness, contrast, color and other parameters.

[0057] Optionally, in this embodiment, the first screen switching display instruction sent to the first host system is used to control the first host system to perform a first screen switching display operation. The first screen switching display instruction may also include a device number or device identification identifier of the host system to which it is sent, etc., which is used to uniquely determine the identifier of the sending host system.

[0058] Optionally, after the first host system in the present embodiment receives the first screen switching display instruction, it parses the instruction, identifies the device number of the host system included in the first screen switching display instruction, or the device identification identifier used to uniquely determine the identifier of the sending host system, and matches the above-identified identifier with its own device identifier. If the match is successful, the screen switching display operation corresponding to the first screen switching instruction is performed. If the match fails, it indicates that the first screen switching instruction is sent to an incorrect object. The host system sends an instruction indicating that the object of the instruction is incorrect according to the content in the first screen switching instruction, which is used to provide timely feedback to send the first screen switching instruction to the corresponding host system.

[0059] Optionally, the first screen switching display operation corresponding to the first screen switching instruction in this embodiment includes but is not limited to: making the first display interface display the data in the first host system in full-screen display state, making the second display interface hidden, and the second display interface including the status data of the second host system.

[0060] Optionally, in this embodiment, the second screen switching display instruction sent to the first host system is used to control the first host system to perform a second screen switching display operation. The content included in the second screen switching display instruction is similar to the content included in the first screen switching instruction, which has been described above and will not be repeated here.

[0061] This embodiment executes the corresponding screen switching display operation by sending the corresponding screen switching display instruction to the first host system, so that the first display interface displays the data in the first host system in a full-screen display state or the second display interface displays the status data of the second host system in a full-screen display state, and then sends a splicing display instruction to the first host system to execute the splicing display operation, so that the first display area in the first display interface displays the data in the first host system, and the second display area in the first display interface displays the status data of the second host system, ensuring that the first display area and the second display area display information of the two host systems respectively, achieving the effect of timely observing the problem alarm of the host system and choosing to immediately switch the host system to deal with the problem.

[0062] In an exemplary embodiment, a first instruction is obtained through the first display interface, and when the first instruction is a target instruction, a target operation is performed in response to the first instruction, including: parsing the first instruction; when the first instruction is a host switching instruction, responding to the host switching instruction to perform a host switching operation, wherein the host switching operation includes switching the first host system to the second host system, the second host system after switching is connected to the BMC through a second PCle bus and is in a running state, and is connected to the BMC through a second communication line, and the second communication line is only used to transmit status data of the second host system; controlling the display of data in the second host system in the first display interface; and when the status data of the first host system is obtained, displaying the status data of the first host system in the second display interface.

[0063] Optionally, in this embodiment, the information obtained by parsing the first instruction includes but is not limited to: the device identification of the object to which the instruction is sent, the type of instruction, the time when the instruction is sent, etc., wherein the type of the first instruction may be a host switching instruction, etc., and the information contained in the instruction can be obtained by parsing the first instruction, and the instruction type of the first instruction can be determined to be a host switching instruction by reading the obtained information.

[0064] Alternatively, if Figure 3 As shown, the second host system in this embodiment is connected to the BMC via the second PCIe bus and is in a running state, and is connected to the BMC via a second communication line, and the second communication line is only used to transmit the state data of the second host system.

[0065] Alternatively, if Figure 3As shown, the system as a whole is a dual-host, single BMC structure, the PCle channels of the two host systems are connected to the BMC through the PCle MUX, and only one host can be connected to the BMC through the PCle MUX at the same time. In this embodiment, when the first instruction is a host switching instruction, responding to the host switching instruction, the step of performing the host switching operation includes: connecting the PCle bus of the BMC to the corresponding second host system, and other physical links except PCle, such as I2C, ESPI, etc., are connected to the BMC by the two host systems at the same time, and these links do not need to be switched.

[0066] This embodiment responds to the host switching instruction, displays the data in the second host system in the first display interface, and displays the status data of the first host system in the second display interface, so that the host system can be switched under the host system instead of having to perform the switching operation under the BMC, thereby avoiding the problem of having to log in to the BMC to trigger the host switching, and achieving the effect of improving the efficiency of executing the host system switching.

[0067] In an exemplary embodiment, when the first instruction is a host switching instruction, responding to the host switching instruction, performing a host switching operation includes: when the first instruction is a host switching instruction, responding to the host switching instruction, performing a hot plug operation through the BMC to switch the first host system to the second host system; wherein the hot plug operation includes turning on the second PCIe bus connected between the second host system and the BMC through the BMC.

[0068] Optionally, the hot-plug operation in this embodiment includes but is not limited to connecting the second PCle bus connecting the second host system and the BMC through the BMC. When performing the hot-plug operation, the steps included may be: when the system is running, inserting the device or module to be inserted into the slot or interface managed by the BMC; the BMC automatically detects the newly inserted device or module, and performs identification and initialization operations; according to the prompt or instruction of the BMC, performing some configuration or setting operations to ensure that the newly inserted device or module can work normally.

[0069] This embodiment performs hot-plug operation through BMC to realize switching between host systems, connects the second host system to BMC, and ensures that the display image will also switch after the host system is successfully switched, that is, the main interface and the auxiliary interface display information are switched, the main interface always displays the interface of the current host system, and the auxiliary interface displays the status information of other host systems, so that the system service has continuity and stability.

[0070] In an exemplary embodiment, in the case that the above-mentioned first instruction is a host switching instruction, after responding to the above-mentioned host switching instruction and performing a host switching operation, the above-mentioned method also includes: performing a hot removal operation through the above-mentioned BMC, wherein the above-mentioned hot removal operation includes disconnecting the first PCIe bus connecting the above-mentioned first host system and the above-mentioned BMC through the above-mentioned BMC; controlling the above-mentioned first host system to be connected to the above-mentioned BMC through the first communication line, wherein the above-mentioned first communication line is only used to transmit the status data of the above-mentioned first host system.

[0071] Optionally, the content included in the status data of the host system in this embodiment has been described above and will not be repeated here.

[0072] Optionally, the hot removal operation in this embodiment includes but is not limited to disconnecting the first PCIe bus connecting the first host system and the BMC through the BMC. When performing the hot removal operation, the steps included may be: ensuring that the BMC is correctly connected to the server motherboard; confirming whether the device or component to be hot removed supports hot plugging; performing the hot removal operation to ensure that the device or component can be safely and correctly removed from the system; after completing the hot removal operation, checking the system status and BMC log to ensure that the device or component has been successfully removed and the system is operating normally.

[0073] This embodiment connects the communication line corresponding to the first host system to the BMC after the switching operation between the first host system and the second host system, thereby ensuring that the status data of the first host system can still be received and displayed in the current display device after the host switching operation, and real-time monitoring is performed, thereby ensuring the continuity and stability of the service, and achieving the effect of improving the availability and reliability of the system.

[0074] The present application is further described below in conjunction with specific embodiments:

[0075] In order to solve the problem in the related art that the host cannot be switched when using VGA to log in to the host in a dual host system, this specific embodiment proposes a control device and a control method for the dual host system. The control device of the dual host system includes four functional modules: an instruction issuing module, an instruction receiving and processing module, a host status monitoring module, a host switching module and an image processing module. The process of the control method of the dual host system is as follows: Figure 5 As shown, the specific steps include:

[0076] S50 1, environment detection and initialization, mainly including: after the BMC is powered on, it is necessary to first perform necessary initialization configuration, and detect the power-on status of the first host system HOST 1 and the second host system HOST 2; after confirming that HOST 1 and HOST 2 are powered on, enter the command monitoring process, otherwise it is necessary to wait for HOST 1 and HOST 2 to be powered on;

[0077] S502, in this embodiment, it is assumed that after HOST 1 and HOST 2 are powered on, HOST 1 is run to wait for instructions issued by the instruction issuing module; the instruction issuing module is on the host system side, for example, the instruction issuing module in HOST 1 in this embodiment is responsible for issuing instructions to the BMC side, and the module uses IPMI commands to issue instructions, and the function does not require development and adaptation on the HOST 1 side; the instruction issuance of this module does not depend on specific physical media, and all media that support IPMI instructions can be used as instruction carriers, including but not limited to USB, PCIe, I2C, eSPI, etc.;

[0078] S503, since IPMI command interaction between HOST 1 and BMC is relatively frequent, after the command issued by the command issuing module reaches the command receiving and processing module, the command receiving and processing module needs to first determine the validity of the command, that is, whether it is the target command; the command receiving and processing module is on the BMC side, and is used to receive and process the command issued by the command issuing module;

[0079] S504, if it is a target instruction, then a preliminary instruction analysis is performed, the main purpose of which is to identify the instruction type so as to route it to the corresponding instruction execution module;

[0080] S505, the instruction receiving and processing module distributes a target instruction, where the target instruction includes at least one of the following: a host switching instruction, a split-screen display instruction, and a screen switching instruction;

[0081] S506, if it is a host switching instruction, it is routed to the host switching module for processing. The switching of the host system includes two main steps, namely, hot removal of HOST 1 and hot insertion of HOST 2. After the switching is successful, the display image will also be switched, that is, the display information of the main interface and the auxiliary interface will be switched. The main interface displays the interface of the current host system, and the auxiliary interface displays the status information of other hosts. The switching also includes the switching of the mouse and keyboard;

[0082] S507, if it is a split-screen display instruction or a screen switching instruction, it is uniformly routed to the image processing module for processing. The module first needs to obtain the key status, log and other information of the target host from the host status monitoring module and convert it into an image format, and then perform display processing of the VGA image and the target host image according to the instruction type, including image stitching, interface display size setting, display position setting, etc., and then output the processed image to the display for display. Among them, the split-screen display instruction is used to set the screen display. In the default state, the screen displays the currently connected host system. After the split-screen instruction is issued, the screen will display the information of the two host systems in a split screen, among which the main interface still displays the currently connected host system, the mouse and keyboard follow the main interface host, and the auxiliary interface displays the target host information. This information mainly includes the current temperature, alarm, load and other key information of the host, which is mainly used to assist the operator to determine whether a host switching operation is required. It should be noted that the information displayed on the auxiliary interface is only used to view the key information of the target host system, and does not have an input function. The screen switching instruction is used to display the auxiliary interface in full screen (minimize the main interface to retain the command input).

[0083] Optionally, the status information of the host system in this embodiment is obtained by the host status monitoring module, which is set on the BMC side. During the operation of the host system, the host system will synchronize its own status information to the BMC. The main function of this module is to obtain key information such as temperature in the host status and send it to the image processing module. The host status information can be sent to the BMC through any channel. The module needs to collect key information from each channel and integrate it.

[0084] It should be noted that although the implementation method described in the present application is as above, the above description content and definition are only for the purpose of facilitating the understanding of the implementation method of the present application, and are not intended to limit the present application. Any modifications and changes made without departing from the spirit and scope of the present application, especially the method of performing host switching under the host system, the display method of the main interface and the auxiliary interface, etc., are within the scope of protection of the present application.

[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0086] In this embodiment, a control device for a host system is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0087] Figure 6 According to the structural block diagram of the control device of the host system of the embodiment of the present application, Figure 6 As shown, the device comprises:

[0088] A first display module 602 is used to display data in the first host system in a first display interface in a target display device when it is determined that the first host system is connected to the BMC and is in a running state, wherein the first host system is a host system among the plurality of host systems, and the first display interface allows displaying all data in the first host system;

[0089] A second display module 604 is configured to display the status data of the second host system on a second display interface in the target display device when the status data of the second host system is acquired, wherein the second host system is a host system that is not in operation among the plurality of host systems, and the second display interface is only allowed to display the status data of the second host system;

[0090] The first acquisition module 606 is configured to acquire a first instruction through the first display interface, and, if the first instruction is a target instruction, execute a target operation in response to the first instruction.

[0091] In an exemplary embodiment, the first display module 602 includes: a first control unit, which is used to control the BMC to perform a configuration initialization operation when it is determined that the BMC is started; a first detection module, which is used to detect the power-on status of multiple host systems through the BMC when the BMC initialization is completed; and a second control module, which is used to control the first display interface to display data in the first host system when it is determined that the multiple host systems are all in a powered-on state and the first host system is connected to the BMC and is in a running state.

[0092] In an exemplary embodiment, the second display module 604 includes: a first receiving unit, used to receive a status acquisition instruction sent by the first host system; a first responding unit, used to parse the status acquisition instruction and determine that the status acquisition instruction is used to obtain status information of the second host system, and respond to the status acquisition instruction to obtain the status information of the second host system through a second communication line; a first sending unit, used to send a split-screen display instruction to the first host system, control the first host system to perform a split-screen display operation, so as to display the data in the first host system in the first display interface, and display the status data of the second host system in the second display interface.

[0093] In an exemplary embodiment, the above-mentioned device also includes: a second sending unit, used to send a first screen switching display instruction to the first host system, controlling the first host system to perform a first screen switching display operation; a third sending unit, used to send a second screen switching display instruction to the first host system, controlling the first host system to perform a second screen switching display operation; and a fourth sending unit, used to send a splicing display instruction to the first host system, controlling the first host system to perform a splicing display operation.

[0094] In an exemplary embodiment, the above-mentioned first acquisition module 606 includes: a first parsing unit, used to parse the first instruction; a second response unit, used to respond to the host switching instruction and perform the host switching operation when the first instruction is a host switching instruction; a third control unit, used to control the display of data in the second host system in the first display interface; and a first display unit, used to display the status data of the first host system on the second display interface when the status data of the first host system is acquired.

[0095] In an exemplary embodiment, the apparatus further includes: a second response unit, configured to respond to the host switching instruction and perform a hot plug operation through the BMC to switch the first host system to the second host system when the first instruction is a host switching instruction.

[0096] In an exemplary embodiment, the above-mentioned device further includes: a first execution unit, used to execute the hot removal operation through the BMC; and a fourth control unit, used to control the first host system to connect to the BMC through the first communication line.

[0097] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0098] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0099] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0100] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0101] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0102] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0103] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0104] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of any one of the above method embodiments.

[0105] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0106] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0107] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A control method for a host system, characterized in that: Applied to a host control device, the host control device is deployed in a baseboard management controller BMC and connected to multiple host systems, the method includes: When it is determined that the first host system is connected to the BMC and is in a running state, displaying data in the first host system in a first display interface in a target display device, wherein the first host system is a host system among the plurality of host systems, and the first display interface allows displaying all data in the first host system; In the case where the status data of the second host system is acquired, the second display interface in the target display device displays the status data of the second host system, wherein the second host system is a host system that is not in operation among the plurality of host systems, and the second display interface only allows the status data of the second host system to be displayed; A first instruction is acquired through the first display interface, and when the first instruction is a target instruction, a target operation is executed in response to the first instruction.

2. The method according to claim 1, characterized in that When it is determined that the first host system is connected to the BMC and is in a running state, displaying data in the first host system in a first display interface in a target display device includes: When it is determined that the BMC is started, controlling the BMC to perform a configuration initialization operation; When the BMC is initialized, detecting the power-on status of the plurality of host systems through the BMC; When it is determined that the plurality of host systems are all in a powered-on state, and the first host system is connected to the BMC and is in a running state, the first display interface is controlled to display data in the first host system, wherein the first host system is connected to the BMC via a first PCle bus and is connected to the BMC via a first communication line, and the first communication line is only used to transmit status data of the first host system.

3. The method according to claim 1, characterized in that In the case where the status data of the second host system is acquired, displaying the status data of the second host system on a second display interface of the target display device includes: receiving a status acquisition instruction sent by the first host system, wherein the status acquisition instruction is an instruction acquired through the first display interface; parsing the status acquisition instruction and, if it is determined that the status acquisition instruction is used to acquire status information of the second host system, responding to the status acquisition instruction to acquire the status information of the second host system through a second communication line, wherein the second communication line is only used to transmit status data of the second host system; Send a split-screen display instruction to the first host system to control the first host system to perform a split-screen display operation, so as to display the data in the first host system in the first display interface and display the status data of the second host system in the second display interface, wherein the split-screen display instruction includes the status data of the second host system, the first display parameters of the first display interface, and the second display parameters of the second display interface.

4. The method according to claim 3, characterized in that In the case where the status data of the second host system is acquired, after the second display interface in the target display device displays the status data of the second host system, the method further includes one of the following: sending a first screen switching display instruction to the first host system to control the first host system to perform a first screen switching display operation, wherein the first screen switching display operation includes controlling the first display interface to display data in the first host system in a full-screen display state, the second display interface is in a hidden state, and the second display interface includes state data of the second host system, wherein the first screen switching display instruction includes a third display parameter of the first display interface and a fourth display parameter of the second display interface; sending a second screen switching display instruction to the first host system to control the first host system to perform a second screen switching display operation, wherein the second screen switching display operation includes controlling the first display interface to be in a hidden state, the first display interface includes data in the first host system, the second display interface displays the state data of the second host system in a full-screen display state, and the second display interface also includes an instruction operation interface in the first display interface, wherein the instruction operation interface is used to respond to an operation instruction input through other devices, and the second screen switching display instruction includes a fifth display parameter of the first display interface and a sixth display parameter of the second display interface; A splicing display instruction is sent to the first host system to control the first host system to perform a splicing display operation, wherein the splicing display operation includes controlling a first display area in the first display interface to display data in the first host system, and a second display area in the first display interface to display status data of the second host system, and the splicing display instruction includes a seventh display parameter of the first display interface.

5. The method according to claim 1, characterized in that Acquiring a first instruction through the first display interface, and, if the first instruction is a target instruction, responding to the first instruction to perform a target operation, includes: parsing the first instruction; In the case where the first instruction is a host switching instruction, responding to the host switching instruction, performing a host switching operation, wherein the host switching operation includes switching the first host system to the second host system, the second host system after switching is connected to the BMC through a second PCle bus and is in a running state, and is connected to the BMC through a second communication line, and the second communication line is only used to transmit state data of the second host system; Controlling the first display interface to display data in the second host system; When the status data of the first host system is acquired, the status data of the first host system is displayed on the second display interface.

6. The method according to claim 5, characterized in that In the case where the first instruction is a host switching instruction, responding to the host switching instruction and performing a host switching operation includes: In the case where the first instruction is a host switching instruction, in response to the host switching instruction, a hot plug operation is performed through the BMC to switch the first host system to the second host system; wherein the hot plug operation includes turning on the second PCle bus connected between the second host system and the BMC through the BMC.

7. The method according to claim 5, characterized in that In the case where the first instruction is a host switching instruction, after responding to the host switching instruction and performing a host switching operation, the method further includes: Performing a hot removal operation through the BMC, wherein the hot removal operation includes disconnecting a first PCle bus connecting the first host system and the BMC through the BMC; The first host system is controlled to be connected to the BMC via a first communication line, wherein the first communication line is only used to transmit status data of the first host system.

8. A control device for a host system, characterized in that: Applied to a host control device, the host control device is deployed in a baseboard management controller BMC and connected to multiple host systems, the device includes: A first display module, configured to display data in the first host system in a first display interface in a target display device when it is determined that the first host system is connected to the BMC and is in a running state, wherein the first host system is a host system among the plurality of host systems, and the first display interface allows display of all data in the first host system; a second display module, configured to display the status data of the second host system on a second display interface in the target display device when the status data of the second host system is acquired, wherein the second host system is a host system that is not in operation among the plurality of host systems, and the second display interface is only allowed to display the status data of the second host system; The first acquisition module is used to acquire a first instruction through the first display interface, and when the first instruction is a target instruction, execute a target operation in response to the first instruction.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 8 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 8 are implemented.