Configuration information acquisition method and device, baseboard management controller, system and medium

By obtaining and updating the identification information and slot information of the slot expansion card, the target configuration information table is determined, which solves the problem of identification errors of the baseboard management controller when the slot configuration information changes, and achieves the accuracy and reliability of equipment monitoring. .

CN118585259APending Publication Date: 2024-09-03INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410958673.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

When the slot configuration information is changed, the baseboard management controller may identify the expansion device based on incorrect information, resulting in identification errors and affecting device monitoring.

Method used

By obtaining the identification information and slot information of the slot expansion card, the target configuration information table is determined in the preset configuration information table to ensure that the baseboard management controller can identify the device based on the latest slot configuration information and avoid identification errors.

Benefits of technology

This effectively avoids device identification errors caused by incorrect slot configuration information and ensures the accuracy and reliability of device monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118585259A_ABST
    Figure CN118585259A_ABST
Patent Text Reader

Abstract

The invention provides a configuration information acquisition method and device, a substrate management controller, a system and a medium, relates to the field of servers, is applied to the substrate management controller, and comprises the following steps: acquiring identification information of a slot position expansion card and slot position information of each slot position in the slot position expansion card; determining a target configuration information table corresponding to the identification information in a plurality of groups of preset configuration information tables; wherein the configuration information table comprises identification information, slot position information and slot position configuration information corresponding to the slot position information, and the configuration information table is in one-to-one correspondence with the identification information; acquiring slot position configuration information corresponding to each slot position from a target configuration information table according to each piece of slot position information, so as to identify the extension equipment accessed into the slot position according to the slot position configuration information corresponding to each slot position; according to the method, the corresponding configuration information table can be set for each slot expansion card, and the correct configuration information table can be automatically switched according to the identification information of the slot expansion card, so that the condition of equipment identification error can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of servers, and in particular to a configuration information acquisition method, device, baseboard management controller, system and medium. Background Art

[0002] The slot expansion card and baseboard management controller are two important components in the server equipment. Among them, the slot expansion card is used to provide additional interface slots for the server equipment to connect more expansion devices; the baseboard management controller is used to manage and control the hardware components in the server equipment, such as the slot expansion card and the expansion devices connected to the server equipment through the slot expansion card.

[0003] In the related art, in order to identify and control the above expansion devices, the baseboard management controller needs to pre-store the slot configuration information of each slot in the slot expansion card, so as to identify the device according to the slot configuration information. However, the slot configuration information saved by the baseboard management controller is generally fixed, which means that when the slot configuration information changes, the baseboard management controller may identify the expansion device according to the wrong slot configuration information, thereby causing an identification error. Summary of the invention

[0004] The purpose of the present invention is to provide a configuration information acquisition method, device, baseboard management controller, system and medium, which can ensure that the baseboard management controller switches the correct slot configuration information according to the slot expansion card to avoid slot configuration information errors and thus cause device identification errors.

[0005] In order to solve the above technical problems, the present invention provides a configuration information acquisition method, which is applied to a baseboard management controller, and the method comprises:

[0006] Obtaining identification information of a slot expansion card and slot information of each slot in the slot expansion card;

[0007] Determine a target configuration information table corresponding to the identification information in a preset plurality of groups of configuration information tables; wherein the configuration information table includes the identification information, the slot information and the slot configuration information corresponding to each of the slot information, and the configuration information table corresponds to the identification information one by one;

[0008] The slot configuration information corresponding to each slot is obtained from the target configuration information table according to the slot information, so as to identify the expansion device connected to the slot according to the slot configuration information corresponding to each slot.

[0009] Optionally, obtaining identification information of a slot expansion card includes:

[0010] Performing bus address scanning on the switch modules corresponding to each of the slots in the slot expansion card to determine the bus address of each of the switch modules;

[0011] Bus address combination information is determined according to all the bus addresses, and the bus address combination information is used as the identification information.

[0012] Optionally, it also includes:

[0013] Acquire serial number information of the slot expansion card from a field replaceable unit of the slot expansion card;

[0014] The using the bus address combination information as the identification information includes:

[0015] The bus address combination information and the serial number information are used as the identification information.

