Concurrent access method, system, terminal and storage medium for BMC remote service

By developing the communication connection link between the BMC serial port and the operating system serial port in the BMC chip, the problem of the inability to meet the problem of multiple people remotely accessing and managing server resources in the existing technology is solved, and the multi-person collaborative management and permission hierarchical management are realized, which improves work efficiency and the stability and security of server resources.

CN114546685BActive Publication Date: 2025-03-11INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210176791.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-24
Publication Date
2025-03-11
Estimated Expiration
2042-02-24

AI Technical Summary

Technical Problem

The existing technology cannot meet the needs of multiple people to remotely access and manage server resources at the same time. The SOL function only supports a single UART Route adaptation, and cannot realize multi-person collaborative management.

Method used

By developing the communication connection link between the BMC serial port and the operating system serial port in the BMC chip, the function of multiple people remotely accessing the server OS resources at the same time is realized, and permission hierarchical management is provided and the ipmi command to enable/off SOL Multi Clients is provided.

Benefits of technology

It realizes the function of multiple people remotely accessing server OS resources at the same time, meets the needs of remote collaborative management, improves work efficiency, and ensures the stability and security of server resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114546685B_ABST
    Figure CN114546685B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of server technology, and specifically provides a concurrent access method, system, terminal and storage medium for BMC remote services, including: receiving operating system data from a BMC serial port, the BMC serial port being communicatively connected with the operating system serial port; parsing the target address of the operating system data, and sending the operating system data to a corresponding remote service access process according to the target address. The present invention realizes the function of multiple people remotely accessing server OS resources at the same time by developing a communication connection link between the BMC serial port and the operating system serial port in a BMC chip, meets the needs of remote collaborative management, and greatly improves work efficiency; provides a hierarchical authority management method, ensures the resource stability and security of the server under the premise of meeting the needs; provides an ipmi command for turning on / off SOL Multi Clients, and meets the needs of different customer usage scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a concurrent access method, system, terminal and storage medium for BMC remote services. Background Art

[0002] The SOL function of BMC is an important means of remote monitoring and management of servers. By redirecting the server BIOS / OS serial port I / O to the BMC serial port I / O based on the network, the operation and maintenance personnel can remotely access the server locally to view data, set parameters, and perform other operations. For the serial port on the OS side of the server, under the premise that the hardware UART Route is correctly adapted, after the SOL function is enabled through the IPMI command, the user can see the data stream output by the serial port under the open SOL client. SOL has multiple (usually 4) clients, but currently only supports opening a client with a UART Route adapted to the OS serial port. For example, when A opens the SOL client with activate instance=1 locally, B enters the command activateinstance=2 locally, but cannot open the client, and will be prompted that the SOL client has been opened. In other words, the current SOL clients cannot meet the needs of multiple people to remotely access and manage server resources at the same time. Summary of the invention

[0003] In view of the problem that the existing technology cannot meet the needs of multiple people to remotely access and manage server resources at the same time, the present invention provides a concurrent access method, system, terminal and storage medium for BMC remote service to solve the above technical problems.

[0004] In a first aspect, the present invention provides a concurrent access method for BMC remote services, comprising:

[0005] Receiving operating system data from a BMC serial port, wherein the BMC serial port is communicatively connected with the operating system serial port;

[0006] The target address of the operating system data is parsed, and the operating system data is sent to a corresponding remote service access process according to the target address.

[0007] Furthermore, the method further comprises:

[0008] Identify all remote service access processes, select a target remote service access process from them, and grant write permission to the target remote service access process;

[0009] The write request sent by the target remote service access process is sent to the operating system serial port through the BMC serial port, so that the operating system performs a corresponding write operation after receiving the write request through the operating system serial port.

[0010] Further, receiving operating system data from a BMC serial port, wherein the BMC serial port is communicatively connected with the operating system serial port, includes:

[0011] Build a communication link between the BMC serial port and the operating system serial port from the software layer.

[0012] Furthermore, the method further comprises:

[0013] A state control option of the communication connection link is set, and the on / off state of the communication connection link is controlled by the state control option.

[0014] In a second aspect, the present invention provides a concurrent access system for BMC remote services, comprising:

[0015] A serial port connection unit, used for receiving operating system data from a BMC serial port, wherein the BMC serial port is communicatively connected with the operating system serial port;

[0016] The data forwarding unit is used to parse the target address of the operating system data and send the operating system data to the corresponding remote service access process according to the target address.

[0017] Furthermore, the system also includes:

[0018] A permission setting unit, used to identify all remote service access processes, select a target remote service access process from them, and grant the target remote service access process write permission;

[0019] The operation execution unit is used to send the write request sent by the target remote service access process to the operating system serial port through the BMC serial port, so that the operating system executes the corresponding write operation after receiving the write request through the operating system serial port.

[0020] Furthermore, the serial port connection unit includes:

[0021] The link building module is used to build a communication connection link between the BMC serial port and the operating system serial port from the software layer.

[0022] Furthermore, the system also includes:

