BMC dual backup method, device, equipment, storage medium and product

By receiving the serial port message of the CPU, identifying the slot number and forwarding the I2C bus message, it solves the problem of the BMC double backup method being unable to manage server boards in unsafe channels, and achieves stable management of the server.

CN118227385BActive Publication Date: 2024-08-23深圳市磐鼎科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410650963.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-24
Publication Date
2024-08-23
Estimated Expiration
2044-05-24

AI Technical Summary

Technical Problem

The existing BMC dual backup method cannot properly implement the active-standby arbitration mechanism in unsafe channels, resulting in the inability to stably manage the boards on the server.

Method used

By receiving the serial port message transmitted by the CPU through the serial port, the slot number is identified, the address information of management board A and management board B is determined based on the slot number, and forwarded based on the I2C bus, so that management board A and management board B execute command interaction operations .

Benefits of technology

It realizes normal management of server boards in unsafe channels, avoids the problem of active and standby arbitration failure, and ensures stable management of servers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118227385B
    Figure CN118227385B
Patent Text Reader

Abstract

The present application discloses a BMC dual backup method, device, equipment, storage medium and product, and relates to the field of computer technology. The present application discloses a BMC dual backup method, device, equipment, storage medium and product, and comprises: receiving a serial port message transmitted by a CPU through a serial port, identifying a slot number, determining address information of a management board A according to the slot number, determining address information of a management board B according to the slot number, forwarding the serial port message through an I2C bus based on the address information, so that the management board A and the management board B execute command interaction operations, and realizing the serial port information sent to the CPU, and determining the address information of the management board A and the management board B according to the serial port information, and forwarding the serial port message to the corresponding management board through the I2C bus to execute command interaction operations, so that the single board on the server is managed normally.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a BMC dual backup method, device, equipment, storage medium and product. Background Art

[0002] In the existing implementation method based on BMC dual backup, two switch boards, active and standby, are included, and data exchange can be performed between the two switch boards. The active and standby arbitration mechanism is based on IPMB communication messages, which involves complex on-site operations. In addition, in unsafe paths, such as scenarios where the active board is plugged in, power is off, and continuous packet loss occurs, the active and standby arbitration loses its practical significance, and the single boards on the server cannot be managed normally, and single board abnormalities cannot be identified.