[0016] Optionally, determining a target configuration information table corresponding to the identification information in a preset plurality of groups of configuration information tables includes:

[0017] Searching a first configuration information table corresponding to the bus address combination information in a first preset corresponding table; wherein the first preset corresponding table records the configuration information table corresponding to each bus address combination information;

[0018] Searching for a second configuration information table corresponding to the serial number information in a second preset corresponding table; wherein the second preset corresponding table records the configuration information table corresponding to each serial number information;

[0019] Determine whether the first configuration information table is the same as the second configuration information table;

[0020] If they are the same, taking the first configuration information table or the second configuration information table as the target configuration information table;

[0021] If they are not the same, a default configuration information table is obtained, the default configuration information table is used as the target configuration information table, and the first configuration information table and the second configuration information table are recorded in an exception log.

[0022] Optionally, obtaining slot information of each slot in the slot expansion card includes:

[0023] The slot information scanned by the basic input and output system is obtained from the basic input and output system.

[0024] Optionally, the acquiring, from a basic input / output system, the slot information obtained by scanning the basic input / output system includes:

[0025] The slot information is obtained from a preset system management table; wherein the basic input and output system records the slot information in the preset system management table after completing the scan.

[0026] Optionally, after determining the target configuration information table corresponding to the identification information in the preset multiple groups of configuration information tables, the method further includes:

[0027] If it is determined that the target configuration information table does not exist, generating abnormal alarm information using the identification information and the slot information obtained by scanning the basic input and output system, and outputting the abnormal alarm information;

[0028] An input new configuration information table is received, and the new configuration information table is saved.

[0029] The present invention also provides a configuration information acquisition device, which is applied to a baseboard management controller. The method includes:

[0030] An acquisition module, used to acquire identification information of a slot expansion card and slot information of each slot in the slot expansion card;

[0031] A matching module, used to determine a target configuration information table corresponding to the identification information in a plurality of preset configuration information tables; wherein the configuration information table includes the identification information, the slot information and the slot configuration information corresponding to each of the slot information, and the configuration information table corresponds to the identification information one by one;

[0032] The configuration information acquisition module is used to acquire the slot configuration information corresponding to each slot from the target configuration information table according to the slot information, so as to identify the expansion device connected to the slot according to the slot configuration information corresponding to each slot.

[0033] The present invention also provides a baseboard management controller, comprising:

[0034] Memory for storing computer programs;

[0035] A processor is used to implement the configuration information acquisition method as described above when executing the computer program.

[0036] The present invention also provides an equipment monitoring system, comprising:

[0037] One or more slot expansion cards;

[0038] A baseboard management controller is connected to the slot expansion card and is used to execute the configuration information acquisition method as described above.

[0039] The present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the configuration information acquisition method as described above is implemented.

[0040] The present invention provides a configuration information acquisition method, which is applied to a baseboard management controller. The method comprises: acquiring identification information of a slot expansion card and slot information of each slot in the slot expansion card; determining a target configuration information table corresponding to the identification information in a plurality of preset groups of configuration information tables; wherein the configuration information table comprises the identification information, the slot information and slot configuration information corresponding to each slot information, and the configuration information table corresponds to the identification information one by one; acquiring slot configuration information corresponding to each slot from the target configuration information table according to each slot information, so as to identify an expansion device connected to the slot according to the slot configuration information corresponding to each slot.

[0041] It can be seen that in the present invention, the baseboard management controller can first obtain the identification information of the slot expansion card and the slot information of each slot in the slot expansion card. Among them, the identification information is used to determine the device identity of the slot expansion card. Subsequently, the present invention can determine the target configuration information table corresponding to the identification information in the preset multiple groups of configuration information tables; wherein the configuration information table contains the identification information, the slot information and the slot configuration information corresponding to each of the slot information, and the configuration information table corresponds to the identification information one by one. In other words, the present invention can set a corresponding configuration information table for each slot expansion card, and record the slot configuration information of each slot expansion card into the corresponding configuration information table. Furthermore, in the scenario where the slot configuration information changes due to the change of the slot expansion card, the baseboard management controller can actively detect the change of the slot expansion card and actively obtain the corresponding configuration information table, so as to identify the expansion device connected to each slot according to the slot configuration information corresponding to each slot in the configuration information table, thereby avoiding the occurrence of device identification errors and affecting device monitoring. The present invention also provides a configuration information acquisition device, a device monitoring system, a server device and a computer-readable storage medium, which have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] 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, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0043] Figure 1A flowchart of a method for obtaining configuration information provided by an embodiment of the present invention;