[0023] The function control unit is used to set the state control option of the communication connection link, and control the on / off state of the communication connection link through the state control option.

[0024] In a third aspect, a terminal is provided, including:

[0025] processor, memory, wherein:

[0026] The memory is used to store computer programs.

[0027] The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.

[0028] According to a fourth aspect, a computer storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the methods described in the above aspects.

[0029] The beneficial effects of the present invention are that the concurrent access method, system, terminal and storage medium of the BMC remote service provided by the present invention realize the function of multiple people remotely accessing the server OS resources at the same time by developing a communication connection link between the BMC serial port and the operating system serial port in the BMC chip, meet the needs of remote collaborative management, and greatly improve work efficiency; provide a permission hierarchical management method, ensure the resource stability and security of the server under the premise of meeting the needs; provide an ipmi command for turning on / off SOL Multi Clients, and meet the needs of different customer usage scenarios.

[0030] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0032] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.

[0033] Figure 2 is a schematic block diagram of a system according to an embodiment of the present invention.

[0034] Figure 3 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0035] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0036] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention. Figure 1 The execution subject may be a concurrent access system of a BMC remote service.

[0037] like Figure 1 As shown, the method includes:

[0038] Step 110, receiving operating system data from a BMC serial port, wherein the BMC serial port is communicatively connected to the operating system serial port;

[0039] Step 120: parsing the target address of the operating system data, and sending the operating system data to the corresponding remote service access process according to the target address.

[0040] This method realizes the function of multiple people remotely accessing server OS resources at the same time through hardware UART Route configuration and firmware code optimization, meets the needs of remote collaborative management, and greatly improves work efficiency; provides a hierarchical authority management method to ensure the stability and security of server resources while meeting the needs; provides ipmi commands for turning on / off SOL Multi Clients to meet the needs of different customer usage scenarios.

[0041] To facilitate understanding of the present invention, the concurrent access method for BMC remote services provided by the present invention is further described below based on the principle of the concurrent access method for BMC remote services of the present invention and in combination with the process of concurrently accessing BMC remote services in the embodiment.

[0042] Specifically, the concurrent access method of the BMC remote service includes:

[0043] S1. Receive operating system data from a BMC serial port, where the BMC serial port is communicatively connected with the operating system serial port.

[0044] Build a communication link between the BMC serial port and the operating system serial port from the software layer. Specifically, connect UART1 (OS serial port) on the BMC AST2600 chip to UART4 (BMC serial port), and connect PORT1 to PORT4. This step can realize the output of OS serial port data to the BMC serial port. For example, connect UART1 (OS serial port) and UART4 (BMC serial port) on the BMC AST2600 chip bidirectionally. When UART1 is used as the data stream transmitter and UART4 is used as the data stream receiver, the SOL client can read OS serial port data; when UART4 is used as the data stream transmitter and UART1 is used as the data stream receiver, the SOL client can write to the OS.

[0045] S2. Parse the target address of the operating system data, and send the operating system data to a corresponding remote service access process according to the target address.

[0046] The data received by UART4 is forwarded to all remote service access processes (SOL clients), so that multiple clients can output OS serial port data at the same time, realizing the read function of SOL Multi Clients.

[0047] Furthermore, in this embodiment, the read requirements of different users are met by carrying the address in the data. On this basis, targeted queries on OS serial port data can be implemented, for example, the user sends a read request through a process, the read request carries the process address, and the operating system returns the corresponding data carrying the address according to the received read request.

[0048] In the present invention, multiple SOL clients are implemented by creating processes, which can be quickly constructed and accessed, making data management easier.

[0049] S3. Identify all remote service access processes, select a target remote service access process from them, and grant the target remote service access process write permission; send the write request sent by the target remote service access process to the operating system serial port through the BMC serial port, so that the operating system performs a corresponding write operation after receiving the write request through the operating system serial port.

[0050] Multi Clients are given permission levels, and the client with instance=1 is given read and write permissions, while other clients are only given read permissions. This has the advantage of preventing multiple people from modifying OS data at the same time, which may cause unknown execution errors, and also ensuring data security.

[0051] S4. Realize the one-click opening or closing function of SOL Multi Clients through IPMI commands. For remote server management that does not require multi-person collaboration, after disabling this function, only one SOL Client will be allowed to be opened.

[0052] Specifically, the present invention sets a state control option for the communication connection link and controls the on / off state of the communication connection link through the state control option, thereby realizing control of whether to enable the function.

[0053] like Figure 2 As shown, the system 200 includes:

[0054] The serial port connection unit 210 is used to receive operating system data from the BMC serial port, and the BMC serial port is communicatively connected with the operating system serial port;

[0055] The data forwarding unit 220 is used to parse the target address of the operating system data and send the operating system data to the corresponding remote service access process according to the target address.

[0056] Optionally, as an embodiment of the present invention, the system further includes:

[0057] A permission setting unit, used to identify all remote service access processes, select a target remote service access process from them, and grant the target remote service access process write permission;

[0058] The operation execution unit is used to send the write request sent by the target remote service access process to the operating system serial port through the BMC serial port, so that the operating system executes the corresponding write operation after receiving the write request through the operating system serial port.