[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of the present application is to provide a BMC dual backup method, device, equipment, storage medium and product, aiming to solve the technical problem of being able to normally execute the master-slave arbitration mechanism in an unsafe path and stably manage the server board.

[0005] To achieve the above purpose, the present application proposes a BMC dual backup method, the method comprising:

[0006] Receive serial port messages transmitted by CPU through the serial port;

[0007] Identify the slot number, determine the address information of the management board A according to the slot number, and determine the address information of the management board B according to the slot number;

[0008] The serial port message is forwarded via the I2C bus based on the address information, so that the management board A and the management board B perform command interaction operations.

[0009] In one embodiment, the step of determining the address information of the management board A according to the slot number includes:

[0010] Identify the slot number, and obtain the slot address according to the slot number;

[0011] Detecting the slot address, and determining whether to manage the management board A when the address needs to be exchanged;

[0012] If yes, the I2C bus is initialized, the first address and the second address of the management board A are configured respectively, and the address information of the management board A is obtained.

[0013] In one embodiment, the step of detecting the slot address and determining whether to manage the management board A when the address needs to be exchanged includes:

[0014] If not, the I2C bus is initialized, the first address and the second address of the management board B are configured respectively, and the address information of the management board B is obtained.

[0015] In one embodiment, after the step of detecting the slot address, the step further includes:

[0016] If not, detecting the slot address to determine the slot address of the functional slot;

[0017] Single address initialization is performed on the slot address to obtain address information of the functional slot.

[0018] In one embodiment, before the step of identifying the slot number and obtaining the slot address according to the slot number, the step further includes:

[0019] Get the communication address of management board A;

[0020] The communication address of the management board A is changed to a preset management address.

[0021] In one embodiment, the step of forwarding the serial port message through the I2C bus based on the address information includes:

[0022] Parse the serial port information to obtain a first check code and a second check code;

[0023] Verifying the first verification code of the serial port information, and determining the network command connection information when the verification passes;

[0024] Verifying the second verification code of the serial port information, and determining to forward the data information when the verification passes;

[0025] The forwarding data information is transmitted and forwarded via an I2C bus based on the network command connection information.

[0026] In addition, to achieve the above purpose, the present application also proposes a BMC dual backup device, the BMC dual backup device comprising:

[0027] A message transmission module, used for receiving serial port messages transmitted by the CPU through the serial port;

[0028] An address determination module, used to identify a slot number, determine address information of management board A according to the slot number, and determine address information of management board B according to the slot number;

[0029] The forwarding backup module is used to forward the serial port message through the I2C bus based on the address information, so that the management board A and the management board B perform command interaction operations.

[0030] In addition, to achieve the above objectives, the present application also proposes a BMC dual backup device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the BMC dual backup method described above.

[0031] In addition, to achieve the above purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and stores a computer program on the storage medium. When the computer program is executed by a processor, the steps of the BMC dual backup method described above are implemented.

[0032] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of the BMC dual backup method as described above are implemented.

[0033] One or more technical solutions proposed in the present application have at least the following technical effects: receiving a serial port message transmitted by the CPU through the serial port, identifying the slot number, determining the address information of the management board A according to the slot number, determining the address information of the management board B according to the slot number, forwarding the serial port message through the I2C bus based on the address information, so that the management board A and the management board B execute command interaction operations, realizing the serial port information sent to the CPU, and determining the address information of the management board A and the management board B according to the serial port information, and forwarding it to the corresponding management board through the I2C bus to execute command interaction operations, so that the single board on the server can be managed normally. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0035] In order to more clearly illustrate the embodiments of the present application 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 labor.

[0036] Figure 1 A flowchart of the first embodiment of the BMC dual backup method of the present application is provided;

[0037] Figure 2A schematic diagram of hardware connection provided for the first embodiment of the BMC dual backup method of the present application;

[0038] Figure 3 The overall software architecture diagram provided for the first embodiment of the BMC dual backup method of this application;

[0039] Figure 4 A data transmission diagram provided for the first embodiment of the BMC dual backup method of the present application;

[0040] Figure 5 A brief flowchart of the first embodiment of the BMC dual backup method of the present application is provided;

[0041] Figure 6 This is a schematic diagram of the module structure of the BMC dual backup device according to an embodiment of the present application;

[0042] Figure 7 It is a schematic diagram of the device structure of the hardware operating environment involved in the BMC dual backup method in the embodiment of the present application.

[0043] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0044] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0045] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0046] The main solutions of the embodiments of this application are:

[0047] In this embodiment, for the convenience of description, the following description is made by taking the identification of the BMC dual backup device as the execution subject.

[0048] Since the master-slave arbitration mechanism in the BMC dual backup method in the prior art is implemented based on IPMB communication messages, in the hardware connection implemented by the existing BMC method, on a switch board, the CPU and the BMC communicate through a serial port, the BMC and the switch board are connected through an I2C bus, and data is transmitted based on the I2C bus. In the scenario of the main plug-in board, power failure, and continuous packet loss, the master-slave arbitration mechanism will lose the actual meaning of backup, and thus the server cannot be managed.

[0049] The present application provides a solution, which enables the BMC dual backup mechanism to be stably executed by maintaining the existing hardware connection, and further enables the server to be managed normally.