[0044] Figure 2 A flowchart of another configuration information acquisition solution provided by an embodiment of the present invention;

[0045] Figure 3 A structural block diagram of a configuration information acquisition device provided by an embodiment of the present invention;

[0046] Figure 4 A structural block diagram of a baseboard management controller provided by an embodiment of the present invention;

[0047] Figure 5 This is a structural block diagram of a device monitoring system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 are within the scope of protection of the present invention.

[0049] The slot expansion card and baseboard management controller are two important components in server equipment. Among them, the slot expansion card is used to provide additional interface slots for the server equipment to connect more expansion devices; the baseboard management controller is used to manage and control the various hardware components in the server equipment, such as the slot expansion card and the expansion devices connected to the server equipment through the slot expansion card. A common slot expansion card may be a riser card, which is used to expand the PCIe slot (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) in the server motherboard. The expansion devices connected to the riser card can be PCIe devices such as graphics cards and network cards.

[0050] In the related art, in order to identify and control the above-mentioned expansion devices, the baseboard management controller needs to pre-store the slot configuration information of each slot in the slot expansion card, so as to identify the device according to the slot configuration information. For example, the riser card is provided with a switch module (Switch chip) corresponding to each slot, and each switch module corresponds to a set of slot configuration information, and the slot configuration information includes the I2C bus address (Inter-Integrated Circuit, two-wire serial bus) corresponding to the switch module and the channel (Channel) corresponding to the slot. The baseboard management controller needs to control the switch module of the riser card to write data according to the slot configuration information to switch different channels, so as to obtain the I2C resources of the expansion device in the corresponding slot. However, the slot configuration information saved by the baseboard management controller is generally fixed, which leads to the baseboard management controller identifying the expansion device according to the wrong slot configuration information when the slot configuration information changes, thereby causing an identification error. For example, the baseboard management controller may identify the graphics card device connected to the riser card slot according to the wrong slot configuration information, resulting in the inability to correctly identify the graphics card device, thereby affecting the management and monitoring of the graphics card device.

[0051] In view of this, the present invention can provide a configuration information acquisition method, which can ensure that the baseboard management controller switches the correct slot configuration information according to the slot expansion card to avoid slot configuration information errors, thereby causing device identification errors.

[0052] For easier understanding, please refer to Figure 1 , Figure 1 A flowchart of a configuration information acquisition method provided by an embodiment of the present invention, the method is applied to a baseboard management controller and may include:

[0053] S101. Acquire identification information of a slot expansion card and slot information of each slot in the slot expansion card.

[0054] In this step, the baseboard management controller first needs to obtain the identification information in the slot expansion card and the slot information of each slot in the slot expansion card. For easy understanding, the above identification information and slot information will be introduced in detail below.

[0055] In the embodiment of the present invention, the identification information is used to confirm the device identity of the slot expansion card so as to configure the slot configuration information corresponding to the slot expansion card. The embodiment of the present invention does not limit the specific form of the identification information, as long as it can distinguish different slot expansion cards. For example, considering that the baseboard management controller can be connected to the slot expansion card through a bus structure such as an I2C bus (Inter-Integrated Circuit, two-wire serial bus); and the slot expansion card is provided with a switch module (Switch module) corresponding to each slot, these switch modules can be connected to the baseboard management controller through the above bus structure, and each switch module independently corresponds to a bus address on the bus structure, and the bus address is used to control the switch channel and release the bus information of the expansion device on the corresponding slot (such as releasing the I2C resource information of the expansion device on the corresponding slot); and the bus address combinations used by all switch modules in different slot expansion cards are not the same, such as slot expansion card 1 includes switch modules 1~3, the bus addresses corresponding to switch modules 1~3 can be A, B, C, slot expansion card 2 includes switch modules 4~6, and the bus addresses corresponding to switch modules 4~6 can be D, E, F. Therefore, in order to adopt a simple method to distinguish different slot expansion cards and avoid complex interactions with slot expansion cards, the baseboard management controller can perform bus address scans on the switch modules corresponding to each slot in the slot expansion card, determine the bus address of each switch module, and then use the bus address combination formed by the bus addresses of all switch modules in the slot expansion card as the above-mentioned identification information.

