Field replaceable unit (FRU) management method, device, and system

The configuration file of the FRU is automatically created by receiving the creation request, which solves the problem of high cost and low efficiency in replacing multiple hardware device FRUs in the existing technology, and realizes efficient management of FRU replacement.

WO2024221915A1PCT designated stage expired Publication Date: 2024-10-31XFUSION DIGITAL TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/135112
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-23
Filing Date
2023-11-29
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

In the existing technology, when replacing the FRUs of multiple hardware devices, it is necessary to develop, test and release versions of firmware programs for multiple management components, resulting in high cost and low efficiency.

Method used

By receiving the creation request, the FRU configuration file is automatically created, and the FRU is managed based on the carried configuration content, which reduces the cost of replacing the FRU and improves efficiency.

Benefits of technology

It reduces costs and improves efficiency when replacing FRUs, and avoids the process of developing, testing and versioning firmware programs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023135112_31102024_PF_FP_ABST
    Figure CN2023135112_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of computers, and provides a field replaceable unit (FRU) management method, a device, and a system. The method is used for a first device. On the basis that the first device comprises a target FRU, after receiving a creation request, the first device automatically responds to the creation request, automatically creates a configuration file of the target FRU on the basis of configuration content of the configuration file of the target FRU carried by the creation request, and then manages the target FRU on the basis of the created configuration file of the target FRU. A first device can automatically create a configuration file of a target FRU on the basis of a creation request, and therefore, compared with the situation in the related art that a configuration file of a target FRU can be configured for a first device only by performing processes such as development, test and version release on a firmware program, the present invention facilitates not only reduction of costs of replacing the target FRU, but also improvement of the efficiency of replacing the target FRU.
Need to check novelty before this filing date? Find Prior Art

Description

Field replaceable unit (FRU) management method, device, and system

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on April 23, 2023, with application number 202310443720.4 and application name “Field Replaceable Unit FRU Management Method, Equipment and System”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of computer technology, and in particular to a method, device, and system for managing a field replaceable unit (FRU). Background Art

[0003] A field replaceable unit (FRU) is a replaceable component on a hardware device. To manage a new FRU in a hardware device, the management component of the hardware device must be configured with a configuration file for the new FRU.

[0004] In related technologies, configuring a new FRU configuration file for a management component typically involves upgrading the management component's firmware. This typically involves a development, testing, and release process. Consequently, when simultaneously replacing FRUs on multiple hardware devices, the firmware for the management components of these devices must be developed, tested, and released for each of these devices, resulting in extremely high costs and low efficiency.

[0005] Summary of the Invention

[0006] The embodiments of the present application provide a FRU management method, device, and system that can automatically create a FRU configuration file, which not only helps to reduce the cost of replacing FRUs, but also helps to improve the efficiency of replacing FRUs.

[0007] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0008] In a first aspect, a field replaceable unit (FRU) management method is provided for a first device, the first device including a target FRU; the method includes: receiving a creation request, the creation request being used to request creation of a configuration file of the target FRU; the creation request includes configuration content in the configuration file of the target FRU; in response to the creation request, creating a configuration file of the target FRU based on the configuration content in the configuration file of the target FRU; and managing the target FRU based on the configuration file of the target FRU.

[0009] In this embodiment, based on the fact that the first device includes the target FRU, after receiving a creation request, the first device automatically creates a configuration file for the target FRU in response to the creation request based on the configuration content in the configuration file of the target FRU carried in the creation request, since the creation request carries the configuration content in the configuration file of the target FRU. Thereafter, the target FRU is managed based on the created configuration file of the target FRU. Since the first device can automatically create a configuration file for the target FRU based on the creation request and the configuration content in the configuration file of the target FRU carried in the creation request, compared to the related art in which processes such as firmware development, testing, and version release are required before the configuration file of the target FRU can be configured for the first device, this not only helps reduce the cost of replacing the target FRU, but also helps improve the efficiency of replacing the target FRU.

[0010] In a possible implementation, the creation request is sent by the client device in response to a creation instruction, where the creation instruction is used to instruct sending a creation request for a configuration file of the target FRU to the first device, and the client device stores configuration content in the configuration file of the target FRU.

[0011] In this implementation, when the user determines that the first device needs to use the configuration file of the target FRU, the user instructs the client device to send a creation request to the first device through a creation instruction, so that the first device can automatically create the configuration file of the target FRU. This not only saves the time for the first device to obtain the configuration file from other devices, but also helps to increase the necessity of the configuration file of the target FRU created by the first device, and avoids creating a configuration file when the configuration file of the target FRU is not needed.

[0012] In another possible implementation, the method further includes: receiving a query request sent by a client device, the query request being used to request a query of the FRU type supported by the first device; in response to the query request, sending a target FRU type to the client device; wherein the target FRU type is a FRU type supported by the first device.

[0013] In this implementation, by receiving a query request sent by the client and returning the FRU types supported by the first device to the client in response to the query request, the client device can understand the FRU types supported by the first device. This helps to create a configuration file requested by the request that matches the supported FRU types of the first device, thereby helping to ensure that the first device can successfully use the created configuration file.

[0014] In another possible implementation, the method also includes: receiving a first start request sent by a client device, the first start request being used to request to start the FRU configuration service of the first device so that the first device supports creating a configuration file for the target FRU; in response to the first start request, setting the FRU configuration management service of the first device to an on state.

[0015] In this implementation, in response to receiving the first enable request, the first device sets the FRU configuration management service of the first device to an enabled state, thereby enabling the first device to support creation of a configuration file for the target FRU. Since the first device supports creation of a configuration file for the target FRU only when the FRU configuration management service is enabled, this helps prevent unauthorized creation of configuration files, thereby helping to ensure the security of FRU management.

[0016] In another possible implementation, the method further includes: when the first device is not configured with the configuration file of the target FRU, sending an acquisition request to the second device; the second device stores the configuration file of the target FRU, and the acquisition request is used to request to obtain the configuration content in the configuration file; wherein, the creation request is sent by the second device in response to the acquisition request.

[0017] In this implementation, when the first device has not configured the configuration file of the target FRU, the first device actively sends an acquisition request to the second device to request the configuration content in the configuration file of the target FRU. This helps to improve the convenience and automation of the second device in creating the configuration file of the target FRU.

[0018] In another possible implementation, when the first device is not configured with the configuration file of the target FRU, an acquisition request is sent to the second device, including: sending an acquisition request to the second device in response to the received target instruction; the target instruction is used to instruct to obtain the configuration content in the configuration file of the target FRU from the second device, and the target instruction is sent when the first device is not configured with the configuration file of the target FRU.

[0019] In this implementation, the first device sends an acquisition request to the second device in response to receiving the target instruction sent by the client. In this way, when the user determines that the first device needs to use the configuration file of the target FRU, the first device can be instructed to send an acquisition request to the second device. This helps to increase the necessity of obtaining configuration content.

[0020] In another possible implementation, when the first device is not configured with a configuration file of the target FRU, sending an acquisition request to the second device includes: sending an acquisition request to the second device in response to a target scan result; the target scan result includes a configuration file of the target FRU that is not scanned on the first device.

[0021] In this implementation, the first device automatically sends an acquisition request to the second device in response to the target scan result without user intervention, which helps to improve the convenience and automation of configuration content acquisition.

[0022] In another possible implementation, in response to a creation request, a configuration file of the target FRU is created based on the configuration content in the configuration file of the target FRU, including: if the configuration content in the configuration file meets a preset condition, in response to the creation request, a configuration file of the target FRU is created based on the configuration content in the configuration file.

[0023] In this implementation, by setting the configuration content in the configuration file to meet the preset conditions, a creation request is responded to. This helps to avoid using non-compliant configuration content to create a configuration file, which may cause functional abnormalities of the target FRU when managing the target FRU based on the created configuration file.

[0024] In another possible implementation, the configuration content in the configuration file meets the preset conditions, including: the attribute name of the configuration content is the same as the pre-attribute name; wherein the attribute name of the configuration content includes at least one of the manufacturer identification, PN component identification, SN serial number, model, name, FRU type and model identification of the target FRU.

[0025] In this implementation, whether the configuration content meets the preset condition is determined by checking whether the attribute name of the configuration content is the same as the preset attribute name. This helps to ensure the integrity of the configuration content parsed from the configuration file.

[0026] In another possible implementation, the configuration content in the configuration file meets the preset conditions, including: the attribute name of the configuration content is the same as the preset attribute name, and the field type of the configuration content is the same as the preset field type; wherein, the attribute name of the configuration content includes at least one of the manufacturer identification, PN component identification, SN serial number, model, and name of the target FRU.

[0027] In this implementation, whether the configuration content meets the preset conditions is determined by whether the attribute name of the configuration content is the same as the preset attribute name, and whether the field type of the configuration content is the same as the preset field type. This helps to ensure the accuracy and completeness of the configuration content parsed from the configuration file.

[0028] In another possible implementation, the configuration content in the configuration file meets the preset conditions, including: the attribute name of the configuration content is the same as the preset attribute name, and the attribute value of the configuration content is the same as the preset attribute value; wherein, the attribute name of the configuration content includes the model identification and / or FRU type of the target FRU.

[0029] In this implementation, whether the configuration content meets the preset conditions is determined by whether the attribute name of the configuration content is the same as the preset attribute name, and whether the attribute value of the configuration content is the same as the preset attribute value. This helps to ensure the accuracy and completeness of the configuration content parsed from the configuration file.

[0030] In another possible implementation, the acquisition request includes the name of the target FRU, and the acquisition request is used to request to obtain the configuration content in the configuration file indicated by the name of the target FRU.

[0031] In this implementation, since the name of the FRU configuration file is the same as the name of the FRU, the acquisition request is set to include the name of the target FRU, and a request is made to obtain the configuration content in the configuration file indicated by the name of the target FRU. In this way, when it is necessary to obtain the configuration content in the configuration file of a specific FRU, it helps to ensure the accuracy of the obtained configuration content.

[0032] In another possible implementation, the acquisition request includes a model identifier of the first device, and the acquisition request is used to request configuration content in a configuration file supported by the model identifier, and the configuration file of the target FRU is a configuration file supported by the model identifier.

[0033] In this implementation, the acquisition request is set to include the model identification of the first device, and a request is made to obtain the configuration content in the configuration file indicated by the model identification. In this way, when the first device replaces multiple FRUs and the configuration content in the configuration files of multiple FRUs needs to be obtained, it helps to improve the efficiency of obtaining the configuration content in the configuration files of multiple FRUs.

[0034] In another possible implementation, when the acquisition request includes the model identification of the first device, the acquisition request may also include a target FRU type, where the target FRU type is a FRU type supported by the first device. The acquisition request is used to request configuration content in a configuration file belonging to the target FRU type, where the configuration file of the target FRU is a configuration file belonging to the target FRU type.

[0035] In this implementation, the acquisition request is set to include the target FRU type, which is used to indicate that the configuration file requested by the acquisition request should belong to the target FRU type. This helps to ensure that the configuration file of the target FRU obtained by the first device from the second device can match the first device, and further helps to ensure that the first device can use the obtained configuration file normally.

[0036] In another possible implementation, the configuration content in the configuration file is in JSON format; receiving the creation request includes: receiving the creation request based on the first interface; the first interface supports the transmission of data in JSON format.

[0037] In this implementation, since the FRU configuration file is a JSON file and the configuration content in the FRU configuration file is in JSON format, the first device receives the configuration content in the configuration file of the target FRU through the first interface, and the first interface supports the transmission of JSON format files. In this way, when transmitting the configuration content, there is no need to convert the data format, which helps to ensure the convenience and accuracy of data transmission.

[0038] In another possible implementation, the method further includes: sending a second enable request to the second device, where the second enable request is used to request enabling of the FRU configuration management service of the second device, so that the second device supports exporting the configuration content in the configuration file.

[0039] In this implementation, by setting the second device to configure the FRU configuration management service, when the FRU configuration management service is in the on state, the second device can export the configuration file of the target FRU. When it is in the off state, the second device cannot export the configuration file of the target FRU. This helps to ensure the security of the configuration file of the FRU in the second device.

[0040] In another possible implementation, the method further includes: setting the FRU configuration management server of the first device to an on state, so that the first device supports creation of a configuration file of the target FRU.

[0041] In this implementation, by setting the FRU configuration management server of the first device to be in an on state, the first device supports creating a configuration file for the target FRU, which helps avoid creating a configuration file without permission and further helps ensure the security of FRU management.

[0042] In a second aspect, a field replaceable unit (FRU) management method is provided, which is used for a second device, in which a configuration file of a target FRU is stored; the method includes: receiving an acquisition request; the acquisition request is used to request to obtain the configuration content in the configuration file of the target FRU; in response to the acquisition request, sending a creation request to the device that sent the acquisition request; the creation request includes the configuration content in the configuration file of the target FRU, the creation request is used to request to create the configuration file of the target FRU, and the configuration file of the target FRU is used to manage the target FRU on the device that sends the acquisition request; or in response to the acquisition request, sending the configuration content in the configuration file of the target FRU to the device that sends the acquisition request.