[0050] It can be seen from the above embodiments that the present application receives a serial port message transmitted by the CPU through the serial port, identifies the slot number, determines the address information of the management board A according to the slot number, determines the address information of the management board B according to the slot number, and forwards the serial port message through the I2C bus based on the address information, so that the management board A and the management board B execute command interaction operations, thereby realizing the serial port information sent to the CPU, and determining the address information of the management board A and the management board B according to the serial port information, and forwarding it to the corresponding management board through the I2C bus to execute command interaction operations, so that the single board on the server can be managed normally.

[0051] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a BMC dual backup device, etc. The following takes the BMC dual backup device as an example to illustrate this embodiment and the following embodiments.

[0052] Based on this, the embodiment of the present application provides a BMC dual backup method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the BMC dual backup method of the present application.

[0053] In this embodiment, the BMC dual backup method includes steps S10 to S30:

[0054] Step S10, receiving a serial port message transmitted by the CPU through the serial port;

[0055] It should be noted that BMC (Baseboard Management Controller) is a baseboard management controller. A communication connection is established between BMC and CPU. Both CPU and BMC are set on one of the many switch boards of the rt-thread platform based on the VPX server.

[0056] It can be understood that the CPU and BMC are connected through a serial port. The CPU runs the main chassis management program and can transmit IPMB (Intelligent Platform Management BUS) messages to the BMC through the serial port. IPMB is an intelligent platform management bus that can be connected to a separate hardware of a motherboard or server and run. Figure 2 , Figure 2The figure is a hardware connection diagram. The separate hardware here refers to the baseboard management controller BMC. When the server is working normally, it can generate the server's operating data, of which the relevant information can be sent by the CPU. At this time, the serial port message transmitted by the CPU through the serial port can be received. At this time, the serial port information generated by the CPU reaches the baseboard management controller BMS.

[0057] Step S20, identifying the slot number, determining the address information of the management board A according to the slot number, and determining the address information of the management board B according to the slot number.

[0058] It should be noted that after receiving the serial port information transmitted by the CPU, the serial port information can be detected and the slot number can be determined from the serial port information, where different slot numbers correspond to different addresses. Management board A and management board B have the same management authority, and management board A and management board B can manage the management boards at the same time.

[0059] In a specific implementation, after the serial port information is received, the serial port information can be parsed to obtain the slot number, and the address information of the management board A and the management board B can be obtained according to the slot number, and the address information of the management board A and the management board B can be obtained according to the address information of the management board A and the address information of the management board B. When the baseboard management controller BMC sends or receives information to the switch board, it can transmit through the I2C bus and establish communication based on the address information of the management board A and the management board B.

[0060] It can be understood that since the management board in the prior art connects these multiple switching boards, each switching board corresponds to a communication address, and in the current communication information transmission, a single address is used and it operates independently, so performing step S20 can avoid the instability caused by the management method of the main management board B and the single-address communication address, thereby improving the normal management of the main management board B.

[0061] In a feasible implementation, step S20 may include steps S201 to S203:

[0062] Step S201, identifying the slot number, and obtaining the slot address according to the slot number;

[0063] Step S202, detecting the slot address, and determining whether to manage the management board A when the address needs to be exchanged;

[0064] Step S203: If yes, the I2C bus is initialized, the first address and the second address of the management board A are configured respectively, and the address information of the management board A is obtained.

[0065] In a specific implementation, when determining the address information, the slot number can be obtained from the serial port message to obtain the slot address, and the slot address can be detected to determine whether the address needs to be exchanged. If the address needs to be exchanged, the management requirements of the management board can be judged. If the management board A needs to be managed, the I2C corresponding to the management board A can be initialized, and the GPIO clock of the I2C can be turned on, the clock of the I2C controller can be turned on, and the address initialization can be performed. It is determined again whether the management board A is managed. If so, the dual address can be configured for the management board A, wherein the first address is configured as 0x20 and the second address is configured as 0x8C. When the slot address is detected, when the address needs to be exchanged, the step of judging whether the management board A is managed includes, if not, initializing the I2C bus, configuring the first address and the second address of the management board B respectively, and obtaining the address information of the management board B. At this time, the address of the management board B can be configured, and the first address is configured as 0x22 and the second address is configured as 0x8E. In addition, after the step of detecting the slot address, it also includes: if not, detecting the slot address to determine the slot address of the functional slot; performing single address initialization on the slot address to obtain the address information of the functional slot, specifically: when address exchange is not required, the slot address of the functional slot can be first determined, and the slot address can be single-address initialized. Before the step of identifying the slot number and obtaining the slot address according to the slot number, it also includes: obtaining the communication address of the management board A; changing the communication address of the management board A to the preset management address.