[0056] Based on this, obtaining the identification information of the slot expansion card may include:

[0057] Step 11: performing bus address scanning on the switch modules corresponding to each slot in the slot expansion card to determine the bus address of each switch module;

[0058] Step 12: Determine bus address combination information according to all the bus addresses, and use the bus address combination information as the identification information.

[0059] For example, the baseboard management controller can perform I2C address scanning on the switch modules corresponding to each slot in the riser card, determine the I2C address corresponding to each switch module, and determine the I2C address combination formed by all the I2C addresses, and then use the I2C address combination as the above identification information. It should be noted that the embodiment of the present invention does not limit how to perform bus address scanning, and reference may be made to the relevant technology of the bus, such as the relevant technology of the I2C bus.

[0060] Of course, in order to improve the accuracy of the identification information, complex interactions may be performed with the slot expansion card to obtain the serial number information of the slot expansion card, and the serial number information may be expanded to the identification information of the slot expansion card. Specifically, the serial number information (such as PN number, Part Number, part / component number) may be obtained from the field replaceable unit (FRU) of the slot expansion card.

[0061] Based on this, the method may further include:

[0062] Step 21: Obtaining serial number information of the slot expansion card from the field replaceable unit of the slot expansion card;

[0063] Correspondingly, the using the bus address combination information as the identification information may include:

[0064] Step 22: Use the bus address combination information and the serial number information as the identification information.

[0065] Furthermore, in an embodiment of the present invention, the slot information is the slot identification information of each slot. For example, the slot information may include the slot number, slot type, slot bus address, etc. It should be noted that the slot information is not pre-stored by the baseboard management controller, but is scanned by the basic input and output system (BIOS) and transmitted to the baseboard management controller by the basic input and output system. In other words, the baseboard management controller cannot directly identify the device slot, but needs to cooperate with the basic input and output system, and the basic input and output system transmits the identified slot information to the baseboard management controller.

[0066] Based on this, obtaining the slot information of each slot in the slot expansion card may include:

[0067] Step 31: Obtaining the slot information scanned by the basic input and output system from the basic input and output system.

[0068] Furthermore, to facilitate the acquisition by the baseboard management controller, after completing the device scan, the basic input and output system can record the obtained slot information in the preset system management table. In this way, the baseboard management controller can obtain the above slot information from the preset system management table.

[0069] Based on this, the acquiring, from the basic input and output system, the slot information obtained by scanning by the basic input and output system may include:

[0070] Step 41: Acquire the slot information from the preset system management table; wherein the basic input and output system records the slot information in the preset system management table after completing the scan.

[0071] It should be noted that the embodiment of the present invention does not limit the specific form of the preset system management table, which can be set according to actual application requirements. Of course, the preset system management table can be a management table that already exists in the computer system, for example, the preset system management table can be an SMBIOS table (System Management BIOS).

[0072] S102. Determine a target configuration information table corresponding to the identification information in a preset plurality of groups of configuration information tables; wherein the configuration information table includes the identification information, the slot information and slot configuration information corresponding to each slot information, and the configuration information table corresponds to the identification information one-to-one.

[0073] In this step, in order to facilitate the baseboard management controller to switch the correct slot configuration information, multiple groups of configuration information tables can be preset in the baseboard management controller, wherein the configuration information table includes identification information, slot information and slot configuration information corresponding to each slot information, and the configuration information table corresponds to the identification information one by one. In this way, the baseboard management controller can determine the target configuration information table corresponding to the identification information in the preset multiple groups of configuration information tables according to the acquired identification information.

[0074] As described above, the identification information in the embodiment of the present invention may be bus address combination information, and may further include serial number information. For different identification information, the embodiment of the present invention may set different configuration information table matching processes. The configuration information table matching processes corresponding to different types of identification information are described in detail below.

