Retimer card information acquisition method and device, electronic equipment and medium
By storing the configuration information in the Retimer card information collection configuration file in the shared memory of the management controller, and collecting and storing the information of the Retimer card in real time, the problem that the existing technology cannot fully monitor the operation information of the Retimer card is solved, and the long-term stable operation of the Retimer card and the improvement of the information collection efficiency is achieved.
Patent Information
- Application Number
- CN202510156962.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-12
- Publication Date
- 2025-03-14
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing technology cannot fully monitor the real-time operation information of the Retimer card, resulting in the inability to ensure the long-term and stable operation of the Retimer card.
By storing the information of the Retimer card in the shared memory of the management controller, the configuration information in the configuration file is collected, and the dynamic information and static information of multiple Retimer cards are collected in real time and stored in the target database.
The comprehensive real-time monitoring of the Retimer card is realized, ensuring the long-term and stable operation of the Retimer card, and improving the efficiency of information collection by reducing I/O operations and improving memory access speed.
Smart Images

Figure CN119621489A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of servers, and in particular to a method, device, electronic device and medium for acquiring information of a Retimer card. Background Art
[0002] With the rapid development and widespread application of artificial intelligence technology, AI (Artificial Intelligence) servers, as an important infrastructure to support AI applications, are also experiencing increasing market demand. Compared with traditional server architectures, AI server architectures are often more complex, so Retimer cards are generally deployed in AI servers. Retimer cards are mainly used to enhance PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) signals to ensure data integrity during long-distance transmission or in complex environments. At present, multiple Retimer cards are generally deployed on AI servers, and the long-term stable operation of Retimer cards is a strong guarantee for AI services.
[0003] In the related art, the temperature of the Retimer card is monitored in real time through the BMC (Baseboard Management Controller). When the temperature is high, the BMC controls the fan of the server to increase the speed to dissipate heat, so as to prevent the Retimer card from being too hot and unable to operate normally. However, by only monitoring and controlling the temperature of the Retimer card, the monitored information is relatively single, and the real-time operation information of the Retimer card cannot be fully monitored, resulting in the inability to ensure the long-term stable operation of the Retimer card. Therefore, how to fully obtain the real-time operation information of the Retimer card and ensure the long-term stable operation of the Retimer card is a problem that needs to be solved urgently. Summary of the invention
[0004] In order to solve the above technical problem or at least partially solve the above technical problem, the present disclosure provides a method, device, electronic device and medium for obtaining Retimer card information.
[0005] In order to achieve the above objectives, the embodiments of the present disclosure provide the following technical solutions: In a first aspect, an embodiment of the present disclosure provides a method for obtaining Retimer card information, comprising: In response to the start of the management controller, the configuration information corresponding to the information collection configuration file of the Retimer card is stored in the shared memory of the management controller; the configuration information includes: whether to collect the information of each Retimer card and the collection frequency of each Retimer card information; In response to the management controller receiving the information collection command input by the user, the management controller collects multiple Retimer card information in real time according to the configuration information stored in the shared memory, and stores the multiple Retimer card information in the target database.
[0006] As an optional implementation of the embodiment of the present disclosure, after, in response to the startup of the management controller, storing the configuration information corresponding to the information collection configuration file of the Retimer card in the shared memory of the management controller, the method further includes: In response to the management controller receiving a configuration modification command input by a user, updating the configuration information stored in the shared memory; The information collection configuration file of the Retimer card is updated according to the configuration information stored in the shared memory.
[0007] As an optional implementation of the embodiment of the present disclosure, in response to starting the management controller, storing the configuration information corresponding to the information collection configuration file of the Retimer card in the shared memory of the management controller includes: In response to the start-up of the management controller, clearing the shared memory of the management controller; Check whether the information collection configuration file exists in the preset path; If the information collection configuration file exists under the preset path, read the first configuration information from the information collection configuration file; The first configuration information is stored in the shared memory of the management controller.
[0008] As an optional implementation of the embodiment of the present disclosure, the checking whether the information collection configuration file exists in the preset path includes: If the information collection configuration file does not exist under the preset path, creating a target information collection configuration file based on preset configuration conditions, and reading the second configuration information from the target information collection configuration file; The second configuration information is stored in the shared memory of the management controller.
[0009] As an optional implementation of the embodiment of the present disclosure, the multiple Retimer card information includes: dynamic information and static information of the Retimer card; the dynamic information is used to indicate the running status of the Retimer card; the static information is used to indicate the product parameters of the Retimer card; the dynamic information includes: the real-time temperature of the Retimer card, the connection status of the link, the statistical information of different channels, the in-place status of different ports and the number of reset times of the Retimer card; the static information includes: the manufacturer type, the product model, the product serial number and the firmware version.
[0010] As an optional implementation of the embodiment of the present disclosure, in response to the management controller receiving an information collection command input by a user, collecting multiple Retimer card information in real time according to the configuration information stored in the shared memory, and storing the multiple Retimer card information in a target database, includes: In response to the management controller receiving an information collection command input by a user, initializing attribute variables of the dynamic information and static information of the Retimer card, and updating them into the target database; Detecting whether the Retimer card is in place according to the integrated circuit bus; If the Retimer card is in place, determining a software development kit corresponding to the Retimer card; Based on the software development kit of the Retimer card, the dynamic information and static information of the Retimer card are collected according to the configuration information stored in the shared memory, and updated into the target database.
[0011] As an optional implementation of the embodiment of the present disclosure, if the Retimer card is in place, determining the software development kit of the Retimer card includes: If the Retimer card is in place, read the device identification of the Retimer card; Determining the manufacturer type of the Retimer card according to the device identification of the Retimer card; According to the manufacturer type of the Retimer card, a software development kit of the Retimer card is determined.
[0012] As an optional implementation of the embodiment of the present disclosure, the detecting whether the Retimer card is in place according to the integrated circuit bus includes: Sending a read command to the Retimer card via the integrated circuit bus; If the Retimer card returns the device identification of the Retimer card in response to the read command, it is determined that the Retimer card is in place.
[0013] As an optional implementation of the embodiment of the present disclosure, in response to the management controller receiving an information collection command input by a user, collecting multiple Retimer card information in real time according to the configuration information stored in the shared memory, and storing the multiple Retimer card information in the target database, the method further includes: In response to the information acquisition command received by the management controller, the dynamic information and static information of the Retimer card are acquired from the target database based on the redfish interface; the redfish interface is used to acquire multiple Retimer card information of multiple servers; wherein the management controller is installed on multiple servers.
[0014] As an optional implementation of the embodiment of the present disclosure, in response to the information acquisition command received by the management controller, acquiring multiple Retimer card information from the target database based on the redfish interface includes: In response to the information acquisition command received by the management controller, the interface type of the redfish interface is acquired; the interface type includes: a dynamic information acquisition interface and a static information acquisition interface; According to the interface type, a target interface processing function is called to read the dynamic information and static information of the Retimer card from the target database.
[0015] As an optional implementation of the embodiment of the present disclosure, the information acquisition command carries a target uniform resource locator, and the target uniform resource locator includes a target path for acquiring dynamic information and static information of the Retimer card; The step of obtaining the dynamic information and static information of the Retimer card from the target database based on the redfish interface in response to the information acquisition command received by the management controller includes: In response to the management controller receiving the target uniform resource locator input by the user, the dynamic information and static information of the Retimer card are acquired from the target database based on the redfish interface.
[0016] As an optional implementation of the embodiment of the present disclosure, in response to the information acquisition command received by the management controller, acquiring the dynamic information and static information of the Retimer card from the target database based on the redfish interface includes: In response to the management controller receiving the periodic access operation of the target monitoring application to the target database, the dynamic information and static information of the Retimer card are obtained from the target database based on the redfish interface.
[0017] In a second aspect, an embodiment of the present disclosure provides a device for obtaining information of a Retimer card, including: An information configuration module, configured to store configuration information corresponding to the information collection configuration file of the Retimer card into the shared memory of the management controller in response to the startup of the management controller; the configuration information includes: whether to collect information of each Retimer card and the collection frequency of each Retimer card information; The information collection module is used to respond to the management controller receiving the information collection command input by the user, collect multiple Retimer card information in real time according to the configuration information stored in the shared memory, and store the multiple Retimer card information in the target database.
[0018] As an optional implementation of the embodiment of the present disclosure, the device further includes: A configuration information modification module, configured to update the configuration information stored in the shared memory in response to the management controller receiving a configuration modification command input by a user; The configuration information updating module is used to update the information collection configuration file of the Retimer card according to the configuration information stored in the shared memory.
[0019] As an optional implementation of the embodiment of the present disclosure, the information configuration module includes: A reset unit, configured to clear the shared memory of the management controller in response to the startup of the management controller; A checking unit, used to check whether the information collection configuration file exists in a preset path; A reading unit, configured to read the first configuration information from the information collection configuration file if the information collection configuration file exists under the preset path; A storage unit is used to store the first configuration information in the shared memory of the management controller.
[0020] As an optional implementation of the embodiment of the present disclosure, the inspection unit is further used to: If the information collection configuration file does not exist under the preset path, creating a target information collection configuration file based on preset configuration conditions, and reading the second configuration information from the target information collection configuration file; The second configuration information is stored in the shared memory of the management controller.
[0021] As an optional implementation of the embodiment of the present disclosure, the multiple Retimer card information includes: dynamic information and static information of the Retimer card; the dynamic information is used to indicate the running status of the Retimer card; the static information is used to indicate the product parameters of the Retimer card; the dynamic information includes: the real-time temperature of the Retimer card, the connection status of the link, the statistical information of different channels, the in-place status of different ports and the number of reset times of the Retimer card; the static information includes: the manufacturer type, the product model, the product serial number and the firmware version.
[0022] As an optional implementation of the embodiment of the present disclosure, the information collection module includes: an initialization unit, configured to initialize attribute variables of the dynamic information and static information of the Retimer card in response to the management controller receiving an information collection command input by a user, and update the attribute variables into the target database; A detection unit, used for detecting whether the Retimer card is in place according to the integrated circuit bus; A toolkit determining unit, configured to determine a software development toolkit corresponding to the Retimer card if the Retimer card is in place; The collecting unit is used for collecting the dynamic information and static information of the Retimer card based on the software development kit of the Retimer card and according to the configuration information stored in the shared memory, and updating the information into the target database.
[0023] As an optional implementation of the embodiment of the present disclosure, the toolkit determination unit is specifically used to: If the Retimer card is in place, the device identification of the Retimer card is read; the manufacturer type of the Retimer card is determined according to the device identification of the Retimer card; and the software development kit of the Retimer card is determined according to the manufacturer type of the Retimer card.
[0024] As an optional implementation of the embodiment of the present disclosure, the detection unit is specifically used to: Sending a read command to the Retimer card via the integrated circuit bus; If the Retimer card returns the device identification of the Retimer card in response to the read command, it is determined that the Retimer card is in place.
[0025] As an optional implementation of the embodiment of the present disclosure, the device further includes: The information acquisition module is used to respond to the information acquisition command received by the management controller and obtain the dynamic information and static information of the Retimer card from the target database based on the redfish interface; the redfish interface is used to obtain the information of multiple Retimer cards of multiple servers; wherein the management controller is installed in the multiple servers.
[0026] As an optional implementation of the embodiment of the present disclosure, the information acquisition module is specifically used to: In response to the information acquisition command received by the management controller, the interface type of the redfish interface is acquired; the interface type includes: a dynamic information acquisition interface and a static information acquisition interface; According to the interface type, a target interface processing function is called to read the dynamic information and static information of the Retimer card from the target database.
[0027] As an optional implementation of the embodiment of the present disclosure, the information acquisition command carries a target uniform resource locator, and the target uniform resource locator includes a target path for acquiring dynamic information and static information of the Retimer card; the information acquisition module is further used to: In response to the management controller receiving the target uniform resource locator input by the user, the dynamic information and static information of the Retimer card are acquired from the target database based on the redfish interface.
[0028] As an optional implementation of the embodiment of the present disclosure, the information acquisition module is further used to: In response to the management controller receiving the periodic access operation of the target monitoring application to the target database, the dynamic information and static information of the Retimer card are obtained from the target database based on the redfish interface.
[0029] In a third aspect, an embodiment of the present disclosure provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method for obtaining Retimer card information described in the first aspect or any implementation of the first aspect is implemented.
[0030] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for obtaining Retimer card information described in the first aspect or any implementation of the first aspect is implemented.
[0031] The Retimer card information acquisition method provided by the disclosed embodiment, in response to the startup of the management controller, stores the configuration information corresponding to the information acquisition configuration file of the Retimer card into the shared memory of the management controller, and in response to the management controller receiving the information acquisition command input by the user, collects multiple Retimer card information in real time according to the configuration information stored in the shared memory, and stores the multiple Retimer cards into the target database. Since the configuration information includes whether to collect each Retimer card information and the collection frequency of each Retimer card information, multiple information of the Retimer card can be fully collected in real time according to the configuration information, avoiding the problem that the monitored Retimer card information is relatively single and the real-time operation information of the Retimer card cannot be fully monitored by only monitoring and controlling the temperature of the Retimer card. The real-time operation information of the Retimer card can be fully monitored through the configuration information, and the long-term stable operation of the Retimer card can be ensured. In addition, storing the configuration information in the shared memory can reduce I / O operations, and the memory access speed is faster than the disk access speed, which can achieve fast reading and updating. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0034] Figure 1 One of the flow charts of a method for obtaining Retimer card information provided in an embodiment of the present disclosure; Figure 2 A second flow chart of a method for obtaining Retimer card information provided in an embodiment of the present disclosure; Figure 3 A third flowchart of a method for obtaining Retimer card information provided in an embodiment of the present disclosure; Figure 4 A fourth flowchart of a method for obtaining Retimer card information provided in an embodiment of the present disclosure; Figure 5 This is one of the structural schematic diagrams of a Retimer card information acquisition device provided in an embodiment of the present disclosure; Figure 6A second structural diagram of a Retimer card information acquisition device provided in an embodiment of the present disclosure; Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0035] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.
[0036] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.
[0037] In the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way. In addition, in the description of the embodiments of the present invention, unless otherwise specified, the meaning of "multiple" refers to two or more.
[0038] Terminology explanation: BMC: Baseboard Management Controller is a management controller unique to the server. It monitors the temperature, voltage, fan, power supply, etc. of the device components on the server and makes corresponding adjustments to ensure that the server is in a healthy state.
[0039] IPMI: Intelligent Platform Management Interface. Intelligent Platform Management Interface is a standardized interface for monitoring and managing server hardware. Through this interface, system administrators can remotely manage and monitor servers from any location.
[0040] PCIe: Peripheral Component Interconnect Express, is a high-speed serial computer expansion bus standard.
[0041] Retimer card: mainly used for signal relay in the server. When the signal distance between the server and the external graphics card box GPUBOX (an external device used to improve computer graphics performance) is long, a Retimer card is needed to assist in signal transmission. Generally, a Retimer card is usually integrated into a circuit board (also known as a PCB board) or plugged into the server.
[0042] Redfish: A management standard based on HTTPs services that uses RESTful interfaces to implement device management. Administrators can use the Redfish interface to centrally manage multiple servers, including remote monitoring, power control, and firmware upgrades.
[0043] SDK: Software Development Kit is a set of development tools that provides developers with the tools, libraries, and sample codes needed to create software applications.
[0044] Redis: Remote Dictionary Server, or remote dictionary service, is an open source log-type, Key-Value database written in ANSI C language, supporting the network, and can be memory-based or persistent.
[0045] Compared with traditional server architecture, AI server architecture is often more complex, so Retimer cards are generally deployed in AI servers. Retimer cards are mainly used to enhance PCIe (Peripheral Component Interconnect Express, a high-speed serial computer expansion bus standard) signals to ensure data integrity during long-distance transmission or in complex environments. At present, multiple Retimer cards are generally deployed on AI servers, and the long-term stable operation of Retimer cards is a strong guarantee for AI services.
[0046] In the related art, the temperature of the Retimer card is monitored in real time through the BMC (Baseboard Management Controller). When the temperature is high, the BMC controls the fan of the server to increase the speed to dissipate heat, so as to prevent the Retimer card from being overheated and unable to operate normally. However, by only monitoring and controlling the temperature of the Retimer card, it is impossible to fully monitor the real-time operation information of the Retimer card, resulting in the inability to ensure the long-term stable operation of the Retimer card. Therefore, how to fully obtain the real-time operation information of the Retimer card and ensure the long-term stable operation of the Retimer card is a problem that needs to be solved urgently.
[0047] Based on the above content, an embodiment of the present invention provides a method for obtaining Retimer card information, which is applied to a baseboard management controller. Specifically, refer to Figure 1 As shown, the method for obtaining Retimer card information provided by the embodiment of the present invention includes the following steps: S10. In response to the start-up of the management controller, the configuration information corresponding to the information collection configuration file of the Retimer card is stored in the shared memory of the management controller.
[0048] The information collection configuration file is used to record multiple configuration information of the Retimer card; the configuration information includes: whether to collect information of each Retimer card and the collection frequency of each Retimer card information.
[0049] The management controller is used to monitor and manage hardware devices or software systems. According to different application scenarios, the management controller can be divided into multiple types. In the embodiment of the present disclosure, the management controller can be a baseboard management controller BMC. BMC is a management controller unique to the server. It monitors the temperature, voltage, fan, power supply, etc. of the device components on the server and makes corresponding adjustments to ensure that the server is in a healthy state.
[0050] Specifically, the baseboard management controller includes an information configuration module and an information collection module. The information configuration module is used to store the configuration information corresponding to the information collection configuration file of the Retimer card into the shared memory of the management controller. The configuration file is used to record multiple configuration information of the Retimer card; the configuration information includes: whether to collect the information of each Retimer card and the collection frequency of each Retimer card information.
[0051] In some special cases, for example, the Retimer card of some manufacturers is very stable, and there is no need to do a comprehensive real-time detection of the Retimer card information, and only some information needs to be collected. Therefore, the collection status of different information of the Retimer card can be set, such as enabling or disabling collection. In addition, since different information has different changing frequencies, some information changes in real time, while some information changes only when the version is updated, different collection frequencies can be set for different information.
[0052] S20. In response to the management controller receiving an information collection command input by the user, the management controller collects multiple Retimer card information in real time according to the configuration information stored in the shared memory, and stores the multiple Retimer card information in a target database.
[0053] The target database may be, but is not limited to, a remote dictionary service database.
[0054] Specifically, the information collection configuration file is used to store configuration information, that is, whether to collect each Retimer card information and the collection frequency of each Retimer card information. The configuration information is stored in the shared memory, which can reduce I / O operations, and the memory access speed is faster than the disk access speed, which can achieve fast reading and updating. In addition, the configuration information is stored in the shared memory, which can be conveniently updated in real time. Multiple processes or threads can access and modify the configuration information in the shared memory at the same time without re-reading the configuration file. In response to the management controller receiving the information collection command input by the user, multiple Retimer card information is collected in real time according to the configuration information stored in the shared memory, and the multiple Retimer card information is stored in the target database.
[0055] The Retimer card information acquisition method provided by the disclosed embodiment, in response to the startup of the management controller, stores the configuration information corresponding to the information acquisition configuration file of the Retimer card into the shared memory of the management controller, and in response to the management controller receiving the information acquisition command input by the user, collects multiple Retimer card information in real time according to the configuration information stored in the shared memory, and stores the multiple Retimer cards into the target database. Since the configuration information includes whether to collect each Retimer card information and the collection frequency of each Retimer card information, multiple information of the Retimer card can be fully collected in real time according to the configuration information, avoiding the problem that the monitored Retimer card information is relatively single and the real-time operation information of the Retimer card cannot be fully monitored by only monitoring and controlling the temperature of the Retimer card. The real-time operation information of the Retimer card can be fully monitored through the configuration information, and the long-term stable operation of the Retimer card can be ensured. In addition, storing the configuration information in the shared memory can reduce I / O operations, and the memory access speed is faster than the disk access speed, which can achieve fast reading and updating.
[0056] Optionally, the multiple Retimer card information includes: dynamic information and static information of the Retimer card; the dynamic information is used to indicate the running status of the Retimer card; the static information is used to indicate the product parameters of the Retimer card; the dynamic information includes: the real-time temperature of the Retimer card, the connection status of the link, the statistical information of different channels, the in-place status of different ports and the number of reset times of the Retimer card; the static information includes: the manufacturer type, the product model, the product serial number and the firmware version.
[0057] Specifically, the real-time temperature of the Retimer card is an important indicator for monitoring its operating status. Excessive temperature may affect the performance and stability of the card. When the temperature exceeds the threshold, you need to check the fan module, ambient temperature, or clear the blockage. The link connection status of the Retimer card can be monitored in many ways. If the link connection status is abnormal, you may need to check the various stages of the link initialization process. The statistical information of different channels of the Retimer card includes data transmission volume, error rate, number of retransmissions, etc. This information can help diagnose the health status of the link. The in-place status of different ports of the Retimer card can be determined by monitoring the in-place signal of the port. The number of resets of the Retimer card is an important indicator for monitoring its stability and health status. Too many resets may indicate that the link connection is unstable or there is a hardware problem. If the number of resets is abnormal, you need to check the initialization process and hardware connection of the Retimer card.
[0058] As the management controller of the server, BMC generally monitors the temperature of the Retimer card in real time. When the temperature is high, BMC will control the server fan to increase the speed to dissipate heat, so as to prevent the Retimer card from being overheated and unable to operate normally. However, if the temperature of the Retimer card is only monitored and controlled by BMC, the monitored information is relatively single, which cannot fully reflect the actual operating status of the Retimer card, and cannot guarantee the long-term stable operation of the Retimer card. Since the configuration information includes whether to collect the information of each Retimer card and the collection frequency of each Retimer card information, the dynamic information and static information of the Retimer card can be fully collected in real time according to the configuration information, so as to realize comprehensive monitoring of the real-time operating information of the Retimer card and ensure the long-term stable operation of the Retimer card.
[0059] Reference Figure 2 As shown, in some embodiments, the above step S10 (storing the configuration information corresponding to the information collection configuration file of the Retimer card into the shared memory of the management controller in response to the startup of the management controller) can be implemented by the following steps: S21. In response to the start-up of the management controller, clear the shared memory of the management controller.
[0060] S22: Check whether the information collection configuration file exists in the preset path.
[0061] If there is an information collection configuration file under the preset path, execute steps S23-S24; if there is no information collection configuration file under the preset path, execute steps S25-S26.
[0062] S23. Read first configuration information from the information collection configuration file.
[0063] S24. Store the first configuration information in the shared memory of the management controller.
[0064] Specifically, taking the management controller as a baseboard management controller as an example, when the baseboard management controller is started, the shared memory of the baseboard management controller is first reset, and the baseboard management controller checks whether there is an information collection configuration file under the preset path according to the preset configuration file name, and the information collection configuration file stores a pre-set first configuration information. If the information collection configuration file exists, the first configuration information is read from the information collection configuration file, and then the first configuration information is stored in the shared memory of the baseboard management controller.
[0065] Exemplarily, the first configuration information can be set as follows: real-time temperature of the Retimer card, enable collection, and the collection frequency is 1 second; link connection status, enable collection, and the collection frequency is 10 seconds; channel 1 data transmission volume, enable collection, and the collection frequency is 2 seconds; channel 1 retransmission number, enable collection, and the collection frequency is 5 seconds; channel 1 in-position status, enable collection, and the collection frequency is 6 seconds; reset number, enable collection, and the collection frequency is 10 seconds; firmware version, enable collection, and the collection frequency is 1 day; manufacturer type, enable collection, and the collection frequency is 1 day, etc.
[0066] S25. Create a target information collection configuration file based on preset configuration conditions, and read second configuration information from the target information collection configuration file; S26. Store the second configuration information in the shared memory of the management controller.
[0067] Specifically, taking the management controller as a baseboard management controller as an example, when the baseboard management controller is started, the shared memory of the baseboard management controller is first reset, and the baseboard management controller checks whether the information collection configuration file exists under the preset path according to the preset configuration file name. If the information collection configuration file does not exist, a target information collection configuration file is created based on preset configuration conditions. The preset configuration conditions can be understood as default configuration information, and the second configuration information is read from the target information collection configuration file, and the second configuration information is stored in the shared memory of the baseboard management controller.
[0068] Exemplarily, the second configuration information can be set as follows: real-time temperature of the Retimer card, enable collection, and the collection frequency is 500 milliseconds; link connection status, enable collection, and the collection frequency is 5 seconds; channel 1 data transmission volume, enable collection, and the collection frequency is 1 second; channel 1 retransmission number, enable collection, and the collection frequency is 5 seconds; channel 1 in-position status, enable collection, and the collection frequency is 2 seconds; reset number, enable collection, and the collection frequency is 10 seconds; firmware version, enable collection, and the collection frequency is 1 day; manufacturer type, enable collection, and the collection frequency is 1 day, etc.
[0069] It is understandable that storing the configuration information (i.e., the first configuration information or the second configuration information in the embodiment of the present disclosure) in the shared memory can reduce I / O operations, and the memory access speed is faster than the disk access speed, which can achieve fast reading and updating. In addition, the configuration information is stored in the shared memory, which can be easily updated in real time, and multiple processes or threads can access and modify the configuration information in the shared memory at the same time without re-reading the configuration file.
[0070] In some embodiments, after executing the above step S10 (storing the configuration information corresponding to the information collection configuration file of the Retimer card into the shared memory of the management controller in response to the startup of the management controller), the following steps may also be executed: In response to the management controller receiving a configuration modification command input by a user, updating the configuration information stored in the shared memory; The information collection configuration file of the Retimer card is updated according to the configuration information stored in the shared memory.
[0071] The configuration modification command includes a first interface command or a second interface command, the first interface command is used to modify at least one configuration information included in the first configuration information; the second interface command is used to modify at least one configuration information included in the second configuration information.
[0072] Optionally, in response to the management controller receiving a first interface command input by a user, the first configuration information stored in the shared memory is updated. According to the first configuration information stored in the shared memory, the information collection configuration file of the Retimer card is updated.
[0073] Optionally, in response to a second interface command input by a user from the management controller interface, the second configuration information stored in the shared memory is updated. According to the second configuration information stored in the shared memory, the target information collection configuration file of the Retimer card is updated.
[0074] The first interface command and the second interface command may both be Intelligent Platform Management Interface (IPMI) commands, which are standardized interfaces for monitoring and managing server hardware. Through this interface, system administrators can remotely manage and monitor servers at any location. That is, the configuration information of one or more Retimer card information may be modified through IPMI commands.
[0075] Specifically, in response to the startup of the management controller, the first configuration information or the second configuration information is stored in the shared memory of the management controller. In response to the management controller receiving a first interface command input by a user, the first configuration information stored in the shared memory is updated, and the information collection configuration file of the Retimer card is updated according to the first configuration information stored in the shared memory. In response to the management controller receiving a second interface command input by a user, the second configuration information in the shared memory is updated, and the target information collection configuration file of the Retimer card is updated according to the second configuration information stored in the shared memory.
[0076] When the baseboard management controller is restarted, the information in the shared memory is reset, but the information in the configuration file is retained to facilitate re-reading after the baseboard management controller is started.
[0077] Exemplarily, in response to a first interface command input by a user, the first configuration information stored in the shared memory is updated. For example, the configuration information corresponding to the real-time temperature of the Retimer card included in the first configuration information: enable collection, the collection frequency is 1 second, is modified to: enable collection, the collection frequency is 500 milliseconds. Alternatively, the configuration information corresponding to the real-time temperature of the Retimer card included in the first configuration information: enable collection, the collection frequency is 1 second, is modified to: enable collection, the collection frequency is 500 milliseconds; and, the connection status of the link included in the first configuration information: enable collection, the collection frequency is 10 seconds, is modified to enable collection, the collection frequency is 5 seconds, etc.
[0078] Exemplarily, in response to the second interface command input by the user, the second configuration information stored in the shared memory is updated. For example, the configuration information corresponding to the real-time temperature of the Retimer card included in the second configuration information: enable collection, the collection frequency is 500 milliseconds, is modified to: enable collection, the collection frequency is 300 milliseconds. Alternatively, the configuration information corresponding to the real-time temperature of the Retimer card included in the first configuration information: enable collection, the collection frequency is 500 milliseconds, is modified to: enable collection, the collection frequency is 300 milliseconds; and the connection status of the link included in the first configuration information: enable collection, the collection frequency is 5 seconds, is modified to enable collection, the collection frequency is 2 seconds, etc.
[0079] In the disclosed embodiment, when it is necessary to update the collection frequency of the Retimer card information or to set to disable / enable collection, the user is allowed to send the set configuration information to the baseboard management controller through the intelligent platform management interface command, and the baseboard management controller updates the shared memory and configuration file after receiving the configuration information. In this way, it is convenient to manage the configuration file of the Retimer card and it is convenient for the user to modify the configuration information of each Retimer card information.
[0080] Reference Figure 3 As shown, in some embodiments, the above step S20 (in response to the management controller receiving the information collection command input by the user, collecting multiple Retimer card information in real time according to the configuration information stored in the shared memory, and storing the multiple Retimer card information in the target database) can be implemented as follows: S31. In response to the management controller receiving an information collection command input by a user, the management controller initializes the attribute variables of the dynamic information and static information of the Retimer card and updates them to the target database.
[0081] S32: Detect whether the Retimer card is in place according to the integrated circuit bus.
[0082] If the Retimer card is in place, the software development kit of the Retimer card is determined, that is, steps S33 to S35 are executed. If the Retimer card is not in place, the Retimer card information is not collected.
[0083] S33, reading the device identification of the Retimer card.
[0084] The device identifier of the Retimer card may be a VendorID, which is a 16-bit identifier used to uniquely identify a device manufacturer and is used to distinguish different hardware vendors. The identifier is allocated by a special interest group PCI-SIG.
[0085] S34: Determine the manufacturer type of the Retimer card according to the device identification of the Retimer card.
[0086] S35: Determine a software development kit for the Retimer card according to the manufacturer type of the Retimer card.
[0087] S36. Based on the software development kit of the Retimer card, according to the configuration information stored in the shared memory, collect dynamic information and static information of the Retimer card, and update them into the target database.
[0088] Specifically, corresponding attribute variables are defined for the dynamic information and static information of the Retimer card, for example, the attribute retimer1.temp represents the temperature of Retimer card 1. When the baseboard management controller is started, the value of the Retimer card attribute variable is initialized to -1 or an empty string, indicating that the Retimer card information has not been collected and updated to the target database. According to the I2C (Inter-Integrated Circuit) link of the Retimer card, it is detected whether the Retimer card is in place. If the Retimer card is not in place, the Retimer card information is not collected. If the Retimer card is in place, the device identification of the Retimer card is read through the integrated circuit bus, and then the manufacturer type is determined according to the device identification of the Retimer card. According to the manufacturer type of the Retimer card, the software development kit of the manufacturer of the Retimer card is determined. According to the configuration information, based on the software development kit of the Retimer card, the dynamic information and static information of the Retimer card are collected and updated to the target database. Assuming that there are multiple Retimer cards, the dynamic information and static information of the Retimer cards are collected through the respective software development kits SDK of the manufacturers, and updated into the target database.
[0089] In some embodiments, the above step S32 (detecting whether the Retimer card is in place according to the integrated circuit bus) can be implemented as follows: Sending a read command to the Retimer card via the integrated circuit bus; If the Retimer card returns the device identification of the Retimer card in response to the read command, it is determined that the Retimer card is in place.
[0090] Specifically, the baseboard management controller is connected to the Retimer card through the integrated circuit bus, and then sends a read command to the Retimer card through the integrated circuit bus. If the Retimer card responds to the read command and returns the device identification of the Retimer card, it is determined that the Retimer card is in place.
[0091] Under the wave of artificial intelligence, multiple Retimer cards are generally deployed on AI servers today, and the long-term stable operation of Retimer cards is a strong guarantee for AI services. When a Retimer card fails, the relevant technology uses the SDK tool provided by the Retimer card manufacturer to collect the operation information of the Retimer card for further diagnosis and analysis. However, there are two problems: first, different Retimer card manufacturers have their own SDK tools, and the operation methods are not uniform for users, which is very inconvenient to use; second, when a serious failure occurs in the Retimer card, the operation information cannot be collected through the manufacturer's SDK tool, which further leads to the inability to analyze the cause of the problem. Therefore, in the case of multiple Retimer card manufacturers, how to provide users with a unified operation interface to comprehensively obtain the real-time operation information of the Retimer card, so that users can predict potential problems in advance and take effective treatment measures to ensure the long-term stable operation of the Retimer card is a technical problem that technicians in this field need to solve.
[0092] In view of the above problems, the embodiment of the present invention further provides a method for obtaining Retimer card information. Figure 4 As shown, in some embodiments, the method for obtaining Retimer card information provided by the embodiment of the present invention includes the following steps: S41. In response to the start-up of the management controller, the configuration information corresponding to the information collection configuration file of the Retimer card is stored in the shared memory of the management controller.
[0093] The configuration information includes: whether to collect information of each Retimer card and the collection frequency of information of each Retimer card.
[0094] S42: In response to the management controller receiving the information collection command input by the user, the management controller collects multiple Retimer card information in real time according to the configuration information stored in the shared memory, and stores the multiple Retimer card information in a target database.
[0095] S43. In response to the information acquisition command received by the management controller, the dynamic information and static information of the Retimer card are acquired from the target database based on the redfish interface.
[0096] The redfish interface is used to obtain information of multiple Retimer cards of multiple servers; and the management controller is installed on each of the multiple servers.
[0097] Specifically, for different Retimer card manufacturers, a unified redfish interface for Retimer card information is provided to users to normalize user operations. That is, the redfish interface can be used to obtain multiple Retimer card information of multiple servers, and the multiple servers can all be installed with the management controller. The management controller can be a baseboard management controller.
[0098] Optionally, the above step S43 (in response to the information acquisition command received by the management controller, acquiring multiple Retimer card information from the target database based on the redfish interface) can be implemented by the following steps: (1) In response to the information acquisition command received by the management controller, the interface type of the redfish interface is acquired.
[0099] The interface types include: a dynamic information acquisition interface and a static information acquisition interface.
[0100] (2) According to the interface type, the target interface processing function is called to read the dynamic information and static information of the Retimer card from the target database.
[0101] Specifically, when the redfish interface is called, the baseboard management controller first checks which interface type is called, and then executes the interface processing function corresponding to the interface type. In the interface processing function, the dynamic information and static information of the Retimer card are read from the target database, and then returned to the user in a preset data format. For example, the preset data format can be JSON (JavaScript Object Notation, a lightweight data exchange format).
[0102] Optionally, the above step S43 (obtaining the dynamic information and static information of the Retimer card from the target database based on the redfish interface) can be implemented in the following two ways: Method 1: In response to the management controller receiving the target uniform resource locator input by the user, the dynamic information and static information of the Retimer card are obtained from the target database based on the redfish interface.
[0103] The information acquisition command carries a target uniform resource locator, and the target uniform resource locator includes a target path for acquiring dynamic information and static information of the Retimer card.
[0104] Specifically, the method not only supports the user to manually obtain the dynamic information and static information of the Retimer card from the target database through the redfish interface, but also obtains the dynamic information and static information of the Retimer card from the target database based on the redfish interface in response to the target URL address input by the user.
[0105] Method 2: In response to the management controller receiving the periodic access operation of the target monitoring application to the target database, the dynamic information and static information of the Retimer card are obtained based on the redfish interface.
[0106] Specifically, the method also supports the automatic and regular calling of the redfish interface by the monitoring system to obtain the dynamic and static information of the Retimer card. The user can set the regular calling of the redfish interface on the target monitoring application, and obtain the dynamic and static information of the Retimer card based on the redfish interface in response to the periodic access operation of the target monitoring application to the target database.
[0107] In the disclosed embodiment, Redfish provides users with a unified interface for obtaining information, which greatly simplifies user operations and improves user experience. It supports users to automatically obtain Retimer card information on a regular basis through the monitoring system, predict potential problems that may occur in advance, and take effective processing measures to ensure the long-term stable operation of the Retimer card.
[0108] The Retimer card information acquisition method provided by the disclosed embodiment, in response to the startup of the management controller, stores the configuration information corresponding to the information acquisition configuration file of the Retimer card into the shared memory of the management controller, and in response to the management controller receiving the information acquisition command input by the user, collects multiple Retimer card information in real time according to the configuration information stored in the shared memory, and stores the multiple Retimer cards into the target database. Since the configuration information includes whether to collect each Retimer card information and the collection frequency of each Retimer card information, multiple information of the Retimer card can be fully collected in real time according to the configuration information, avoiding the problem that the monitored Retimer card information is relatively single and the real-time operation information of the Retimer card cannot be fully monitored by only monitoring and controlling the temperature of the Retimer card. The real-time operation information of the Retimer card can be fully monitored through the configuration information, and the long-term stable operation of the Retimer card can be ensured. In addition, storing the configuration information in the shared memory can reduce I / O operations, and the memory access speed is faster than the disk access speed, which can achieve fast reading and updating. Redfish provides users with a unified interface for obtaining information, greatly simplifying user operations and improving user experience; it supports users to automatically obtain Retimer card information through the monitoring system, predict potential problems in advance, and take effective measures to ensure the long-term stable operation of the Retimer card. Through real-time monitoring of the dynamic and static information of the Retimer card, and providing a unified Redfish interface for users to automatically collect Retimer card information, the accuracy and timeliness of the information obtained by users are ensured, providing a strong guarantee for the long-term stable operation of the Retimer card and avoiding unnecessary losses.
[0109] Figure 5 A schematic diagram of the structure of a Retimer card information acquisition device 500 provided by the present disclosure is shown in FIG. Figure 5 As shown, the device of this embodiment includes: an information configuration module 510 and an information collection module 520, wherein: The information configuration module 510 is used to store the configuration information corresponding to the information collection configuration file of the Retimer card into the shared memory of the management controller in response to the startup of the management controller; the configuration information includes: whether to collect the information of each Retimer card and the collection frequency of each Retimer card information; The information collection module 520 is used to collect multiple Retimer card information in real time according to the configuration information stored in the shared memory in response to the management controller receiving the information collection command input by the user, and store the multiple Retimer card information in the target database.
[0110] As an optional implementation of the embodiment of the present disclosure, the device further includes: A configuration information modification module, configured to update the configuration information stored in the shared memory in response to the management controller receiving a configuration modification command input by a user; The configuration information updating module is used to update the information collection configuration file of the Retimer card according to the configuration information stored in the shared memory.
[0111] As an optional implementation of the embodiment of the present disclosure, the information configuration module includes: A reset unit, configured to clear the shared memory of the management controller in response to the startup of the management controller; A checking unit, used to check whether the information collection configuration file exists in a preset path; A reading unit, configured to read the first configuration information from the information collection configuration file if the information collection configuration file exists under the preset path; A storage unit is used to store the first configuration information in the shared memory of the management controller.
[0112] As an optional implementation of the embodiment of the present disclosure, the inspection unit is further used to: If the information collection configuration file does not exist under the preset path, creating a target information collection configuration file based on preset configuration conditions, and reading the second configuration information from the target information collection configuration file; The second configuration information is stored in the shared memory of the management controller.
[0113] As an optional implementation of the embodiment of the present disclosure, the multiple Retimer card information includes: dynamic information and static information of the Retimer card; the dynamic information is used to indicate the running status of the Retimer card; the static information is used to indicate the product parameters of the Retimer card; the dynamic information includes: the real-time temperature of the Retimer card, the connection status of the link, the statistical information of different channels, the in-place status of different ports and the number of reset times of the Retimer card; the static information includes: the manufacturer type, the product model, the product serial number and the firmware version.
[0114] As an optional implementation of the embodiment of the present disclosure, the information collection module includes: an initialization unit, configured to initialize attribute variables of the dynamic information and static information of the Retimer card in response to the management controller receiving an information collection command input by a user, and update the attribute variables into the target database; A detection unit, used for detecting whether the Retimer card is in place according to the integrated circuit bus; A toolkit determining unit, configured to determine a software development toolkit corresponding to the Retimer card if the Retimer card is in place; The collecting unit is used for collecting the dynamic information and static information of the Retimer card based on the software development kit of the Retimer card and according to the configuration information stored in the shared memory, and updating the information into the target database.
[0115] As an optional implementation of the embodiment of the present disclosure, the toolkit determination unit is specifically used to: If the Retimer card is in place, the device identification of the Retimer card is read; the manufacturer type of the Retimer card is determined according to the device identification of the Retimer card; and the software development kit of the Retimer card is determined according to the manufacturer type of the Retimer card.
[0116] As an optional implementation of the embodiment of the present disclosure, the detection unit is specifically used to: Sending a read command to the Retimer card via the integrated circuit bus; If the Retimer card returns the device identification of the Retimer card in response to the read command, it is determined that the Retimer card is in place.
[0117] Figure 6 A schematic diagram of the structure of another Retimer card information acquisition device 600 provided by the present disclosure, as shown in FIG. Figure 6 As shown, the device of this embodiment includes: an information configuration module 610, an information collection module 620 and an information acquisition module 630, wherein: The information configuration module 610 is used to store the configuration information corresponding to the information collection configuration file of the Retimer card into the shared memory of the management controller in response to the startup of the management controller; the configuration information includes: whether to collect the information of each Retimer card and the collection frequency of each Retimer card information; The information collection module 620 is used to collect multiple Retimer card information in real time according to the configuration information stored in the shared memory in response to the management controller receiving the information collection command input by the user, and store the multiple Retimer card information in the target database; The information acquisition module 630 is used to respond to the information acquisition command received by the management controller and obtain the dynamic information and static information of the Retimer card from the target database based on the redfish interface; the redfish interface is used to obtain the information of multiple Retimer cards of multiple servers; wherein the management controller is installed in the multiple servers.
[0118] As an optional implementation of the embodiment of the present disclosure, the information acquisition module 630 is specifically used to: In response to the information acquisition command received by the management controller, the interface type of the redfish interface is acquired; the interface type includes: a dynamic information acquisition interface and a static information acquisition interface; According to the interface type, a target interface processing function is called to read the dynamic information and static information of the Retimer card from the target database.
[0119] As an optional implementation of the embodiment of the present disclosure, the information acquisition command carries a target uniform resource locator, and the target uniform resource locator includes a target path for acquiring dynamic information and static information of the Retimer card; the information acquisition module 630 is further used to: In response to the management controller receiving the target uniform resource locator input by the user, the dynamic information and static information of the Retimer card are acquired from the target database based on the redfish interface.
[0120] As an optional implementation of the embodiment of the present disclosure, the information acquisition module 630 is further used to: In response to the management controller receiving the periodic access operation of the target monitoring application to the target database, the dynamic information and static information of the Retimer card are obtained from the target database based on the redfish interface.
[0121] The device of this embodiment corresponds to a technical solution that can be used to execute the above method embodiment, and its implementation principle and technical effects are similar, which will not be repeated here.
[0122] The Retimer card information acquisition device provided by the embodiment of the present disclosure, in response to the start of the management controller, stores the configuration information corresponding to the information acquisition configuration file of the Retimer card into the shared memory of the management controller, and in response to the management controller receiving the information acquisition command input by the user, collects multiple Retimer card information in real time according to the configuration information stored in the shared memory, and stores multiple Retimer cards in the target database. Since the configuration information includes whether to collect each Retimer card information and the collection frequency of each Retimer card information, multiple information of the Retimer card can be fully collected in real time according to the configuration information, avoiding the problem that the monitored Retimer card information is relatively single and the real-time operation information of the Retimer card cannot be fully monitored by only monitoring and controlling the temperature of the Retimer card. The real-time operation information of the Retimer card can be fully monitored through the configuration information, and the long-term stable operation of the Retimer card can be ensured. In addition, storing the configuration information in the shared memory can reduce I / O operations, and the memory access speed is faster than the disk access speed, which can achieve fast reading and updating.
[0123] Based on the same inventive concept, an embodiment of the present invention further provides an electronic device. Figure 7 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, such as Figure 7 As shown, the electronic device provided in this embodiment includes: a memory 71 and a processor 72, the memory 71 is used to store computer programs; the processor 72 is used to execute the steps executed by the Retimer card information acquisition method provided in the above embodiment when calling the computer program.
[0124] 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 steps executed by the method for obtaining Retimer card information provided in the above embodiment are implemented.
[0125] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, electronic devices, and media. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.
[0126] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0127] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0128] Computer readable media include permanent and non-permanent, removable and non-removable storage media. Storage media can be implemented by any method or technology to store information, and the information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0129] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for obtaining Retimer card information, characterized in that: include: In response to the start of the management controller, the configuration information corresponding to the information collection configuration file of the Retimer card is stored in the shared memory of the management controller; the configuration information includes: whether to collect the information of each Retimer card and the collection frequency of each Retimer card information; In response to the management controller receiving the information collection command input by the user, the management controller collects multiple Retimer card information in real time according to the configuration information stored in the shared memory, and stores the multiple Retimer card information in the target database.
2. The method according to claim 1, characterized in that After the configuration information corresponding to the information collection configuration file of the Retimer card is stored in the shared memory of the management controller in response to the startup of the management controller, the method further includes: In response to the management controller receiving a configuration modification command input by a user, updating the configuration information stored in the shared memory; The information collection configuration file of the Retimer card is updated according to the configuration information stored in the shared memory.
3. The method according to claim 1, characterized in that In response to the start-up of the management controller, storing the configuration information corresponding to the information collection configuration file of the Retimer card in the shared memory of the management controller includes: In response to the start-up of the management controller, clearing the shared memory of the management controller; Check whether the information collection configuration file exists in the preset path; If the information collection configuration file exists under the preset path, read the first configuration information from the information collection configuration file; The first configuration information is stored in the shared memory of the management controller.
4. The method according to claim 3, characterized in that The checking whether the information collection configuration file exists in the preset path includes: If the information collection configuration file does not exist under the preset path, creating a target information collection configuration file based on preset configuration conditions, and reading the second configuration information from the target information collection configuration file; The second configuration information is stored in the shared memory of the management controller.
5. The method according to claim 1, characterized in that The multiple Retimer card information includes: dynamic information and static information of the Retimer card; the dynamic information is used to indicate the running status of the Retimer card; the static information is used to indicate the product parameters of the Retimer card; the dynamic information includes: the real-time temperature of the Retimer card, the connection status of the link, the statistical information of different channels, the in-place status of different ports and the number of reset times of the Retimer card; the static information includes: the manufacturer type, the product model, the product serial number and the firmware version.
6. The method according to claim 5, characterized in that In response to the management controller receiving an information collection command input by a user, collecting multiple Retimer card information in real time according to the configuration information stored in the shared memory, and storing the multiple Retimer card information in a target database, including: In response to the management controller receiving an information collection command input by a user, initializing attribute variables of the dynamic information and static information of the Retimer card, and updating them into the target database; Detecting whether the Retimer card is in place according to the integrated circuit bus; If the Retimer card is in place, determining a software development kit corresponding to the Retimer card; Based on the software development kit of the Retimer card, the dynamic information and static information of the Retimer card are collected according to the configuration information stored in the shared memory, and updated into the target database.
7. The method according to claim 6, characterized in that If the Retimer card is in place, determining a software development kit for the Retimer card includes: If the Retimer card is in place, read the device identification of the Retimer card; Determining the manufacturer type of the Retimer card according to the device identification of the Retimer card; According to the manufacturer type of the Retimer card, a software development kit of the Retimer card is determined.
8. The method according to claim 6, characterized in that The detecting whether the Retimer card is in place according to the integrated circuit bus includes: Sending a read command to the Retimer card via the integrated circuit bus; If the Retimer card returns the device identification of the Retimer card in response to the read command, it is determined that the Retimer card is in place.
9. The method according to claim 5, characterized in that In response to the management controller receiving the information collection command input by the user, the method further includes collecting multiple Retimer card information in real time according to the configuration information stored in the shared memory, and storing the multiple Retimer card information in the target database: In response to the information acquisition command received by the management controller, the dynamic information and static information of the Retimer card are acquired from the target database based on the redfish interface; the redfish interface is used to acquire multiple Retimer card information of multiple servers; wherein the management controller is installed on multiple servers.
10. The method according to claim 9, characterized in that The step of obtaining the plurality of Retimer card information from the target database based on the redfish interface in response to the information acquisition command received by the management controller includes: In response to the information acquisition command received by the management controller, the interface type of the redfish interface is acquired; the interface type includes: a dynamic information acquisition interface and a static information acquisition interface; According to the interface type, a target interface processing function is called to read the dynamic information and static information of the Retimer card from the target database.
11. The method according to claim 9, characterized in that The information acquisition command carries a target uniform resource locator, and the target uniform resource locator includes a target path for acquiring dynamic information and static information of the Retimer card; The step of obtaining the dynamic information and static information of the Retimer card from the target database based on the redfish interface in response to the information acquisition command received by the management controller includes: In response to the management controller receiving the target uniform resource locator input by the user, the dynamic information and static information of the Retimer card are acquired from the target database based on the redfish interface.
12. The method according to claim 9, characterized in that The step of obtaining the dynamic information and static information of the Retimer card from the target database based on the redfish interface in response to the information acquisition command received by the management controller includes: In response to the management controller receiving the periodic access operation of the target monitoring application to the target database, the dynamic information and static information of the Retimer card are obtained from the target database based on the redfish interface.
13. A device for acquiring information of a Retimer card, characterized in that: include: An information configuration module, configured to store configuration information corresponding to the information collection configuration file of the Retimer card into the shared memory of the management controller in response to the startup of the management controller; the configuration information includes: whether to collect information of each Retimer card and the collection frequency of each Retimer card information; The information collection module is used to respond to the management controller receiving the information collection command input by the user, collect multiple Retimer card information in real time according to the configuration information stored in the shared memory, and store the multiple Retimer card information in the target database.
14. An electronic device, characterized in that: include: A memory and a processor, the memory is used to store a computer program; the processor is used to execute the Retimer card information acquisition method according to any one of claims 1 to 12 when calling the computer program.
15. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method for obtaining the Retimer card information according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Link state diagnosis system and method with PCIe retimer
CN112463490A
BMC and BIOS asset information decoupling method, system and device
CN113900718A
PCIE (Peripheral Component Interface Express) card configuration method and device and medium
CN115525351A
Firmware updating method and device of retimer, storage medium and electronic equipment
CN117435224A
Configuration parameter import and export method and device, storage medium and electronic device
CN119179528A