[0066] In the specific implementation, when initializing the I2C bus for configuration, the I2C bus must be initialized to addresses 0x88, 0x8A, 0x8C, 0x8E, 0x90, and 0x92 for communication between user buses. For the management board, management board A can retain the 0x8C address and add a second address 0x20 for centralized management of IPMB.

[0067] In this implementation, the management board is initialized through I2C, the address information of the management board is configured, and both the management board A and the management board B are configured as dual addresses, thereby solving the problem of being unable to avoid unsafe paths in single address mode.

[0068] The above is only a feasible implementation of step S10 provided in this embodiment, and this embodiment does not specifically limit the specific implementation of step S10.

[0069] Step S30: forwarding the serial port message through the I2C bus based on the address information, so that the management board A and the management board B perform command interaction operations.

[0070] It should be noted that when the serial port message is forwarded through the I2C bus based on the address information, the second address can be enabled through the I2C control of the MCU GD32F30X, referring to Figure 3 , Figure 3 The overall software architecture diagram shows that the I2C addresses of each switching slice are 0x88, 0x8A, 0x8C, 0x8E, 0x90, and 0x92. 0x8C and 0x8E correspond to management board A (management board A) and management board B (management board B), respectively. Management board A mainly communicates with I2C addresses of 0x88, 0x8A, 0x20, 0x8E, 0x90, and 0x92, and management board B mainly communicates with I2C addresses of 0x88, 0x8A, 0x8C, 0x22, 0x90, and 0x92. In order to achieve dual backup, management board A and management board B also establish data communication switching slices with management board B and management board A respectively, so that normal operation can be guaranteed even if either management board A or management board B fails. Reference Figure 4 , Figure 4 The diagram is a data transmission diagram. The second address is enabled on the I2C control of MCU GD32F30X; the I2C of MCU GD32F30X must support dual address mode on the same controller; the two switch blades are bound to the I2C addresses 0x8c, 0x20 and 0x8E, 0x22 respectively. MCU GD32F30X uses the BMC developed by the RT-rthread system; it supports dual channel redundancy (I2C0, I2C1) on one switch blade. The IPMB message response mechanism must be returned based on the message source on an I2C channel, and there is no address conflict.

[0071] Furthermore, the step of forwarding the serial port message through the I2C bus based on the address information includes: parsing the serial port information to obtain a first check code and a second check code; verifying the first check code of the serial port information, and determining the network command connection information when the check passes; verifying the second check code of the serial port information, and determining the forwarding data information when the check passes; and transmitting the forwarding data information through the I2C bus for forwarding based on the network command connection information.

[0072] In a specific implementation, when management board A and management board B perform data transmission, request information rqSA and response information rsSA can be sent. The request message and the response message must be consistent. When performing information transmission, the serial port information is parsed to obtain a first check code and a second check code; the first check code of the serial port information is checked, and the network command connection information is determined when the check passes; the second check code of the serial port information is checked, and the forwarding data information is determined when the check passes; based on the network command connection information, the forwarding data information is transmitted and forwarded through the I2C bus, wherein the request message format is shown in Table 1, and the response message format is shown in Table 2.

[0073] Table 1: Request information format:

[0074]

[0075] Table 2: Response message format:

[0076]