[0075] When the identification information only includes bus address combination information, a corresponding table can be preset to record the corresponding relationship between different bus address combination information and configuration information tables. Then, the baseboard management controller can use the previously acquired bus address combination information to match the corresponding target configuration information table in this corresponding table.

[0076] Based on this, determining the target configuration information table corresponding to the identification information in the preset multiple groups of configuration information tables may include:

[0077] Step 51: searching a first configuration information table corresponding to the bus address combination information in a first preset corresponding table; wherein the first preset corresponding table records the configuration information table corresponding to each bus address combination information;

[0078] Step 52: Use the first configuration information table as the target configuration information table.

[0079] When the identification information includes bus address combination information and serial number information, two corresponding tables can be preset. Among them, the first preset corresponding table records the configuration information table corresponding to each bus address combination information, and the second preset corresponding table records the configuration information table corresponding to each serial number information. Furthermore, the baseboard management controller can use the previously obtained bus address combination information to match the corresponding first configuration information table in the first preset corresponding table, use the previously obtained serial number information to match the corresponding second configuration information table in the second preset corresponding table, and determine whether the first configuration information table is the same as the second configuration information table. If they are the same, the first configuration information table or the second configuration information table is used as the target configuration information table; if they are not the same, the default configuration information table is obtained, the default configuration information table is used as the target configuration information table, and the first configuration information table and the second configuration information table are recorded in the exception log. In this way, the configuration information table disorder problem caused by the same slot expansion card corresponding to different configuration information tables in different preset corresponding tables can be solved, and the reliability of the target configuration information table finally obtained can be maintained as much as possible.

[0080] Based on this, determining the target configuration information table corresponding to the identification information in the preset multiple groups of configuration information tables may include:

[0081] Step 61: searching a first configuration information table corresponding to the bus address combination information in a first preset corresponding table; wherein the first preset corresponding table records the configuration information table corresponding to each bus address combination information;

[0082] Step 62: searching a second configuration information table corresponding to the serial number information in a second preset corresponding table; wherein the second preset corresponding table records the configuration information table corresponding to each serial number information;

[0083] Step 63: Determine whether the first configuration information table is the same as the second configuration information table;

[0084] Step 64: If they are the same, taking the first configuration information table or the second configuration information table as the target configuration information table;

[0085] Step 65: If they are not the same, a default configuration information table is obtained, the default configuration information table is used as the target configuration information table, and the first configuration information table and the second configuration information table are recorded in an exception log.

[0086] S103: Acquire slot configuration information corresponding to each slot from the target configuration information table according to the slot information, so as to identify the expansion device connected to the slot according to the slot configuration information corresponding to each slot.

[0087] After obtaining the correct target configuration information table, the baseboard management controller can identify the expansion device connected to the slot according to the slot configuration information corresponding to each slot in the target configuration information table, such as being able to read data from the device in the corresponding slot, ensuring that the system can accurately identify and call specific hardware configuration information, thereby achieving flexible hardware configuration and identification.

[0088] Based on the above embodiments, in the present invention, the baseboard management controller can first obtain the identification information of the slot expansion card and the slot information of each slot in the slot expansion card. Wherein, the identification information is used to determine the device identity of the slot expansion card. Subsequently, the present invention can determine the target configuration information table corresponding to the identification information in the preset multiple groups of configuration information tables; wherein, the configuration information table includes the identification information, the slot information and the slot configuration information corresponding to each of the slot information, and the configuration information table corresponds to the identification information one by one. In other words, the present invention can set a corresponding configuration information table for each slot expansion card, and record the slot configuration information of each slot expansion card into the corresponding configuration information table. Furthermore, in the scenario where the slot configuration information changes due to the change of the slot expansion card, the baseboard management controller can actively detect the change of the slot expansion card and actively obtain the corresponding configuration information table, so as to identify the expansion device connected to each slot according to the slot configuration information corresponding to each slot in the configuration information table, thereby avoiding the occurrence of device identification errors and affecting device monitoring.