[0059] Optionally, as an embodiment of the present invention, the serial port connection unit includes:

[0060] The link building module is used to build a communication connection link between the BMC serial port and the operating system serial port from the software layer.

[0061] Optionally, as an embodiment of the present invention, the system further includes:

[0062] The function control unit is used to set the state control option of the communication connection link, and control the on / off state of the communication connection link through the state control option.

[0063] Figure 3 The present invention is a schematic diagram of the structure of a terminal 300 provided in an embodiment of the present invention. The terminal 300 can be used to execute the concurrent access method of the BMC remote service provided in an embodiment of the present invention.

[0064] The terminal 300 may include: a processor 310, a memory 320 and a communication unit 330. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0065] The memory 320 can be used to store the execution instructions of the processor 310, and the memory 320 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 320 are executed by the processor 310, the terminal 300 can perform some or all of the steps in the following method embodiments.

[0066] The processor 310 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and / or modules stored in the memory 320, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of a plurality of packaged ICs with the same or different functions. For example, the processor 310 can include only a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.

[0067] The communication unit 330 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.

[0068] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0069] Therefore, the present invention realizes the function of multiple people remotely accessing server OS resources at the same time by developing a communication connection link between the BMC serial port and the operating system serial port in the BMC chip, meets the needs of remote collaborative management, and greatly improves work efficiency; provides a permission hierarchical management method to ensure the resource stability and security of the server while meeting the needs; provides an ipmi command for turning on / off SOL Multi Clients to meet the needs of different customer usage scenarios. The technical effects that can be achieved by this embodiment can be found in the description above and will not be repeated here.

[0070] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, 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 a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention.

[0071] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.

[0072] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system 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 through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

[0073] 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.

[0074] In addition, each functional unit in each embodiment of the present invention 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.

[0075] Although the present invention has been described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, and all of these shall be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A concurrent access method for BMC remote service, characterized in that: include: Receiving operating system data from a BMC serial port, wherein the BMC serial port is communicatively connected with the operating system serial port; parsing a target address of the operating system data, and sending the operating system data to a corresponding remote service access process according to the target address; Identify all remote service access processes, select a target remote service access process from them, and grant write permission to the target remote service access process; Sending the write request sent by the target remote service access process to the operating system serial port through the BMC serial port, so that the operating system performs a corresponding write operation after receiving the write request through the operating system serial port; Build a communication link between the BMC serial port and the operating system serial port from the software layer, connect UART1 on the BMC AST2600 chip to UART4, connect PORT1 to PORT4, and connect UART1 and UART4 on the BMC AST2600 chip in a bidirectional manner. When UART1 is used as the data stream sender and UART4 is used as the data stream receiver, the SOL client can read OS serial port data; when UART4 is used as the data stream sender and UART1 is used as the data stream receiver, the SOL client can write to the OS. The data received by UART4 is forwarded to all remote service access processes, so that multiple clients can output OS serial port data at the same time, realizing the reading function of SOL Multi Clients.

2. The method according to claim 1, characterized in that The method further comprises: A state control option of the communication connection link is set, and the on / off state of the communication connection link is controlled by the state control option.

3. A concurrent access system for BMC remote services, characterized in that: include: A serial port connection unit, used for receiving operating system data from a BMC serial port, wherein the BMC serial port is communicatively connected with the operating system serial port; A data forwarding unit, used for parsing a target address of the operating system data, and sending the operating system data to a corresponding remote service access process according to the target address; A permission setting unit, used to identify all remote service access processes, select a target remote service access process from them, and grant the target remote service access process write permission; An operation execution unit, used for sending a write request sent by a target remote service access process to an operating system serial port through a BMC serial port, so that the operating system performs a corresponding write operation after receiving the write request through the operating system serial port; A link building module is used to build a communication connection link between the BMC serial port and the operating system serial port from the software layer; The system is also used to implement: Connect UART1 on the BMC AST2600 chip to UART4, PORT1 to PORT4, and connect UART1 and UART4 on the BMC AST2600 chip in a bidirectional manner. When UART1 is used as the data stream transmitter and UART4 is used as the data stream receiver, the SOL client can read the OS serial port data. When UART4 is used as the data stream transmitter and UART1 is used as the data stream receiver, the SOL client can write to the OS. The data received by UART4 is forwarded to all remote service access processes, so that multiple clients can output OS serial port data at the same time, realizing the reading function of SOL Multi Clients.

4. The system according to claim 3, characterized in that The system further comprises: The function control unit is used to set the state control option of the communication connection link, and control the on / off state of the communication connection link through the state control option.

5. A terminal, characterized in that: include: processor; A memory for storing execution instructions of the processor; The processor is configured to execute the method according to any one of claims 1 to 2.

6. A computer-readable storage medium storing a computer program, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.

Citation Information

Patent Citations

  • Underlying logic implementation method and device for implementing redirection of serial port

    CN108540318A

  • Server serial console redirection method, device and system and electronic equipment

    CN114020678A