[0043] In this solution, when the configuration file of the target FRU is stored in the second device, the second device returns the creation request or the configuration content in the configuration file of the target FRU in response to the received acquisition request, thereby exporting the configuration content in the configuration file of the target FRU, and then other devices can use the configuration content in the configuration file of the target FRU to create the configuration file of the target FRU. Compared with the related art that requires the development, testing, version release and other processes of the firmware program to configure the configuration file of the target FRU for the first device, it not only helps to reduce the cost of replacing the target FRU, but also helps to improve the efficiency of replacing the target FRU.

[0044] In a possible implementation, the acquisition request is sent by the client device in response to the acquisition instruction.

[0045] In another possible implementation, the acquisition request is sent by the first device when the first device is not configured with a configuration file of the target FRU.

[0046] In another possible implementation, responding to the acquisition request includes: if the configuration content in the configuration file meets a preset condition, responding to the acquisition request.

[0047] In this implementation, when the configuration content in the configuration file meets the preset conditions, the configuration content in the configuration file is sent to the server in response to the acquisition request. This helps to avoid the configuration content belonging to a non-FRU configuration file, thereby improving the accuracy and security of the exported configuration content.

[0048] In another possible implementation, the configuration content in the configuration file meets the preset conditions, including: the attribute name of the configuration content is the same as the pre-attribute name; wherein the attribute name of the configuration content includes at least one of the manufacturer identification, PN component identification, SN serial number, model, name, FRU type and model identification of the target FRU.

[0049] In another possible implementation, the configuration content in the configuration file meets the preset conditions, including: the attribute name of the configuration content is the same as the preset attribute name, and the field type of the configuration content is the same as the preset field type; wherein, the attribute name of the configuration content includes at least one of the manufacturer identification, PN component identification, SN serial number, model, and name of the target FRU.

[0050] In another possible implementation, the configuration content in the configuration file meets the preset conditions, including: the attribute name of the configuration content is the same as the preset attribute name, and the attribute value of the configuration content is the same as the preset attribute value; wherein, the attribute name of the configuration content includes the model identification and / or FRU type of the target FRU.

[0051] In another possible implementation, the acquisition request includes the name of the target FRU, and the acquisition request is used to request to obtain the configuration file indicated by the name of the target FRU.

[0052] In another possible implementation, the acquisition request includes a model identifier of the first device, and the acquisition request is used to request to obtain configuration files supported by the model identifier, where the configuration files supported by the model identifier include configuration files of the target FRU.

[0053] In another possible implementation, when the acquisition request includes the model identification of the first device, the acquisition request may also include a target FRU type, where the target FRU type is a FRU type supported by the first device, and the acquisition request is used to request a configuration file belonging to the target FRU type.

[0054] In another possible implementation, the configuration content in the configuration file is in JSON format; in response to the acquisition request, a creation request is sent to the device that sent the acquisition request, including: in response to the acquisition request, based on the second interface, a creation request is sent to the device that sent the acquisition request; the second interface supports the transmission of data in JSON format.

[0055] In this implementation, since the FRU configuration file is a JSON file and the configuration content in the FRU configuration file is in JSON format, the second device transmits the configuration content in the target FRU configuration file through the second interface, and the second interface supports the transmission of JSON format files. In this way, when transmitting the configuration content, there is no need to convert the data format, which helps to ensure the convenience and accuracy of data transmission.

[0056] In another possible implementation, the configuration content in the configuration file is in JSON format; in response to the acquisition request, the configuration content in the configuration file of the target FRU is sent to the device that sends the acquisition request, including: in response to the acquisition request, based on the second interface, the configuration content in the configuration file of the target FRU is sent to the device that sends the acquisition request.

[0057] In this implementation, since the FRU configuration file is a JSON file and the configuration content in the FRU configuration file is in JSON format, the second device transmits the configuration content in the target FRU configuration file through the second interface, and the second interface supports the transmission of JSON format files. In this way, when transmitting the configuration content, there is no need to convert the data format, which helps to ensure the convenience and accuracy of data transmission.

[0058] In another possible implementation, the method also includes: receiving a second start request sent by the first device, the second start request being used to request to start the FRU configuration management service of the second device so that the second device supports exporting the configuration content in the configuration file; in response to the second start request, setting the FRU configuration management service of the second device to the on state.

[0059] In this implementation, the second device sets the FRU configuration management service of the second device to the on state in response to the received second start request, so that the second device supports exporting the configuration content in the configuration file. This helps to avoid exporting the configuration content in the configuration file on the second device without permission, and further helps to ensure the security of the FRU configuration file on the second device.

[0060] In another possible implementation, the method also includes: receiving a third enable request sent by the client device, the second enable request being used to request enabling the FRU configuration management service of the second device so that the second device supports exporting the configuration content in the configuration file; and in response to the second enable request, setting the FRU configuration management service of the second device to an enabled state.

[0061] In this implementation, the second device sets the FRU configuration management service of the second device to an on state in response to the received third creation request, so that the second device supports exporting the configuration content in the configuration file. This helps to avoid exporting the configuration content in the configuration file on the second device without permission, and further helps to ensure the security of the FRU configuration file on the second device.

[0062] In a third aspect, a field replaceable unit (FRU) management method is provided for a client device, wherein the client device stores configuration content in a configuration file of a target FRU; the method comprises: sending a creation request to a first device in response to a creation instruction; the creation request is used to request creation of a configuration file of the target FRU; the creation request includes the configuration content in the configuration file.

[0063] In this solution, when the configuration content in the configuration file of the target FRU is stored in the client device, the client device actively sends a creation request to the first device, so that the first device can automatically create the configuration file of the target FRU based on the configuration content in the configuration file of the target FRU. Compared with the related technology that requires the development, testing, version release and other processes of the firmware program to configure the configuration file of the target FRU for the first device, it not only helps to reduce the cost of replacing the target FRU, but also helps to improve the efficiency of replacing the target FRU.

[0064] In a possible implementation, the method further includes: sending an acquisition request to the second device in response to the acquisition instruction; the acquisition request is used to request the configuration content in the configuration file of the target FRU; and receiving the configuration content in the configuration file of the target FRU sent by the second device.

[0065] In this implementation, the client device obtains the configuration content in the configuration file of the target FRU from the second device by sending an acquisition request to the second device, and then can use the configuration content in the configuration file of the target FRU to create the configuration file of the target FRU. Compared with the related technology, the firmware program needs to be developed, tested, and version released before the configuration content in the FRU configuration file can be obtained. This not only helps to reduce the cost of obtaining the configuration content, but also helps to improve the efficiency of obtaining the configuration content.

[0066] In another possible implementation, the acquisition request includes the name of the target FRU, and the acquisition request is used to request to obtain the configuration content in the configuration file indicated by the name of the target FRU.

[0067] In another possible implementation, the acquisition request includes a model identifier of the first device, and the acquisition request is used to request configuration content in a configuration file supported by the model identifier, and the configuration file of the target FRU is a configuration file supported by the model identifier.

[0068] In another possible implementation, when the acquisition request includes the model identification of the first device, the acquisition request may also include a target FRU type, where the target FRU type is a FRU type supported by the first device. The acquisition request is used to request configuration content in a configuration file belonging to the target FRU type, where the configuration file of the target FRU is a configuration file belonging to the target FRU type.

[0069] In another possible implementation, in response to the creation instruction, sending a creation request to the first device includes: in response to the creation instruction, sending a creation request to the first device based on a third interface; the third interface supports transmission of data in JSON format.

[0070] In this implementation, since the FRU configuration file is a JSON file and the configuration content in the FRU configuration file is in JSON format, the client device sends the configuration content in the configuration file of the target FRU to the first device through the third interface, and the third interface supports the transmission of JSON format files. In this way, when transmitting the configuration content, there is no need to convert the data format, which helps to ensure the convenience and accuracy of data transmission.

[0071] In another possible implementation, in response to a creation instruction, a creation request is sent to the first device, including: sending a query request to the first device, the query request is used to request to query the FRU type supported by the first device; receiving the target FRU type sent by the first device, the target FRU type is the FRU type supported by the first device; in response to the creation instruction, based on the target FRU type, a creation request is sent to the first device; wherein, the target FRU belongs to the target FRU type.

[0072] In this implementation, a query request is sent to the first device, and based on the FRU type supported by the queried first device, a creation request is sent to the first device. This helps to create a configuration file requested by the creation request that matches the supported FRU type of the first device, thereby helping to ensure that the first device can successfully use the created configuration file.

[0073] In another possible implementation, the method further includes: sending a first enable request to the first device, where the first enable request is used to request enabling of a FRU configuration service of the first device, so that the first device supports creation of a configuration file of the target FRU.

[0074] In this implementation, the client device is set to send a first enable request to the first device, so that the first device supports the creation of a configuration file for the target FRU. Since the first device only supports the creation of a configuration file for the target FRU when the FRU configuration management service is set to the enable state, this helps to avoid the creation of a configuration file without permission, thereby helping to ensure the security of FRU management.

[0075] In another possible implementation, the method further includes: sending a third enable request to the second device to request enabling of the FRU configuration management service of the second device, so that the second device supports exporting the configuration content in the configuration file.

[0076] In this implementation, by sending a third enable request to the second device, the second device supports exporting the configuration content in the configuration file. Since the second device supports exporting the configuration content of the configuration file only when the FRU configuration management service is set to the enabled state, this helps to avoid exporting the configuration content of the configuration file without permission, thereby helping to ensure the security of the configuration file.

[0077] In a fourth aspect, a field replaceable unit (FRU) management device is provided, the device comprising: functional units for executing any one of the methods provided in the first aspect, wherein the actions performed by each functional unit are implemented via hardware or via hardware executing corresponding software implementations. For example, the FRU management device may comprise: a receiving unit, a creating unit, and a managing unit; the receiving unit being configured to receive a create request, the create request being configured to request creation of a configuration file for a target FRU; the create request including configuration content from the target FRU's configuration file; the creating unit being configured to create a configuration file for the target FRU based on the configuration content from the target FRU's configuration file in response to the create request; and the managing unit being configured to manage the target FRU based on the configuration file of the target FRU.

[0078] In a fifth aspect, a field-replaceable FRU management device is provided, the device comprising: a functional unit for executing any one of the methods provided in the second aspect, wherein the actions executed by each functional unit are implemented by hardware or by hardware executing corresponding software implementations. For example, the FRU management device may comprise: a receiving unit and a sending unit; the receiving unit is configured to receive an acquisition request; the acquisition request is used to request the acquisition of configuration content in a configuration file of a target FRU; the sending unit is configured to, in response to the acquisition request, send a create request to the device that sent the acquisition request; the create request includes the configuration content in the configuration file of the target FRU, the create request is used to request the creation of the configuration file of the target FRU, and the configuration file of the target FRU is used to manage the target FRU on the device that sent the acquisition request; or, in response to the acquisition request, send the configuration content in the configuration file of the target FRU to the device that sent the acquisition request.

[0079] In a sixth aspect, a field replaceable unit (FRU) management device is provided, the device comprising: functional units configured to execute any one of the methods provided in the third aspect, wherein the actions executed by each functional unit are implemented in hardware or by hardware executing corresponding software implementations. For example, the FRU management device may comprise: a sending unit configured to send a creation request to a first device in response to a creation instruction; the creation request being configured to request creation of a configuration file for a target FRU; the creation request including configuration content in the configuration file.

[0080] In the seventh aspect, a field-replaceable FRU management system is provided, including: a first device and a second device, the first device being communicatively connected to the second device, and the second device storing a configuration file of a target FRU; the first device being used to send an acquisition request to the second device when the configuration file of the target FRU is not configured on the first device; the acquisition request is used to request to obtain the configuration content in the configuration file; the second device being used to receive the acquisition request sent by the first device; the acquisition request is used to request to obtain the configuration content in the configuration file; the second device being further used to send a creation request to the first device in response to the acquisition request; the creation request is used to request to create the configuration file of the target FRU, and the creation request includes the configuration content in the configuration file; the first device being further used to receive the creation request sent by the second device, and the creation request is used to request to create the configuration file of the target FRU; the first device being further used to create the configuration file of the target FRU based on the configuration content in the configuration file in response to the creation request.

[0081] In an eighth aspect, a field-replaceable FRU management system is provided, comprising: a first device, a second device and a client device; the client device is communicatively connected to the first device and the second device respectively; the second device is used to receive an acquisition request from the client device; the acquisition request is used to request to obtain the configuration content in the configuration file of the target FRU; the second device is also used to send the configuration content in the configuration file of the target FRU to the client device in response to the acquisition request; the client device is used to send a creation request to the first device in response to a creation instruction; the creation request is used to request to create a configuration file of the target FRU; the creation request includes the configuration content in the configuration file; the first device is used to receive the creation request, and in response to the creation request, create the configuration file of the target FRU based on the configuration content in the configuration file; the first device is also used to manage the target FRU based on the configuration file of the target FRU.