[0089] Based on the above embodiment, if the identification information of the slot expansion card is not recorded by the baseboard management controller, and the baseboard management controller cannot determine the target configuration information table corresponding to the identification information, the baseboard management controller can also integrate the identification information (such as bus address combination information) and the slot information obtained by the basic input and output system scan into abnormal alarm information, and output the abnormal alarm information to facilitate relevant personnel to manually add the correct configuration information table. Then, the baseboard management controller receives the input new configuration information table and saves the new configuration information table, so as to ensure that it saves a sufficient number of switchable configuration information tables.

[0090] Based on this, after determining the target configuration information table corresponding to the identification information in the preset multiple groups of configuration information tables, the following may also be included:

[0091] S201: If it is determined that the target configuration information table does not exist, generate abnormal alarm information using the identification information and the slot information obtained by scanning the basic input and output system, and output the abnormal alarm information.

[0092] It is worth pointing out that the embodiment of the present invention specifically uses the identification information obtained by the baseboard management controller (such as the bus address combination information obtained by actively performing bus address scanning) and the slot information obtained by the basic input and output system scanning to generate abnormal alarm information, so that relevant personnel can generate a new configuration information table according to the identification information and slot information in the abnormal alarm information. This can ensure that the identification information and slot information in the new configuration information table match the hardware bottom layer, thereby effectively ensuring the reliability of the new configuration information table.

[0093] S202: Receive an input new configuration information table, and save the new configuration information table.

[0094] Based on the above embodiment, the above configuration information acquisition method is fully introduced below based on specific examples and flow charts. Figure 2 , Figure 2 A flowchart of another configuration information acquisition solution provided by an embodiment of the present invention, the method may include:

[0095] 1. BMC and BIOS agree on the corresponding slot information table for each supported riser collocation, which includes the slot, switch chip address and channel information. BMC is responsible for storing the slot corresponding information table for each riser collocation and defining a unique serial number for each table.

[0096] 2. Since the i2c addresses of the riser card switch chips of different riser packages are different and the PN information of various risers is different, the BMC can collaboratively distinguish different riser packages based on different riser switch chip i2c address combinations and different riser PN combinations to ensure that the system can be dynamically adjusted according to the hardware configuration. A possible correspondence table and set reference format is as follows:

[0097] Table 0: Riser switch chip address matching and Riser package correspondence table;

[0098] Table 1: Riser PN matching and Riser package correspondence table;

[0099] Riser package table A{(slot, i2c information), ...};

[0100] Riser package table B {(slot, i2c information), ...};

[0101] Riser package table C {(slot, i2c information), …}.

[0102] 3. BMC scans the i2c link where the riser card is located, scans the switch chip address of all riser cards, and determines the current address matching; BMC then reads the FRU information of each riser through i2c, extracts the PN of each riser card, and further confirms the riser package in the current server through the PN matching. Compare the confirmation results of the two, finally determine the current riser package, and register the corresponding information table.

[0103] 4. BMC registers different slot correspondence information tables according to the distinguished riser packages. When BIOS transmits slot information, BMC obtains the i2c information of the corresponding slot according to the adopted slot correspondence information table.

[0104] 5. Based on the i2c information obtained from the slot corresponding information table, BMC can read data from the device in the corresponding slot to ensure that the system can accurately identify and call specific hardware configuration information, and achieve flexible hardware configuration and identification.

[0105] The following is an introduction to the configuration information acquisition device, baseboard management controller, equipment management system, computer program product, and computer-readable storage medium provided in the embodiments of the present invention. The configuration information acquisition device, baseboard management controller, equipment management system, computer program product, and computer-readable storage medium described below can be referenced to each other with the configuration information acquisition method described above.

[0106] Please refer to Figure 3 , Figure 3 This is a structural block diagram of a configuration information acquisition device provided by an embodiment of the present invention. The device is applied to a baseboard management controller and may include:

[0107] An acquisition module 301 is used to acquire identification information of a slot expansion card and slot information of each slot in the slot expansion card;

[0108] A matching module 302 is used to determine a target configuration information table corresponding to the identification information in a plurality of preset configuration information tables; wherein the configuration information table includes the identification information, the slot information and the slot configuration information corresponding to each of the slot information, and the configuration information table corresponds to the identification information one by one;