[0077] For example, to help understand the implementation process of the BMC dual backup method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 5 , Figure 5 A brief flowchart of a BMC dual backup method is provided, specifically:

[0078] During the execution of BMC dual backup, the slot address is obtained, and it is determined whether to exchange the address. If not, the current functional slot is determined, and the functional slot is initialized with a single address. If the address does not need to be exchanged, it can be determined whether the exchanged address is the management board A, that is, the management board A. If so, the I2C is initialized. If not, it is determined whether it is the management board B, that is, the management board B. If so, the I2C is initialized. If the address is not exchanged for the management board B, then the current functional slot is initialized with a single address. When initializing I2C, it is necessary to turn on the GPIO clock of I2C and the clock of the I2C controller, initialize the address, and determine whether the management board A is. If so, the first address is configured as 0x20 and the second address is configured as 0x8C. If the management board A is not managed, the address of the management board B is configured, and the first address is configured as 0x22 and the second address is configured as 0x8E.

[0079] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the BMC dual backup method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.

[0080] This application also provides a BMC dual backup device, please refer to Figure 6 , the BMC dual backup device comprises:

[0081] The message transmission module 10 is used to receive the serial port message transmitted by the CPU through the serial port;

[0082] An address determination module 20, used to identify a slot number, determine address information of management board A according to the slot number, and determine address information of management board B according to the slot number;

[0083] The forwarding backup module 30 is used to forward the serial port message through the I2C bus based on the address information, so that the management board A and the management board B perform command interaction operations.

[0084] The BMC dual backup device provided by the present application adopts the BMC dual backup method in the above embodiment, which can solve the technical problem of BMC dual backup. Compared with the prior art, the beneficial effects of the BMC dual backup device provided by the present application are the same as the beneficial effects of the BMC dual backup method provided by the above embodiment, and other technical features in the BMC dual backup device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0085] The present application provides a BMC dual backup device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the BMC dual backup method in the above-mentioned embodiment 1.

[0086] Reference below Figure 7 , which shows a schematic diagram of the structure of a BMC dual backup device suitable for implementing the embodiment of the present application. The BMC dual backup device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The BMC dual backup device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0087] like Figure 7As shown, the BMC dual backup device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the BMC dual backup device are also stored in the RAM 1004. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the BMC dual backup device to communicate with other devices wirelessly or by wire to exchange data. Although the BMC dual backup device with various systems is shown in the figure, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0088] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0089] The BMC dual backup device provided by the present application adopts the BMC dual backup method in the above embodiment, which can solve the technical problem of BMC dual backup. Compared with the prior art, the beneficial effects of the BMC dual backup device provided by the present application are the same as the beneficial effects of the BMC dual backup method provided by the above embodiment, and other technical features in the BMC dual backup device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0090] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0091] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. 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 in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0092] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the BMC dual backup method in the above embodiment.

[0093] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.

[0094] The computer-readable storage medium may be included in the BMC dual-backup device; or may exist independently without being assembled into the BMC dual-backup device.

[0095] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the BMC dual-backup device, the BMC dual-backup device: receives a serial port message transmitted by the CPU through the serial port; identifies a slot number, determines address information of the management board A according to the slot number, and determines address information of the management board B according to the slot number; forwards the serial port message through an I2C bus based on the address information, so that the management board A and the management board B execute command interaction operations.

[0096] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0097] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0098] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0099] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned BMC dual backup method, and can solve the technical problem of BMC dual backup. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the BMC dual backup method provided in the above-mentioned embodiment, and will not be elaborated here.

[0100] The present application also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the BMC dual backup method as described above are implemented.

[0101] The computer program product provided by this application can solve the technical problem of BMC dual backup. Compared with the prior art, the beneficial effects of the computer program product provided by this application are the same as the beneficial effects of the BMC dual backup method provided by the above embodiment, which will not be repeated here.