[0082] In a ninth aspect, a first computer device is provided, comprising: a processor and a memory, wherein the processor is connected to the memory, the memory is used to store computer-executable instructions, and the processor executes the computer-executable instructions stored in the memory, thereby implementing any one of the methods provided in the first aspect.

[0083] In a tenth aspect, a second computer device is provided, comprising: a processor and a memory, wherein the processor is connected to the memory. The memory is used to store computer-executable instructions, and the processor executes the computer-executable instructions stored in the memory, thereby implementing any one of the methods provided in the second aspect.

[0084] In an eleventh aspect, a client device is provided, comprising: a processor; and a memory, wherein the processor is connected to the memory. The memory is configured to store computer-executable instructions, and the processor executes the computer-executable instructions stored in the memory, thereby implementing any one of the methods provided in the third aspect.

[0085] In the twelfth aspect, a chip is provided, comprising: a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; the processor is used to run the code instructions to execute any one of the methods provided in the first aspect above.

[0086] In the thirteenth aspect, a chip is provided, comprising: a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; the processor is used to run the code instructions to execute any one of the methods provided in the second aspect above.

[0087] In the fourteenth aspect, a chip is provided, comprising: a processor and an interface circuit; the interface circuit is used to receive code instructions and transmit them to the processor; the processor is used to run the code instructions to execute any one of the methods provided in the third aspect above.

[0088] In a fifteenth aspect, a computer-readable storage medium is provided, which stores computer execution instructions. When the computer execution instructions are executed on a computer device, the computer device executes any one of the methods provided in the first aspect.

[0089] In the sixteenth aspect, a computer-readable storage medium is provided, which stores computer execution instructions. When the computer execution instructions are executed on a computer device, the computer device executes any one of the methods provided in the second aspect above.

[0090] In the seventeenth aspect, a computer-readable storage medium is provided, which stores computer execution instructions. When the computer execution instructions are executed on a computer device, the computer device executes any one of the methods provided in the third aspect above.

[0091] In an eighteenth aspect, a computer program product is provided, comprising: computer execution instructions, which, when the computer execution instructions are run on a computer, enable the computer to execute any one of the methods provided in the first aspect above.

[0092] In the nineteenth aspect, a computer program product is provided, comprising: computer execution instructions, which, when the computer execution instructions are run on a computer, enable the computer to execute any one of the methods provided in the second aspect above.

[0093] In the twentieth aspect, a computer program product is provided, comprising: computer execution instructions, which, when the computer execution instructions are run on a computer, enable the computer to execute any one of the methods provided in the third aspect above.

[0094] Among them, the technical effects brought about by any implementation method in the second to twentieth aspects can refer to the technical effects brought about by different implementation methods in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0095] FIG1A is a schematic diagram of a system structure provided in an embodiment of the present application;

[0096] FIG1B is a schematic diagram of the structure of a device provided in an embodiment of the present application;

[0097] FIG2A is a schematic diagram of another system architecture provided in an embodiment of the present application;

[0098] FIG2B is a schematic diagram of the structure of another device provided in an embodiment of the present application;

[0099] FIG3 is a flow chart of a FRU management method provided in an embodiment of the present application;

[0100] FIG4 is a schematic diagram of the structure of another device provided in an embodiment of the present application;

[0101] FIG5 is a schematic diagram of the structure of another device provided in an embodiment of the present application;

[0102] FIG6 is a flowchart of another FRU management method provided in an embodiment of the present application;

[0103] FIG7 is a schematic diagram of a FRU management device provided in an embodiment of the present application;

[0104] FIG8 is a schematic diagram of another FRU management device provided in an embodiment of the present application;

[0105] FIG9 is a schematic diagram of another FRU management device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0106] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0107] In the description of this application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in this application is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural.

[0108] Furthermore, in the description of this application, unless otherwise specified, "plurality" means two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or plural.

[0109] In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit differences. At the same time, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.

[0110] First, the application scenarios of the embodiments of the present application are exemplarily introduced.

[0111] A FRU is a replaceable component on a hardware device. After a hardware device replaces a new FRU, the management component of the hardware device must be configured with the new FRU's configuration file to manage the new FRU.

[0112] In related technologies, configuring a new FRU configuration file for a management component typically involves upgrading the management component's firmware. This typically involves a development, testing, and release process. Consequently, when simultaneously replacing FRUs on multiple hardware devices, the firmware for the management components of these devices must be developed, tested, and released for each of these devices, resulting in extremely high costs and low efficiency.

[0113] In view of this, an embodiment of the present application provides a FRU management method for a first device, wherein the first device includes a target FRU, and upon receiving a creation request, the first device creates a configuration file for the target FRU based on the configuration content in the configuration file of the target FRU carried in the creation request, and then manages the target FRU based on the created configuration file of the target FRU. Since the first device can automatically create the configuration file of the target FRU based on the creation request carrying the configuration content in the configuration file of the target FRU, compared to the related art that requires the development, testing, and version release of the firmware program before the configuration file of the target FRU can be configured for the first device, this method not only reduces the cost of replacing the target FRU, but also improves the efficiency of replacing the target FRU.

[0114] Next, the system architecture of the embodiment of the present application is exemplarily introduced.

[0115] As shown in FIG1A , a system architecture diagram is provided in an embodiment of the present application.

[0116] 1A , the system architecture includes at least one first device and a second device, wherein each first device in the at least one first device is communicatively connected to the second device.

[0117] Exemplarily, the at least one first device includes a first device 1, ..., a first device N, where N is a positive integer greater than 1.

[0118] Optionally, the product form of the first device and the second device may be a terminal device or a network device.

[0119] Terminal devices include mobile phones, augmented reality (AR) devices, virtual reality (VR) devices, personal digital assistants (PDAs), ultra-mobile personal computers (UMPCs), tablet computers, laptops, netbooks, desktop computers, all-in-one computers, etc.

[0120] The network devices include servers, etc. A server may be a single physical or logical server, or may be two or more physical or logical servers that share different responsibilities and work together to implement various server functions.

[0121] Optionally, the system architecture may further include a client device, wherein the client device is communicatively connected to each first device in the at least one first device.

[0122] In some embodiments, the client device may be a terminal device, and the user may send a target instruction, etc. to the first device through the client device.

[0123] Based on the above, in an application scenario, the first device is a first server, the second device is a second server, and the client device is a terminal device. A user sends a target instruction to the first server through the terminal device, instructing the first server to send a request to the second server to request the configuration content in the FRU configuration file on the second server.

[0124] Afterwards, the second server sends a creation request to the first device in response to the acquisition request, where the creation request includes the configuration content in the FRU configuration file, so that the first device can create the FRU configuration file based on the configuration content in the FRU configuration file in response to the creation request.

[0125] FIG1B is a schematic diagram showing the structures of the first device, the second device, and the client device in FIG1A .

[0126] It should be noted that the first device in FIG. 1B may be any first device among the first device 1, ..., and the first device N in FIG. 1A .

[0127] Referring to 1B, the first device includes a first out-of-band controller, the second device includes a second out-of-band controller, the first out-of-band controller is in communication with the second out-of-band controller, and the client device includes a central processing unit (CPU).

[0128] The client device is used to run the client of the first out-of-band controller. After the client device logs into the client of the first out-of-band controller, the CPU of the client device and the first out-of-band controller can perform data transmission.

[0129] The out-of-band controllers (e.g., the first out-of-band controller and the second out-of-band controller) are completely independent of the CPU of the computer device (e.g., the first device and the second device) and can communicate with the CPU via the out-of-band management interface of the computer device. Furthermore, the out-of-band controllers can remotely maintain and manage the computer device via a dedicated data channel.

[0130] Exemplarily, the out-of-band controller may include a monitoring management unit external to the computer device, a management system in a management chip external to the processor, a baseboard management controller (BMC), a system management module (SMM), etc. It should be noted that the embodiments of the present application do not limit the form of the out-of-band controller, and the above description is merely an example. In the following embodiments, the out-of-band controller is described as a BMC.

[0131] Exemplarily, the BMC firmware program is implemented based on the OpenBMC software framework, wherein OpenBMC is an open source baseboard management software framework.

[0132] It should be noted that different computer devices have different names for BMC. For example, some computer devices call it BMC, some computer devices call it iLO, and some computer devices call it iDRAC. Regardless of whether it is called BMC, iLO or iDRAC, it can be understood as the BMC in the embodiments of the present invention.

[0133] Optionally, the first device and the second device include at least one FRU. Exemplarily, the at least one FRU includes FRU1, ..., FRUk, where k is a positive integer.

[0134] Illustratively, the at least one FRU includes a mainboard, a network card, a redundant array of independent disks (RAID) card, a power supply, a hard disk, and other pluggable cards on the hardware device.

[0135] In some embodiments, the first out-of-band controller and the second out-of-band controller are configured with configuration files of the FRUs contained therein. The first out-of-band controller and the second out-of-band controller manage the FRUs contained therein by loading the configuration files of the FRUs contained therein.

[0136] In some embodiments, the first out-of-band controller includes a first flash memory. A configuration file for a FRU configured in the first out-of-band controller may be stored in a data area of ​​the first flash memory. The second out-of-band controller includes a second flash memory. A configuration file for a FRU configured in the second out-of-band controller may be stored in a data area of ​​the second flash memory.

[0137] Optionally, the first out-of-band controller includes a first format parsing unit and a file importing unit.

[0138] The file importing unit is used to import the configuration file of the FRU into the first device, and the first format parsing unit is used to determine whether the configuration file of the FRU imported into the first device meets a preset condition.

[0139] The first format parsing unit complies with the OpenBMC architecture and the Redfish specification. Thus, when the first format parsing unit parses the creation request, it not only helps to ensure that the data format of the parsed configuration content meets the requirements, but also helps to ensure that the parsed configuration content is accurate and complete.

[0140] Optionally, the first out-of-band controller includes a first FRU configuration file collection interface (referred to as the first interface for short).

[0141] The first interface supports data in JSON format. Exemplarily, the first interface is a Redfish interface.

[0142] Exemplarily, the URL address of the first FRU configuration file collection interface is redfish / v1 / Manager / {Id} / FRUManagerService / FRUManagers.

[0143] In some embodiments, the first interface is configured to receive a creation request (e.g., a POST request), and based on this, the first interface supports the transmission of data in JSON format. After receiving the POST request, the first interface enters a file import process, such as invoking a file import unit to receive the configuration content carried in the creation request, and invoking a first format parsing unit to determine whether the configuration content meets preset conditions.

[0144] In some embodiments, the first interface may also be used to receive a query request for querying the number and URL addresses of configuration files of FRUs supported by the current model.

[0145] Exemplarily, the first interface includes an attribute name and an attribute value. The format of the first interface is shown in Table 1.

[0146] Table 1

[0147] In Table 1, "Members@odata.count" is used to indicate the number of configuration files. "1" is used to indicate the value of the number of configuration files, which is 1. "Members" is used to indicate the name of the configuration file. @odata.id is a public property of the configuration file defined by the Open Data Protocol (OData Protocol) in the Redfish specification, which is used to indicate the uniform resource locator (URL) of the configuration file. In other words, "@odata.id": " / redfish / v1 / Managers / {Id} / FRUManagerService / FRUManagers / {FRUID}" is used to indicate the URL address of the configuration file.

[0148] It is understandable that the URL address of the configuration file is used to indicate the storage address of the configuration file. There is a one-to-one correspondence between the URL address and the configuration file. In other words, one URL address indicates a unique configuration file.

[0149] Optionally, the first out-of-band controller may further include a first FRU configuration service interface.

[0150] The first FRU configuration service interface supports data in JSON format. Exemplarily, the first FRU configuration service interface is a Redfish interface.

[0151] Exemplarily, the URL address of the first FRU configuration service interface is redfish / v1 / Manager / {Id} / FRUManagerService.

[0152] In some embodiments, the first FRU configuration service interface is used to enable or disable a configuration file management service.

[0153] In one example, the first FRU configuration service interface is configured with a ServiceEnable attribute, which includes enable (True) or disable (False). When the ServiceEnable attribute is enabled, it is used to indicate that the profile management service is in the enabled state, and when the ServiceEnable attribute is disabled, it is used to indicate that the profile management service is in the disabled state.

[0154] When the configuration file management service is enabled, the first device supports importing / exporting the configuration file of the FRU. Conversely, when the configuration file management service is disabled, the first device does not support importing / exporting the configuration file of the FRU.

[0155] In some embodiments, the first FRU configuration service interface may also be used to trigger a FRU scan.

[0156] In an example, the first FRU configuration service interface is configured with a FRUManager.RescanBuses attribute. The FRUManager.RescanBuses attribute can trigger a specific operation on a corresponding resource based on the Action format of Redfish, that is, can trigger a scanning operation on the FRU.