[0109] The configuration information acquisition module 303 is used to acquire the slot configuration information corresponding to each slot from the target configuration information table according to the slot information, so as to identify the expansion device connected to the slot according to the slot configuration information corresponding to each slot.

[0110] Optionally, the acquisition module 301 may include:

[0111] A bus scanning submodule, used for performing bus address scanning on the switch modules corresponding to each slot in the slot expansion card to determine the bus address of each switch module;

[0112] The bus address combination determining submodule is used to determine bus address combination information according to all the bus addresses, and use the bus address combination information as the identification information.

[0113] Optionally, the acquisition module 301 may further include:

[0114] A serial number acquisition submodule, used to acquire serial number information of the slot expansion card from the field replaceable unit of the slot expansion card;

[0115] The identification information setting submodule is used to use the bus address combination information and the serial number information as the identification information.

[0116] Optionally, the matching module 302 may include:

[0117] A first matching submodule is used to search a first configuration information table corresponding to the bus address combination information in a first preset corresponding table; wherein the first preset corresponding table records the configuration information table corresponding to each bus address combination information;

[0118] A second matching submodule is used to search a second configuration information table corresponding to the serial number information in a second preset corresponding table; wherein the second preset corresponding table records the configuration information table corresponding to each serial number information;

[0119] A determination submodule, used to determine whether the first configuration information table is the same as the second configuration information table;

[0120] A first target configuration information table setting submodule, configured to use the first configuration information table or the second configuration information table as the target configuration information table if they are the same;

[0121] The second target configuration information table setting submodule is used to obtain a default configuration information table if they are not the same, use the default configuration information table as the target configuration information table, and record the first configuration information table and the second configuration information table into an exception log.

[0122] Optionally, the acquisition module 301 may include:

[0123] The slot information acquisition submodule is used to acquire the slot information scanned by the basic input and output system from the basic input and output system.

[0124] Optionally, the slot information acquisition submodule may be used to:

[0125] The slot information is obtained from a preset system management table; wherein the basic input and output system records the slot information in the preset system management table after completing the scan.

[0126] Optionally, the device may further include:

[0127] an abnormal alarm module, for generating abnormal alarm information by using the identification information and the slot information obtained by scanning the basic input and output system if it is determined that the target configuration information table does not exist, and outputting the abnormal alarm information;

[0128] The configuration information table updating module is used to receive an input new configuration information table and save the new configuration information table.

[0129] Please refer to Figure 4 , Figure 4 This is a structural block diagram of a baseboard management controller provided in an embodiment of the present invention. The embodiment of the present invention provides a baseboard management controller 10, including a processor 11 and a memory 12; wherein the memory 12 is used to store a computer program; and the processor 11 is used to execute the configuration information acquisition method provided in the aforementioned embodiment when executing the computer program.

[0130] For the specific process of the above configuration information acquisition method, please refer to the corresponding content provided in the above embodiments, which will not be repeated here.

[0131] Furthermore, the memory 12 as a carrier for storing resources may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the storage method may be temporary storage or permanent storage.

[0132] In addition, the baseboard management controller 10 also includes a power supply 13, a communication interface 14, an input / output interface 15 and a communication bus 16; wherein the power supply 13 is used to provide working voltage for each hardware device on the baseboard management controller 10; the communication interface 14 can create a data transmission channel between the baseboard management controller 10 and external devices, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present invention, and is not specifically limited here; the input / output interface 15 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

[0133] Please refer to Figure 5 , Figure 5 This is a structural block diagram of a device monitoring system provided by an embodiment of the present invention. The embodiment of the present invention also provides a device monitoring system, including:

[0134] One or more slot expansion cards 20;

[0135] The baseboard management controller 10 is connected to the slot expansion card 20 and is used to execute the configuration information acquisition method as described above.

[0136] Since the embodiments of the device monitoring system part correspond to the embodiments of the configuration information acquisition method part, please refer to the description of the embodiments of the configuration information acquisition method part for the embodiments of the device monitoring system part, which will not be repeated here.

[0137] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the configuration information acquisition method described in the above embodiment is implemented.

[0138] Since the embodiments of the computer program product part correspond to the embodiments of the configuration information acquisition method part, please refer to the description of the embodiments of the configuration information acquisition method part for the embodiments of the computer program product part, and will not be repeated here.

