Device information aggregation system, method, apparatus, electronic device, and storage medium
By working together with the asset information management module and the object retrieval module, and combining a standardized desktop bus interface and target directory service, the problems of high code complexity and low scalability in PCIE device information management are solved, and efficient device information aggregation and management are achieved.
Patent Information
- Application Number
- CN202511045198.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-28
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2045-07-28
AI Technical Summary
Existing PCIe device information management methods suffer from high code complexity, high maintenance costs, slow system response speed, and low scalability due to differences in the desktop bus structure of each module, which affects overall management efficiency and system stability.
The asset information management module provides address information for high-speed devices interconnected with peripheral components. The information aggregation module passes this information to the object retrieval module, which directly obtains out-of-band monitoring information. There is no need to write independent processing logic for different device types. The information is merged using a standardized desktop bus interface and target directory service.
It improved overall management efficiency and system stability, reduced code complexity and maintenance costs, and increased system response speed and scalability.
Smart Images

Figure CN120540943B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a system, method, apparatus, electronic device, and storage medium for aggregating device information. Background Art
[0002] Peripheral Component Interconnect Express (PCIE), a core communication bus standard in server hardware architecture, is widely used to connect various expansion devices, such as disk array controllers (RAID), network cards, Fibre Channel host bus adapters (FC HBAs), and graphics processing units (GPUs). It is a key technology for achieving high-performance data transmission and device management. With the increasing complexity of server systems, out-of-band management has become an important means of ensuring stable system operation. The baseboard management controller (BMC), as a core component of out-of-band management, undertakes key functions such as device monitoring, information collection, and remote management.
[0003] In existing PCIE device information management methods, due to the differences in the Desktop Bus (DBus) structures defined by each module, upper-layer applications need to write independent processing logic for different device types, which increases code complexity and maintenance costs, while reducing system response speed and scalability, affecting overall management efficiency and system stability. Summary of the Invention
[0004] The present application provides a device information aggregation system, method, apparatus, electronic device and storage medium to at least solve the problem in the related art of writing independent processing logic for different device types, which increases code complexity and maintenance costs, while reducing system response speed and scalability, affecting overall management efficiency and system stability.
[0005] This application provides a device information aggregation system, including: an information aggregation module, an asset information management module and an object retrieval module;
[0006] The asset information management module is configured to send address information of the peripheral component interconnect express device to the information aggregation module in response to an information acquisition instruction of the information aggregation module; the information acquisition instruction is an information acquisition instruction of the peripheral component interconnect express device; and the address information includes a bus number, a device number and a service number.
[0007] The information aggregation module is configured to receive the address information and send the address information to the object retrieval module.
[0008] The object retrieval module is configured to receive the address information and send out-of-band monitoring information of the peripheral component interconnect express device corresponding to the address information to the information aggregation module.
[0009] Optionally, the system further comprises an out-of-band device management module.
[0010] The out-of-band device management module is configured to acquire out-of-band monitoring information of an out-of-band device and send the out-of-band monitoring information to the object retrieval module.
[0011] The present application provides a device information aggregation method, comprising:
[0012] Acquiring address information of a peripheral component interconnect express device; the address information includes a bus number, a device number and a service number;
[0013] Determining out-of-band monitoring information of the peripheral component interconnect express device in a target directory service based on the address information;
[0014] Combining the address information and the out-of-band monitoring information to obtain device information of the peripheral component interconnect express device.
[0015] Optionally, the determining of the out-of-band monitoring information of the peripheral component interconnect express device in the target directory service based on the address information further comprises:
[0016] Constructing a desktop bus interface according to the address information;
[0017] Determining a desktop bus path and a service name corresponding to the desktop bus interface in the target directory service based on a preset algorithm with the desktop bus interface as a query condition;
[0018] Acquiring out-of-band monitoring attribute information according to the desktop bus path and the service name;
[0019] Integrating the address information and the out-of-band monitoring attribute information into complete device information.
[0020] Optionally, the merging the address information and the out-of-band monitoring information to obtain the device information of the peripheral component interconnect express device further comprises:
[0021] establishing a device information mapping table taking the address information as a unique identifier;
[0022] storing the device information of the peripheral component interconnect express device in association with the out-of-band monitoring attribute information.
[0023] Optionally, before the address information of the peripheral component interconnect express device is obtained, the method further comprises:
[0024] obtaining out-of-band monitoring attribute information based on a standardized desktop bus port;
[0025] storing the out-of-band monitoring attribute information in a device information mapping table.
[0026] Optionally, the out-of-band monitoring attribute information comprises at least one of a device serial number, device version information, and device temperature.
[0027] The application further provides a device information aggregation apparatus, comprising:
[0028] an obtaining unit configured to obtain address information of a peripheral component interconnect express device; the address information comprising a bus number, a device number, and a service number;
[0029] a determining unit configured to determine, based on the address information, out-of-band monitoring information of the peripheral component interconnect express device in a target directory service;
[0030] a merging unit configured to merge the address information and the out-of-band monitoring information to obtain device information of the peripheral component interconnect express device.
[0031] Optionally, the determining unit is further configured to:
[0032] construct a desktop bus interface according to the address information;
[0033] determine, based on a preset algorithm, a desktop bus path and a service name corresponding to the desktop bus interface in the target directory service by taking the desktop bus interface as a query condition;
[0034] obtain out-of-band monitoring attribute information according to the desktop bus path and the service name;
[0035] integrate the address information and the out-of-band monitoring attribute information into complete device information.
[0036] Optionally, the merging unit is further configured to:
[0037] establish a device information mapping table taking the address information as a unique identifier;
[0038] The device information of the peripheral component interconnect express device is stored in association with the out-of-band monitoring attribute information.
[0039] Optionally, the apparatus further comprises:
[0040] The obtaining unit is further configured to obtain the out-of-band monitoring attribute information based on a standardized desktop bus port before the obtaining unit obtains the address information of the peripheral component interconnect express device.
[0041] The storage unit is configured to store the out-of-band monitoring attribute information in a device information mapping table.
[0042] Optionally, the out-of-band monitoring attribute information comprises at least one of a device serial number, device version information, and device temperature.
[0043] The application further provides an electronic device comprising a memory configured to store a computer program and a processor configured to execute the computer program to implement the steps of the device information aggregation method.
[0044] The application further provides a computer readable storage medium having a computer program stored therein, wherein the computer program, when executed by a processor, implements the steps of the device information aggregation method.
[0045] The application further provides a computer program product comprising a computer program, wherein the computer program, when executed by a processor, implements the steps of the device information aggregation method.
[0046] According to the application, since the asset information management module can provide the address information of the peripheral component interconnect express device, the object retrieval module can directly obtain the corresponding out-of-band monitoring information according to the address information after the information aggregation module transmits the address information to the object retrieval module, and thus it is not necessary to write independent processing logic for different device types, thereby solving the problems of high code complexity, high maintenance cost, low system response speed, and low scalability caused by the differences in desktop bus structures of various modules in the prior peripheral component interconnect express device information management method, and achieving the technical effects of improving the overall management efficiency and system stability. BRIEF DESCRIPTION OF DRAWINGS
[0047] In order to more clearly illustrate the embodiments of the application, the drawings required to be used in the embodiments will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings.
[0048] Figure 1A schematic diagram of a device information aggregation system provided by an embodiment of the present disclosure;
[0049] Figure 2 A schematic diagram of another device information aggregation system provided by an embodiment of the present disclosure;
[0050] Figure 3 A flowchart of a device information aggregation method provided by an embodiment of the present disclosure;
[0051] Figure 4 A structural schematic diagram of a device information aggregation apparatus provided by an embodiment of the present disclosure;
[0052] Figure 5 A structural schematic diagram of another device information aggregation apparatus provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0053] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without any creative work fall within the protection scope of the present application.
[0054] It should be noted that, in the description of the present application, the terms "comprise", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device comprising a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. The terms "first", "second" and the like in the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence.
[0055] In order for those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the drawings and specific embodiments.
[0056] Please refer to Figure 1 , Figure 1 A schematic diagram of a device information aggregation system provided by an embodiment of the present disclosure, comprising: an information aggregation module 12, an asset information management module 11 and an object retrieval module 13;
[0057] The asset information management module 11 is configured to send address information of the peripheral component interconnect express device to the information aggregation module 12 in response to an information acquisition instruction of the information aggregation module 12; wherein the information acquisition instruction is an information acquisition instruction of the peripheral component interconnect express device; and the address information comprises a bus number, a device number and a service number;
[0058] The information aggregation module 12 is configured to receive the address information and send the address information to the object retrieval module 13.
[0059] The object retrieval module 13 is configured to receive the address information and send out-of-band monitoring information of the peripheral component interconnect express device corresponding to the address information to the information aggregation module 12.
[0060] The asset information management module 11 is a core management unit of PCIe device address information, which receives and stores PCIe device asset information from BIOS in advance. The asset information covers various basic data of the device, especially contains address information for uniquely identifying the PCIe device, which is specifically composed of a bus number (Bus Number), a device number (Device Number) and a function number (Function Number), i.e. B.D.F address information. The asset information management module 11 provides a standard Dbus interface to the outside. When the information aggregation module 12 needs to acquire information of a PCIe device, it will send an information acquisition instruction for the PCIe device to the asset information management module 11. After receiving the instruction, the asset information management module 11 will quickly respond and send the address information of the PCIe device containing the bus number, the device number and the function number to the information aggregation module 12 through the Dbus interface, providing a key basis for subsequent information retrieval.
[0061] The information aggregation module 12 is the core of information integration in the system, and its main responsibility is to coordinate the information flow between the asset information management module 11 and the object retrieval module. It first initiates an information acquisition request to the asset information management module 11 for the target PCIe device. After successfully receiving the address information returned by the asset information management module 11, which includes the bus number, device number, and function number, it sends this address information as a retrieval identifier to the object retrieval module in real time to trigger the retrieval process of the PCIe device out-of-band monitoring information. The object retrieval module is specifically represented as the ObjectMapper service in the OpenBMC system, which is the key link connecting the information aggregation module 12 and various PCIe device out-of-band monitoring management modules. Its core function is to locate and obtain the corresponding out-of-band monitoring information based on the received address information. When the object retrieval module receives the address information containing the bus number, device number, and function number sent by the information aggregation module 12, it will construct a unified retrieval condition based on this address information, such as embedding the B.D.F information into a specific format of Dbus Interface (such as xyz.interface.pcie.bXX.dXX.fXX, where XX corresponds to the specific values of bus number (bXX), device number (dXX), and function number (fXX) respectively). Then it dynamically searches for the Dbus Service (service) and Path (path) associated with the address information of the PCIe device in the system by calling its GetSubTree method, and then extracts the out-of-band monitoring information of the PCIe device (such as firmware version, serial number, temperature, etc.) from the out-of-band monitoring management module through these Service and Path, and feeds back these out-of-band monitoring information to the information aggregation module 12 in a timely and accurate manner, thereby realizing efficient aggregation and management of PCIe device information.
[0062] Please refer to Figure 2 , Figure 2 A schematic diagram of a device information aggregation system provided by an embodiment of the present application is shown in Figure 2 The system further includes an out-of-band device management module 14.
[0063] The out-of-band device management module 14 is configured to obtain out-of-band monitoring information of the out-of-band device and send the out-of-band monitoring information to the object retrieval module 13.
[0064] The out-of-band device management module 14 deploys corresponding monitoring management services for different types of PCIe devices, such as RAID cards, network cards, FC HBA cards, etc. These services communicate with PCIe devices through the Management Component Transport Protocol (MCTP) over PCIe to obtain real-time out-of-band monitoring information of the devices, including but not limited to Firmware Version, Serial Number, Temperature, and other key operating parameters of the devices. Please refer to Table 1 for an example of data types in the out-of-band monitoring module provided by the present embodiment. Table 1 shows:
[0065] Table 1
[0066]
[0067] In the process of obtaining device information, the out-of-band device management module 14 can parse the address information of the corresponding PCIe device (i.e. B.D.F address information composed of bus number, device number and function number) from the MCTP physical communication address (Physical Address), and construct a unified format Dbus interface (Interface) based on the address information. For example, for a device with a B.D.F address of 30.00.00, the constructed Dbus interface can be xyz.interface.pcie.b30.d00.f00, and the out-of-band monitoring information under the interface follows a unified attribute naming rule, ensuring that the same type of information of different types of devices has consistent identification. The out-of-band device management module 14 associates the obtained out-of-band monitoring information to the corresponding Dbus interface through the above-mentioned manner, and when the object retrieval module needs to obtain the out-of-band monitoring information of a PCIe device, the out-of-band device management module 14 can send the out-of-band monitoring information corresponding to the device to the object retrieval module through a pre-set Dbus service (Service) and path (Path) based on the retrieval request of the object retrieval module, providing support for the subsequent information integration module 12 to integrate information.
[0068] The present embodiment provides a device information integration method, which is described in detail in combination with the execution process of the XX method. Figure 3 A flowchart of a device information integration method provided by the present embodiment of the disclosure.
[0069] As Figure 3 shown, the method comprises the following steps:
[0070] Step 201: Obtain address information of a Peripheral Component Interconnect Express (PCIe) device; the address information includes bus number, device number and function number.
[0071] In some embodiments, the address information is specifically the BDF address information of the PCIe device, which consists of the bus number, device number, and function number. These three numbers together constitute the key information that uniquely identifies the location of the PCIe device in the system. In the OpenBMC system, obtaining this address information primarily relies on the asset information management module. This module pre-receives PCIe device asset information from the BIOS (Basic Input and Output System) via an in-band channel. This asset information contains basic data for all PCIe devices in the system, including the bus number, device number, and function number corresponding to each PCIe device.
[0072] The Asset Information Management Module organizes and stores the received asset information, forming a device information library that can be queried by other system modules. It also provides a standard DBus interface to respond to information retrieval requests. When the Information Aggregation Module needs to obtain information about a specific PCIe device, it sends an information retrieval instruction for that device to the Asset Information Management Module. Upon receiving this instruction, the Asset Information Management Module extracts the bus number, device number, and function number corresponding to the PCIe device from its own device information library and feeds this address information back to the Information Aggregation Module via the DBus interface, completing the process of obtaining PCIe device address information.
[0073] Step 202: Determine out-of-band monitoring information of the PCI Express device in a target directory service based on the address information.
[0074] The target directory service specifically refers to the ObjectMapper service in the OpenBMC system. This service has the functions of managing hardware objects and resources and providing DBus object retrieval. It can dynamically locate and obtain corresponding hardware object information in the system based on specific conditions.
[0075] Specifically, a unified search condition is constructed based on the acquired BDF address information, thereby generating a DBus interface containing the BDF information. For example, if the PCIe device has a bus number of 30, a device number of 00, and a function number of 00, the constructed DBus interface can be "xyz.interface.pcie.b30.d00.f00," where "b30" corresponds to bus number 30, "d00" corresponds to device number 00, and "f00" corresponds to function number 00. This way, the BDF address information is embedded in the interface name, forming a unique and unified search identifier.
[0076] The target directory service (ObjectMapper) receives the search condition (i.e. the Bus interface containing B.D.F information) and calls its GetSubTree method to search in the system. The method traverses all the Bus services (Service) and paths (Path) registered by the out-of-band device management module in the system and matches the entries associated with the Bus interface. Since the out-of-band device management module has associated the monitoring information to the Bus interface containing the corresponding B.D.F information when providing the out-of-band monitoring information to the outside according to the unified standard, the target directory service can accurately locate the Service and Path of the out-of-band device management module corresponding to the PCIe device.
[0077] After finding the corresponding Service and Path, the target directory service further obtains the out-of-band monitoring information stored under the interface based on the information. The out-of-band monitoring information is obtained from the device by the out-of-band device management module through the MCTP Over PCIe mode and stored according to the unified attribute naming rule (such as the firmware version is unified as "FirmwareVersion", the serial number is unified as "SerialNumber", and the temperature is unified as "Temperature"), so it can be directly identified and extracted by the target directory service, and finally the out-of-band monitoring information of the PCIe device is determined.
[0078] Step 203, merging the address information and the out-of-band monitoring information to obtain the device information of the peripheral component interconnect express device.
[0079] The address information is the B.D.F address information composed of bus number, device number and function number, which is the unique identifier of the PCIe device in the system, and is also associated with the device address information obtained from the asset information management module, such as slot, manufacturer, device model, PCIe device bandwidth, PCIe device rate, chip manufacturer ID, chip device ID, etc.; and the out-of-band monitoring information is the device running state related information obtained from the out-of-band device management module, including device serial number, firmware (FW) version, temperature, etc.
[0080] After receiving the address information and its associated address information and the out-of-band monitoring information returned by the object retrieval module, the information aggregation module will organically integrate the two parts of information according to the preset information integration rule: on the one hand, the address information is retained as the core identifier of the device to ensure its basic positioning in the complete device information; on the other hand, each parameter in the out-of-band monitoring information is supplemented into the address information to form comprehensive device information covering device identity identifier, hardware attributes and running state. For example, for a RAID card with B.D.F address 30.00.00, its address information associated address information may include slot "Slot1", manufacturer "XX Company", bandwidth "16GB / s", speed "Gen4", etc., and the out-of-band monitoring information may include serial number "SN01010101", firmware version "1.2.6.0", temperature "52℃", etc. The information aggregation module will combine these information to finally form complete RAID card device information containing slot, manufacturer, bandwidth, speed, B.D.F (30.00.00), serial number, firmware version, temperature, etc. This information can be externally displayed through the Redfish / Restful interface provided by OpenBMC for users to remotely view and manage, realizing the comprehensive integration and unified presentation of PCIe device information.
[0081] According to the present application, since the asset information management module can provide the address information of the peripheral component interconnect express device, after the information aggregation module transmits it to the object retrieval module, the object retrieval module can directly obtain the corresponding out-of-band monitoring information according to the address information, without the need to write independent processing logic for different device types. Therefore, the problem of high code complexity, high maintenance cost, low system response speed and poor scalability caused by the bus structure difference of each module in the existing peripheral component interconnect express device information management method can be solved, and the technical effects of improving the overall management efficiency and system stability are achieved.
[0082] In some embodiments, the determining the out-of-band monitoring information of the peripheral component interconnect express device in the target directory service based on the address information further includes:
[0083] constructing a desktop bus interface according to the address information;
[0084] determining the desktop bus path and service name corresponding to the desktop bus interface in the target directory service based on a preset algorithm taking the desktop bus interface as a query condition;
[0085] obtaining out-of-band monitoring attribute information according to the desktop bus path and service name;
[0086] integrating the address information and the out-of-band monitoring attribute information into complete device information.
[0087] According to the acquired address information, a desktop bus interface (DBus Interface) is constructed, where the desktop bus interface is a standardized interface for DBus communication, and the construction rule is to embed the B.D.F address information into the interface name to form a unified format identifier. For example, for a PCIe device with a bus number of 30, a device number of 00, and a function number of 00, the constructed desktop bus interface can be “xyz.interface.pcie.b30.d00.f00”, where “b30” corresponds to the bus number, “d00” corresponds to the device number, and “f00” corresponds to the function number. In this way, the interface is directly associated with the address information of the device, ensuring uniqueness and identifiability.
[0088] Subsequently, based on a preset algorithm, the above-constructed desktop bus interface is taken as a query condition to determine the corresponding desktop bus path (DBus Path) and service name (DBus Service) in the target directory service. The target directory service is specifically the ObjectMapper service in the OpenBMC system, and the preset algorithm is the GetSubTree method provided by ObjectMapper. This method can traverse all registered DBus objects in the system scope, accurately locate the out-of-band device management module to which the interface belongs by matching the desktop bus interface as the query condition, and then return the desktop bus path and service name corresponding to the module, thereby realizing fast positioning of the device association management module.
[0089] After obtaining the desktop bus path and service name, the out-of-band monitoring attribute information can be obtained from the corresponding out-of-band device management module according to the two parameters.
[0090] Since the out-of-band device management module follows a unified standard attribute naming rule, for example, the software version is uniformly named as “FirmwareVersion”, the serial number is uniformly named as “SerialNumber”, and the temperature is uniformly named as “Temperature”, the information aggregation module can directly extract these attribute information from the specified path and service through the Properties interface of DBus (such as calling the GetAll method), ensuring the standardization and efficiency of the acquisition process.
[0091] Finally, the address information obtained from the asset information management module is integrated with the above-obtained out-of-band monitoring attribute information to form complete device information covering device identification, hardware attributes, and running status. In the integration process, the address information is taken as the core association point to ensure that the two parts of information accurately correspond to the same device, and finally the comprehensive and unified PCIe device information that can be externally displayed is obtained.
[0092] In some embodiments, the combining the address information and the out-of-band monitoring information to obtain the device information of the PCI Express device further comprises:
[0093] Establishing a device information mapping table using the address information as a unique identifier;
[0094] The device information of the PCI high-speed device is associated with the out-of-band monitoring attribute information and stored.
[0095] Because BDF address information uniquely identifies each PCIe device in the system, it is selected as the core index key for the device information mapping table. The device information mapping table is established as follows: After obtaining the address information (BDF) and associated device address information (such as slot, manufacturer, model, etc.), as well as out-of-band monitoring attribute information (such as serial number, firmware version, temperature, etc.), the information aggregation module creates a corresponding entry in the mapping table using the BDF address as the unique key value. This entry contains two related contents: one is the PCIe device address information obtained from the asset information management module, and the other is the out-of-band monitoring attribute information obtained from the out-of-band device management module.
[0096] During the associated storage phase, the information aggregation module associates device address information with out-of-band monitoring attribute information in corresponding entries of the mapping table according to a pre-set data structure, ensuring a close association between the two through the BDF address. For example, for a RAID card with a BDF of 30.00.00, its mapping table entry uses "30.00.00" as the key to associate and store the card's address information, such as slot "Slot 1," manufacturer "XX Company," and bandwidth "16GB / s," with out-of-band monitoring attribute information, such as serial number "SN01010101," firmware version "1.2.6.0," and temperature "52°C." This associated storage method, using the BDF address as a unique identifier, not only ensures the uniqueness and accuracy of device information and avoids confusion between different devices, but also enables subsequent systems to quickly locate the complete device information entry directly by using the BDF address when querying or retrieving device information. This significantly improves information query and management efficiency and lays the data foundation for the OpenBMC system to provide a unified device information display interface (such as Redfish / RESTful).
[0097] In some embodiments, before obtaining the address information of the PCI Express device, the method further includes:
[0098] Obtain out-of-band monitoring attribute information based on standardized desktop bus ports;
[0099] The out-of-band monitoring attribute information is stored in a device information mapping table.
[0100] The standardized desktop bus port specifically refers to the unified format desktop bus interfaces (DBus Interface) provided by the out-of-band device management module, which follow preset standardized rules. The naming of the interfaces contains address information of the corresponding PCIe device (i.e. B.D.F information composed of bus number, device number and function number), for example, the format is xyz.interface.pcie.bXX.dXX.fXX (XX respectively corresponds to the specific value of bus number, device number and function number), and the out-of-band monitoring attribute information under the interface also adopts a unified naming rule, such as the software version is uniformly named as "FirmwareVersion", the serial number is uniformly named as "SerialNumber", and the temperature is uniformly named as "Temperature", etc., which ensures the standardization of the out-of-band monitoring information of different types of PCIe devices at the interface level and provides a basis for unified information acquisition.
[0101] The process of the out-of-band device management module obtaining the out-of-band monitoring attribute information through the above standardized desktop bus port is as follows: the out-of-band device management module establishes communication with the device through the MCTP Over PCIe mode for different types of PCIe devices (such as RAID card, network card, FC HBA card, etc.), and collects the running state information of the device (i.e. out-of-band monitoring attribute information) in real time; after the collection is completed, these information are associated to the corresponding DbusInterface according to the rules of the standardized desktop bus port, for example, the firmware version "1.2.6.0", serial number "SN01010101" and other information of the RAID card with B.D.F of 30.00.00 are stored under the xyz.interface.pcie.b30.d00.f00 interface.
[0102] Subsequently, the out-of-band device management module stores the obtained out-of-band monitoring attribute information into the device information mapping table. The device information mapping table takes the B.D.F address information of the PCIe device as the core index, and stores the out-of-band monitoring attribute information and the corresponding B.D.F address in association, forming the corresponding relationship entry of "B.D.F address-out-of-band monitoring attribute information".
[0103] For example, in the mapping table, the corresponding FirmwareVersion, SerialNumber, Temperature and other attribute values of B.D.F=30.00.00 are recorded under the entry. By obtaining the out-of-band monitoring attribute information in advance based on the standardized desktop bus port and storing it to the device information mapping table, data basis can be provided for the subsequent information merging process after the address information is obtained, so as to ensure that when the address information is obtained by the information aggregation module, the corresponding out-of-band monitoring attribute information can be quickly called from the mapping table through the B.D.F address, and then the information merging is efficiently completed, and the continuity and processing efficiency of the entire device information aggregation process are improved.
[0104] In some embodiments, the out-of-band monitoring attribute information includes at least one of a device serial number, device version information, and device temperature.
[0105] The device information aggregation method provided by the present application is described below with an example.
[0106] 1) OpenBMC provides asset information management services, receives asset information sent by BIOS, and provides a Dbus interface to the outside, for other modules to query and obtain PCIE device information;
[0107] 2) OpenBMC provides out-of-band monitoring management services for various PCIE components, including but not limited to RAID card monitoring management, network card monitoring management, FC HBA card monitoring management, etc.;
[0108] 3) The out-of-band monitoring management services of various PCIE components in OpenBMC access PCIE devices and obtain information through MCTP Over PCEI, and can obtain the B.D.F information of the device from the MCTP physical communication address (Physical Address);
[0109] 4) The out-of-band monitoring management services of various PCIE components in OpenBMC provide Dbus Interface based on device B.D.F information, and place the information that needs to be aggregated by out-of-band monitoring in the form of standard attribute names under this Interface, such as software version number FirmwareVersion, serial number SerialNumber, and temperature Temperature;
[0110] 5) OpenBMC supports ObjectMapper services, provides Dbus object retrieval functions, and supports GetSubTress to retrieve Dbus objects based on Dbus Interface;
[0111] 6) OpenBMC provides information aggregation and acquisition services, supports external access in the form of Redfish / Restful, etc., and provides PCIE device information aggregation and query interfaces for external PCIE device aggregation information acquisition. Please refer to Table 2, which is a DBus information instance table provided by the embodiment of the application, as shown in Table 2:
[0112] Table 2
[0113]
[0114] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be realized by means of software and the necessary general hardware platform, of course, it can also be realized by hardware, but in many cases the former is a better embodiment.
[0115] The embodiment of the application further provides a device information aggregation apparatus, Figure 4 A structural schematic diagram of a device information aggregation apparatus provided by the embodiment of the present disclosure is shown in Figure 4 As shown in the figure, it comprises:
[0116] The acquisition unit 31 is configured to acquire address information of a peripheral component interconnect express device; the address information comprises a bus number, a device number and a service number;
[0117] The determination unit 32 is configured to determine out-of-band monitoring information of the peripheral component interconnect express device in a target directory service based on the address information;
[0118] The merging unit 33 is configured to merge the address information and the out-of-band monitoring information to obtain device information of the peripheral component interconnect express device.
[0119] Further, in a possible implementation manner of the embodiment of the present disclosure, the determination unit 32 is further configured to:
[0120] construct a desktop bus interface according to the address information;
[0121] determine a desktop bus path and a service name corresponding to the desktop bus interface in the target directory service by taking the desktop bus interface as a query condition based on a preset algorithm;
[0122] acquire out-of-band monitoring attribute information according to the desktop bus path and the service name;
[0123] integrate the address information and the out-of-band monitoring attribute information into complete device information.
[0124] Further, in a possible implementation manner of the embodiment of the present disclosure, the merging unit 33 is further configured to:
[0125] establish a device information mapping table taking the address information as a unique identifier;
[0126] store the device information of the peripheral component interconnect express device and the out-of-band monitoring attribute information in association.
[0127] Further, in a possible implementation manner of the embodiment of the present disclosure, as shown in Figure 5 The apparatus further includes:
[0128] The obtaining unit 31 is further configured to, before the obtaining unit 31 obtains the address information of the peripheral component interconnect express device, obtain the out-of-band monitoring attribute information based on a standardized desktop bus port.
[0129] The storage unit 34 is configured to store the out-of-band monitoring attribute information in the device information mapping table.
[0130] Further, in a possible implementation manner of the embodiment of the present disclosure, the out-of-band monitoring attribute information includes at least one of a device serial number, device version information, and device temperature.
[0131] The features of the embodiment of the device information aggregation apparatus can be referred to the related descriptions of the embodiment of the device information aggregation method, which will not be repeated here.
[0132] The embodiment of the present disclosure further provides an electronic device, including a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the device information aggregation method embodiments.
[0133] The embodiment of the present disclosure further provides a computer readable storage medium, which stores a computer program, wherein the computer program is configured to execute the steps in any one of the device information aggregation method embodiments when running.
[0134] In an example embodiment, the above computer readable storage medium can include, but is not limited to, a U disk, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store computer programs.
[0135] The embodiment of the present disclosure further provides a computer program product, and the computer program product includes a computer program, which is executed by a processor to implement the steps in any one of the device information aggregation method embodiments.
[0136] The embodiment of the present application further provides another computer program product comprising a nonvolatile computer readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above device information aggregation method embodiments.
[0137] Those skilled in the art will further appreciate that the units and algorithm steps of the examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or both, and that the implementation decisions are within the skill of an expert in the art to make based on their specific application and design constraints. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0138] The above provides a detailed introduction to the device information aggregation system, method, device, electronic device and storage medium provided by the present application. The principles and implementation modes of the present application are described herein by applying specific examples, and the above description of the embodiments is only to help understand the method of the present application and its core idea. It should be pointed out that, for those skilled in the art, without departing from the principles of the present application, some improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.
Claims
1. A system for aggregating device information, the system comprising: The system comprises: an information collection module, an asset information management module, and an object retrieval module; the asset information management module is configured to send address information of a peripheral component interconnect express device to the information collection module in response to an information acquisition instruction of the information collection module; the information acquisition instruction is an information acquisition instruction for the peripheral component interconnect express device; and the address information comprises a bus number, a device number, and a service number; the information collection module is configured to receive the address information and send the address information to the object retrieval module; the object retrieval module is configured to receive the address information and send out-of-band monitoring information of the peripheral component interconnect express device corresponding to the address information to the information collection module; a desktop bus interface is constructed according to the address information; the desktop bus interface is taken as a query condition based on a preset algorithm to determine a desktop bus path and a service name corresponding to the desktop bus interface in a target directory service; out-of-band monitoring attribute information is acquired according to the desktop bus path and the service name; the address information and the out-of-band monitoring attribute information are integrated into complete device information; a device information mapping table taking the address information as a unique identifier is established; device information of the peripheral component interconnect express device and the out-of-band monitoring attribute information are stored in association; out-of-band monitoring attribute information is acquired based on a standardized desktop bus port; the out-of-band monitoring attribute information is stored in the device information mapping table; the information collection module initiates an information acquisition request for the peripheral component interconnect express device to the asset information management module, and after receiving address information returned by the asset information management module and containing a bus number, a device number, and a function number, sends the address information as a retrieval identifier to the object retrieval module, triggers a retrieval process of out-of-band monitoring information of the peripheral component interconnect express device, extracts the out-of-band monitoring information of the peripheral component interconnect express device, and feeds back the out-of-band monitoring information to the information collection module; the out-of-band monitoring information comprises at least one of a firmware version, a serial number, and a temperature.
2. The system for aggregating device information according to claim 1, wherein The system further comprises an out-of-band device management module; the out-of-band device management module is configured to acquire out-of-band monitoring information of an out-of-band device and send the out-of-band monitoring information to the object retrieval module.
3. A method of aggregating device information, the method comprising: The method comprises: acquiring address information of a peripheral component interconnect express device; the address information comprises a bus number, a device number, and a service number; determining out-of-band monitoring information of the peripheral component interconnect express device in a target directory service based on the address information; wherein a uniform format retrieval condition is constructed according to the address information, all out-of-band device management modules in the system are traversed after the target directory service receives the retrieval condition, corresponding services and paths are found, and the out-of-band monitoring information of the peripheral component interconnect express device is acquired based on the services and the paths; the out-of-band monitoring information comprises at least one of a firmware version, a serial number, and a temperature; merging the address information and the out-of-band monitoring information to obtain device information of the peripheral component interconnect express device; Wherein, determining the out-of-band monitoring information of the PCI Express device in the target directory service based on the address information further comprises: Building a desktop bus interface according to the address information; Based on a preset algorithm, the desktop bus interface is used as a query condition, and a desktop bus path and a service name corresponding to the desktop bus interface are determined in the target directory service; Obtaining out-of-band monitoring attribute information according to the desktop bus path and service name; Integrating the address information and out-of-band monitoring attribute information into complete device information; The step of combining the address information with the out-of-band monitoring information to obtain device information of the PCI high-speed device further includes: Establishing a device information mapping table using the address information as a unique identifier; storing the device information of the PCI high-speed device in association with the out-of-band monitoring attribute information; Before acquiring the address information of the PCI high-speed device, the method further includes: Obtain out-of-band monitoring attribute information based on standardized desktop bus ports; The out-of-band monitoring attribute information is stored in a device information mapping table.
4. The method of aggregating device information according to claim 3, wherein, The out-of-band monitoring attribute information includes at least one of a device serial number, device version information, and device temperature.
5. A device for aggregating device information, characterized in that: include: an acquisition unit, configured to acquire address information of a peripheral component interconnect high-speed device; The address information includes bus number, device number and service number; a determining unit configured to determine, in a target directory service based on the address information, out-of-band monitoring information of the PCI Express device; wherein, based on the address information, a search condition in a unified format is constructed; after the target directory service receives the search condition, all out-of-band device management modules in the system are traversed to find a corresponding service and path; and, based on the service and path, obtain the out-of-band monitoring information of the PCI Express device; the out-of-band monitoring information includes at least one of a firmware version, a serial number, and a temperature; a merging unit, configured to merge the address information and the out-of-band monitoring information to obtain device information of the PCI high-speed device; The determining unit is further configured to: Building a desktop bus interface according to the address information; Based on a preset algorithm, the desktop bus interface is used as a query condition, and a desktop bus path and a service name corresponding to the desktop bus interface are determined in the target directory service; Obtaining out-of-band monitoring attribute information according to the desktop bus path and service name; Integrating the address information and out-of-band monitoring attribute information into complete device information; The merging unit is further used for: Establishing a device information mapping table using the address information as a unique identifier; storing the device information of the PCI high-speed device in association with the out-of-band monitoring attribute information; The device further comprises: The acquiring unit is further configured to acquire out-of-band monitoring attribute information based on the standardized desktop bus port before the acquiring unit acquires address information of the peripheral component interconnect high-speed device; The storage unit is configured to store the out-of-band monitoring attribute information in a device information mapping table.
6. An electronic device, comprising: include: memory for storing computer programs; A processor configured to implement the steps of the method of aggregating device information according to any one of claims 3 to 4 when executing the computer program.
7. A computer-readable storage medium, characterized in that, A computer program product comprising a computer readable storage medium having stored thereon a computer program, wherein the computer program is configured to implement the steps of the method of aggregating device information according to any one of claims 3 to 4 when executed by a processor.
Citation Information
Patent Citations
Method for out-of-band management of server asset information
CN104734887A
Equipment supervision method and device
CN114595848A