[0157] In some embodiments, the first FRU configuration service interface can also be used to query the FRU types that can be imported by the current model.

[0158] In one example, the first FRU configuration service interface is configured with a FRUTypeList attribute, which is used to query the FRU types that can be imported by the current model to avoid importing invalid configuration files.

[0159] Optionally, the first out-of-band controller further includes a first FRU configuration file interface.

[0160] The first FRU configuration file interface supports data in JSON format. Exemplarily, the first FRU configuration file interface is a Redfish interface.

[0161] It can be understood that the first FRU profile interface can be considered as the interface of a single FRU profile, and the first FRU profile collection interface can be considered as the interface of a collection of single profiles. In other words, the first FRU profile collection interface can be considered as the collection of the first FRU profile interface.

[0162] Exemplarily, the URL address of the first FRU configuration file interface is redfish / v1 / Manager / {Id} / FRUManagerService / FRUManagers / {FRUProductName}.

[0163] In some embodiments, the first FRU configuration file interface is used to use the name of the FRU (ProductName) as an index and present the content of the FRU configuration file in a format that complies with the Redfish specification.

[0164] In some embodiments, when the configuration file of the FRU needs to be exported, the first FRU configuration file interface can also be used to query the configuration file of the specified FRU and remove the Redfish public attribute (ie, URL address) of the configuration file.

[0165] Optionally, the second out-of-band controller includes a second format parsing unit and a file exporting unit.

[0166] The file export unit is used to export the configuration file of the FRU in the second flash memory, and the second format parsing unit is used to determine whether the configuration file exported by the file export unit meets a preset condition.

[0167] Optionally, the second out-of-band controller further includes a second FRU configuration file interface (referred to as the second interface for short).

[0168] The second interface supports data in JSON format. Exemplarily, the second interface is a Redfish interface.

[0169] In some embodiments, the second interface is configured to receive a request (e.g., a GET request), and based on this, the second interface supports the transmission of data in JSON format. After receiving the GET request, the second interface enters a file export process, such as invoking a file export unit to export a configuration file of the FRU in the second flash memory, and invoking a second format parsing unit to determine whether the configuration file exported by the file export unit meets preset conditions.

[0170] Exemplarily, the URL address of the second interface is redfish / v1 / Manager / {Id} / FRUManagerService / FRUManagers / {FRUProductName}.

[0171] In some embodiments, the second interface is used to use the name of the FRU (ProductName) as an index and present the content of the configuration file of the FRU in a format that complies with the Redfish specification.

[0172] In some embodiments, when the FRU configuration file needs to be exported, the second interface can be used to query the configuration file of the specified FRU and remove the Redfish public attribute (ie, URL address) of the configuration file. Optionally, the second out-of-band controller includes a second FRU configuration service interface.

[0173] It should be noted that for the relevant description of the second FRU configuration service interface, you can refer to the relevant description of the first FRU configuration service interface mentioned above. The principles of the two are the same and will not be repeated here.

[0174] Optionally, the second out-of-band controller includes a second FRU configuration file collection interface.

[0175] It can be understood that the second FRU profile interface can be considered as the interface of a single FRU profile, and the second FRU profile collection interface can be considered as the interface of a collection of single profiles. In other words, the second FRU profile collection interface can be considered as a collection of second FRU profile interfaces.

[0176] It should be noted that for other related descriptions about the second FRU configuration file interface, please refer to the related descriptions of the first FRU configuration file interface mentioned above. The principles of the two are the same and will not be repeated here.

[0177] As shown in FIG2A , it is another system architecture diagram provided in an embodiment of the present application.

[0178] 2A , the system architecture includes a client device, at least one first device, and a second device, wherein the client device is communicatively connected to the at least one first device and the second device respectively.

[0179] The client device is used to import the configuration content in the FRU configuration file from the second device, and import the configuration content in the FRU configuration file into the first device.

[0180] As shown in FIG2B , it is a schematic diagram of the structures of the first device, the second device and the client device provided in an embodiment of the present application.

[0181] 2B , the client device includes a CPU, wherein the CPU is communicatively connected to a first out-of-band controller of a first device and a second out-of-band controller of a second device.

[0182] Optionally, the client device further includes a storage device, wherein the storage device is used to store configuration content in the configuration file of the FRU obtained by the client device from the second device.

[0183] It should be noted that for the relevant descriptions about the first device and the second device, reference can be made to the relevant descriptions of the system architecture shown in Figures 1A to 1B above, and no further details will be given here.

[0184] It should be noted that the system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0185] For ease of understanding, the FRU management method provided in this application is exemplarily introduced below with reference to the accompanying drawings.

[0186] The following embodiments of this application will be divided into two parts to exemplarily introduce the scheme of the FRU management method.

[0187] The first part, in conjunction with FIG3 to FIG5, introduces the process of the first device obtaining the configuration content of the FRU configuration file from the second device.

[0188] The second part, in conjunction with FIG6 , introduces a process in which the first device obtains the configuration content of the FRU configuration file from the client device.

[0189] The following describes the first part of the embodiment of the present application in conjunction with Figures 3 to 5.

[0190] Fig. 3 is a flow chart showing a FRU management method according to an exemplary embodiment. Exemplarily, the method includes the following S301-S308.

[0191] It should be noted that this method is applicable to the system architecture shown in FIG. 1A to FIG. 1B .

[0192] In some embodiments, the FRU on the second device is replaced with the target FRU, and the second device is configured with a configuration file of the target FRU. In addition, multiple FRUs on the first device are also replaced with the target FRUs.

[0193] To reduce the R&D cost and time of configuring a configuration file for a target FRU for a first device, any one of the multiple first devices can automatically create a configuration file for the target FRU based on the following steps S301-S308. In other words, the first device in the following embodiments can be any one of the multiple first devices.

[0194] S301: When the first device is not configured with a configuration file of a target FRU, the first device sends an acquisition request to the second device.

[0195] The acquisition request is used to request to acquire the configuration content in the configuration file of the target FRU.

[0196] Exemplarily, the acquisition request may be a GET request in a RESTful architecture, in which a GET request may be used to request the return of a requested resource description. In an embodiment of the present application, the GET request is used to request the return of configuration content in a configuration file of a target FRU.

[0197] The target FRU may refer to at least one FRU on the first device that is not configured with a FRU configuration file.

[0198] It should be noted that the embodiment of the present application does not limit the number of target FRUs. In other words, the target FRU can be any one or more FRUs on the first device that are not configured with a FRU configuration file.

[0199] Optionally, obtaining the content of the request includes multiple implementation methods, and two implementation methods are exemplified below.

[0200] In a first implementation, the acquisition request includes the name of the target FRU.

[0201] The acquisition request is used to request to acquire the configuration content in the configuration file indicated by the name of the target FRU.

[0202] The configuration file indicated by the name of the target FRU is the configuration file of the target FRU. Exemplarily, the name of the configuration file of the target FRU is the same as the name of the target FRU.

[0203] FIG4 is a schematic diagram showing the structures of the first device and the second device.

[0204] The first and second devices shown in Figure 1B are installed with FRU1. However, after FRU1 leaves the factory, the manufacturer discovers a hardware defect in FRU1 and revises FRU1 to obtain FRU1'. Alternatively, the manufacturer updates FRU1's software to obtain FRU1'. For example, the software function update may refer to an update of the monitorable information of FRU1', or an update of FRU1's hardware to obtain FRU1'. Based on this, the FRU1 on the first and second devices shown in Figure 1B are replaced with FRU1' on the first and second devices shown in Figure 4.

[0205] It is understandable that after the FRU undergoes hardware upgrade, software upgrade or hardware revision, the configuration file of the FRU also needs to be updated accordingly. In other words, the first out-of-band controller and the second out-of-band controller need to manage the FRU after hardware upgrade, software upgrade or hardware revision based on the updated configuration file.

[0206] Based on this, after FRU1 on the second device is replaced with FRU1', the user configures a FRU1' configuration file for the second out-of-band controller of the second device so that the second out-of-band controller can manage FRU1' on the second device based on the FRU1' configuration file.

[0207] It should be noted that the embodiment of the present application does not limit the method of configuring the configuration file FRU1' for the second out-of-band controller, and it can be any implementation method in the relevant technology. For example, it can be to configure the configuration file of the target FRU for the second out-of-band controller by upgrading the firmware program of the second out-of-band controller.

[0208] Based on the above, FRU1 on the first device is replaced with FRU1' (i.e., the target FRRU). In the case where the first device is not configured with a configuration file of the target FRU, in order to be able to manage the target FRU, the first device sends an acquisition request (e.g., a GET request) to the second device to request the configuration file of the target FRRU (i.e., the FRU1' configuration file).

[0209] It can be understood that when the first device needs to obtain the configuration content in the configuration file of any specified FRU (such as the target FRU) from the second device, the acquisition request sent by the first device to the second device may include the name of the specified FRU. In this way, the second device can determine the configuration file to which the configuration content to be obtained by the first device belongs based on the name of the specified FRU.

[0210] In this embodiment, since the name of the FRU configuration file is the same as the name of the FRU, by setting the acquisition request to include the name of the target FRU and requesting to obtain the configuration content in the configuration file indicated by the name of the target FRU, this helps to ensure the accuracy of the obtained configuration content when it is necessary to obtain the configuration content in the configuration file of a specific FRU.

[0211] It should be noted that the target FRRU being the replaced FRU1' is only an example. The target FRRU may be any replaced FRU on the first device, for example, the target FRU may also be the replaced FRU2', ..., FRUk-1' or FRUk'.

[0212] In a second implementation manner, the acquisition request includes a model identifier of the first device.

[0213] The acquisition request is specifically used to request the configuration content in the configuration file supported by the model corresponding to the model identifier. The configuration file of the target FRU is the configuration file supported by the model identifier.

[0214] Exemplarily, the first device model includes a rack type, a blade type, a tower type, etc. Based on this, the model identifier of the first device includes a rack type identifier, a blade type identifier, a tower type identifier, etc.

[0215] FIG5 is another structural diagram of the first device and the second device.

[0216] The first and second devices shown in FIG1B include FRU1, ..., and FRUk. Subsequently, FRU1, ..., and FRUk undergo revisions due to hardware defects, or their software functions are updated, or their hardware functions are updated, resulting in FRU1', ..., and FRUk'. On this basis, referring to FIG5 , the FRU1, ..., and FRUk on the first and second devices shown in FIG1B are replaced with the FRU1', ..., and FRUk' on the first and second devices shown in FIG5 .

[0217] Based on this, the user configures FRU1', ..., FRUk' configuration files for FRU1', ..., FRUk' on the second device so that the second out-of-band controller can manage FRU1', ..., FRUk' on the second device based on the FRU1', ..., FRUk' configuration files.

[0218] In some embodiments, FRU1, ..., FRUk on a first device is replaced with FRU1', ..., FRUk'. If the first device is not configured with the configuration files of FRU1', ..., FRUk', in order to manage FRU1', ..., FRUk', the first device sends an acquisition request to the second device to request the configuration files of FRU1', ..., FRUk'.

[0219] In a second implementation manner, FRU1 ′, . . . , FRUk′ are target FRUs. In other words, the target FRUs include FRU1 ′, . . . , FRUk′.

[0220] It can be understood that when the first device needs to obtain multiple FRU configuration files (such as FRU1' configuration file,..., FRUk' configuration file) from the second device, the acquisition request sent by the first device to the second device may include the model identification of the first device. In this way, the second device can determine the multiple FRU configuration files that can be used by the model of the first device based on the model identification of the first device, and thus return the configuration content in the multiple FRU configuration files that can be used by the first device to the first device, so that the first device can create multiple FRU configuration files based on the creation request and the configuration content in the multiple FRU configuration files.

[0221] In this embodiment, by setting the acquisition request to include the model identification of the first device, and requesting to obtain the configuration content in the configuration file indicated by the model identification, when the first device replaces multiple FRUs and needs to obtain the configuration content in the configuration files of multiple FRUs, it helps to improve the efficiency of obtaining the configuration content in the configuration files of multiple FRUs.

[0222] Optionally, when the acquisition request includes the model identifier of the first device, the acquisition request may further include the target FRU type.

[0223] The target FRU type is a FRU type supported by the first device, the acquisition request is used to request to acquire configuration content in a configuration file belonging to the target FRU type, and the configuration file of the target FRU is a configuration file belonging to the target FRU type.

[0224] The FRU type refers to the type of the component that uses the FRU.

[0225] For example, if the first FRU component is a motherboard, the FRU type of the first FRU is motherboard. If the second FRU component is a chassis, the FRU type of the second FRU is chassis. If the third FRU component is a backplane (non-volatile memory express, NVMe), the FRU type of the third FRU is backplane. If the fourth FRU component is a power supply, the FRU type of the fourth FRU is power supply.