[0139] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the configuration information acquisition method described in the above embodiment is implemented.

[0140] Since the embodiments of the computer-readable storage medium part correspond to the embodiments of the configuration information acquisition method part, the embodiments of the storage medium part refer to the description of the embodiments of the configuration information acquisition method part, which will not be repeated here.

[0141] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0142] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0143] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0144] The configuration information acquisition method, device, system, baseboard management controller and computer-readable storage medium provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A method for obtaining configuration information, characterized in that: Applied to a baseboard management controller, the method comprises: Obtaining identification information of a slot expansion card and slot information of each slot in the slot expansion card; Determine a target configuration information table corresponding to the identification information in a preset plurality of groups of configuration information tables; wherein the configuration information table includes the identification information, the slot information and the slot configuration information corresponding to each of the slot information, and the configuration information table corresponds to the identification information one by one; The slot configuration information corresponding to each slot is obtained from the target configuration information table according to the slot information, so as to identify the expansion device connected to the slot according to the slot configuration information corresponding to each slot.

2. The configuration information acquisition method according to claim 1, characterized in that: Get the identification information of the slot expansion card, including: Performing bus address scanning on the switch modules corresponding to each of the slots in the slot expansion card to determine the bus address of each of the switch modules; Bus address combination information is determined according to all the bus addresses, and the bus address combination information is used as the identification information.

3. The configuration information acquisition method according to claim 2, characterized in that: Also includes: Acquire serial number information of the slot expansion card from a field replaceable unit of the slot expansion card; The using the bus address combination information as the identification information includes: The bus address combination information and the serial number information are used as the identification information.

4. The configuration information acquisition method according to claim 3, characterized in that: Determining a target configuration information table corresponding to the identification information in a preset plurality of groups of configuration information tables includes: Searching a first configuration information table corresponding to the bus address combination information in a first preset corresponding table; wherein the first preset corresponding table records the configuration information table corresponding to each bus address combination information; Searching for a second configuration information table corresponding to the serial number information in a second preset corresponding table; wherein the second preset corresponding table records the configuration information table corresponding to each serial number information; Determine whether the first configuration information table is the same as the second configuration information table; If they are the same, taking the first configuration information table or the second configuration information table as the target configuration information table; If they are not the same, a default configuration information table is obtained, the default configuration information table is used as the target configuration information table, and the first configuration information table and the second configuration information table are recorded in an exception log.

5. The configuration information acquisition method according to claim 1, characterized in that: Obtaining slot information of each slot in the slot expansion card includes: The slot information scanned by the basic input and output system is obtained from the basic input and output system.

6. The configuration information acquisition method according to claim 5, characterized in that: The step of obtaining the slot information scanned by the basic input and output system from the basic input and output system includes: The slot information is obtained from a preset system management table; wherein the basic input and output system records the slot information in the preset system management table after completing the scan.

7. A configuration information acquisition device, characterized in that: Applied to a baseboard management controller, the device comprises: An acquisition module, used to acquire identification information of a slot expansion card and slot information of each slot in the slot expansion card; A matching module, used to determine a target configuration information table corresponding to the identification information in a plurality of preset configuration information tables; wherein the configuration information table includes the identification information, the slot information and the slot configuration information corresponding to each of the slot information, and the configuration information table corresponds to the identification information one by one; The configuration information acquisition module is used to acquire the slot configuration information corresponding to each slot from the target configuration information table according to the slot information, so as to identify the expansion device connected to the slot according to the slot configuration information corresponding to each slot.

8. A baseboard management controller, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the configuration information acquisition method according to any one of claims 1 to 6 when executing the computer program.

9. A device monitoring system, characterized in that: include: One or more slot expansion cards; A baseboard management controller, the baseboard management controller is connected to the slot expansion card, and is used to execute the configuration information acquisition method according to any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by a processor, the configuration information acquisition method according to any one of claims 1 to 6 is implemented.

Citation Information

Cited By

  • Adapter card identification method and device, electronic equipment and computer readable storage medium

    CN119668701A

  • Screen printing information matching method and device, electronic equipment and expansion card

    CN120743817A