[0102] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A BMC dual backup method, It is characterized in that The method includes: Receive serial port messages transmitted by CPU through the serial port; Identify the slot number, determine the address information of the first management board according to the slot number, and determine the address information of the second management board according to the slot number; forwarding the serial port message through the I2C bus based on the address information, so that the first management board and the second management board perform command interaction operations; The step of determining the address information of the first management board according to the slot number includes: Obtaining a slot address according to the slot number; Detecting the slot address, and determining whether to manage the first management board when the address needs to be exchanged; If yes, the I2C bus is initialized, the GPIO clock of the I2C and the clock of the I2C controller are turned on, and the address is initialized, and it is determined again whether to manage the first management board. If yes, the first address and the second address of the first management board are configured respectively to obtain the address information of the first management board; The step of detecting the slot address and determining whether to manage the first management board when the address needs to be exchanged further includes: If not, determine whether to manage the second management board. If the second management board is to be managed, initialize the I2C bus, turn on the GPIO clock of the I2C and the clock of the I2C controller, initialize the address, configure the first address and the second address of the second management board respectively, and obtain the address information of the second management board; After the step of detecting the slot address, the following step is further included: When there is no need to exchange addresses, detecting the slot address to determine the slot address of the functional slot; Performing single address initialization on the slot address to obtain address information of the functional slot; Before the step of obtaining the slot address according to the slot number, the method further includes: Obtaining the communication address of the first management board; Changing the communication address of the first management board to a preset management address; The step of forwarding the serial port message through the I2C bus based on the address information includes: Parsing the serial port message to obtain a first check code and a second check code; Verifying the first verification code of the serial port message, and determining the network command connection information when the verification passes; Verifying the second verification code of the serial port message, and determining to forward the data information when the verification passes; The forwarding data information is forwarded via an I2C bus based on the network command connection information.

2. A BMC dual backup device, It is characterized in that The device comprises: A message transmission module, used for receiving serial port messages transmitted by the CPU through the serial port; An address determination module, used to identify a slot number, determine address information of a first management board according to the slot number, and determine address information of a second management board according to the slot number; A forwarding backup module, used for forwarding the serial port message through the I2C bus based on the address information, so that the first management board and the second management board perform command interaction operations; Wherein, determining the address information of the first management board according to the slot number includes: Obtaining a slot address according to the slot number; Detecting the slot address, and determining whether to manage the first management board when the address needs to be exchanged; If yes, the I2C bus is initialized, the GPIO clock of the I2C and the clock of the I2C controller are turned on, and the address is initialized, and it is determined again whether to manage the first management board. If yes, the first address and the second address of the first management board are configured respectively to obtain the address information of the first management board; The detecting the slot address and determining whether to manage the first management board when the address needs to be exchanged further includes: If not, determine whether to manage the second management board. If the second management board is to be managed, initialize the I2C bus, turn on the GPIO clock of the I2C and the clock of the I2C controller, and initialize the address. Then, configure the first address and the second address of the second management board respectively to obtain the address information of the second management board. After detecting the slot address, the method further includes: When there is no need to exchange addresses, detecting the slot address to determine the slot address of the functional slot; Performing single address initialization on the slot address to obtain address information of the functional slot; Before obtaining the slot address according to the slot number, the method further includes: Obtaining the communication address of the first management board; Changing the communication address of the first management board to a preset management address; The forwarding of the serial port message through the I2C bus based on the address information includes: Parsing the serial port message to obtain a first check code and a second check code; Verifying the first verification code of the serial port message, and determining the network command connection information when the verification passes; Verifying the second verification code of the serial port message, and determining to forward the data information when the verification passes; The forwarding data information is forwarded via an I2C bus based on the network command connection information.

3. A BMC dual backup device, It is characterized in that The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the BMC dual backup method according to claim 1.

4. A storage medium, It is characterized in that The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the BMC dual backup method according to claim 1 are implemented.

5. A computer program product, It is characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the BMC dual backup method according to claim 1 are implemented.