[0226] It is understandable that the target FRU type is not limited in the embodiments of the present application. For example, the target FRU type can be at least one of a motherboard FRU, a chassis FRU, a backplane FRU, and a power supply FRU. A motherboard FRU refers to a FRU applied to a motherboard, a chassis FRU refers to a FRU applied to a chassis, a backplane FRU refers to a FRU applied to a backplane, and a power supply FRU refers to a FRU applied to a power supply.

[0227] In some embodiments, when a first device needs to obtain configuration files of multiple FRUs from a second device, the acquisition sent by the first device to the second device may also include a target FRU type. In this way, the second device may determine the FRU configuration file based on the model identifier and the target FRU type of the first device. In this way, the determined configuration file is not only a configuration file that can be used by the model of the first device, but also a FRU type supported by the first device.

[0228] In this embodiment, the acquisition request is set to include the target FRU type, which is used to indicate that the configuration file requested by the acquisition request should belong to the target FRU type. This helps to ensure that the configuration file of the target FRU obtained by the first device from the second device can match the first device, and further helps to ensure that the first device can use the obtained configuration file normally.

[0229] Optionally, S301 includes multiple implementation methods, and the following is exemplified by Method 1 and Method 2.

[0230] Mode 1: In response to a target instruction received from the client device, an acquisition request is sent to the second device.

[0231] The target instruction is used to instruct to obtain the configuration file of the target FRU from the second device, and the target instruction is sent when the first device is not configured with the configuration file of the target FRU.

[0232] In some embodiments, after the first device configures the target FRU, the user sends a target instruction to the first device through the client device to instruct the first device to obtain a configuration file of the target FRU from the second device.

[0233] Exemplarily, the target instruction may include an Internet Protocol (IP) address of the second device, and the first device sends an acquisition request to the second device via the IP address of the second device.

[0234] In method 1, the first device sends an acquisition request to the second device in response to receiving the target instruction sent by the client device. In this way, when the user determines that the first device needs to use the configuration file of the target FRU, the first device can be instructed to send an acquisition request to the second device. This helps to increase the necessity of obtaining configuration content.

[0235] Method 2: In response to the target scanning result of the first device, an acquisition request is sent to the second device.

[0236] The target scanning result includes a configuration file in which the target FRU is not scanned on the first device.

[0237] In some embodiments, after configuring the target FRU, the first device restarts the FRU configuration service, causing the first out-of-band controller to scan the target FRU to obtain attribute information of the target FRU from the target FRU, where the attribute information includes the name of the target FRU.

[0238] Then, the first out-of-band controller scans the configuration file in the first flash memory according to the name of the target FRU to load the configuration file of the target FRU. If the first out-of-band controller does not scan the configuration file of the target FRU, the first out-of-band controller sends a request to the second out-of-band controller of the second device.

[0239] Exemplarily, the first device is preset to store the Internet Protocol (IP) address of the second device. In response to the target scanning result, the first device sends an acquisition request to the second device based on the IP address of the second device.

[0240] In the second approach, the first device automatically sends an acquisition request to the second device in response to the target scan result without user intervention, which helps to improve the convenience and automation of configuration content acquisition.

[0241] Optionally, S301 includes: when the first device is not configured with a configuration file of the target FRU, sending an acquisition request to the second device based on a first interface, wherein the first interface supports the use of JSON format data.

[0242] In this embodiment, since the configuration content in the FRU configuration file is in JSON format, the first device is set to send an acquisition request to the second device based on the first interface, so that the configuration content in the configuration file of the target FRU is transmitted between the first device and the second device through the first port, and the first interface supports the transmission of data in JSON format. In this way, when transmitting the configuration content, there is no need to convert the data format, which helps to ensure the convenience and accuracy of data transmission.

[0243] Optionally, S301 includes the following S301a to S301c.

[0244] S301a: When the first device is not configured with the configuration file of the target FRU, a second opening request is sent to the second device.

[0245] The second enable request is used to request enabling of the FRU configuration management service of the second device, so that the second device supports exporting the configuration file of the target FRU.

[0246] In some embodiments, the FRU configuration management service of the second device refers to a FRU configuration management service supported by the second out-of-band controller, wherein the FRU configuration management service of the second device includes an on state and a off state.

[0247] When the FRU configuration management service is enabled, the FRU configuration file in the second out-of-band controller supports exporting, so the second device can send the configuration content in the exported configuration file to other devices. When the FRU configuration management service is disabled, the FRU configuration file in the second out-of-band controller does not support exporting, so the second device cannot send the configuration content in the configuration file in the second out-of-band controller to other devices.

[0248] Since the FRU configuration management service of the second out-of-band controller is initially disabled after it is powered on, the first device sends an enable request to the second device before sending a request to the second device to enable the FRU configuration management service of the second device, thereby enabling the second device to export the configuration file of the target FRU.

[0249] S301b: The second device starts the FRU configuration management service in response to the received second start request.

[0250] In some embodiments, after receiving the second start request, the second device changes the state of the FRU configuration management service from the closed state to the open state to start the FRU configuration management service.

[0251] Exemplarily, after the second FRU configuration service interface of the second out-of-band controller receives the second start request sent by the first out-of-band controller, the second FRU configuration service interface starts the FRU configuration management service in response to the start request.

[0252] In some embodiments, after the FRU configuration management service of the second device is enabled, the second device returns an enable notification to the first device, where the enable notification is used to notify the first device that the FRU configuration management service of the second device has been enabled.

[0253] Exemplarily, the second out-of-band controller may return a start notification to the first out-of-band controller.

[0254] S301c: When the first device determines that the FRU configuration management server of the second device is turned on, the first device sends an acquisition request to the second device.

[0255] In some embodiments, after receiving the startup notification returned by the second device, the first device determines that the FRU configuration management server of the second device has been started. On this basis, the first device sends an acquisition request to the second device to request the configuration content in the configuration file of the target FRU.

[0256] In this embodiment, by setting the second device to configure the FRU configuration management service, when the FRU configuration management service is in the on state, the second device can export the configuration file of the target FRU. When it is in the off state, the second device cannot export the configuration file of the target FRU. This helps to ensure the security of the configuration file of the FRU in the second device.

[0257] Based on this, by setting up to send an opening request to the second device, the second device can be requested to open the FRU configuration management service, so that the second device supports exporting the configuration file of the target FRU, which helps to ensure the convenience of exporting the configuration file.

[0258] S302: The second device receives the acquisition request sent by the first device.

[0259] After receiving the acquisition request, the second out-of-band controller of the second device calls the file exporting unit in response to the acquisition request to export the configuration file of the target FRU from the second flash memory of the second out-of-band controller.

[0260] Exemplarily, after receiving the acquisition request, the second out-of-band controller can export the target FRU's configuration file from the second flash memory if the FRU configuration file management service is enabled. Otherwise, the target FRU's configuration file cannot be exported from the second flash memory.

[0261] In some embodiments, when the acquisition request includes the name of the target FRU, the second out-of-band controller parses the name of the target FRU from the URL index of the acquisition request and exports the FRU configuration file indicated by the name of the target FRU from the second flash memory.

[0262] In other embodiments, when the acquisition request includes the model identification of the first device, the second out-of-band controller parses the model identification of the first device from the URL index of the acquisition request, and based on the model identification, exports the configuration file indicated by the model identification (i.e., the configuration file of the target FRU) from the second flash memory.

[0263] In an example, a plurality of first FRU configuration file sets are stored in the second flash memory.

[0264] Different first FRU configuration file sets are applicable to different machine models. For example, the multiple first FRU configuration file sets include a set applicable to rack-type devices, a set applicable to blade-type devices, a set applicable to tower-type devices, and the like.

[0265] It should be noted that the FRU configuration files in different first FRU configuration file sets may be the same or different, and this embodiment of the present application does not impose any limitation on this.

[0266] On this basis, the second out-of-band controller exports the first FRU configuration file set indicated by the model identifier from the second flash memory. In other words, it exports the first FRU configuration file set applicable to the model corresponding to the model identifier.

[0267] In some further embodiments, when the acquisition request includes a target FRU type, the second out-of-band controller parses the target FRU type from a URL index of the acquisition request, and exports a configuration file belonging to the target FRU type from the second flash memory based on the target FRU type.

[0268] In an example, a plurality of second FRU configuration file sets are stored in the second flash memory.

[0269] It can be understood that the FRU configuration files in a second FRU configuration file set belong to the same FRU type.

[0270] The different second FRU configuration file sets belong to different FRU types. For example, the multiple second FRU configuration file sets include a set belonging to mainboard type FRUs, a set belonging to frame type FRUs, a set belonging to backplane type FRUs, and a set belonging to power type FRUs.

[0271] On this basis, the second out-of-band controller exports the second FRU configuration file set indicated by the target FRU type from the second flash memory. In other words, it exports the second FRU configuration file set belonging to the target FRU type.

[0272] The second FRU configuration file set belonging to the target FRU type means that the configuration files in the second FRU configuration file set belong to the target FRU type.

[0273] Based on the above, when the acquisition request includes the model identifier and target FRU type of the first device, the configuration file exported by the second out-of-band controller from the second flash memory should belong to the first FRU configuration file set indicated by the model identifier and the second FRU configuration file set indicated by the target FRU type.

[0274] Optionally, S302 includes: the second device receives, based on the second interface, an acquisition request sent by the first device.

[0275] In some embodiments, after receiving the acquisition request, the second interface parses the target FRU's name from the URL index of the acquisition request, and then calls the file export unit to export the target FRU's configuration file, where the name of the target FRU's configuration file is the same as the name of the target FRU.

[0276] Optionally, S303: the second device determines whether the configuration content in the configuration file of the target FRU meets a preset condition.

[0277] If the judgment result is yes, then execute S304. If the judgment result is no, then end.

[0278] The preset condition includes at least one of a preset attribute name, a preset field type, and a preset attribute value.

[0279] In some embodiments, the configuration content includes multiple attribute information. The configuration content satisfies the preset condition if the attribute names, field types, or attribute values ​​of the multiple attribute information included in the configuration content match the corresponding preset attribute names, preset field types, or preset attribute values ​​in the preset condition.

[0280] In some embodiments, when the acquisition request is used to request to obtain configuration content in a configuration file of a FRU, the second device determines whether the configuration content in the configuration file of the FRU meets a preset condition.

[0281] In other embodiments, when the acquisition request is used to request to obtain configuration contents in configuration files of multiple FRUs, the second device respectively determines whether the configuration contents in the configuration files of the multiple FRUs meet preset conditions.

[0282] In this embodiment, when the configuration content in the configuration file meets the preset conditions, the configuration content in the configuration file is sent to the first device. This helps to avoid the configuration content belonging to a non-FRU configuration file, thereby improving the accuracy and security of the exported configuration content and avoiding the second device from generating a FRU configuration file based on the configuration content of the non-FRU configuration file.

[0283] Optionally, S303 includes multiple implementation methods, which are exemplified below using methods a to c.

[0284] Mode a, S303 includes: the second device determines whether the attribute name of the configuration content is the same as the preset attribute name, and whether the field type of the configuration content is the same as the preset field type.

[0285] If the judgment result is identical, in other words, the attribute name of the configuration content is identical to the preset attribute name, and the field type of the configuration content is identical to the preset field type, it indicates that the configuration content in the configuration file meets the preset conditions, and S304 is executed. If the judgment result is different, in other words, the attribute name of the configuration content is different from the preset attribute name, and / or the field type of the configuration content is different from the preset field type, it indicates that the configuration content in the configuration file does not meet the preset conditions, and the process ends.

[0286] The attribute name of the configuration content includes at least one of the manufacturer identifier, PN component identifier, SN serial number, model number, and name of the target FRU; and the field type of the configuration content includes a string. In some embodiments, the second interface invokes a second format parsing unit to parse the configuration file of the target FRU and encapsulate the parsed content to obtain the configuration content in the configuration file. The second format parsing unit then obtains preset attribute names and preset field types, and compares the attribute names of the configuration content with the preset attribute names, and the field types of the configuration content with the preset field types.

[0287] Exemplarily, the acquisition request includes the common properties of the configuration file of the target FRU, such as, the common properties may include @odata.context / / FRU configuration resource template file, @odata.id / / FRU configuration resource unique identifier URL, @odata.type / / FRU configuration resource template name and version number, the second format parsing unit obtains the common properties of the configuration file of the target FRU by parsing the acquisition request, and then obtains the preset property name and preset field type through the common properties.

[0288] In some embodiments, a first template file is stored in the second flash memory, and the template file records a preset attribute name and a preset field type.

[0289] Based on the above, the second format parsing unit obtains the first template file through the public attributes, thereby obtaining the preset attribute name and the preset field type.

[0290] In one example, the first template file may be global.json / / official template document. The preset attribute names include a preset manufacturer identifier, a preset PN component identifier, a preset SN serial number, a preset model number, a preset name, and the like.

[0291] In one example, the first template file includes a preset attribute name and a preset field type.

[0292] For example, the content of the first template is as follows:

[0293] Among them, "Properties" is used to represent attribute information, "Manufacturer" is used to represent that the preset attribute name is manufacturer, and ""type":"string"" in the third row is used to represent that the preset field type of the manufacturer is string. "Model" is used to represent that the preset attribute name is model. "PartNumber" is used to represent that the preset attribute name is PN part identification. ""SerialNumber" is used to represent that the preset attribute name is SN serial number.

[0294] In the above method a, whether the configuration content meets the preset conditions is determined by whether the attribute name of the configuration content is the same as the preset attribute name, and whether the field type of the configuration content is the same as the preset field type. This helps to ensure the accuracy and completeness of the configuration content parsed from the configuration file.

[0295] Mode b: The second device determines whether the attribute name of the configuration content is the same as the preset attribute name, and whether the attribute value of the configuration content is the same as the preset attribute value.

[0296] In mode b, the attribute name of the configuration content includes the model identifier and / or FRU type of the target FRU.

[0297] The model identifier of the target FRU indicates an identifier of a model to which the target FRU is applicable.

[0298] In some embodiments, the second flash memory stores a second template, and the second template records a preset attribute name and a preset attribute value.

[0299] Based on the above, the second format parsing unit obtains the second template through the public attributes, thereby obtaining the preset attribute name and the preset attribute value.

[0300] In one example, the second template file may be oem.json / / custom template document. The preset attribute name includes the preset model identifier and the preset FRU type.

[0301] In one example, the second template file includes a preset attribute name and a preset attribute value.

[0302] For example, the content of the second template is as follows:

[0303] "Type" indicates that the attribute name is the type (i.e., the FRU type), "title": "Configuration Type" indicates that the type is the configuration type. "enum" indicates that the following attribute values ​​are enumerated, and "Board", "Chassis", "NVME", and "PowerSupply" indicate attribute values. In other words, the preset FRU types include Board, Chassis, NVME, and PowerSupply.

[0304] It should be noted that for other related instructions about method b, please refer to the above method a, which will not be repeated here.

[0305] In the above method b, whether the configuration content meets the preset conditions is determined by whether the attribute name of the configuration content is the same as the preset attribute name, and whether the attribute value of the configuration content is the same as the preset attribute value. This helps to ensure the accuracy and completeness of the configuration content parsed from the configuration file.

[0306] Mode c, S303 includes: the second device determines whether the attribute name of the configuration content is the same as the preset configuration attribute name.

[0307] If the judgment result is the same, it means that the configuration content in the configuration file meets the preset conditions, and then S304 is executed. If the judgment result is not the same, it means that the configuration content in the configuration file does not meet the preset conditions, and then the process ends.

[0308] In mode c, the attribute name of the configuration content may include at least one of the manufacturer identifier, PN component identifier, SN serial number, model, name, FRU type, and model identifier of the FRU.

[0309] It should be noted that for the relevant instructions on method c, please refer to the above method a, which will not be repeated here.

[0310] In the above method c, whether the configuration content meets the preset conditions is determined by checking whether the name of the configuration content is the same as the preset configuration name. This helps to ensure the accuracy and completeness of the configuration content parsed from the configuration file.

[0311] It should be noted that the above-mentioned methods a to c can be used alone or in combination. For example, method a and method b can be used in combination, and method b can be used in combination with method c. The embodiments of the present application do not limit this.

[0312] It should be noted that the above-mentioned methods a to c are only exemplary descriptions, and the specific method of determining whether the configuration content meets the preset conditions in the embodiment of the present application is not limited.

[0313] S304: In response to the acquisition request, the second device sends a creation request to the first device.

[0314] The creation request is used to request the creation of a configuration file of the target FRU. The creation request includes configuration content in the configuration file of the target FRU.

[0315] Exemplarily, the create request can be a POST request in a RESTful architecture. In a RESTful architecture, the POST request can be used to request the creation of a new resource or the execution of a method for a specified resource. In an embodiment of the present application, the POST request is used to request the creation of a new resource (i.e., a configuration file of a target FRU).

[0316] In some embodiments, when the second format parsing unit determines that the configuration content meets the preset conditions, it generates a response body message, which is a creation request.

[0317] In some embodiments, when the acquisition request is used to request configuration content in a configuration file of a FRU, the second device sends a request for creating the configuration file of the FRU to the first device.

[0318] In other embodiments, when the acquisition request is used to request to obtain configuration contents in configuration files of multiple FRUs, the second device sends creation requests for the configuration files of the multiple FRUs to the first device respectively.

[0319] Optionally, S304 includes the second device sending a creation request to the first device based on the second interface in response to the acquisition request.

[0320] The second interface transmits data in JSON format.

[0321] In some embodiments, when the second format parsing unit determines that the configuration content meets the preset conditions, it calls the second interface and sends a creation request to the first device.

[0322] In this embodiment, since the configuration file of the FRU is a JSON file and the configuration content in the configuration file of the FRU is in JSON format, the configuration content in the configuration file of the target FRU is transmitted between the first device and the second device through the second interface, and the second interface supports the transmission of JSON format files. In this way, when transmitting the configuration content, there is no need to convert the data format, which helps to ensure the convenience and accuracy of data transmission.

[0323] S305: The first device receives the creation request sent by the second device.

[0324] Optionally, S305 includes: the first device receives, according to the first interface, a creation request sent by the second device.

[0325] In some embodiments, the first interface of the first out-of-band controller receives the creation request, and then the first interface calls the file import unit to import the configuration content in the configuration file of the target FRU into the first device.

[0326] Optionally, S306: the first device determines whether the configuration content in the configuration file of the target FRU meets a preset condition.

[0327] If the judgment result is yes, then execute S307. If the judgment result is no, then end.

[0328] In some embodiments, after receiving the creation request, the first interface of the first out-of-band controller invokes a format parsing unit, which parses the configuration content in the configuration file to determine whether the configuration content meets a preset condition. If the preset condition is met, the configuration content received by the first device is compliant; otherwise, the configuration content is non-compliant.

[0329] In this embodiment, the configuration file of the target FRU is created based on the configuration content only when the configuration content in the configuration file of the target FRU meets the preset conditions. This helps to ensure the integrity of the configuration content. In other words, the configuration content required to create the configuration file is complete, which helps to avoid using non-compliant configuration content to create the configuration file of the target FRU, resulting in abnormal function of the target FRU when managing the target FRU based on the created configuration file.

[0330] It should be noted that the implementation process and related descriptions of S306 can refer to the above S303 and will not be repeated here.

[0331] S307: The first device creates a configuration file of the target FRU based on the configuration content in the configuration file of the target FRU in response to the creation request.

[0332] In some embodiments, when the first format parsing unit determines that the configuration content meets the preset conditions, the file importing unit is called to create a configuration file of the target FRU in the first flash memory, so that the configuration file of the target FRU is stored in the first flash memory.

[0333] Exemplarily, the file import unit responds to the creation request, creates a configuration file for the target FRU based on the configuration content in the configuration file of the target FRU, and stores the newly created configuration file for the target FRU in the data area of ​​the first flash memory. The newly created configuration file for the target FRU can be a file in JSON format.

[0334] It should be noted that the process of creating a configuration file of a target FRU in response to a creation request can refer to the process of creating a new resource based on a POST request in the related art. The principles of the two are the same and will not be repeated here.

[0335] In some embodiments, when the acquisition request is used to request configuration content in a configuration file of a FRU, the first device creates the configuration file of the FRU in response to the creation request.

[0336] In other embodiments, when the acquisition request is used to request configuration contents in configuration files of multiple FRUs, the second device creates configuration files of the multiple FRUs respectively in response to the creation request.

[0337] Optionally, the FRU management method further includes: setting the FRU configuration management server of the first device to an on state.

[0338] In some embodiments, in response to the target scan result, the first device sets the FRU configuration management server of the first device to an on state, so that the first device supports creation of a configuration file of the target FRU.

[0339] Since the first device supports creating a configuration file for the target FRU when the FRU configuration management service is set to be enabled, this helps avoid creating a configuration file without permission, thereby helping to ensure the security of FRU management.

[0340] S308: The first device manages the target FRU based on the configuration file of the target FRU.

[0341] In some embodiments, when the acquisition request is used to request to obtain configuration content in a configuration file of a FRU, the first device manages the FRU based on the configuration file of the FRU.

[0342] In other embodiments, when the acquisition request is used to request to obtain configuration contents in configuration files of multiple FRUs, the second device manages the multiple FRUs based on the configuration files of the multiple FRUs.

[0343] In some embodiments, after the configuration file for the target FRU is stored in the first flash memory, the first FRU configuration service interface is invoked to trigger a FRU scan operation. The first out-of-band controller then scans the FRUs of the first device. After scanning the target FRU, the first out-of-band controller obtains the name of the target FRU stored in the target FRU. The first out-of-band controller then loads the configuration file for the target FRU from the first flash memory based on the target FRU name, thereby managing the FRU.

[0344] In other embodiments, after the configuration file of the target FRU is stored in the first flash memory, the first device performs a reboot operation to repower the CPU of the first device. After the first device reboots, the first out-of-band controller scans the FRUs of the first device and, after scanning the target FRU, obtains the name of the target FRU stored in the target FRU. The first out-of-band controller then loads the configuration file of the target FRU from the first flash memory based on the target FRU name and reports management services for the target FRU to the CPU, thereby managing the FRU.

[0345] Since some functions of the target FRU need to be managed after the CPU of the first device is restarted, after setting the configuration file of the target FRU to be stored in the first flash memory, the first device performs a restart operation and loads the configuration file of the target FRU, so that the management service of the target FRU can be reported to the CPU, which helps to ensure the completeness of the management of the target FRU by the first out-of-band controller.

[0346] In the above embodiment, when the first device has not configured the configuration file of the target FRU, the first device proactively sends an acquisition request to the second device to request the configuration content in the configuration file of the target FRU, and after receiving the creation request from the first device, the first device automatically responds to the creation request, automatically creates the configuration file of the target FRU based on the configuration content in the configuration file of the target FRU carried in the creation request, and then manages the target FRU based on the created configuration file of the target FRU. Since the first device can automatically create the configuration file of the target FRU based on the creation request, compared with the related art that requires the development, testing, version release and other processes of the firmware program before the configuration file of the target FRU can be configured for the first device, it not only helps to reduce the cost of replacing the target FRU, but also helps to improve the efficiency of replacing the target FRU.

[0347] Optionally, the FRU management method further includes the following steps 1 to 2.

[0348] Step 1: The client device sends a scan request to the first device.

[0349] The scan request is used to request scanning of a target FRU after the first device is restarted.

[0350] In some embodiments, after storing the configuration file of the target FRU in the first flash memory, in order to enable the first out-of-band controller to manage all functions of the target FRU, the user sends a scan request to the first device through the client device to instruct the first out-of-band controller of the first device to restart and scan the target FRU after restarting.

[0351] Exemplarily, the CPU of the client device sends a scan request to the target link of the first device. The scan request may be a POST request. In this embodiment, a POST request is used to request execution of a method (i.e., scan FRU) for a specified resource. The scan request includes the action name and action parameters defined in the @Redfish.ActionInfo link.

[0352] The target link is redfish / v1 / Manager / {Id} / FRUManagerService / Actions / FRUManager.RescanBuses. The @Redfish.ActionInfo link is / redfish / v1 / Managers / {Id} / RescanBusesActionInfo. The action name (Name) is RescanBuses (Rescan Buses). The action parameters (AllowableValues) are Rescan.

[0353] Step 2: The first device performs a restart operation in response to the received scan request sent by the client device, and scans the target FRU after restarting.

[0354] In some embodiments, after receiving the scan request, the first device performs a restart operation to power on the CPU of the first device. Thereafter, the first out-of-band controller scans the FRUs on the first device, thereby scanning the target FRU.

[0355] In this embodiment, the first device is set to respond to a scan request, restart, and scan the FRU on the first device after restarting. In this way, when the user determines that the FRU needs to be scanned, a scan request can be sent to the first device to instruct the first device to scan the FRU, which helps to improve the flexibility of FRU scanning.

[0356] The second part of the embodiment of the present application is introduced below in conjunction with FIG6 .

[0357] Fig. 6 is a flow chart showing another method for managing a field replaceable unit (FRU) according to an exemplary embodiment. Exemplarily, the method includes the following steps S601-S612.

[0358] It should be noted that this method is applicable to the system architecture shown in FIG. 2A and FIG. 2B .

[0359] In some embodiments, the client device stores configuration content in a configuration file of the target FRU. In addition, the FRUs on the plurality of first devices are also replaced with the target FRUs.

[0360] To reduce the R&D cost and time of configuring a configuration file for a target FRU for a first device, any one of the multiple first devices can automatically create a configuration file for the target FRU based on the following steps S601-S507. In other words, the first device in the following embodiments can be any one of the multiple first devices.

[0361] Optionally, S601: the client device sends a query request to the first device in response to the query instruction.

[0362] The query request is used to request to query the FRU types supported by the first device.

[0363] In some embodiments, after the client device logs into the client of the first out-of-band controller, the CPU of the client device sends a query request to the first out-of-band controller.

[0364] The client device stores configuration files for multiple FRUs. For example, the configuration files for the multiple FRUs may be stored in a storage device of the client device. To ensure that the configuration content subsequently sent to the first device corresponds to a FRU type supported by the first device, the client device sends a query request to the first device to query the FRU types supported by the first device.

[0365] Optionally, S602: the first device sends the target FRU type to the client device in response to the query request.

[0366] In some embodiments, a first FRU configuration service interface of the first out-of-band controller receives a query request sent by a client device and obtains the FRU types supported by the first device. Thereafter, the first FRU configuration service interface sends the FRU types supported by the first device (i.e., target FRU types) to the client device.

[0367] In this embodiment, the client device queries the FRU type supported by the first device, which helps to ensure that the FRU corresponding to the configuration content sent to the first device is a FRU type supported by the first device.

[0368] Optionally, the FRU management method further includes:

[0369] Step 1: The client device sends a first enable request to the first device; the first enable request is used to request to enable the FRU configuration service of the first device, so that the first device supports importing the configuration content in the configuration file;

[0370] Step 2: The first device sets the FRU configuration management service of the first device to an enabled state in response to the received first enable request.

[0371] It should be noted that for the relevant descriptions of step 1 to step 2, reference can be made to the relevant descriptions of S301a to S301c above, and no further details will be given here.

[0372] S603: The client device sends a creation request to the first device in response to the creation instruction.

[0373] The creation request is used to request the creation of a configuration file of the target FRU. The creation request includes configuration content in the configuration file of the target FRU.

[0374] The creation instruction is used to instruct to send a creation request for a configuration file of the target FRU to the first device.

[0375] In some embodiments, a user performs a target operation on a client, and the client generates a creation instruction in response to the target operation performed by the user. The target operation can be an operation performed by the user on a command line, or an operation performed by the user on a client of the first out-of-band controller.

[0376] In some embodiments, the client device stores configuration content in the configuration file of the target FRU. If the first device does not have the configuration file of the target FRU configured, the client device sends a creation request to the first device so that the first device can automatically create the configuration file of the target FRU.

[0377] In some embodiments, after the client device logs into the client of the first out-of-band controller, the CPU of the client device sends a creation request to the first out-of-band controller.

[0378] In one example, the client device responds to a creation instruction and sends a creation request to the first device based on the target FRU type, wherein the configuration file of the target FRU belongs to the target FRU type. This helps to ensure that the configuration content in the configuration file of the target FRU received by the first device can be used normally.

[0379] Optionally, S603 includes: in response to the creation instruction, sending the creation request to the first device based on a third interface; the third interface supports transmission of data in JSON format.

[0380] In this implementation, since the FRU configuration file is a JSON file and the configuration content in the FRU configuration file is in JSON format, the client device sends the configuration content in the configuration file of the target FRU to the first device through the third interface, and the third interface supports the transmission of JSON format files. In this way, when transmitting the configuration content, there is no need to convert the data format, which helps to ensure the convenience and accuracy of data transmission.

[0381] It should be noted that for other related descriptions of S603, reference can be made to the above-mentioned S304. The principles of the two are the same and will not be repeated here.

[0382] S604: The first device receives a creation request sent by the client device.

[0383] It should be noted that for other related descriptions of S604, reference can be made to the above-mentioned S305. The principles of the two are the same and will not be repeated here.

[0384] Optionally, S605: the first device determines whether the configuration content in the configuration file of the target FRU meets a preset condition.

[0385] It should be noted that for other related descriptions of S605, reference can be made to the above-mentioned S306. The principles of the two are the same and will not be repeated here.

[0386] S606: The first device creates a configuration file of the target FRU based on the configuration content in the configuration file of the target FRU in response to the creation request.

[0387] It should be noted that for other related descriptions of S606, reference can be made to the above-mentioned S307. The principles of the two are the same and will not be repeated here.

[0388] S607: The first device manages the target FRU based on the configuration file of the target FRU.

[0389] It should be noted that for other related descriptions of S607, reference can be made to the above-mentioned S308. The principles of the two are the same and will not be repeated here.

[0390] In the above embodiment, when the user determines that the first device needs to use the configuration file of the target FRU, the user instructs the client device to send a creation request to the first device through a creation instruction, so that the first device can automatically create the configuration file of the target FRU. After receiving the creation request, the first device automatically responds to the creation request and automatically creates the configuration file of the target FRU based on the configuration content in the configuration file of the target FRU carried in the creation request. Thereafter, the target FRU is managed based on the created configuration file of the target FRU. Since the first device can automatically create the configuration file of the target FRU based on the creation request, compared with the related art that requires the development, testing, version release and other processes of the firmware program before the configuration file of the target FRU can be configured for the first device, it not only helps to reduce the cost of replacing the target FRU, but also helps to improve the efficiency of replacing the target FRU.

[0391] The following describes, through S608 to S612 , a process in which the client device obtains the configuration file of the target FRU.

[0392] S608: The client device sends an acquisition request to the second device in response to the acquisition instruction.

[0393] The acquisition request is used to request to acquire the configuration content in the configuration file of the target FRU.

[0394] In some embodiments, after the client device logs into the client of the second out-of-band controller, the CPU of the client device sends an acquisition request to the second out-of-band controller.

[0395] Optionally, the FRU management method further includes:

[0396] Step 1: The client device sends a third enable request to the second device, where the second enable request is used to request enabling the FRU configuration management service of the second device so that the second device supports exporting configuration content in the configuration file.

[0397] Step 2: In response to the received third enable request, the second device sets the FRU configuration management service of the second device to an enabled state.

[0398] It should be noted that for the relevant descriptions of step 1 to step 2, reference can be made to the relevant descriptions of S301a to S301c above, and no further details will be given here.

[0399] It should be noted that for other related descriptions of S608, reference can be made to the above-mentioned S301. The principles of the two are the same and will not be repeated here.

[0400] S609: The second device receives the acquisition request sent by the client device.

[0401] It should be noted that for other related descriptions of S609, reference can be made to the above-mentioned S302. The principles of the two are the same and will not be repeated here.

[0402] Optionally, S610: The second device determines whether the configuration content in the configuration file of the target FRU meets a preset condition.

[0403] It should be noted that for other related descriptions of S610, reference can be made to the above-mentioned S303. The principles of the two are the same and will not be repeated here.

[0404] S611: The second device sends the configuration content in the configuration file of the target FRU to the client device.

[0405] It should be noted that for the relevant description of S611, reference can be made to the above-mentioned S304. The principles of the two are the same and will not be repeated here.

[0406] S612: The client device receives the configuration content in the configuration file of the target FRU sent by the second device.

[0407] It should be noted that for the relevant description of S612, reference can be made to the above-mentioned S305. The principles of the two are the same and will not be repeated here.

[0408] In the above embodiment, the first device responds to the acquisition instruction and sends an acquisition request to the second device to request to obtain the configuration content in the configuration file of the target FRU from the second device, thereby realizing the configuration content in the configuration file of the target FRU. In this way, other devices can generate the configuration file of the target FRU based on the configuration content in the configuration file. Compared with the related technology that requires the development, testing, version release and other processes of the firmware program to determine the configuration content in the configuration file of the target FRU, it not only helps to reduce the cost of determining the configuration content in the configuration file, but also helps to improve the efficiency of the configuration content in the configuration file.

[0409] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of the method. In order to realize the above functions, the field replaceable unit FRU management device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0410] In the embodiment of the present application, the field replaceable unit (FRU) management device can be divided into functional modules according to the above method. For example, the field replaceable unit (FRU) management device can include functional modules corresponding to the functional divisions, or two or more functions can be integrated into one processing module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. In actual implementation, there may be other division methods.

[0411] Exemplarily, FIG7 shows a possible structural diagram of the field replaceable unit FRU management device involved in the above embodiment (referred to as the field replaceable unit FRU management device 700), and the FRU management device 700 includes a receiving unit 701, a creating unit 702, and a managing unit 703. The receiving unit 701 is used to receive a creation request, and the creation request is used to request the creation of a configuration file of the target FRU; the creation request includes the configuration content in the configuration file of the target FRU. For example, S305 shown in FIG3, and S604 shown in FIG6. The creation unit 702 is used to create a configuration file of the target FRU based on the configuration content in the configuration file of the target FRU in response to the creation request. For example, S307 shown in FIG3, and S606 shown in FIG6. The management unit 703 is used to manage the target FRU based on the configuration file of the target FRU. For example, S308 shown in FIG3, and S607 shown in FIG6.

[0412] Optionally, the creation request is sent by the client device in response to a creation instruction, where the creation instruction is used to instruct sending a creation request for a configuration file of the target FRU to the first device, and the client device stores configuration content in the configuration file of the target FRU.

[0413] Optionally, the FRU management device 700 further includes a sending unit 704. The sending unit 704 is configured to send an acquisition request to a second device when the first device is not configured with a configuration file for the target FRU; the second device stores the configuration file for the target FRU, and the acquisition request is used to request configuration content in the configuration file; wherein the create request is sent by the second device in response to the acquisition request.

[0414] Optionally, the sending unit 704 is specifically used to send an acquisition request to the second device in response to the received target instruction; the target instruction is used to instruct to obtain the configuration content in the configuration file of the target FRU from the second device, and the target instruction is sent when the first device is not configured with the configuration file of the target FRU; or send an acquisition request to the second device in response to the target scan result; the target scan result includes the configuration file of the target FRU that was not scanned on the first device.

[0415] Optionally, the creating unit 702 is specifically configured to create a configuration file of the target FRU based on the configuration content in the configuration file in response to a creation request if the configuration content in the configuration file meets a preset condition.

[0416] Optionally, the configuration content in the configuration file meets the preset conditions, including: the attribute name of the configuration content is the same as the preset attribute name, and the field type of the configuration content is the same as the preset field type; wherein, the attribute name of the configuration content includes at least one of the manufacturer identification, PN component identification, SN serial number, model, and name of the target FRU.

[0417] Optionally, the configuration content in the configuration file meets preset conditions, including: the attribute name of the configuration content is the same as the preset attribute name, and the attribute value of the configuration content is the same as the preset attribute value; wherein the attribute name of the configuration content includes the model identification and / or FRU type of the target FRU.

[0418] Optionally, the acquisition request includes the name of the target FRU, and the acquisition request is used to request to obtain the configuration content in the configuration file indicated by the name of the target FRU; or the acquisition request includes the model identifier of the first device, and the acquisition request is used to request to obtain the configuration content in the configuration file supported by the model identifier, and the configuration file of the target FRU is the configuration file supported by the model identifier.

[0419] Optionally, when the acquisition request includes the model identification of the first device, the acquisition request may also include a target FRU type, where the target FRU type is a FRU type supported by the first device. The acquisition request is used to request the configuration content in the configuration file belonging to the target FRU type, where the configuration file of the target FRU is a configuration file belonging to the target FRU type.

[0420] Optionally, the configuration content in the configuration file is in JSON format; the receiving unit 701 is specifically configured to receive a creation request based on the first interface; the first interface supports transmission of data in JSON format.

[0421] In addition, the explanation and beneficial effects of any of the above-mentioned field replaceable unit (FRU) management devices 700 can be referred to the corresponding method embodiments, which will not be repeated here.

[0422] Exemplarily, FIG8 shows a possible structural diagram of the field replaceable unit FRU management device involved in the above embodiment (referred to as the field replaceable unit FRU management device 800), and the FRU management device 800 includes a receiving unit 801 and a sending unit 802. The receiving unit 801 is used to receive an acquisition request; the acquisition request is used to request to obtain the configuration content in the configuration file of the target FRU. For example, S302 shown in FIG3 and S602 shown in FIG6. The sending unit 802 is used to send a creation request to the device that sent the acquisition request in response to the acquisition request; the creation request includes the configuration content in the configuration file of the target FRU, the creation request is used to request to create the configuration file of the target FRU, and the configuration file of the target FRU is used to manage the target FRU on the device that sent the acquisition request, or the sending unit 802 is used to send the configuration content in the configuration file of the target FRU to the device that sent the acquisition request in response to the acquisition request. For example, S304 shown in FIG3 or S611 shown in FIG6.

[0423] Optionally, the acquisition request is sent by the client device in response to an acquisition instruction; or the acquisition request is sent by the first device when the first device is not configured with a configuration file of the target FRU.

[0424] Optionally, the sending unit is specifically configured to respond to the acquisition request if the configuration content in the configuration file meets a preset condition.

[0425] Optionally, the configuration content in the configuration file meets the preset conditions, including: the attribute name of the configuration content is the same as the preset attribute name, and the field type of the configuration content is the same as the preset field type; wherein, the attribute name of the configuration content includes at least one of the manufacturer identification, PN component identification, SN serial number, model, and name of the target FRU.

[0426] Optionally, the configuration content in the configuration file meets preset conditions, including: the attribute name of the configuration content is the same as the preset attribute name, and the attribute value of the configuration content is the same as the preset attribute value; wherein the attribute name of the configuration content includes the model identification and / or FRU type of the target FRU.

[0427] Optionally, the acquisition request includes the name of the target FRU, and the acquisition request is used to request the configuration file indicated by the name of the target FRU; or the acquisition request includes the model identifier of the first device, and the acquisition request is used to request the configuration file supported by the model identifier, and the configuration file supported by the model identifier includes the configuration file of the target FRU.

[0428] Optionally, when the acquisition request includes the model identifier of the first device, the acquisition request may further include a target FRU type, where the target FRU type is a FRU type supported by the first device, and the acquisition request is used to request a configuration file belonging to the target FRU type.

[0429] Optionally, the configuration content in the configuration file is in JSON format; the sending unit 802 is specifically used to: in response to the acquisition request, send a creation request to the device that sends the acquisition request based on the second interface; the second interface supports the transmission of data in JSON format.

[0430] Optionally, the configuration content in the configuration file is in JSON format; the sending unit 802 is specifically used to: in response to the acquisition request, send the configuration content in the configuration file of the target FRU to the device that sends the acquisition request, including: in response to the acquisition request, based on the second interface, sending the configuration content in the configuration file of the target FRU to the device that sends the acquisition request.

[0431] In addition, the explanation and beneficial effects of any of the above-mentioned field replaceable unit (FRU) management devices 800 can be referred to the corresponding method embodiments, which will not be repeated here.

[0432] For example, FIG9 illustrates a possible structural diagram of a field-replaceable unit (FRU) management device (denoted as FRU management device 900) involved in the above-described embodiments. FRU management device 900 includes a sending unit 901. Sending unit 901 is configured to send a creation request to a first device in response to a creation instruction. The creation request is configured to request the creation of a configuration file for a target FRU. The creation request includes configuration content from the configuration file. For example, S603 shown in FIG6 .

[0433] Optionally, the FRU management device 900 further includes a receiving unit 902. The sending unit 901 is further configured to send an acquisition request to the second device in response to the acquisition instruction; the acquisition request is used to request to acquire configuration content in the configuration file of the target FRU; and the receiving unit is configured to receive the configuration content in the configuration file of the target FRU sent by the second device.

[0434] Optionally, the acquisition request includes the name of the target FRU, and the acquisition request is used to request to obtain the configuration content in the configuration file indicated by the name of the target FRU; or the acquisition request includes the model identifier of the first device, and the acquisition request is used to request to obtain the configuration content in the configuration file supported by the model identifier, and the configuration file of the target FRU is the configuration file supported by the model identifier.

[0435] Optionally, when the acquisition request includes the model identification of the first device, the acquisition request may also include a target FRU type, where the target FRU type is a FRU type supported by the first device. The acquisition request is used to request the configuration content in the configuration file belonging to the target FRU type, where the configuration file of the target FRU is a configuration file belonging to the target FRU type.

[0436] Optionally, the sending unit 901 is specifically configured to: in response to a creation instruction, send a creation request to the first device based on a third interface; the third interface supports transmission of data in JSON format.

[0437] In addition, the explanation and beneficial effects of any of the above-mentioned field replaceable unit (FRU) management devices 900 can be referred to the corresponding method embodiments, which will not be repeated here.

[0438] The present application also provides a computer device, which includes a processor and a memory, the processor being connected to the memory, the memory storing computer-executable instructions, and the processor implementing the data processing method in the above embodiment when executing the computer-executable instructions. The present application does not impose any restrictions on the specific form of the computer device. For example, the computer device can be a terminal device or a network device. The terminal device can be referred to as: terminal, user equipment (UE), terminal device, access terminal, user unit, user station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user device, etc. The terminal device can be a mobile phone, augmented reality (AR) device, virtual reality (VR) device, tablet computer, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), etc. The network device can be a server, etc. The server can be a physical or logical server, or two or more physical or logical servers sharing different responsibilities and cooperating with each other to implement the various functions of the server.

[0439] An embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is run on a computer, the computer is caused to execute any of the methods executed by the computer devices provided above.

[0440] For explanations of the relevant contents and descriptions of the beneficial effects of any of the computer-readable storage media provided above, reference may be made to the corresponding embodiments described above, and no further details will be given here.

[0441] The embodiment of the present application also provides a chip. The chip integrates a control circuit and one or more ports for implementing the functions of the above-mentioned computer device. Optionally, the functions supported by the chip can be referred to above and will not be repeated here. A person of ordinary skill in the art will understand that all or part of the steps of implementing the above-mentioned embodiment can be completed by instructing the relevant hardware through a program. The program can be stored in a computer-readable storage medium. The storage medium mentioned above can be a read-only memory, a random access memory, etc. The above-mentioned processing unit or processor can be a central processing unit, a general-purpose processor, an application specific integrated circuit (ASIC), a microprocessor (digital signal processor, DSP), a field programmable gate array (FPGA) or other programmable logic device, transistor logic device, hardware component or any combination thereof.

[0442] The present application also provides a computer program product comprising instructions, which, when executed on a computer, causes the computer to perform any of the methods described in the above embodiments. The computer program product comprises one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated therein. The available media may be magnetic media (e.g., floppy disk, hard disk, tape), optical media (e.g., DVD), or semiconductor media (e.g., SSD).

[0443] It should be noted that the above-mentioned devices for storing computer instructions or computer programs provided in the embodiments of the present application, such as but not limited to the above-mentioned memories, computer-readable storage media and communication chips, etc., are all non-transitory.

[0444] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using a software program, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more media integrated therein. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0445] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the claimed application, those skilled in the art may understand and implement other variations of the disclosed embodiments by reviewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple situations. A single processor or other unit may implement several functions listed in the claims. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.

[0446] Although the present application has been described with reference to specific features and embodiments thereof, it is apparent that various modifications and combinations may be made thereto without departing from the spirit and scope of the present application. Accordingly, this specification and the drawings are merely illustrative of the present application as defined by the appended claims and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the present application. Obviously, those skilled in the art may make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, the present application is intended to include such modifications and variations as fall within the scope of the claims of the present application and their equivalents.

Claims

1. A method for managing a field replaceable unit (FRU), characterized in that: For a first device, the first device comprising a target FRU; the method comprising: Receive a creation request, the creation request including configuration content in a configuration file of the target FRU; In response to the creation request, creating a configuration file of the target FRU based on configuration content in the configuration file of the target FRU; The target FRU is managed based on the configuration file of the target FRU.

2. The method according to claim 1, characterized in that The creation request is sent by the client device in response to a creation instruction, wherein the creation instruction is used to instruct to send a creation request for the configuration file of the target FRU to the first device, and the client device stores the configuration content in the configuration file of the target FRU; or The method also includes: sending an acquisition request to a second device when the first device is not configured with a configuration file of the target FRU; the second device stores the configuration file of the target FRU, and the acquisition request is used to request to obtain the configuration content in the configuration file; wherein the creation request is sent by the second device in response to the acquisition request.

3. The method according to claim 2, characterized in that The sending of the acquisition request to the second device when the first device is not configured with the configuration file of the target FRU includes: In response to the received target instruction, sending the acquisition request to the second device; the target instruction is used to instruct to obtain the configuration content in the configuration file of the target FRU from the second device, and the target instruction is sent when the first device is not configured with the configuration file of the target FRU; or In response to a target scanning result, sending an acquisition request to the second device; the target scanning result includes a configuration file of the target FRU that is not scanned on the first device.

4. The method according to any one of claims 1 to 3, characterized in that The step of creating the configuration file of the target FRU based on the configuration content in the configuration file of the target FRU in response to the creation request includes: If the configuration content in the configuration file meets the preset condition, in response to the creation request, a configuration file of the target FRU is created based on the configuration content in the configuration file.

5. The method according to claim 4, characterized in that The configuration content in the configuration file meets the preset conditions, including: the attribute name of the configuration content is the same as the preset attribute name, and the field type of the configuration content is the same as the preset field type; wherein the attribute name of the configuration content includes at least one of the manufacturer identification, PN component identification, SN serial number, model, and name of the target FRU; and / or The configuration content in the configuration file meets the preset conditions, including: the attribute name of the configuration content is the same as the preset attribute name, and the attribute value of the configuration content is the same as the preset attribute value; wherein the attribute name of the configuration content includes the model identification and / or FRU type of the target FRU.

6. The method according to any one of claims 2, 3 or 5, characterized in that The acquisition request includes the name of the target FRU, and the acquisition request is used to request to obtain the configuration content in the configuration file indicated by the name of the target FRU; or The acquisition request includes a model identification of the first device, and the acquisition request is used to request to obtain configuration content in a configuration file supported by a model corresponding to the model identification, and the configuration file of the target FRU is a configuration file supported by the model identification.

7. The method according to claim 5, characterized in that In the case where the acquisition request includes the model identification of the first device, the acquisition request may also include a target FRU type, where the target FRU type is a FRU type supported by the first device, and the acquisition request is used to request configuration content in a configuration file belonging to the target FRU type, where the configuration file of the target FRU is a configuration file belonging to the target FRU type.

8. The method according to any one of claims 1 to 7, characterized in that The configuration content in the configuration file is in JSON format; the receiving the creation request includes: Based on a first interface, the creation request is received; the first interface supports transmission of data in JSON format.

9. A method for managing a field replaceable unit (FRU), characterized in that: Used for a second device, wherein a configuration file of a target FRU is stored in the second device; the method comprises: Receive an acquisition request; the acquisition request is used to request to obtain the configuration content in the configuration file of the target FRU; In response to the acquisition request, sending a creation request to the device that sent the acquisition request; the creation request includes the configuration content in the configuration file of the target FRU, the creation request is used to request the creation of the configuration file of the target FRU, and the configuration file of the target FRU is used to manage the target FRU on the device that sent the acquisition request; or In response to the acquisition request, the configuration content in the configuration file of the target FRU is sent to the device that sends the acquisition request.

10. The method according to claim 9, characterized in that The acquisition request is sent by the client device in response to an acquisition instruction; or The acquisition request is sent by the first device when the first device has not configured a configuration file of the target FRU.

11. The method according to claim 9 or 10, characterized in that: The response to the acquisition request includes: If the configuration content in the configuration file meets the preset conditions, respond to the acquisition request.

12. The method according to claim 11, characterized in that The configuration content in the configuration file meets the preset conditions, including: the attribute name of the configuration content is the same as the preset attribute name, and the field type of the configuration content is the same as the preset field type; wherein the attribute name of the configuration content includes at least one of the manufacturer identification, PN component identification, SN serial number, model, and name of the target FRU; and / or The configuration content in the configuration file meets the preset conditions, including: the attribute name of the configuration content is the same as the preset attribute name, and the attribute value of the configuration content is the same as the preset attribute value; wherein the attribute name of the configuration content includes the model identification and / or FRU type of the target FRU.

13. The method according to any one of claims 9 to 12, characterized in that: The acquisition request includes the name of the target FRU, and the acquisition request is used to request to obtain the configuration file indicated by the name of the target FRU; or The acquisition request includes a model identification of the first device, and the acquisition request is used to request to obtain a configuration file supported by the model identification, and the configuration files supported by the model identification include a configuration file of the target FRU.

14. The method according to any one of claims 9 to 13, characterized in that: The configuration content in the configuration file is in JSON format; In response to the acquisition request, sending a creation request to the device that sent the acquisition request, including: in response to the acquisition request, based on a second interface, sending a creation request to the device that sent the acquisition request; the second interface supports the transmission of data in JSON format; or In response to the acquisition request, sending the configuration content in the configuration file of the target FRU to the device sending the acquisition request, including: in response to the acquisition request, based on the second interface, sending the configuration content in the configuration file of the target FRU to the device sending the acquisition request.

15. A method for managing a field replaceable unit (FRU), characterized in that: For a client device, the client device stores configuration content in a configuration file of a target FRU; the method comprises: In response to the creation instruction, a creation request is sent to the first device; the creation request is used to request the creation of a configuration file of the target FRU; the creation request includes the configuration content in the configuration file.

16. A computing device, characterized in that include: processor; The processor is connected to a memory, the memory is used to store computer-executable instructions, and the processor executes the computer-executable instructions stored in the memory to enable the computing device to implement the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Firmware updating method and device, Internet of Things system, electronic equipment and storage medium

    CN110113183A

  • Method for updating device firmware of user and related device thereof

    CN115185553A

  • Field replaceable unit (FRU) management method, equipment and system

    CN116820596A

  • Storage management system and method

    US10042634B1