[go: up one dir, main page]

CN116820596A - FRU (field replaceable unit) management method, device and system - Google Patents

FRU (field replaceable unit) management method, device and system Download PDF

Info

Publication number
CN116820596A
CN116820596A CN202310443720.4A CN202310443720A CN116820596A CN 116820596 A CN116820596 A CN 116820596A CN 202310443720 A CN202310443720 A CN 202310443720A CN 116820596 A CN116820596 A CN 116820596A
Authority
CN
China
Prior art keywords
fru
target
configuration
configuration file
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310443720.4A
Other languages
Chinese (zh)
Other versions
CN116820596B (en
Inventor
计季佑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XFusion Digital Technologies Co Ltd
Original Assignee
XFusion Digital Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by XFusion Digital Technologies Co Ltd filed Critical XFusion Digital Technologies Co Ltd
Priority to CN202310443720.4A priority Critical patent/CN116820596B/en
Publication of CN116820596A publication Critical patent/CN116820596A/en
Priority to PCT/CN2023/135112 priority patent/WO2024221915A1/en
Application granted granted Critical
Publication of CN116820596B publication Critical patent/CN116820596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a field replaceable unit FRU management method, equipment and a system, and relates to the technical field of computers. The method is used for a first device, the first device automatically responds to a creation request after receiving the creation request on the basis that the first device comprises a target FRU, automatically creates a configuration file of the target FRU based on configuration content in the configuration file of the target FRU carried by the creation request, and then manages the target FRU based on the created configuration file of the target FRU. Because the first device can automatically create the configuration file of the target FRU based on the creation request, compared with the prior art in which the configuration file of the target FRU can be configured for the first device only by developing, testing, releasing the version and other processes of the firmware program, the method is beneficial to reducing the cost of replacing the target FRU and improving the efficiency of replacing the target FRU.

Description

现场可更换单元FRU管理方法、设备及系统Field replaceable unit FRU management method, equipment and system

技术领域Technical field

本申请涉及计算机技术领域,尤其涉及一种现场可更换单元FRU管理方法、设备及系统。The present application relates to the field of computer technology, and in particular to a field replaceable unit FRU management method, equipment and system.

背景技术Background technique

现场可更换单元(field replace unit,FRU)是硬件设备上的可更换部件。硬件设备更换新FRU后,硬件设备的管理部件若要管理新FRU,需要为管理部件配置新FRU的配置文件。A field replaceable unit (FRU) is a replaceable component on a hardware device. After the hardware device is replaced with a new FRU, if the management component of the hardware device wants to manage the new FRU, it needs to configure the configuration file of the new FRU for the management component.

相关技术中,为管理部件配置新FRU的配置文件的方式,通常是采用升级管理部件的固件程序的方式,其中,升级管理部件的固件程序通常要经过开发、测试、版本发布等流程。这就导致,在同时更换多个硬件设备上的FRU时,则需要对多个硬件设备的管理部件的固件程序进行开发、测试、版本发布等流程,不仅成本极高,而且效率也非常低。In the related art, the configuration file of a new FRU is configured for the management component, usually by upgrading the firmware program of the management component. Upgrading the firmware program of the management component usually requires processes such as development, testing, and version release. As a result, when replacing FRUs on multiple hardware devices at the same time, it is necessary to develop, test, version release and other processes for the firmware programs of the management components of multiple hardware devices, which is not only extremely costly, but also very inefficient.

发明内容Contents of the invention

本申请实施例提供一种FRU管理方法、设备及系统,能够自动创建FRU的配置文件,不仅有助于降低更换FRU的成本,还有助于提高更换FRU的效率。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 reduce the cost of replacing an FRU, but also helps improve the efficiency of replacing an FRU.

为达到上述目的,本申请的实施例采用如下技术方案:In order to achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

第一方面,提供了一种现场可更换单元FRU管理方法,用于第一设备,第一设备包括目标FRU;该方法包括:接收创建请求,创建请求用于请求创建目标FRU的配置文件;创建请求包括目标FRU的配置文件中的配置内容;响应于创建请求,基于目标FRU的配置文件中的配置内容,创建目标FRU的配置文件;基于目标FRU的配置文件,管理目标FRU。In a first aspect, a field replaceable unit FRU management method is provided for a first device, and the first device includes a target FRU; the method includes: receiving a creation request, and the creation request is used to request the creation of a configuration file of the target FRU; creating The request includes configuration content in the configuration file of the target FRU; in response to the creation request, a configuration file of the target FRU is created based on the configuration content in the configuration file of the target FRU; and based on the configuration file of the target FRU, the target FRU is managed.

该实施例中,在第一设备包括目标FRU的基础上,第一设备在接收到创建请求后,由于该创建请求携带了目标FRU的配置文件中的配置内容,因此,第一设备响应于创建请求,基于创建请求携带的目标FRU的配置文件中的配置内容,自动创建目标FRU的配置文件,之后,基于创建的目标FRU的配置文件,管理目标FRU。由于第一设备能够基于创建请求以及创建请求中携带的目标FRU的配置文件中的配置内容,自动创建目标FRU的配置文件,因此,相对于相关技术中需要对固件程序进行开发、测试、版本发布等流程才能够为第一设备配置目标FRU的配置文件,不仅有助于降低更换目标FRU的成本,还有助于提高更换目标FRU的效率。In this embodiment, on the basis that the first device includes the target FRU, after the first device receives the creation request, since the creation request carries the configuration content in the configuration file of the target FRU, the first device responds to the creation request. request, automatically create 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 manage 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 and the configuration content in the configuration file of the target FRU carried in the creation request, therefore, compared to the related technology, the firmware program needs to be developed, tested, and released. Waiting for the process to configure the configuration file of the target FRU for the first device not only helps to reduce the cost of replacing the target FRU, but also helps to improve the efficiency of replacing the target FRU.

在一种可能的实现方式中,创建请求是客户端设备响应于创建指令发送的,创建指令用于指示向第一设备发送目标FRU的配置文件的创建请求,客户端设备存储有目标FRU的配置文件中的配置内容。In a possible implementation, the creation request is sent by the client device in response to a creation instruction. The creation instruction is used to instruct the first device to send a creation request for the configuration file of the target FRU. The client device stores the configuration of the target FRU. Configuration content in the file.

该实现方式中,在用户确定第一设备需要使用目标FRU的配置文件时,通过创建指令,指示客户端设备向第一设备发送创建请求,使得第一设备可以自动创建目标FRU的配置文件,这样,不仅节省了第一设备向其他设备获取的时间,而且有助于提高第一设备所创建的目标FRU的配置文件的必要性,避免在不需要使用目标FRU的配置文件时,创建配置文件。In this implementation, when the user determines that the first device needs to use the configuration file of the target FRU, the client device is instructed to send a creation request to the first device through a create instruction, so that the first device can automatically create the configuration file of the target FRU, so that , not only saves the time for the first device to obtain 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 the configuration file when the configuration file of the target FRU is not needed.

另一种可能的实现方式中,该方法还包括:接收客户端设备发送的查询请求,查询请求用于请求查询第一设备支持的FRU类型;响应于查询请求,向客户端设备发送目标FRU类型;其中,目标FRU类型为第一设备支持的FRU类型。In another possible implementation, the method further includes: receiving a query request sent by the client device, the query request being used to request to query the FRU type supported by the first device; in response to the query request, sending the target FRU type to the client device ; Wherein, the target FRU type is a FRU type supported by the first device.

该实现方式中,通过接收客户端发送的查询请求,并响应于查询请求,向客户端返回第一设备支持的FRU类型,使得客户端设备可以了解第一设备支持的FRU类型,这样,有助于创建请求所请求创建的配置文件,与第一设备的支持FRU类型相匹配,进而有助于保证第一设备能够成功使用所创建的配置文件。In this implementation, by receiving the query request sent by the client and responding to the query request, the FRU type supported by the first device is returned to the client, so that the client device can understand the FRU type supported by the first device. In this way, it is helpful to The configuration file requested in the creation request matches the FRU type supported by the first device, thereby helping to ensure that the first device can successfully use the created configuration file.

另一种可能的实现方式中,该方法还包括:接收客户端设备发送的第一开启请求,第一开启请求用于请求开启第一设备的FRU配置服务,以使得第一设备支持创建目标FRU的配置文件;响应于第一开启请求,将第一设备的FRU配置管理服务设置为开启状态。In another possible implementation, the method further includes: receiving a first start request sent by the client device. The first start request is used to request to start the FRU configuration service of the first device, so that the first device supports creating the target FRU. configuration file; in response to the first enable request, set the FRU configuration management service of the first device to an enabled state.

该实现方式中,第一设备响应于接收到的第一开启请求,将第一设备的FRU配置管理服务设置为开启状态,从而使得第一设备支持创建目标FRU的配置文件。由于第一设备仅在FRU配置管理服务设置为开启状态时,支持创建目标FRU的配置文件,这样,有助于避免在未经允许的情况下创建配置文件,进而有助于保证FRU管理的安全性。In this implementation, in response to the received first enable request, the first device sets the FRU configuration management service of the first device to an enabled state, so that the first device supports creating a configuration file of the target FRU. Since the first device only supports creating the configuration file of the target FRU when the FRU configuration management service is set to on, this helps avoid creating configuration files without permission, thereby helping to ensure the security of FRU management. sex.

另一种可能的实现方式中,该方法还包括:在第一设备未配置目标FRU的配置文件的情况下,向第二设备发送获取请求;第二设备存储有目标FRU的配置文件,获取请求用于请求获取配置文件中的配置内容;其中,创建请求是第二设备响应于获取请求发送的。In another possible implementation, the method also includes: when the first device does not configure 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 obtains the request. 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.

该实现方式中,在第一设备未配置目标FRU的配置文件的情况下,第一设备主动向第二设备发送获取请求,以请求获取目标FRU的配置文件中的配置内容,这样,有助于提高第二设备创建目标FRU的配置文件的便利性和自动化程度。In this implementation, when the first device does not configure the configuration file of the target FRU, the first device actively sends an acquisition request to the second device to request to obtain the configuration content in the configuration file of the target FRU. In this way, it is helpful to Improve the convenience and automation of creating target FRU configuration files for the second device.

另一种可能的实现方式中,在第一设备未配置目标FRU的配置文件的情况下,向第二设备发送获取请求,包括:响应于接收到的目标指令,向所第二设备发送获取请求;目标指令用于指示从第二设备获取目标FRU的配置文件中的配置内容,目标指令是在第一设备未配置目标FRU的配置文件的情况下发送的。In another possible implementation, when the first device does not configure the configuration file of the target FRU, sending an acquisition request to the second device includes: in response to the received target instruction, sending an 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. The target instruction is sent when the first device does not configure the configuration file of the target FRU.

该实现方式中,第一设备通过响应于接收客户端发送的目标指令,向第二设备发送获取请求,这样,可以在用户确定第一设备需要使用目标FRU的配置文件时,再指示第一设备向第二设备发送获取请求,这样,有助于提高配置内容获取的必要性。In this implementation, the first device sends an acquisition request to the second device in response to 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 Sending a retrieval request to the second device helps to increase the necessity of configuring content retrieval.

另一种可能的实现方式中,在第一设备未配置目标FRU的配置文件的情况下,向第二设备发送获取请求,包括:响应于目标扫描结果,向第二设备发送获取请求;目标扫描结果包括未在第一设备上扫描到目标FRU的配置文件。In another possible implementation, when the first device does not configure the configuration file of the target FRU, sending an acquisition request to the second device includes: responding to the target scan result, sending an acquisition request to the second device; target scan The results include that the configuration file of the target FRU was not scanned on the first device.

该实现方式中,第一设备通过响应于目标扫描结果,自动向第二设备发送获取请求,无需用户参与,有助于提高配置内容获取的便捷性和自动化程度。In this implementation, the first device automatically sends an acquisition request to the second device in response to the target scan result without user participation, which helps to improve the convenience and automation of configuration content acquisition.

另一种可能的实现方式中,响应于创建请求,基于目标FRU的配置文件中的配置内容,创建目标FRU的配置文件,包括:若配置文件中的配置内容满足预设条件,响应于创建请求,基于配置文件中的配置内容,创建目标FRU的配置文件。In another possible implementation, in response to the creation request, create a configuration file of the target FRU based on the configuration content in the configuration file of the target FRU, including: if the configuration content in the configuration file meets preset conditions, respond to the creation request , based on the configuration content in the configuration file, create the configuration file of the target FRU.

该实现方式中,通过设置若配置文件中的配置内容满足预设条件,响应于创建请求,这样,有助于避免使用不合规的配置内容创建配置文件,导致,基于创建的配置文件管理目标FRU时,导致目标FRU的功能异常。In this implementation, if the configuration content in the configuration file meets the preset conditions, the creation request will be responded to. This helps to avoid using non-compliant configuration content to create the configuration file, resulting in management goals based on the created configuration file. FRU, causing the target FRU to function abnormally.

另一种可能的实现方式中,配置文件中的配置内容满足预设条件,包括:配置内容的属性名与预属性名相同;其中,配置内容的属性名包括目标FRU的制造商标识、PN部件标识、SN序列号、型号、名称、FRU类型和机型标识中的至少一个。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 the manufacturer identification and PN component of the target FRU. At least one of the identification, SN serial number, model, name, FRU type and model identification.

该实现方式中,通过配置内容的属性名与预设属性名是否相同,确定配置内容是否满足预设条件,这样,有助于保证从配置文件中解析出的配置内容的完整性。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. This helps ensure the integrity of the configuration content parsed from the configuration file.

另一种可能的实现方式中,配置文件中的配置内容满足预设条件,包括:配置内容的属性名与预设属性名相同、且配置内容的字段类型与预设字段类型相同;其中,配置内容的属性名包括目标FRU的制造商标识、PN部件标识、SN序列号、型号、名称中的至少一个。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; where, the configuration The attribute name of the content includes at least one of the manufacturer identification, PN component identification, SN serial number, model, and name of the target FRU.

该实现方式中,通过配置内容的属性名与预设属性名是否相同,以及配置内容的字段类型与预设字段类型是否相同,确定配置内容是否满足预设条件,这样,有助于保证从配置文件中解析出的配置内容的准确性和完整性。In this implementation, it is determined whether the configuration content meets the preset conditions 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 that the configuration content is The accuracy and completeness of the configuration content parsed in the file.

另一种可能的实现方式中,配置文件中的配置内容满足预设条件,包括:配置内容的属性名与预设属性名相同、且配置内容的属性值与预设属性值相同;其中,配置内容的属性名包括目标FRU的机型标识和/或FRU类型。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; where, the configuration The attribute name of the content includes the model ID and/or FRU type of the target FRU.

该实现方式中,通过配置内容的属性名与预设属性名是否相同,以及配置内容的属性值与预设属性值是否相同,确定配置内容是否满足预设条件,这样,有助于保证从配置文件中解析出的配置内容的准确性和完整性。In this implementation, it is determined whether the configuration content meets the preset conditions 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 that the configuration content is the same as the preset attribute name. The accuracy and completeness of the configuration content parsed in the file.

另一种可能的实现方式中,获取请求包括目标FRU的名称,获取请求用于请求获取目标FRU的名称所指示的配置文件中的配置内容。In another possible implementation manner, 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.

该实现方式中,由于FRU的配置文件的名称与FRU的名称相同,因此,通过设置获取请求包括目标FRU的名称,并请求获取目标FRU的名称所指示的配置文件中的配置内容,这样,在需要获取某个特定FRU的配置文件中的配置内容时,有助于保证获取的配置内容的准确性。In this implementation, since the name of the FRU configuration file is the same as the name of the FRU, the acquisition request includes the name of the target FRU and requests to obtain the configuration content in the configuration file indicated by the name of the target FRU. In this way, When you need to obtain the configuration content in the configuration file of a specific FRU, it helps to ensure the accuracy of the obtained configuration content.

另一种可能的实现方式中,获取请求包括第一设备的机型标识,获取请求用于请求获取机型标识所支持的配置文件中的配置内容,目标FRU的配置文件为机型标识支持配置文件。In another possible implementation, the acquisition request includes the model identification of the first device, the acquisition request is used to request to obtain the configuration content in the configuration file supported by the model identification, and the configuration file of the target FRU is the configuration supported by the model identification. document.

该实现方式中,通过设置获取请求包括第一设备的机型标识,并请求获取机型标识所指示的配置文件中的配置内容,这样,在第一设备更换了多个FRU,需要获取多个FRU的配置文件中的配置内容时,有助于提高获取多个FRU的配置文件中的配置内容的效率。In this implementation, the acquisition request is set to include the model identification of the first device, and the configuration content in the configuration file indicated by the model identification is requested. In this way, when multiple FRUs are replaced on the first device, multiple FRUs need to be obtained. It helps to improve the efficiency of obtaining the configuration content in the configuration files of multiple FRUs.

另一种可能的实现方式中,在获取请求包括第一设备的机型标识的情况下,获取请求还可以包括目标FRU类型,目标FRU类型为第一设备支持的FRU类型,获取请求用于请求获取属于目标FRU类型的配置文件中的配置内容,目标FRU的配置文件为属于目标FRU类型的配置文件。In another possible implementation, when the acquisition request includes the model identification of the first device, the acquisition request may also include the target FRU type, and the target FRU type is the FRU type supported by the first device. The acquisition request is used to request Obtain the configuration content in the configuration file belonging to the target FRU type. The configuration file of the target FRU is a configuration file belonging to the target FRU type.

该实现方式中,通过设置获取请求包括目标FRU类型,用于指示获取请求所请求获取的配置文件应属于目标FRU类型,这样,有助于保证第一设备从第二设备获取的目标FRU的配置文件能够与第一设备相匹配,进而有助于保证第一设备能够正常使用获取到的配置文件。In this implementation, by setting the acquisition request to include the target FRU type, it is used to indicate that the configuration file requested by the acquisition request should belong to the target FRU type. In this way, it helps to ensure that the configuration of the target FRU obtained by the first device from the second device The file can be matched with the first device, thereby helping to ensure that the first device can normally use the obtained configuration file.

另一种可能的实现方式中,配置文件中的配置内容为JSON格式;接收创建请求,包括:基于第一接口,接收创建请求;第一接口支持传输JSON格式的数据。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 transmitting data in JSON format.

该实现方式中,由于FRU的配置文件为JSON文件,FRU的配置文件中的配置内容为JSON格式,因此,第一设备通过第一接口接收目标FRU的配置文件中的配置内容,而第一接口支持传输JSON格式文件,这样,在进行配置内容传输时,无需进行数据格式的转换,有助于保证数据传输的便利性和准确性。In this implementation, 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 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, so that when transmitting configuration content, there is no need to convert the data format, which helps ensure the convenience and accuracy of data transmission.

另一种可能的实现方式中,该方法还包括:向第二设备发送第二开启请求,第二开启请求用于请求开启第二设备的FRU配置管理服务,以使得第二设备支持导出配置文件中的配置内容。In another possible implementation, the method further includes: sending a second start request to the second device. The second start request is used to request to start the FRU configuration management service of the second device, so that the second device supports exporting the configuration file. configuration content in.

该实现方式中,通过设置第二设备配置FRU配置管理服务,FRU配置管理服务处于开启状态时,第二设备可以导出目标FRU的配置文件,处于关闭状态时,第二设备无法导出目标FRU的配置文件,这样,有助于保证第二设备中的FRU的配置文件的安全性。In this implementation, the FRU configuration management service is configured by setting the second device. When the FRU configuration management service is on, the second device can export the configuration file of the target FRU. When it is off, the second device cannot export the configuration of the target FRU. The file, in this way, helps ensure the security of the FRU's configuration file in the second device.

另一种可能的实现方式中,该方法还包括:将第一设备的FRU配置管理服务器设置为开启状态,以使得第一设备支持创建目标FRU的配置文件。In another possible implementation, the method further includes: setting the FRU configuration management server of the first device to an open state, so that the first device supports creating a configuration file of the target FRU.

该实现方式中,通过设置第一设备的FRU配置管理服务器设置为开启状态时,第一设备支持创建目标FRU的配置文件,这样,有助于避免在未经允许的情况下创建配置文件,进而有助于保证FRU管理的安全性。In this implementation, when the FRU configuration management server of the first device is set to the open state, the first device supports the creation of the configuration file of the target FRU. This helps to avoid the creation of the configuration file without permission, and thus Helps ensure the security of FRU management.

第二方面,提供了一种现场可更换单元FRU管理方法,用于第二设备,第二设备中存储有目标FRU的配置文件;该方法包括:接收获取请求;获取请求用于请求获取目标FRU的配置文件中的配置内容;响应于获取请求,向发送获取请求的设备发送创建请求;创建请求包括目标FRU的配置文件中的配置内容,创建请求用于请求创建目标FRU的配置文件,目标FRU的配置文件用于管理发送获取请求的设备上的目标FRU;或响应于获取请求,向发送获取请求的设备发送目标FRU的配置文件中的配置内容。In a second aspect, a field replaceable unit FRU management method is provided for a second device, where a configuration file of a target FRU is stored; the method includes: receiving an acquisition request; and the acquisition request is used to request acquisition of the target FRU. The configuration content in the configuration file; in response to the acquisition request, send 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, and the creation request is used to request the creation of the configuration file of the target FRU, and the target FRU The configuration file is used to manage the target FRU on the device that sends 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.

该方案中,在第二设备中存储有目标FRU的配置文件的情况下,第二设备响应于接收到的获取请求,返回创建请求或目标FRU的配置文件中的配置内容,从而实现将目标FRU的配置文件中的配置内容导出,进而使得其他设备可以利用目标FRU的配置文件中的配置内容,创建目标FRU的配置文件,相对于相关技术中需要对固件程序进行开发、测试、版本发布等流程才能够为第一设备配置目标FRU的配置文件,不仅有助于降低更换目标FRU的成本,还有助于提高更换目标FRU的效率。In this solution, when the configuration file of the target FRU is stored in the second device, the second device responds to the received acquisition request by returning the creation request or the configuration content in the configuration file of the target FRU, thereby achieving the target FRU. The configuration content in the configuration file is exported, so that other devices can use the configuration content in the target FRU's configuration file to create the target FRU's configuration file. Compared with related technologies, processes such as firmware program development, testing, and version release are required. Only then can the configuration file of the target FRU be configured for the first device, which not only helps to reduce the cost of replacing the target FRU, but also helps to improve the efficiency of replacing the target FRU.

在一种可能的实现方式中,获取请求是客户端设备响应于获取指令所发送的。In one possible implementation, the acquisition request is sent by the client device in response to the acquisition instruction.

另一种可能的实现方式中,获取请求是第一设备未配置目标FRU的配置文件的情况下,第一设备发送的。In another possible implementation manner, the acquisition request is sent by the first device when the first device does not configure the configuration file of the target FRU.

另一种可能的实现方式中,响应于获取请求,包括:若配置文件中的配置内容满足预设条件,则响应于获取请求。In another possible implementation, responding to the acquisition request includes: responding to the acquisition request if the configuration content in the configuration file meets preset conditions.

该实现方式中,通过设置配置文件中的配置内容满足预设条件时,响应于获取请求,向发送配置文件中的配置内容,这样,有助于避免配置内容属于非FRU配置文件,从而提高导出的配置内容的准确性和安全性。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 that the configuration content belongs to non-FRU configuration files, thereby improving export The accuracy and security of the configuration content.

另一种可能的实现方式中,配置文件中的配置内容满足预设条件,包括:配置内容的属性名与预属性名相同;其中,配置内容的属性名包括目标FRU的制造商标识、PN部件标识、SN序列号、型号、名称、FRU类型和机型标识中的至少一个。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 the manufacturer identification and PN component of the target FRU. At least one of the identification, SN serial number, model, name, FRU type and model identification.

另一种可能的实现方式中,配置文件中的配置内容满足预设条件,包括:配置内容的属性名与预设属性名相同、且配置内容的字段类型与预设字段类型相同;其中,配置内容的属性名包括目标FRU的制造商标识、PN部件标识、SN序列号、型号、名称中的至少一个。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; where, the configuration The attribute name of the content includes at least one of the manufacturer identification, PN component identification, SN serial number, model, and name of the target FRU.

另一种可能的实现方式中,配置文件中的配置内容满足预设条件,包括:配置内容的属性名与预设属性名相同、且配置内容的属性值与预设属性值相同;其中,配置内容的属性名包括目标FRU的机型标识和/或FRU类型。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; where, the configuration The attribute name of the content includes the model ID and/or FRU type of the target FRU.

另一种可能的实现方式中,获取请求包括目标FRU的名称,获取请求用于请求获取目标FRU的名称所指示的配置文件。In another possible implementation manner, the acquisition request includes the name of the target FRU, and the acquisition request is used to request to acquire the configuration file indicated by the name of the target FRU.

另一种可能的实现方式中,获取请求包括第一设备的机型标识,获取请求用于请求获取机型标识所支持的配置文件,机型标识支持配置文件包括目标FRU的配置文件。In another possible implementation manner, the acquisition request includes a model identifier of the first device, the acquisition request is used to request acquisition of a configuration file supported by the model identifier, and the configuration file supported by the model identifier includes a configuration file of the target FRU.

另一种可能的实现方式中,在获取请求包括第一设备的机型标识的情况下,获取请求还可以包括目标FRU类型,目标FRU类型为第一设备支持的FRU类型,获取请求用于请求获取属于目标FRU类型的配置文件。In another possible implementation, when the acquisition request includes the model identification of the first device, the acquisition request may also include the target FRU type, and the target FRU type is the FRU type supported by the first device. The acquisition request is used to request Get the configuration file belonging to the target FRU type.

另一种可能的实现方式中,配置文件中的配置内容为JSON格式;响应于获取请求,向发送获取请求的设备发送创建请求,包括:响应于获取请求,基于第二接口,向发送获取请求的设备发送创建请求;第二接口支持传输JSON格式的数据。In another possible implementation, 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 the second interface, sending the acquisition request to The device sends a creation request; the second interface supports transmitting data in JSON format.

该实现方式中,由于FRU的配置文件为JSON文件,FRU的配置文件中的配置内容为JSON格式,因此,第二设备通过第二接口传输目标FRU的配置文件中的配置内容,而第二接口支持传输JSON格式文件,这样,在进行配置内容传输时,无需进行数据格式的转换,有助于保证数据传输的便利性和准确性。In this implementation, 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 second device transmits the configuration content in the configuration file of the target FRU through the second interface, and the second interface Supports the transmission of JSON format files, so that when transmitting configuration content, there is no need to convert the data format, which helps ensure the convenience and accuracy of data transmission.

另一种可能的实现方式中,配置文件中的配置内容为JSON格式;响应于获取请求,向发送获取请求的设备发送目标FRU的配置文件中的配置内容,包括:响应于获取请求,基于第二接口,向发送获取请求的设备发送目标FRU的配置文件中的配置内容。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 sent the acquisition request, including: in response to the acquisition request, based on the The second interface sends the configuration content in the configuration file of the target FRU to the device that sends the acquisition request.

该实现方式中,由于FRU的配置文件为JSON文件,FRU的配置文件中的配置内容为JSON格式,因此,第二设备通过第二接口传输目标FRU的配置文件中的配置内容,而第二接口支持传输JSON格式文件,这样,在进行配置内容传输时,无需进行数据格式的转换,有助于保证数据传输的便利性和准确性。In this implementation, 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 second device transmits the configuration content in the configuration file of the target FRU through the second interface, and the second interface Supports the transmission of JSON format files, so that when transmitting configuration content, there is no need to convert the data format, which helps ensure the convenience and accuracy of data transmission.

另一种可能的实现方式中,该方法还包括:接收第一设备发送的第二开启请求,第二开启请求用于请求开启第二设备的FRU配置管理服务,以使第二设备支持导出配置文件中的配置内容;响应于第二开启请求,将第二设备的FRU配置管理服务设置为开启状态。In another possible implementation, the method further includes: receiving a second start request sent by the first device. The second start request is used to request to start the FRU configuration management service of the second device so that the second device supports exporting the configuration. Configuration content in the file; in response to the second enable request, set the FRU configuration management service of the second device to an enabled state.

该实现方式中,第二设备响应于接收到的第二开启请求,将第二设备的FRU配置管理服务设置为开启状态,从而使得第二设备支持导出配置文件中的配置内容,这样,有助于避免在未经允许的情况下导出第二设备上的配置文件中的配置内容,进而有助于保证第二设备上的FRU配置文件的安全性。In this implementation, in response to the received second enable request, the second device sets the FRU configuration management service of the second device to the enabled state, so that the second device supports exporting the configuration content in the configuration file. This helps This prevents the configuration content in the configuration file on the second device from being exported without permission, thereby helping to ensure the security of the FRU configuration file on the second device.

另一种可能的实现方式中,该方法还包括:接收客户端设备发送的第三开启请求,第二开启请求用于请求开启第二设备的FRU配置管理服务,以使第二设备支持导出配置文件中的配置内容;响应于第二开启请求,将第二设备的FRU配置管理服务设置为开启状态。In another possible implementation, the method further includes: receiving a third start request sent by the client device. The second start request is used to request to start the FRU configuration management service of the second device so that the second device supports exporting the configuration. Configuration content in the file; in response to the second enable request, set the FRU configuration management service of the second device to an enabled state.

该实现方式中,第二设备响应于接收到的第三创建请求,将第二设备的FRU配置管理服务设置为开启状态,从而使得第二设备支持导出配置文件中的配置内容,这样,有助于避免在未经允许的情况下导出第二设备上的配置文件中的配置内容,进而有助于保证第二设备上的FRU配置文件的安全性。In this implementation, in response to the received third creation request, the second device sets the FRU configuration management service of the second device to an open state, so that the second device supports exporting the configuration content in the configuration file. This helps This prevents the configuration content in the configuration file on the second device from being exported without permission, thereby helping to ensure the security of the FRU configuration file on the second device.

第三方面,提供了一种现场可更换单元FRU管理方法,用于客户端设备,客户端设备存储有目标FRU的配置文件中的配置内容;该方法包括:响应于创建指令,向第一设备发送创建请求;创建请求用于请求创建目标FRU的配置文件;创建请求包括配置文件中的配置内容。In a third aspect, a field replaceable unit FRU management method is provided for a client device. The client device stores the configuration content in the configuration file of the target FRU; the method includes: in response to the creation instruction, sending a request to the first device. Send a creation request; the creation request is used to request the creation of the configuration file of the target FRU; the creation request includes the configuration content in the configuration file.

该方案中,在客户端设备中存储有目标FRU的配置文件中的配置内容的情况下,客户端设备主动向第一设备发送创建请求,从而使得第一设备可以基于目标FRU的配置文件中的配置内容,自动创建目标FRU的配置文件,相对于相关技术中需要对固件程序进行开发、测试、版本发布等流程才能够为第一设备配置目标FRU的配置文件,不仅有助于降低更换目标FRU的成本,还有助于提高更换目标FRU的效率。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 based on the configuration content in the configuration file of the target FRU. Configure content and automatically create the configuration file of the target FRU. Compared with related technologies, which require 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. The cost also helps to improve the efficiency of replacing the target FRU.

在一种可能的实现方式中,该方法还包括:响应于获取指令,向第二设备发送获取请求;获取请求用于请求获取目标FRU的配置文件中的配置内容;接收的第二设备发送的目标FRU的配置文件中的配置内容。In a possible implementation, the method further includes: in response to the acquisition instruction, sending an acquisition request to the second device; the acquisition request is used to request to acquire the configuration content in the configuration file of the target FRU; receiving the configuration content sent by the second device Configuration content in the target FRU's configuration file.

该实现方式中,客户端设备通过向第二设备发送获取请求,从第二设备获取目标FRU的配置文件中的配置内容,进而可以利用目标FRU的配置文件中的配置内容,创建目标FRU的配置文件,相对于相关技术中,需要对固件程序进行开发、测试、版本发布等流程才能够得到FRU配置文件中的配置内容,不仅有助于降低得到配置内容的成本,还有助于提高得到配置内容的效率。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 of the target FRU. File, compared with related technologies, it is necessary to develop, test, version release and other processes of the firmware program to obtain the configuration content in the FRU configuration file, which not only helps to reduce the cost of obtaining the configuration content, but also helps to improve the configuration content. Content efficiency.

另一种可能的实现方式中,获取请求包括目标FRU的名称,获取请求用于请求获取目标FRU的名称所指示的配置文件中的配置内容。In another possible implementation manner, 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.

另一种可能的实现方式中,获取请求包括第一设备的机型标识,获取请求用于请求获取机型标识所支持的配置文件中的配置内容,目标FRU的配置文件为机型标识支持配置文件。In another possible implementation, the acquisition request includes the model identification of the first device, the acquisition request is used to request to obtain the configuration content in the configuration file supported by the model identification, and the configuration file of the target FRU is the configuration supported by the model identification. document.

另一种可能的实现方式中,在获取请求包括第一设备的机型标识的情况下,获取请求还可以包括目标FRU类型,目标FRU类型为第一设备支持的FRU类型,获取请求用于请求获取属于目标FRU类型的配置文件中的配置内容,目标FRU的配置文件为属于目标FRU类型的配置文件。In another possible implementation, when the acquisition request includes the model identification of the first device, the acquisition request may also include the target FRU type, and the target FRU type is the FRU type supported by the first device. The acquisition request is used to request Obtain the configuration content in the configuration file belonging to the target FRU type. The configuration file of the target FRU is a configuration file belonging to the target FRU type.

另一种可能的实现方式中,响应于创建指令,向第一设备发送创建请求,包括:响应于创建指令,基于第三接口,向第一设备发送创建请求;第三接口支持传输JSON格式的数据。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 JSON format data.

该实现方式中,由于FRU的配置文件为JSON文件,FRU的配置文件中的配置内容为JSON格式,因此,客户端设备通过第三接口向第一设备发送目标FRU的配置文件中的配置内容,而第三接口支持传输JSON格式文件,这样,在进行配置内容传输时,无需进行数据格式的转换,有助于保证数据传输的便利性和准确性。In this implementation, since the configuration file of the FRU 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. The third interface supports the transmission of JSON format files. In this way, when transmitting configuration content, there is no need to convert the data format, which helps ensure the convenience and accuracy of data transmission.

另一种可能的实现方式中,响应于创建指令,向第一设备发送创建请求,包括:向第一设备发送查询请求,查询请求用于请求查询第一设备支持的FRU类型;接收第一设备发送的目标FRU类型,目标FRU类型为第一设备支持的FRU类型;响应于创建指令,基于目标FRU类型,向第一设备发送创建请求;其中,目标FRU属于目标FRU类型。In another possible implementation, in response to the creation instruction, sending a creation request to the first device includes: sending a query request to the first device, where the query request is used to request to query the FRU type supported by the first device; receiving The target FRU type sent is a FRU type supported by the first device; in response to the creation instruction, a creation request is sent to the first device based on the target FRU type; wherein the target FRU belongs to the target FRU type.

该实现方式中,通过向第一设备发送查询请求,并基于查询到的第一设备支持的FRU类型,向第一设备发送创建请求,这样,有助于创建请求所请求创建的配置文件,与第一设备的支持FRU类型相匹配,进而有助于保证第一设备能够成功使用所创建的配置文件。In this implementation, a query request is sent to the first device, and based on the queried FRU type supported by the first device, a creation request is sent to the first device. In this way, it is helpful to create the configuration file requested by the request, and Matches the FRU type supported by the first device, which in turn helps ensure that the first device can successfully use the created configuration file.

另一种可能的实现方式中,方法还包括:向第一设备发送第一开启请求,第一开启请求用于请求开启第一设备的FRU配置服务,以使得第一设备支持创建目标FRU的配置文件。In another possible implementation, the method further includes: sending a first start request to the first device, where the first start request is used to request to start the FRU configuration service of the first device, so that the first device supports creating the configuration of the target FRU. document.

该实现方式中,通过设置客户端设备向第一设备发送第一开启请求,从而使得第一设备支持创建目标FRU的配置文件,由于第一设备仅在FRU配置管理服务设置为开启状态时,支持创建目标FRU的配置文件,这样,有助于避免在未经允许的情况下创建配置文件,进而有助于保证FRU管理的安全性。In this implementation, the client device is set to send a first opening request to the first device, so that the first device supports creating the configuration file of the target FRU, because the first device only supports creating the configuration file of the target FRU when the FRU configuration management service is set to the open state. Create a configuration file for the target FRU. This helps avoid unauthorized creation of configuration files, thereby ensuring the security of FRU management.

另一种可能的实现方式中,该方法还包括:向第二设备发送第三开启请求,以请求开启第二设备的FRU配置管理服务,以使第二设备支持导出配置文件中的配置内容。In another possible implementation, the method further includes: sending a third start request to the second device 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.

该实现方式中,通过向第二设备发送第三开启请求,从而使得第二设备支持导出配置文件中的配置内容,由于第二设备仅在FRU配置管理服务设置为开启状态时,支持导出配置文件的内容,这样,有助于避免在未经允许的情况下导出配置文件的配置内容,进而有助于保证配置文件的安全性。In this implementation, by sending the third opening request to the second device, the second device supports exporting the configuration content in the configuration file, because the second device only supports exporting the configuration file when the FRU configuration management service is set to the open 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.

第四方面,提供了一种现场可换单元FRU管理装置,该装置包括:用于执行第一方面提供的任意一种方法的功能单元,各个功能单元所执行的动作通过硬件实现或通过硬件执行相应的软件实现。例如,FRU管理装置可以包括:接收单元、创建单元和管理单元;接收单元,用于接收创建请求,创建请求用于请求创建目标FRU的配置文件;创建请求包括目标FRU的配置文件中的配置内容;创建单元,用于响应于创建请求,基于目标FRU的配置文件中的配置内容,创建目标FRU的配置文件;管理单元,用于基于目标FRU的配置文件,管理目标FRU。In the fourth aspect, a field replaceable unit FRU management device is provided. The device includes: functional units for executing any one of the methods provided in the first aspect, and the actions performed by each functional unit are implemented or executed by hardware. Corresponding software implementation. For example, the FRU management device may include: a receiving unit, a creating unit, and a management unit; a receiving unit configured to receive 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 ; The creation unit 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; the management unit is used to manage the target FRU based on the configuration file of the target FRU.

第五方面,提供了一种现场可更换FRU管理装置,该装置包括:用于执行第二方面提供的任意一种方法的功能单元,各个功能单元所执行的动作通过硬件实现或通过硬件执行相应的软件实现。例如,FRU管理装置可以包括:接收单元和发送单元;接收单元,用于接收获取请求;获取请求用于请求获取目标FRU的配置文件中的配置内容;发送单元,用于响应于获取请求,向发送获取请求的设备发送创建请求;创建请求包括目标FRU的配置文件中的配置内容,创建请求用于请求创建目标FRU的配置文件,目标FRU的配置文件用于管理发送获取请求的设备上的目标FRU;或响应于获取请求,向发送获取请求的设备发送目标FRU的配置文件中的配置内容。In the fifth aspect, a field-replaceable FRU management device is provided. The device includes: a functional unit for executing any one of the methods provided in the second aspect. The actions performed by each functional unit are implemented by hardware or the corresponding execution is performed by hardware. software implementation. For example, the FRU management device may include: a receiving unit and a sending unit; a receiving unit for receiving an acquisition request; an acquisition request for requesting to acquire the configuration content in the configuration file of the target FRU; and a sending unit for responding to the acquisition request. The device that sends the acquisition request sends a create request; the creation 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. The configuration file of the target FRU is used to manage the target on the device that sends the acquisition request. FRU; 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.

第六方面,提供了一种现场可换单元FRU管理装置,该装置包括:用于执行第三方面提供的任意一种方法的功能单元,各个功能单元所执行的动作通过硬件实现或通过硬件执行相应的软件实现。例如,FRU管理装置可以包括:发送单元;发送单元,用于响应于创建指令,向第一设备发送创建请求;创建请求用于请求创建目标FRU的配置文件;创建请求包括配置文件中的配置内容。In the sixth aspect, a field replaceable unit FRU management device is provided. The device includes: functional units for executing any one of the methods provided in the third aspect, and the actions performed by each functional unit are implemented or executed by hardware. Corresponding software implementation. For example, the FRU management device may include: a sending unit; a sending unit configured to send a creation request to the first device in response to the creation instruction; 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 .

第七方面,提供了一种现场可更换FRU管理系统,包括:第一设备和第二设备,第一设备与第二设备通信连接,第二设备存储有目标FRU的配置文件;第一设备,用于在第一设备未配置目标FRU的配置文件的情况下,向第二设备发送获取请求;获取请求用于请求获取配置文件中的配置内容;第二设备,用于接收第一设备发送的获取请求;获取请求用于请求获取配置文件中的配置内容;第二设备,还用于响应于获取请求,向第一设备发送创建请求;创建请求用于请求创建目标FRU的配置文件,创建请求包括配置文件中的配置内容;第一设备,还用于接收第二设备发送的创建请求,创建请求用于请求创建目标FRU的配置文件;第一设备,还用于响应于创建请求,基于配置文件中的配置内容,创建目标FRU的配置文件。In a seventh aspect, a field-replaceable FRU management system is provided, including: a first device and a second device, the first device is communicatively connected to the second device, and the second device stores a configuration file of the target FRU; the first device, Used to send an acquisition request to the second device when the first device does not configure the configuration file of the target FRU; the acquisition request is used to request to obtain the configuration content in the configuration file; the second device is used to receive the configuration content sent by the first device. Get request; get request is used to request to get the configuration content in the configuration file; the second device is also used to respond to the get request, send a create request to the first device; create request is used to request to create the configuration file of the target FRU, create request Including the configuration content in the configuration file; the first device is also used to receive a creation request sent by the second device, and the creation request is used to request the creation of the configuration file of the target FRU; the first device is also used to respond to the creation request, based on the configuration The configuration content in the file creates the configuration file of the target FRU.

第八方面,提供了一种现场可更换FRU管理系统,包括:第一设备、第二设备和客户端设备;客户端设备分别与第一设备、第二设备通信连接;第二设备,用于接收客户端设备的获取请求;获取请求用于请求获取目标FRU的配置文件中的配置内容;第二设备,还用于响应于获取请求,向客户端设备发送目标FRU的配置文件中的配置内容;客户端设备,用于响应于创建指令,向第一设备发送创建请求;创建请求用于请求创建目标FRU的配置文件;创建请求包括配置文件中的配置内容;第一设备,用于接收创建请求,以及响应于创建请求,基于配置文件中的配置内容,创建目标FRU的配置文件;第一设备,还用于基于目标FRU的配置文件,管理目标FRU。In an eighth aspect, a field-replaceable FRU management system is provided, including: a first device, a second device and a client device; the client device is communicated and connected with 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 respond to the acquisition request and send the configuration content in the configuration file of the target FRU to the client device ; The client device is used to send a creation request to the first device in response to the creation instruction; 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; the first device is used to receive the creation request, and respond to the creation request, create a 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.

第九方面,提供了一种第一计算机设备,包括:处理器和存储器,处理器与存储器连接。存储器用于存储计算机执行指令,处理器执行存储器存储的计算机执行指令,从而实现第一方面提供的任意一种方法。In a ninth aspect, a first computer device is provided, including: a processor and a memory, and the processor is connected to the memory. The memory is used to store computer execution instructions, and the processor executes the computer execution instructions stored in the memory, thereby implementing any method provided in the first aspect.

第十方面,提供了一种第二计算机设备,包括:处理器和存储器,处理器与存储器连接。存储器用于存储计算机执行指令,处理器执行存储器存储的计算机执行指令,从而实现第二方面提供的任意一种方法。In a tenth aspect, a second computer device is provided, including: a processor and a memory, and the processor is connected to the memory. The memory is used to store computer execution instructions, and the processor executes the computer execution instructions stored in the memory, thereby implementing any method provided in the second aspect.

第十一方面,提供了一种客户端设备,包括:处理器;处理器和存储器,处理器与存储器连接。存储器用于存储计算机执行指令,处理器执行存储器存储的计算机执行指令,从而实现第三方面提供的任意一种方法。In an eleventh aspect, a client device is provided, including: a processor; a processor and a memory, and the processor is connected to the memory. The memory is used to store computer execution instructions, and the processor executes the computer execution instructions stored in the memory, thereby implementing any method provided in the third aspect.

第十二方面,提供了一种芯片,包括:处理器和接口电路;接口电路,用于接收代码指令并传输至处理器;处理器,用于运行代码指令以执行上述第一方面提供的任意一种方法。A twelfth aspect provides a chip, including: 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 of the above provided in the first aspect a way.

第十三方面,提供了一种芯片,包括:处理器和接口电路;接口电路,用于接收代码指令并传输至处理器;处理器,用于运行代码指令以执行上述第二方面提供的任意一种方法。In a thirteenth aspect, a chip is provided, including: 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 of the above provided in the second aspect. a way.

第十四方面,提供了一种芯片,包括:处理器和接口电路;接口电路,用于接收代码指令并传输至处理器;处理器,用于运行代码指令以执行上述第三方面提供的任意一种方法。A fourteenth aspect provides a chip, including: 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 of the above provided in the third aspect. a way.

第十五方面,提供了一种计算机可读存储介质,存储有计算机执行指令,当计算机执行指令在计算机设备上运行时,使得计算机设备执行上述第一方面提供的任意一种方法。A fifteenth aspect provides a computer-readable storage medium that stores computer execution instructions. When the computer execution instructions are run on a computer device, the computer device executes any of the methods provided in the first aspect.

第十六方面,提供了一种计算机可读存储介质,存储有计算机执行指令,当计算机执行指令在计算机设备上运行时,使得计算机设备执行上述第二方面提供的任意一种方法。A sixteenth aspect provides a computer-readable storage medium that stores computer execution instructions. When the computer execution instructions are run on a computer device, the computer device executes any of the methods provided in the second aspect.

第十七方面,提供了一种计算机可读存储介质,存储有计算机执行指令,当计算机执行指令在计算机设备上运行时,使得计算机设备执行上述第三方面提供的任意一种方法。A seventeenth aspect provides a computer-readable storage medium that stores computer execution instructions. When the computer execution instructions are run on a computer device, the computer device executes any of the methods provided in the third aspect.

第十八方面,提供了一种计算机程序产品,包括:计算机执行指令,当计算机执行指令在计算机上运行时,使得计算机执行上述第一方面提供的任意一种方法。An eighteenth aspect provides a computer program product, including: computer execution instructions, which when the computer execution instructions are run on a computer, cause the computer to execute any of the methods provided in the first aspect.

第十九方面,提供了一种计算机程序产品,包括:计算机执行指令,当计算机执行指令在计算机上运行时,使得计算机执行上述第二方面提供的任意一种方法。A nineteenth aspect provides a computer program product, including: computer execution instructions, which when the computer execution instructions are run on a computer, cause the computer to execute any of the methods provided in the second aspect.

第二十方面,提供了一种计算机程序产品,包括:计算机执行指令,当计算机执行指令在计算机上运行时,使得计算机执行上述第三方面提供的任意一种方法。In a twentieth aspect, a computer program product is provided, including: computer execution instructions, which when the computer execution instructions are run on a computer, cause the computer to execute any of the methods provided in the third aspect.

其中,第二方面至第二十方面中任一种实现方式所带来的技术效果可参见第一方面中不同实现方式所带来的技术效果,此处不再赘述。Among them, the technical effects brought by any one of the implementation methods from the second aspect to the twentieth aspect can be found in the technical effects brought by the different implementation methods in the first aspect, which will not be described again here.

附图说明Description of the drawings

图1A为本申请实施例提供的一种系统结构的示意图;Figure 1A is a schematic diagram of a system structure provided by an embodiment of the present application;

图1B为本申请实施例提供的一种设备的结构示意图;Figure 1B is a schematic structural diagram of a device provided by an embodiment of the present application;

图2A为本申请实施例提供的另一种系统架构的示意图;Figure 2A is a schematic diagram of another system architecture provided by an embodiment of the present application;

图2B为本申请实施例提供的另一种设备的结构示意图;Figure 2B is a schematic structural diagram of another device provided by an embodiment of the present application;

图3为本申请实施例提供的一种FRU管理方法的流程图;Figure 3 is a flow chart of a FRU management method provided by an embodiment of the present application;

图4为本申请实施例提供的另一种设备的结构示意图;Figure 4 is a schematic structural diagram of another device provided by an embodiment of the present application;

图5为本申请实施例提供的另一种设备的结构示意图;Figure 5 is a schematic structural diagram of another device provided by an embodiment of the present application;

图6为本申请实施例提供的另一种FRU管理方法的流程图;Figure 6 is a flow chart of another FRU management method provided by an embodiment of the present application;

图7为本申请实施例提供的一种FRU管理装置的示意图;Figure 7 is a schematic diagram of a FRU management device provided by an embodiment of the present application;

图8为本申请实施例提供的另一种FRU管理装置的示意图;Figure 8 is a schematic diagram of another FRU management device provided by an embodiment of the present application;

图9为本申请实施例提供的又一种FRU管理装置的示意图。Figure 9 is a schematic diagram of another FRU management device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

其中,在本申请的描述中,除非另有说明,“/”表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,其中A,B可以是单数或者复数。Among them, in the description of this application, unless otherwise stated, "/" means that the related objects are an "or" relationship. For example, A/B can mean A or B; "and/or" in this application "It is just an association relationship that describes related objects. It means that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. Among them, A ,B can be singular or plural.

并且,在本申请的描述中,除非另有说明,“多个”是指两个或多于两个。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。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 thereof refers to any combination of these items, including any combination of a single item (items) or a plurality of items (items). For example, at least one of a, b, or c can mean: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple .

另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。同时,在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。In addition, in order to facilitate a 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 identical or similar items with basically the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the number and execution order, and words such as "first" and "second" do not limit the number and execution order. At the same time, in the embodiments of this application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "such as" in the embodiments of the present application is not to be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete manner that is easier to understand.

首先,对本申请实施例的应用场景进行示例性介绍。First, an exemplary introduction to the application scenarios of the embodiments of this application is given.

FRU是硬件设备上的可更换部件。硬件设备更换新FRU后,硬件设备的管理部件若要管理新FRU,需要为管理部件配置新FRU的配置文件。FRU is a replaceable unit on a hardware device. After the hardware device is replaced with a new FRU, if the management component of the hardware device wants to manage the new FRU, it needs to configure the configuration file of the new FRU for the management component.

相关技术中,为管理部件配置新FRU的配置文件的方式,通常是采用升级管理部件的固件程序的方式,其中,升级管理部件的固件程序通常要经过开发、测试、版本发布等流程。这就导致,在同时更换多个硬件设备上的FRU时,则需要对多个硬件设备的管理部件的固件程序进行开发、测试、版本发布等流程,不仅成本极高,而且效率也非常低。In the related art, the configuration file of a new FRU is configured for the management component, usually by upgrading the firmware program of the management component. Upgrading the firmware program of the management component usually requires processes such as development, testing, and version release. As a result, when replacing FRUs on multiple hardware devices at the same time, it is necessary to develop, test, version release and other processes for the firmware programs of the management components of multiple hardware devices, which is not only extremely costly, but also very inefficient.

有鉴于此,本申请实施例提供了一种FRU管理方法,用于第一设备,在第一设备包括目标FRU的基础上,第一设备在接收到创建请求后,基于创建请求携带的目标FRU的配置文件中的配置内容,创建目标FRU的配置文件,之后,基于创建的目标FRU的配置文件,管理目标FRU。由于第一设备能够基于携带了目标FRU的配置文件中的配置内容的创建请求,自动创建目标FRU的配置文件,因此,相对于相关技术中需要对固件程序进行开发、测试、版本发布等流程才能够为第一设备配置目标FRU的配置文件,不仅降低了更换目标FRU的成本,还提高了更换目标FRU的效率。In view of this, embodiments of the present application provide a FRU management method for the first device. On the basis that the first device includes the target FRU, after receiving the creation request, the first device based on the target FRU carried in the creation request Based on the configuration content in the configuration file, create the configuration file of the target FRU, and then manage 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 with the related technology, it is necessary to develop, test, version release and other processes for the firmware program. Being able to configure the configuration file of the target FRU for the first device not only reduces the cost of replacing the target FRU, but also improves the efficiency of replacing the target FRU.

其次,对本申请实施例的系统架构进行示例性介绍。Secondly, the system architecture of the embodiment of the present application is introduced as an example.

如图1A所示,本申请实施例提供的一种系统架构图。As shown in Figure 1A, a system architecture diagram is provided by an embodiment of the present application.

参见图1A,该系统架构包括至少一个第一设备和第二设备。其中,至少一个第一设备中的每个第一设备与第二设备通信连接。Referring to Figure 1A, the system architecture includes at least a first device and a second device. Each of the at least one first device is communicatively connected with the second device.

示例性的,至少一个第一设备包括第一设备1、……、第一设备N,其中,N为大于1的正整数。Exemplarily, at least one first device includes first device 1,..., first device N, where N is a positive integer greater than 1.

可选地,第一设备、第二设备的产品形态可以为终端设备或网络设备。Optionally, the product form of the first device and the second device may be a terminal device or a network device.

终端设备包括手机、增强现实(augmented reality,AR)设备、虚拟现实(virtualreality,VR)设备、个人数字助理(personal digital assistant,PDA)、超级移动个人计算机(ultra-mobile personal computer,UMPC)、平板电脑、笔记本电脑、上网本、台式计算机、一体机等。Terminal devices include mobile phones, augmented reality (AR) devices, virtual reality (VR) devices, personal digital assistants (PDAs), ultra-mobile personal computers (UMPC), tablets Computers, laptops, netbooks, desktop computers, all-in-one computers, etc.

网络设备包括服务器等。其中,服务器可以是一个物理或逻辑服务器,也可以是有两个或两个以上分担不同职责的物理或逻辑服务器、相互协同来实现服务器的各项功能。Network equipment includes servers, etc. Among them, the server can be a physical or logical server, or there can be two or more physical or logical servers that share different responsibilities and cooperate with each other to realize various functions of the server.

可选地,该系统架构还可以包括客户端设备。客户端设备分别与至少一个第一设备中的每个第一设备通信连接。Optionally, the system architecture may also include client devices. The client device is respectively communicatively connected with each of the at least one first device.

在一些实施例中,客户端设备可以是终端设备。用户可以通过客户端设备向第一设备发送目标指令等。In some embodiments, the client device may be an end device. The user can send target instructions and the like to the first device through the client device.

基于上述,在一个应用场景中,第一设备为第一服务器,第二设备为第二服务器,客户端设备为终端设备。用户通过终端设备向第一服务器发送目标指令,以指示第一服务器向第二服务器发送获取请求,以请求获取第二服务器上的FRU配置文件中的配置内容。Based on the above, in an application scenario, the first device is the first server, the second device is the second server, and the client device is the terminal device. The user sends a target instruction to the first server through the terminal device to instruct the first server to send an acquisition request to the second server to request to acquire the configuration content in the FRU configuration file on the second server.

之后,第二服务器响应于该获取请求,向第一设备发送创建请求,该创建请求包括FRU配置文件中的配置内容,从而使得第一设备可以响应于创建请求,基于FRU配置文件中的配置内容,创建FRU配置文件。Afterwards, the second server responds to the acquisition request and sends a creation request to the first device. The creation request includes the configuration content in the FRU configuration file, so that the first device can respond to the creation request based on the configuration content in the FRU configuration file. , create a FRU configuration file.

如图1B所示,为图1A中第一设备、第二设备、客户端设备的结构示意图。As shown in Figure 1B, it is a schematic structural diagram of the first device, the second device, and the client device in Figure 1A.

需要说明的,图1B中的第一设备可以是图1A中第一设备1、……、第一设备N中的任意一个第一设备。It should be noted that the first device in FIG. 1B may be any one of the first devices 1, ..., and first device N in FIG. 1A.

参见1B,第一设备包括第一带外控制器,第二设备包括第二带外控制器。第一带外控制器与第二带外控制器通信连接。客户端设备包括中央处理器(central processingunit,CPU)。Referring to 1B, a first device includes a first out-of-band controller and a second device includes a second out-of-band controller. The first out-of-band controller is communicatively connected with the second out-of-band controller. The client device includes a central processing unit (CPU).

客户端设备用于运行第一带外控制器的客户端。客户端设备登入第一带外控制器的客户端后,客户端设备的CPU与第一带外控制器可以进行数据传输。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.

其中,带外控制器(如第一带外控制器、第二带外控制器)是完全独立于计算机设备(如第一设备、第二设备)的CPU之外,可以通过计算机设备的带外管理接口与CPU进行通信。此外,带外控制器可以通过专用的数据通道对计算机设备进行远程维护和管理。Among them, the out-of-band controller (such as the first out-of-band controller and the second out-of-band controller) is completely independent of the CPU of the computer device (such as the first device and the second device) and can be controlled through the out-of-band controller of the computer device. The management interface communicates with the CPU. In addition, out-of-band controllers enable remote maintenance and management of computer equipment through dedicated data channels.

示例性的,带外控制器可以包括计算机设备外部的监控管理单元、处理器外的管理芯片中的管理系统、基板带外控制器(baseboard management controller,BMC)、系统管理模块(system management mode,SMM)等。需要说明的,本申请实施例对带外控制器的形式并不限定,以上仅为示例性说明。在下述实施例中,仅以带外控制器为BMC为例进行说明。For example, the out-of-band controller may include a monitoring and management unit outside the computer device, a management system in a management chip outside the processor, a baseboard management controller (BMC), a system management module (system management mode, SMM) etc. It should be noted that the embodiment of the present application does not limit the form of the out-of-band controller, and the above is only an exemplary description. In the following embodiments, the out-of-band controller is a BMC as an example for description.

示例性的,BMC的固件程序基于OpenBMC软件框架实现,其中,OpenBMC是一套开源的基板管理软件框架。For example, the BMC firmware program is implemented based on the OpenBMC software framework, where OpenBMC is an open source baseboard management software framework.

需要说明的是,不同计算机设备对BMC有不同的称呼,例如,一些计算机设备称为BMC,一些计算机设备称为iLO,另一计算机设备称为iDRAC。不论是叫BMC,还是叫iLO或iDRAC,都可以理解为是本发明实施例中的BMC。It should be noted that different computer devices have different names for BMC. For example, some computer devices are called BMC, some computer devices are called iLO, and another computer device is called iDRAC. Whether it is called BMC, iLO or iDRAC, it can be understood as the BMC in the embodiment of the present invention.

可选地,第一设备、第二设备包括至少一个FRU。示例性的,至少一个FRU包括FRU1、……、FRUk,其中,k为正整数。Optionally, the first device and the second device include at least one FRU. Exemplarily, at least one FRU includes FRU1,...,FRUk, where k is a positive integer.

示例性的,至少一个FRU包括主板、网卡、磁盘阵列(redundant arrays ofindependent disks,RAID)卡、电源、硬盘以及硬件设备上其他可插拔卡等。For example, at least one FRU includes a motherboard, a network card, a disk array (redundant arrays of independent disks, RAID) card, a power supply, a hard disk, and other pluggable cards on the hardware device.

在一些实施例中,第一带外控制器、第二带外控制器中配置有其包含的FRU的配置文件。第一带外控制器、第二带外控制器通过加载其包含的FRU的配置文件,管理其包含的FRU。In some embodiments, the first out-of-band controller and the second out-of-band controller are configured with configuration files of the FRUs they contain. 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.

在一些实施例中,第一带外控制器包括第一闪存存储器。第一带外控制器中配置的FRU的配置文件,可以存储于第一闪存存储器的数据区。第二带外控制器包括第二闪存存储器。第二带外控制器中配置的FRU的配置文件,可以存储于第二闪存存储器的数据区。In some embodiments, the first out-of-band controller includes first flash memory. The configuration file of the FRU configured in the first out-of-band controller may be stored in the data area of the first flash memory. The second out-of-band controller includes second flash memory. The configuration file of the FRU configured in the second out-of-band controller may be stored in the data area of the second flash memory.

可选地,第一带外控制器包括第一格式解析单元和文件导入单元。Optionally, the first out-of-band controller includes a first format parsing unit and a file import unit.

其中,文件导入单元用于将FRU的配置文件导入第一设备,第一格式解析单元用于判断导入第一设备的FRU的配置文件是否满足预设条件。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 the preset conditions.

其中,第一格式解析单元符合OpenBMC架构和Redfish规范,这样,第一格式解析单元解析创建请求时,不仅有助于保证所解析出配置内容的数据格式符合要求,还有助于保证解析出的配置文内容准确、完整。Among them, the first format parsing unit complies with the OpenBMC architecture and Redfish specifications. In this way, 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 meets the requirements. The content of the configuration document is accurate and complete.

可选地,第一带外控制器包括第一FRU配置文件集合接口(简称为第一接口)。Optionally, the first out-of-band controller includes a first FRU profile set interface (referred to as the first interface for short).

其中,第一接口支持使用JSON格式的数据。示例性的,第一接口属于Redfish接口。Among them, the first interface supports the use of data in JSON format. For example, the first interface belongs to the Redfish interface.

示例性的,第一FRU配置文件集合接口的URL地址为redfish/v1/Manager/{Id}/FRUManagerService/FRUManagers。For example, the URL address of the first FRU configuration file collection interface is redfish/v1/Manager/{Id}/FRUManagerService/FRUManagers.

在一些实施例中,第一接口用于接收创建请求(如POST请求),基于此,第一接口支持传输JSON格式的数据。在第一接口接收到POST请求后,进入文件导入处理流程,如,第一接口调用文件导入单元接收创建请求携带的配置内容,以及调用第一格式解析单元判断配置内容是否满足预设条件等。In some embodiments, the first interface is used to receive a creation request (such as a POST request), and based on this, the first interface supports transmitting data in JSON format. After the first interface receives the POST request, the file import processing flow is entered. For example, the first interface calls the file import unit to receive the configuration content carried in the creation request, and calls the first format parsing unit to determine whether the configuration content meets the preset conditions.

在一些实施例中,第一接口还可以用于接收查询请求。该查询请求用于请求查询当前机型所支持的FRU的配置文件的数量和URL地址。In some embodiments, the first interface may also be used to receive query requests. This query request is used to request the number and URL addresses of FRU configuration files supported by the current model.

示例性的,第一接口包括属性名和属性值。其中,第一接口的形式如表1所示。For example, the first interface includes attribute names and attribute values. Among them, the form of the first interface is shown in Table 1.

表1Table 1

表1中,“Members@odata.count”用于表征配置文件的数量。“1”用于表征配置文件的数量的值为1。“Members”用于表征配置文件的名称。@odata.id是redfish规范中开发数据协议(open data protocol,OData协议)定义的配置文件的公共属性,用于表明配置文件的统一资源定位地址(uniform resource locator,URL),换言之,“@odata.id":"/redfish/v1/Managers/{Id}/FRUManagerService/FRUManagers/{FRUID}”用于表征配置文件的URL地址。In Table 1, "Members@odata.count" is used to represent the number of configuration files. "1" is used to characterize the number of profiles with a value of 1. "Members" is used to characterize the name of the configuration file. @odata.id is a public attribute of the configuration file defined by the open data protocol (OData protocol) in the redfish specification. It 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 represent the URL address of the configuration file.

可以理解的,配置文件的URL地址用于指示配置文件的存储地址。其中,URL地址与配置文件之间一一对应,换言之,一个URL地址指示唯一的配置文件。It can be understood that the URL address of the configuration file is used to indicate the storage address of the configuration file. Among them, 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.

可选地,第一带外控制器还可以包括第一FRU配置服务接口。Optionally, the first out-of-band controller may also include a first FRU configuration service interface.

其中,第一FRU配置服务接口支持使用JSON格式的数据。示例性的,第一FRU配置服务接口属于Redfish接口。Among them, the first FRU configuration service interface supports the use of data in JSON format. For example, the first FRU configuration service interface belongs to the Redfish interface.

示例性的,第一FRU配置服务接口的URL地址为redfish/v1/Manager/{Id}/FRUManagerService。For example, the URL address of the first FRU configuration service interface is redfish/v1/Manager/{Id}/FRUManagerService.

在一些实施例中,第一FRU配置服务接口用于开启或关闭配置文件管理服务。In some embodiments, the first FRU configuration service interface is used to enable or disable the configuration file management service.

在一个示例中,第一FRU配置服务接口配置有ServiceEnable属性,ServiceEnable属性包括使能(True)或禁用(False)。ServiceEnable属性为使能时,用于表征配置文件管理服务处于开启状态,ServiceEnable属性为禁用时,用于表征配置文件管理服务处于关闭状态。In one example, the first FRU configuration service interface is configured with a ServiceEnable attribute, and the ServiceEnable attribute includes enable (True) or disable (False). When the ServiceEnable attribute is enabled, it is used to indicate that the configuration file management service is on. When the ServiceEnable attribute is disabled, it is used to indicate that the configuration file management service is off.

在配置文件管理服务处于开启状态时,第一设备支持导入/导出FRU的配置文件。反之,在配置文件管理服务处于关闭状态时,第一设备不支持导入/导出FRU的配置文件。When the configuration file management service is enabled, the first device supports importing/exporting FRU configuration files. On the contrary, when the configuration file management service is in a closed state, the first device does not support importing/exporting the configuration file of the FRU.

在一些实施例中,第一FRU配置服务接口还可以用于触发扫描FRU。In some embodiments, the first FRU configuration service interface may also be used to trigger scanning of FRUs.

在一个示例中,第一FRU配置服务接口配置有FRUManager.RescanBuses属性,FRUManager.RescanBuses属性可以基于Redfish的Action格式,触发对相应资源进行特定操作,也即,可以触发对FRU进行扫描操作。In one example, the first FRU configuration service interface is configured with the FRUManager.RescanBuses attribute. The FRUManager.RescanBuses attribute can trigger a specific operation on the corresponding resource based on Redfish's Action format, that is, it can trigger a scanning operation on the FRU.

在一些实施例中,第一FRU配置服务接口还可以用于查询当前机型可导入的FRU类型。In some embodiments, the first FRU configuration service interface can also be used to query the FRU types that can be imported into the current model.

在一个示例中,第一FRU配置服务接口配置有FRUTypeList属性,FRUTypeList属性用于查询当前机型可导入的FRU类型,以避免导入无效的配置文件。In one example, the first FRU configuration service interface is configured with the FRUTypeList attribute. The FRUTypeList attribute is used to query the FRU types that can be imported by the current model to avoid importing invalid configuration files.

可选地,第一带外控制器还包括第一FRU配置文件接口。Optionally, the first out-of-band controller further includes a first FRU profile interface.

其中,第一FRU配置文件接口支持使用JSON格式的数据。示例性的,第一FRU配置文件接口属于Redfish接口。Among them, the first FRU configuration file interface supports the use of data in JSON format. For example, the first FRU configuration file interface belongs to the Redfish interface.

可以理解的,第一FRU配置文件接口可以认为是单个FRU配置文件的接口,第一FRU配置文件集合接口可以认为是单个配置文件的集合的接口,换言之,第一FRU配置文件集合接口可以认为第一FRU配置文件接口的集合。It can be understood that the first FRU configuration file interface can be considered as the interface of a single FRU configuration file, and the first FRU configuration file collection interface can be considered as the interface of a collection of single configuration files. In other words, the first FRU configuration file collection interface can be considered as the first FRU configuration file collection interface. A collection of FRU profile interfaces.

示例性的,第一FRU配置文件接口的URL地址为redfish/v1/Manager/{Id}/FRUManagerService/FRUManagers/{FRUProductName}。For example, the URL address of the first FRU configuration file interface is redfish/v1/Manager/{Id}/FRUManagerService/FRUManagers/{FRUProductName}.

在一些实施例中,第一FRU配置文件接口用于以FRU的名称(ProductName)为索引,并以符合Redfish规范的形式呈现FRU的配置文件的内容。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 contents of the FRU's configuration file in a form that complies with the Redfish specification.

在一些实施例中,在需要导出FRU的配置文件时,第一FRU配置文件接口还可以用于查询指定FRU的配置文件,并剔除配置文件的Redfish公共属性(即URL地址)。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 attributes (ie, URL address) of the configuration file.

可选地,第二带外控制器包括第二格式解析单元和文件导出单元。Optionally, the second out-of-band controller includes a second format parsing unit and a file export unit.

其中,文件导出单元用于导出第二闪存存储器中的FRU的配置文件,第二格式解析单元用判断文件导出单元所导出的配置文件是否满足预设条件。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 the preset conditions.

可选地,第二带外控制器还包括第二FRU配置文件接口(简称为第二接口)。Optionally, the second out-of-band controller also includes a second FRU profile interface (referred to as the second interface for short).

其中,第二接口支持使用JSON格式的数据。示例性的,第二接口属于Redfish接口。Among them, the second interface supports the use of data in JSON format. For example, the second interface belongs to the Redfish interface.

在一些实施例中,第二接口用于接收获取请求(如GET请求),基于此,第二接口支持传输JSON格式的数据。在第二接口接收到GET请求后,进入文件导出处理流程,如,第二接口调用文件导出单元导出第二闪存存储器中的FRU的配置文件,以及调用第二格式解析单元判断文件导出单元所导出的配置文件是否满足预设条件等。In some embodiments, the second interface is used to receive a retrieval request (such as a GET request), and based on this, the second interface supports transmitting data in JSON format. After the second interface receives the GET request, the file export processing flow is entered. For example, the second interface calls the file export unit to export the configuration file of the FRU in the second flash memory, and calls the second format parsing unit to determine what the file export unit exported. Whether the configuration file meets the preset conditions, etc.

示例性的,第二接口的URL地址为redfish/v1/Manager/{Id}/FRUManagerService/FRUManagers/{FRUProductName}。For example, the URL address of the second interface is redfish/v1/Manager/{Id}/FRUManagerService/FRUManagers/{FRUProductName}.

在一些实施例中,第二接口用于以FRU的名称(ProductName)为索引,并以符合Redfish规范的形式呈现FRU的配置文件的内容。In some embodiments, the second interface is used to use the name of the FRU (ProductName) as an index and present the contents of the configuration file of the FRU in a form that complies with the Redfish specification.

在一些实施例中,在需要导出FRU的配置文件时,第二接口可以用于查询指定FRU的配置文件,并剔除配置文件的Redfish公共属性(即URL地址)。可选地,第二带外控制器包括第二FRU配置服务接口。In some embodiments, when the configuration file of the FRU needs to be exported, the second interface can be used to query the configuration file of the specified FRU and remove the Redfish public attributes (ie, URL address) of the configuration file. Optionally, the second out-of-band controller includes a second FRU configuration service interface.

需要说明的,关于第二FRU配置服务接口的相关说明,可以参考上述第一FRU配置服务接口的相关说明,二者原理相同,此处不再赘述。It should be noted that for the relevant description of the second FRU configuration service interface, please refer to the relevant description of the first FRU configuration service interface. The principles of the two are the same and will not be described again here.

可选地,第二带外控制器包括第二FRU配置文件集合接口。Optionally, the second out-of-band controller includes a second FRU profile set interface.

可以理解的,第二FRU配置文件接口可以认为是单个FRU配置文件的接口,第二FRU配置文件集合接口可以认为是单个配置文件的集合的接口,换言之,第二FRU配置文件集合接口可以认为第二FRU配置文件接口的集合。It can be understood that the second FRU configuration file interface can be considered as the interface of a single FRU configuration file, and the second FRU configuration file collection interface can be considered as the interface of a collection of single configuration files. In other words, the second FRU configuration file collection interface can be considered as the third FRU configuration file collection interface. A collection of two FRU profile interfaces.

需要说明的,关于第二FRU配置文件接口的其他相关说明,可以参考上述第一FRU配置文件接口的相关说明,二者原理相同,此处不再赘述。It should be noted that for other relevant descriptions of the second FRU configuration file interface, please refer to the above-mentioned relevant descriptions of the first FRU configuration file interface. The principles of the two are the same and will not be described again here.

如图2A所示,为本申请实施例提供的另一种系统架构图。As shown in Figure 2A, it is another system architecture diagram provided by an embodiment of the present application.

参见图2A,该系统架构包括客户端设备、至少一个第一设备和第二设备。其中,客户端设备分别与至少一个第一设备、第二设备通信连接。Referring to Figure 2A, the system architecture includes a client device, at least one first device and a second device. Wherein, the client device is communicatively connected with at least one first device and a second device respectively.

其中,客户端设备用于从第二设备导入FRU配置文件中的配置内容,以及将FRU配置文件中的配置内容导入第一设备。Wherein, 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.

如图2B所示,为本申请实施例提供的第一设备、第二设备和客户端设备的结构示意图。As shown in Figure 2B, it is a schematic structural diagram of a first device, a second device and a client device provided by an embodiment of the present application.

参见图2B,客户端设备包括CPU。其中,CPU与第一设备的第一带外控制器、第二设备的第二带外控制器通信连接。Referring to Figure 2B, the client device includes a CPU. Wherein, the CPU is communicatively connected with the first out-of-band controller of the first device and the second out-of-band controller of the second device.

可选地,客户端设备还包括存储设备。其中,存储设备用于存储客户端设备从第二设备获取的FRU的配置文件中的配置内容。Optionally, the client device also includes a storage device. The storage device is used to store the configuration content in the configuration file of the FRU obtained by the client device from the second device.

需要说明的,关于第一设备、第二设备的相关说明,可以参考上述图1A至图1B所示系统架构的相关说明,此处不再赘述。It should be noted that for relevant descriptions of the first device and the second device, reference may be made to the relevant descriptions of the system architecture shown in FIG. 1A to FIG. 1B and will not be described again here.

需要说明的,本申请实施例描述的系统架构以及应用场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着系统架构的演变和新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。It should be noted that the system architecture and application scenarios described in the embodiments of this application are for the purpose of more clearly explaining the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those of ordinary skill in the art will know that , with the evolution of system architecture and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

为了便于理解,以下结合附图对本申请提供的FRU管理方法进行示例性介绍。For ease of understanding, the FRU management method provided by this application is exemplarily introduced below with reference to the accompanying drawings.

本申请以下实施例将分成二部分对FRU管理方法的方案进行示例性介绍。The following embodiments of this application will be divided into two parts to exemplarily introduce the solution of the FRU management method.

第一部分,结合图3至图5,介绍第一设备从第二设备获取FRU配置文件的配置内容的过程。The first part, with reference to Figures 3 to 5, introduces the process of the first device obtaining the configuration content of the FRU configuration file from the second device.

第二部分,结合图6,介绍第一设备从客户端设备获取FRU配置文件的配置内容的过程。The second part, combined with Figure 6, introduces the process of the first device obtaining the configuration content of the FRU configuration file from the client device.

以下,结合图3至图5介绍本申请实施例的第一部分。The first part of the embodiment of the present application will be introduced below with reference to FIGS. 3 to 5 .

图3是根据一示例性实施例示出的一种FRU管理方法的流程图。示例性的,该方法包括以下S301-S308。Figure 3 is a flow chart of a FRU management method according to an exemplary embodiment. Exemplarily, the method includes the following S301-S308.

需要说明的,该方法适用于图1A至图1B所示的系统架构。It should be noted that this method is applicable to the system architecture shown in Figure 1A to Figure 1B.

在一些实施例中,第二设备上的FRU更换为目标FRU,第二设备配置有目标FRU的配置文件。此外,还有多个第一设备上的FRU也被更换为目标FRU。In some embodiments, the FRU on the second device is replaced with the target FRU, and the second device is configured with the configuration file of the target FRU. In addition, multiple FRUs on the first device are also replaced with target FRUs.

为了降低为第一设备配置目标FRU的配置文件的研发成本以及时间,该多个第一设备中的任意一个第一设备可以基于下述S301-S308的方式,自动创建目标FRU的配置文件。换言之,下述实施例中的第一设备,可以是多个第一设备中的任意一个第一设备。In order to reduce the research and development cost and time of configuring the configuration file of the target FRU for the first device, any first device among the plurality of first devices can automatically create the configuration file of the target FRU based on the following S301-S308. In other words, the first device in the following embodiments may be any first device among multiple first devices.

S301:在第一设备未配置目标FRU的配置文件的情况下,第一设备向第二设备发送获取请求。S301: If the first device does not configure the configuration file of the target FRU, the first device sends an acquisition request to the second device.

其中,获取请求用于请求获取目标FRU的配置文件中的配置内容。The acquisition request is used to request to acquire the configuration content in the configuration file of the target FRU.

示例性的,获取请求可以是RESTful架构中GET请求,在RESTful架构中,GET请求可以用于请求返回所请求的资源描述。在本申请实施例中,该GET请求用于请求返回目标FRU的配置文件中的配置内容。For example, the acquisition request may be a GET request in a RESTful architecture. In a RESTful architecture, the GET request may be used to request the return of the requested resource description. In this embodiment of the present application, the GET request is used to request the return of the configuration content in the configuration file of the target FRU.

其中,目标FRU可以是指第一设备上未配置FRU配置文件的至少一个FRU。The target FRU may refer to at least one FRU on the first device for which no FRU configuration file is configured.

需要说明的,本申请实施例对目标FRU的数量不做限制,换言之,目标FRU可以第一设备上任意一个或任意多个未配置FRU配置文件的FRU。It should be noted that the embodiment of the present application does not limit the number of target FRUs. In other words, the target FRUs can be any one or any number of FRUs on the first device that do not have a FRU configuration file configured.

可选地,获取请求的内容包括多种实现方式,以下通过两种实现方式进行示例性说明。Optionally, obtaining the requested content includes multiple implementation methods. Two implementation methods are used as examples below.

第一种实现方式,获取请求包括目标FRU的名称。In the first implementation, the acquisition request includes the name of the target FRU.

其中,获取请求用于请求获取目标FRU的名称所指示的配置文件中的配置内容。The acquisition request is used to request to acquire the configuration content in the configuration file indicated by the name of the target FRU.

其中,目标FRU的名称所指示的配置文件,即为目标FRU的配置文件。示例性的,目标FRU的配置文件的名称与目标FRU的名称相同。Among them, the configuration file indicated by the name of the target FRU is the configuration file of the target FRU. For example, the name of the configuration file of the target FRU is the same as the name of the target FRU.

如图4所示,为第一设备、第二设备的一种结构示意图。As shown in Figure 4, it is a schematic structural diagram of the first device and the second device.

图1B所示的第一设备、第二设备安装了FRU1。然而,FRU1出厂后,制造商发现FRU1存在硬件缺陷,对FRU1进行改版得到FRU1',或者,对FRU1的软件功能进行更新后得到FRU1',如,软件功能更新可以是指对FRU1'的可监控信息更新,或者,对FRU1的硬件功能更新后得到FRU1',在此基础上,图1B所示的第一设备、第二设备上的FRU1被更换为图4所示的第一设备、第二设备上的FRU1'。The first device and the second device shown in Figure 1B are equipped with FRU1. However, after FRU1 left the factory, the manufacturer discovered that FRU1 had hardware defects, and modified FRU1 to obtain FRU1', or updated the software functions of FRU1 to obtain FRU1'. For example, the software function update may refer to the monitorability of FRU1'. The information is updated, or the hardware function of FRU1 is updated to obtain FRU1'. On this basis, the FRU1 on the first device and the second device shown in Figure 1B are replaced with the first device and the second device shown in Figure 4. FRU1' on the device.

可以理解的,由于FRU进行硬件升级、软件升级或硬件改版后,该FRU的配置文件也需要进行相应的更新,换言之,第一带外控制器、第二带外控制器需要基于更新的配置文件,对硬件升级、软件升级或硬件改版后的FRU进行管理。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 be based on the updated configuration file. , manage the FRU after hardware upgrade, software upgrade or hardware revision.

基于此,第二设备上的FRU1被更换为FRU1'后,用户为第二设备的第二带外控制器配置了FRU1'配置文件,使得第二带外控制器可以基于FRU1'配置文件管理第二设备上的FRU1'。Based on this, after FRU1 on the second device is replaced with FRU1', the user configures the FRU1' configuration file for the second out-of-band controller of the second device, so that the second out-of-band controller can manage the second out-of-band controller based on the FRU1' configuration file. FRU1' on the second device.

需要说明的,本申请实施例对为第二带外控制器配置FRU1'的配置文件的方式不做限制,可以是相关技术中的任何一种实现方式,例如,可以是通过升级第二带外控制器的固件程序的方式,为第二带外控制器配置目标FRU的配置文件。It should be noted that the embodiment of the present application does not limit the method of configuring the configuration file of FRU1' for the second out-of-band controller. It can be any implementation method in the related technology. For example, it can be by upgrading the second out-of-band controller. The controller's firmware program configures the target FRU configuration file for the second out-of-band controller.

基于上述,第一设备上的FRU1被更换为FRU1'(即目标FRRU)。在第一设备未配置目标FRU的配置文件的情况下,为了能够对目标FRU进行管理,第一设备向第二设备发送获取请求(如GET请求),以请求获取目标FRRU的配置文件(即FRU1'配置文件)。Based on the above, FRU1 on the first device is replaced with FRU1' (ie, the target FRRU). When the first device does not configure the configuration file of the target FRU, in order to be able to manage the target FRU, the first device sends an acquisition request (such as a GET request) to the second device to request to obtain the configuration file of the target FRRU (i.e., FRU1 'configuration file).

可以理解的,在第一设备需要从第二设备获取任意一个指定FRU(如目标FRU)的配置文件中的配置内容时,第一设备向第二设备发送的获取请求可以包括该指定FRU的名称,这样,第二设备可以根据指定FRU的名称,确定第一设备所要获取的配置内容所属的配置文件。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.

该实施方式中,由于FRU的配置文件的名称与FRU的名称相同,因此,通过设置获取请求包括目标FRU的名称,并请求获取目标FRU的名称所指示的配置文件中的配置内容,这样,在需要获取某个特定FRU的配置文件中的配置内容时,有助于保证获取的配置内容的准确性。In this implementation, since the name of the configuration file of the FRU is the same as the name of the FRU, the acquisition request is set to include the name of the target FRU, and the request is made to obtain the configuration content in the configuration file indicated by the name of the target FRU. In this way, When you need to obtain the configuration content in the configuration file of a specific FRU, it helps to ensure the accuracy of the obtained configuration content.

需要说明的,目标FRRU为更换后的FRU1'仅为示例性说明,目标FRRU可以第一设备上任意一个更换后的FRU,如,目标FRU也可以是更换后的FRU2'、……、FRUk-1'或FRUk'。It should be noted that the target FRRU is the replaced FRU1' only for illustrative purposes. The target FRRU can be any replaced FRU on the first device. For example, the target FRU can also be the replaced FRU2',..., FRUk- 1' or FRUk'.

第二种实现方式,获取请求包括第一设备的机型标识。In a second implementation manner, the acquisition request includes the model identification of the first device.

其中,获取请求具体用于请求获取机型标识对应机型所支持的配置文件中的配置内容。目标FRU的配置文件为机型标识支持配置文件。The acquisition request is specifically used to request to obtain the configuration content in the configuration file supported by the model corresponding to the model identification. The configuration file of the target FRU is the model identification support configuration file.

示例性的,第一设备机型包括机架型、刀片型、塔型等。基于此,第一设备的机型标识包括机架型标识、刀片型标识、塔型标识等。For example, the first equipment model includes rack type, blade type, tower type, etc. Based on this, the model identification of the first device includes a rack type identification, a blade type identification, a tower type identification, etc.

如图5所示,为第一设备、第二设备的另一种结构示意图。As shown in Figure 5, it is another structural schematic diagram of the first device and the second device.

图1B中所示的第一设备、第二设备包括FRU1、……、FRUk。之后,由于FRU1、……、FRUk存在硬件缺陷而进行改版,或者,对FRU1、……、FRUk的软件功能进行更新,或者,对FRU1、……、FRUk的硬件功能更新,得到FRU1'、……、FRUk'。在此基础上,参见图5,图1B所示的第一设备、第二设备上的第一设备、第二设备上的FRU1、……、FRUk被更换为图5所示的第一设备、第二设备上的FRU1'、……、FRUk'。The first device and the second device shown in Figure 1B include FRU1,..., FRUk. Later, FRU1,...,FRUk were revised due to hardware defects, or the software functions of FRU1,...,FRUk were updated, or the hardware functions of FRU1,...,FRUk were updated, resulting in FRU1',... …, FRUk'. On this basis, referring to Figure 5, the first device, the first device on the second device shown in Figure 1B, and the FRU1,..., FRUk on the second device are replaced with the first device,..., FRUk on the second device shown in Figure 5. FRU1',...,FRUk' on the second device.

基于此,用户为第二设备上的FRU1'、……、FRUk'配置FRU1'配置文件、……、FRUk'配置文件,以使得第二带外控制器可以基于FRU1'配置文件、……、FRUk'配置文件管理第二设备上的FRU1'、……、FRUk'。Based on this, the user configures the FRU1' configuration file,..., FRUk' configuration file for FRU1',...,FRUk' on the second device, so that the second out-of-band controller can be based on the FRU1' configuration file,..., The FRUk' configuration file manages FRU1',...,FRUk' on the second device.

在一些实施例中,第一设备上的FRU1、……、FRUk被更换为FRU1'、……、FRUk'。在第一设备未配置FRU1'配置文件、……、FRUk'的配置文件的情况下,为了能够对FRU1'、……、FRUk'进行管理,第一设备向第二设备发送获取请求,以请求获取FRU1'配置文件、……、FRUk'的配置文件。In some embodiments, FRU1,...,FRUk on the first device are replaced with FRU1',...,FRUk'. When the first device does not configure the configuration files of FRU1',...,FRUk', in order to be able to manage FRU1',...,FRUk', the first device sends an acquisition request to the second device to request Get FRU1' configuration file,..., FRUk' configuration file.

在第二种实现方式中,FRU1'、……、FRUk'为目标FRU,换言之,目标FRU包括FRU1'、……、FRUk'。In the second implementation manner, FRU1',...,FRUk' are target FRUs. In other words, the target FRUs include FRU1',...,FRUk'.

可以理解的,在第一设备需要从第二设备上获取多个FRU的配置文件(如FRU1'配置文件、……、FRUk'配置文件)时,第一设备向第二设备发送的获取请求可以包括第一设备的机型标识,这样,第二设备可以根据第一设备的机型标识,确定第一设备的机型可以使用的多个FRU的配置文件,从而将第一设备可以使用的多个FRU的配置文件中的配置内容返回给第一设备,使得第一设备可以基于创建请求以及多个FRU的配置文件中的配置内容,创建多个FRU的配置文件。It can be understood that when the first device needs to obtain multiple FRU configuration files (such as FRU1' configuration files,..., FRUk' configuration files) from the second device, the acquisition request sent by the first device to the second device can be Including the model identification of the first device, in this way, the second device can determine the configuration files of multiple FRUs that can be used by the model of the first device based on the model identification of the first device, thereby combining the multiple FRUs that can be used by the first device. The configuration content in the configuration file of each FRU is returned 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.

该实施例中,通过设置获取请求包括第一设备的机型标识,并请求获取机型标识所指示的配置文件中的配置内容,这样,在第一设备更换了多个FRU,需要获取多个FRU的配置文件中的配置内容时,有助于提高获取多个FRU的配置文件中的配置内容的效率。In this embodiment, the acquisition request is set to include the model identification of the first device, and the configuration content in the configuration file indicated by the model identification is requested. In this way, when multiple FRUs are replaced on the first device, multiple FRUs need to be obtained. It helps to improve the efficiency of obtaining the configuration content in the configuration files of multiple FRUs.

可选地,在获取请求包括第一设备的机型标识的情况下,获取请求还可以包括目标FRU类型。Optionally, in the case where the acquisition request includes the model identification of the first device, the acquisition request may also include the target FRU type.

其中,目标FRU类型为第一设备支持的FRU类型,获取请求用于请求获取属于目标FRU类型的配置文件中的配置内容,目标FRU的配置文件为属于目标FRU类型的配置文件。The target FRU type is a FRU type supported by the first device, and the acquisition request is used to request to obtain 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.

其中,FRU类型是指使用FRU的部件的类型。Among them, the FRU type refers to the type of component using the FRU.

示例性的,使用第一FRU部件为主板(Board),则第一FRU的FRU类型为主板。使用第二FRU的部件为机框(Chassis),则第二FRU的FRU类型为机框,使用第三FRU的部件为背板(non volatile memor express,NVMe),则第三FRU的FRU类型为背板。使用第四FRU的部件为电源(PowerSupply),则第四FRU的FRU类型为电源。For example, if the first FRU component is used as the main board (Board), then the FRU type of the first FRU is the main board. The component using the second FRU is the chassis (Chassis), then the FRU type of the second FRU is the chassis, and the component using the third FRU is the backplane (non volatile memor express, NVMe), then the FRU type of the third FRU is back panel. The component using the fourth FRU is a power supply (PowerSupply), and the FRU type of the fourth FRU is power supply.

可以理解的,本申请实施例对目标FRU类型不作限制,例如,目标FRU类型可以是主板型FRU、机框型FRU、背板型FRU和电源型FRU中的至少一个。其中,主板型FRU是指应用于主板(Board)的FRU,机框型FRU是指应用于机框的FRU、背板型FRU是指应用于背板的FRU,电源型FRU是指应用于电源的FRU。It can be understood that the embodiment of the present application does not limit the target FRU type. For example, the target FRU type may be at least one of a mainboard type FRU, a chassis type FRU, a backplane type FRU, and a power supply type FRU. Among them, the mainboard-type FRU refers to the FRU applied to the motherboard (Board), the frame-type FRU refers to the FRU applied to the chassis, the backplane-type FRU refers to the FRU applied to the backplane, and the power-type FRU refers to the FRU applied to the power supply. FRU.

在一些实施例中,在第一设备需要从第二设备上获取多个FRU的配置文件时,第一设备向第二设备发送的获取还可以包括目标FRU类型,这样,第二设备可以根据第一设备的机型标识和目标FRU类型,确定FRU配置文件,这样,所确定的配置文件不仅是第一设备的机型可以使用的配置文件,同时也时是于第一设备所支持的FRU类型。In some embodiments, when the first device needs to obtain the configuration files of multiple FRUs from the second device, the acquisition sent by the first device to the second device may also include the target FRU type, so that the second device can obtain the target FRU type according to the second device. The model identification and target FRU type of a device determine the FRU configuration file. 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 the FRU type supported by the first device. .

该实施例中,通过设置获取请求包括目标FRU类型,用于指示获取请求所请求获取的配置文件应属于目标FRU类型,这样,有助于保证第一设备从第二设备获取的目标FRU的配置文件能够与第一设备相匹配,进而有助于保证第一设备能够正常使用获取到的配置文件。In this embodiment, by setting the acquisition request to include the target FRU type, it is used to indicate that the configuration file requested by the acquisition request should belong to the target FRU type. In this way, it helps to ensure that the configuration of the target FRU obtained by the first device from the second device The file can be matched with the first device, thereby helping to ensure that the first device can normally use the obtained configuration file.

可选地,S301包括多种实现方式,以下,通过方式1至方式2进行示例性说明。Optionally, S301 includes a variety of implementation methods, and below, method 1 to method 2 are used for exemplary description.

方式1:响应于接收到的客户端设备发送的目标指令,向所第二设备发送获取请求。Method 1: In response to the received target instruction sent by the client device, send an acquisition request to the second device.

其中,目标指令用于指示从第二设备获取目标FRU的配置文件,目标指令是在第一设备未配置目标FRU的配置文件的情况下发送的。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 does not configure the configuration file of the target FRU.

在一些实施例中,第一设备配置目标FRU后,用户通过客户端设备向第一设备发送目标指令,以指示第一设备从第二设备获取目标FRU的配置文件。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 the configuration file of the target FRU from the second device.

示例性的,目标指令可以包括第二设备的互联网协议(Internet Protocol,IP)地址,第一设备通过第二设备IP地址向第二设备发送获取请求。For example, the target instruction may include the Internet Protocol (IP) address of the second device, and the first device sends an acquisition request to the second device through the IP address of the second device.

方式1中,第一设备通过响应于接收客户端设备发送的目标指令,向第二设备发送获取请求,这样,可以在用户确定第一设备需要使用目标FRU的配置文件时,再指示第一设备向第二设备发送获取请求,这样,有助于提高配置内容获取的必要性。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 Sending a retrieval request to the second device helps to increase the necessity of configuring content retrieval.

方式2:响应于第一设备的目标扫描结果,向第二设备发送获取请求。Method 2: In response to the target scan result of the first device, send an acquisition request to the second device.

其中,目标扫描结果包括未在第一设备上扫描到目标FRU的配置文件。The target scan result includes that the configuration file of the target FRU was not scanned on the first device.

在一些实施例中,第一设备配置目标FRU后,重启FRU配置服务,使得第一带外控制器扫描目标FRU,以从目标FRU获取目标FRU的属性信息,属性信息包括目标FRU的名称。In some embodiments, after configuring the target FRU, the first device restarts the FRU configuration service so that the first out-of-band controller scans 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.

之后,第一带外控制器根据目标FRU的名称,扫描第一闪存存储器中配置文件,以加载目标FRU的配置文件。若第一带外控制器未扫描到目标FRU的配置文件,则第一带外控制器向第二设备的第二带外控制器发送获取请求。Afterwards, 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 an acquisition request to the second out-of-band controller of the second device.

示例性的,第一设备中预设存储有第二设备的互联网协议(Internet Protocol,IP)地址,第一设备响应于目标扫描结果,基于第二设备的IP地址向第二设备发送获取请求。For example, the Internet Protocol (IP) address of the second device is preset and stored in the first 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.

方式2中,第一设备通过响应于目标扫描结果,自动向第二设备发送获取请求,无需用户参与,有助于提高配置内容获取的便捷性和自动化程度。In method 2, the first device automatically sends an acquisition request to the second device in response to the target scan result without user participation, which helps to improve the convenience and automation of configuration content acquisition.

可选地,S301包括:在第一设备未配置目标FRU的配置文件的情况下,基于第一接口,向第二设备发送获取请求。其中,第一接口支持使用JSON格式数据。Optionally, S301 includes: if the first device does not configure the configuration file of the target FRU, sending an acquisition request to the second device based on the first interface. Among them, the first interface supports the use of JSON format data.

该实施例中,由于FRU的配置文件中的配置内容为JSON格式,因此,通过设置第一设备基于第一接口,向第二设备发送获取请求,从而使得第一设备与第二设备之间通过第一口传输目标FRU的配置文件中的配置内容,而第一接口支持传输JSON格式的数据,这样,在进行配置内容的传输时,无需进行数据格式的转换,有助于保证数据传输的便利性和准确性。In this embodiment, since the configuration content in the configuration file of the FRU is in JSON format, the first device is configured to send an acquisition request to the second device based on the first interface, thereby enabling the first device and the second device to pass through The first port transmits the configuration content in the configuration file of the target FRU, 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 ensure the convenience of data transmission. sex and accuracy.

可选地,S301包括以下S301a至S301c。Optionally, S301 includes the following S301a to S301c.

S301a:在第一设备未配置目标FRU的配置文件的情况下,向第二设备发送第二开启请求。S301a: If the first device does not configure the configuration file of the target FRU, send a second start request to the second device.

其中,第二开启请求用于请求开启第二设备的FRU配置管理服务,以使第二设备支持导出目标FRU的配置文件。The second start request is used to request to start the FRU configuration management service of the second device, so that the second device supports exporting the configuration file of the target FRU.

在一些实施例中,第二设备的FRU配置管理服务是指第二带外控制器所支持的FRU配置管理服务。其中,第二设备的FRU配置管理服务包括开启状态和关闭状态。In some embodiments, the FRU configuration management service of the second device refers to the FRU configuration management service supported by the second out-of-band controller. Wherein, the FRU configuration management service of the second device includes an open state and a closed state.

在FRU配置管理服务处于开启状态时,第二带外控制器中的FRU的配置文件支持导出,这样,第二设备就可以将导出的配置文件中的配置内容发送给其他设备。在FRU配置管理服务处于关闭状态时,第二带外控制器中的FRU的配置文件不支持导出,这样,第二设备将无法将第二带外控制器中的配置文件中的配置内容发送给其他设备。When the FRU configuration management service is enabled, the configuration file of the FRU in the second out-of-band controller supports exporting, so that the second device can send the configuration content in the exported configuration file to other devices. When the FRU configuration management service is turned off, the configuration file of the FRU in the second out-of-band controller does not support export. In this way, the second device will not be able to send the configuration content in the configuration file in the second out-of-band controller to other devices.

由于在第二带外控制器上电后,其FRU配置管理服务的初始状态为关闭状态。基于此,在第一设备在向第二设备发送获取请求前,先向第二设备发送开启请求,以请求开启第二设备的FRU配置管理服务,从而使得第二设备支持导出目标FRU的配置文件。After the second out-of-band controller is powered on, its FRU configuration management service is initially in a closed state. Based on this, before the first device sends an acquisition request to the second device, it first sends an enable request to the second device to request to enable the FRU configuration management service of the second device, so that the second device supports exporting the configuration file of the target FRU. .

S301b:第二设备响应于接收到的第二开启请求,开启FRU配置管理服务。S301b: The second device responds to the received second start request and starts the FRU configuration management service.

在一些实施例中,第二设备接收到第二开启请求后,将FRU配置管理服务的状态由关闭状态修改为开启状态,以开启FRU配置管理服务。In some embodiments, after receiving the second enable request, the second device changes the status of the FRU configuration management service from the closed state to the enabled state to enable the FRU configuration management service.

示例性的,第二带外控制器的第二FRU配置服务接口接收到第一带外控制器发送的第二开启请求后,响应于该开启请求,开启FRU配置管理服务。Exemplarily, after receiving the second start request sent by the first out-of-band controller, the second FRU configuration service interface of the second out-of-band controller starts the FRU configuration management service in response to the start request.

在一些实施例中,第二设备的FRU配置管理服务开启后,第二设备向第一设备返回开启通知,该开启通知用于通知第一设备,第二设备的FRU配置管理服务已开启。In some embodiments, after the FRU configuration management service of the second device is enabled, the second device returns an enablement notification to the first device. The enablement notification is used to notify the first device that the FRU configuration management service of the second device has been enabled.

示例性的,可以是第二带外控制器向第一带外控制器返回开启通知。For example, the second out-of-band controller may return a start notification to the first out-of-band controller.

S301c:第一设备在确定第二设备的FRU配置管理服务器已开启的情况下,向第二设备发送获取请求。S301c: After determining that the FRU configuration management server of the second device has been started, the first device sends an acquisition request to the second device.

在一些实施例中,第一设备接收到第二设备返回的开启通知后,确定第二设备的FRU配置管理服务器已开启,在此基础上,第一设备向第二设备发送获取请求,以请求获取目标FRU的配置文件中的配置内容。In some embodiments, after receiving the activation notification returned by the second device, the first device determines that the FRU configuration management server of the second device has been activated. Based on this, the first device sends an acquisition request to the second device to request Obtain the configuration content in the configuration file of the target FRU.

该实施例中,通过设置第二设备配置FRU配置管理服务,FRU配置管理服务处于开启状态时,第二设备可以导出目标FRU的配置文件,处于关闭状态时,第二设备无法导出目标FRU的配置文件,这样,有助于保证第二设备中的FRU的配置文件的安全性。In this embodiment, the FRU configuration management service is configured by setting the second device. When the FRU configuration management service is on, the second device can export the configuration file of the target FRU. When it is off, the second device cannot export the configuration of the target FRU. The file, in this way, helps ensure the security of the FRU's configuration file in the second device.

基于此,通过设置向第二设备发送开启请求,可以请求第二设备开启FRU配置管理服务,从而使得第二设备支持导出目标FRU的配置文件,这样,有助于保证配置文件导出的便利性。Based on this, by sending an enable request to the second device, the second device can be requested to enable the FRU configuration management service, so that the second device supports exporting the configuration file of the target FRU, which helps ensure the convenience of exporting the configuration file.

S302:第二设备接收第一设备发送的获取请求。S302: The second device receives the acquisition request sent by the first device.

第二设备的第二带外控制器接收到获取请求后,响应于该获取请求,调用文件导出单元,从第二带外控制器的第二闪存存储器中导出目标FRU的配置文件。After the second out-of-band controller of the second device receives the acquisition request, in response to the acquisition request, it calls the file export unit to export the configuration file of the target FRU from the second flash memory of the second out-of-band controller.

示例性的,第二带外控制器接收到获取请求后,在FRU配置文件管理服务处于开启状态的情况向,可以从第二闪存存储器中导出目标FRU的配置文件。反之,则无法从第二闪存存储器中导出目标FRU的配置文件。For example, after the second out-of-band controller receives the acquisition request, the configuration file of the target FRU can be exported from the second flash memory when the FRU configuration file management service is on. Otherwise, the configuration file of the target FRU cannot be exported from the second flash memory.

在一些实施例中,在获取请求包括目标FRU的名称的情况下,第二带外控制器从获取请求的URL索引中解析出目标FRU的名称,并从第二闪存存储器中导出目标FRU的名称所指示的FRU配置文件。In some embodiments, where 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 derives the name of the target FRU from the second flash memory The indicated FRU profile.

在另一些实施例中,在获取请求包括第一设备的机型标识的情况下,第二带外控制器从获取请求的URL索引解析出第一设备的机型标识,并根据机型标识,从第二闪存存储器中导出该机型标识所指示的配置文件(即目标FRU的配置文件)。In other embodiments, when the acquisition request includes the model identifier of the first device, the second out-of-band controller parses the model identifier of the first device from the URL index of the acquisition request, and based on the model identifier, Export the configuration file indicated by the model identification (ie, the configuration file of the target FRU) from the second flash memory.

在一个示例中,第二闪存存储器中存储有多个第一FRU配置文件集合。In one example, a plurality of first FRU configuration file sets are stored in the second flash memory.

其中,不同的第一FRU配置文件集合适用于不同的机型。例如,多个第一FRU配置文件集合包括适用于机架型设备的集合、适用于刀片型设备的集合、适用于塔式设备的集合等。Among them, different first FRU configuration file sets are suitable for different models. For example, the plurality of first FRU configuration file sets include a set suitable for rack-type devices, a set suitable for blade-type devices, a set suitable for tower-type devices, and so on.

需要说明的,不同的第一FRU配置文件集合中的FRU配置文件可以相同,或者,也可以不同,本申请实施例对此不做限制。It should be noted that the FRU configuration files in different first FRU configuration file sets may be the same, or may be different, and the embodiment of the present application does not limit this.

在此基础上,第二带外控制器从第二闪存存储器中导出机型标识所指示的第一FRU配置文件集合,换言之,导出适用于机型标识对应机型的第一FRU配置文件集合。On this basis, the second out-of-band controller derives the first set of FRU configuration files indicated by the model identification from the second flash memory. In other words, derives the first set of FRU configuration files suitable for the model corresponding to the model identification.

在又一些实施例中,在获取请求包括目标FRU类型的情况下,第二带外控制器从获取请求的URL索引解析出目标FRU类型,并根据目标FRU类型,从第二闪存存储器中导出属于目标FRU类型的配置文件。In some embodiments, when the acquisition request includes the target FRU type, the second out-of-band controller parses the target FRU type from the URL index of the acquisition request, and derives the target FRU type from the second flash memory according to the target FRU type. Configuration file for the target FRU type.

在一个示例中,第二闪存存储器中存储有多个第二FRU配置文件集合。In one example, a plurality of second FRU configuration file sets are stored in the second flash memory.

可以理解的,一个第二FRU配置文件集合中的FRU配置文件属于同一个FRU类型。It can be understood that the FRU configuration files in a second FRU configuration file set belong to the same FRU type.

其中,不同的第二FRU配置文件集合属于不同的FRU类型。例如,多个第二FRU配置文件集合包括属于主板型FRU的集合、属于机框型FRU的集合、属于背板型FRU的集合、属于电源型FRU的集合。Wherein, different second FRU configuration file sets belong to different FRU types. For example, the plurality of second FRU configuration file sets include a set belonging to the mainboard type FRU, a set belonging to the chassis type FRU, a set belonging to the backplane type FRU, and a set belonging to the power supply type FRU.

在此基础上,第二带外控制器从第二闪存存储器中导出目标FRU类型所指示的第二FRU配置文件集合,换言之,导出属于目标FRU类型的第二FRU配置文件集合。On this basis, the second out-of-band controller derives a second set of FRU configuration files indicated by the target FRU type from the second flash memory, in other words, derives a second set of FRU configuration files belonging to the target FRU type.

其中,属于目标FRU类型的第二FRU配置文件集合,是指该第二FRU配置文件集合中的配置文件属于目标FRU类型。Wherein, the second set of FRU configuration files belonging to the target FRU type means that the configuration files in the second set of FRU configuration files belong to the target FRU type.

基于上述,在获取请求包括第一设备的机型标识和目标FRU类型,第二带外控制器从第二闪存存储器中导出的配置文件应属于机型标识所指示的第一FRU配置文件集合、且属于目标FRU类型所指示的第二FRU配置文件集合。Based on the above, when the acquisition request includes the model identification 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 identification, and belongs to the second FRU profile set indicated by the target FRU type.

可选地,S302包括:第二设备基于第二接口,接收第一设备发送的获取请求。Optionally, S302 includes: the second device receives the acquisition request sent by the first device based on the second interface.

在一些实施例中,第二接口接收到获取请求后,从获取请求的URL索引中解析出目标FRU的名称。之后,调用文件导出单元,导出目标FRU的配置文件,该目标FRU的配置文件的名称与目标FRU的名称相同。In some embodiments, after receiving the acquisition request, the second interface parses the name of the target FRU from the URL index of the acquisition request. After that, the file export unit is called to export the configuration file of the target FRU. The name of the configuration file of the target FRU is the same as the name of the target FRU.

可选地,S303:第二设备判断目标FRU的配置文件中的配置内容是否满足预设条件。Optionally, S303: The second device determines whether the configuration content in the configuration file of the target FRU meets the preset conditions.

若判断结果为是,则执行S304。若判断结果为否,则结束。If the judgment result is yes, execute S304. If the judgment result is no, it ends.

其中,预设条件包括预设属性名、预设字段类型和预设属性值中的至少一项。The preset condition includes at least one of a preset attribute name, a preset field type and a preset attribute value.

在一些实施例中,配置内容包括多个属性信息。配置内容满足预设条件可以是配置内容包括的多个属性信息的属性名、字段类型或属性值与预设条件中对应的预设属性名、预设字段类型或预设属性值相匹配。In some embodiments, the configuration content includes multiple attribute information. The configuration content that satisfies the preset condition may be that the attribute names, field types or attribute values of the plurality of attribute information included in the configuration content match the corresponding preset attribute names, preset field types or preset attribute values in the preset condition.

在一些实施例中,获取请求用于请求获取一个FRU的配置文件中的配置内容时,第二设备判断该一个FRU的配置文件中的配置内容是否满足预设条件。In some embodiments, when the acquisition request is used to request to acquire the configuration content in the configuration file of an FRU, the second device determines whether the configuration content in the configuration file of the FRU meets the preset conditions.

在另一些实施例中,获取请求用于请求获取多个FRU的配置文件中配置内容时,第二设备分别判断该多个FRU的配置文件中的配置内容是否满足预设条件。In other embodiments, when the acquisition request is used to request the acquisition of configuration content in the configuration files of multiple FRUs, the second device respectively determines whether the configuration content in the configuration files of the multiple FRUs meets preset conditions.

该实施例中,通过设置配置文件中的配置内容满足预设条件时,向第一设备发送配置文件中的配置内容,这样,有助于避免配置内容属于非FRU配置文件,从而提高导出的配置内容的准确性和安全性,避免第二设备基于非FRU配置文件的配置内容生成FRU配置文件。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 that the configuration content belongs to non-FRU configuration files, thereby improving the exported configuration. The accuracy and security of the content prevent the second device from generating a FRU configuration file based on the configuration content of non-FRU configuration files.

可选地,S303包括多种实现方式,以下,通过方式a至方式c进行示例性说明。Optionally, S303 includes multiple implementation methods, and below, methods a to c are used for exemplary description.

方式a,S303包括:第二设备判断配置内容的属性名与预设属性名是否相同、且配置内容的字段类型与预设字段类型是否相同。Method a, S303 includes: the second device determines whether the attribute name of the configuration content is the same as the default attribute name, and whether the field type of the configuration content is the same as the default field type.

若判断结果为相同,换言之,配置内容的属性名与预设属性名相同、且配置内容的字段类型与预设字段类型相同,说明配置文件中的配置内容满足预设条件,则执行S304。若判断结果为不相同,换言之,配置内容的属性名与预设属性名不相同,和/或配置内容的字段类型与预设字段类型不相同,说明配置文件中的配置内容不满足预设条件,则结束。If the judgment result is the same, in other words, the attribute name of the configuration content is the same as the default attribute name, and the field type of the configuration content is the same as the default field type, it means that the configuration content in the configuration file meets the preset conditions, then S304 is executed. If the judgment result is not the same, in other words, the attribute name of the configuration content is different from the default attribute name, and/or the field type of the configuration content is different from the default field type, it means that the configuration content in the configuration file does not meet the preset conditions. , then ends.

其中,配置内容的属性名包括目标FRU的制造商标识、PN部件标识、SN序列号、型号、名称中的至少一个;配置内容的字段类型包括字符串。在一些实施例中,第二接口调用第二格式解析单元对目标FRU的配置文件进行解析,并对解析出内容进行封装,以得到配置文件中的配置内容。之后,第二格式解析单元获取预设属性名、预设字段类型,并比对配置内容的属性名与预设属性名称以及配置内容的字段类型与预设字段类型。The attribute name of the configuration content includes at least one of the target FRU's manufacturer identification, PN component identification, SN serial number, model, and name; the field type of the configuration content includes a string. In some embodiments, the second interface calls the second format parsing unit to parse the configuration file of the target FRU and encapsulates the parsed content to obtain the configuration content in the configuration file. After that, the second format parsing unit obtains the default attribute name and the default field type, and compares the attribute name of the configuration content with the default attribute name, and the field type of the configuration content with the default field type.

示例性的,获取请求包括目标FRU的配置文件的公共属性,如,公共属性可以包括@odata.context//FRU配置资源模板文件、@odata.id//FRU配置资源的唯一标识符URL,@odata.type//FRU配置资源的模板名称及版本号,第二格式解析单元通过解析获取请求,得到目标FRU的配置文件的公共属性,之后,通过公共属性获取预设属性名、预设字段类型。For example, the acquisition request includes public attributes of the target FRU configuration file. For example, the public attributes may include @odata.context//FRU configuration resource template file, @odata.id//unique identifier URL of the FRU configuration resource, @ odata.type//The template name and version number of the FRU configuration resource. The second format parsing unit parses the acquisition request to obtain the public attributes of the target FRU configuration file. After that, it obtains the preset attribute name and preset field type through the public attributes. .

在一些实施例中,第二闪存存储器中存储有第一模板文件,该模板文件中记载有预设属性名、预设字段类型。In some embodiments, the first template file is stored in the second flash memory, and the template file records preset attribute names and preset field types.

基于上述,第二格式解析单元通过公共属性获取第一模板文件,从而得到预设属性名、预设字段类型。Based on the above, the second format parsing unit obtains the first template file through the public attributes, thereby obtaining the preset attribute names and preset field types.

在一个示例中,第一模板文件可以是global.json//官方模板文档。预设属性名包括预设制造商标识、预设PN部件标识、预设SN序列号、预设型号、预设名称等。In one example, the first template file may be global.json//official template document. The default attribute name includes the default manufacturer identification, the default PN component identification, the default SN serial number, the default model, the default name, etc.

在一个示例中,第一模板文件包括预设属性名和预设字段类型。In one example, the first template file includes preset attribute names and preset field types.

示例性,第一模板的内容如下所示:For example, the content of the first template is as follows:

其中,“Properties”用于表征属性信息,“Manufacturer”用于表征预设属性名称为制造商,第三行的“"type":"string"”用于表征制造商的预设字段类型为字符串。“Model”用于表征预设属性名为型号。“PartNumber”用于表征预设属性名为PN部件标识。“"SerialNumber”用于表征预设属性名为SN序列号。Among them, "Properties" is used to represent attribute information, "Manufacturer" is used to represent that the default attribute name is the manufacturer, and the ""type":"string"" in the third line is used to represent that the manufacturer's default field type is character. string. "Model" is used to represent the default attribute name model. "PartNumber" is used to represent the preset attribute named PN part identification. ""SerialNumber" is used to represent the default attribute named SN serial number.

上述方式a中,通过配置内容的属性名与预设属性名是否相同,以及配置内容的字段类型与预设字段类型是否相同,确定配置内容是否满足预设条件,这样,有助于保证从配置文件中解析出的配置内容的准确性和完整性。In the above method a, it is determined whether the configuration content meets the preset conditions 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 that the configuration content is The accuracy and completeness of the configuration content parsed in the file.

方式b:第二设备判断配置内容的属性名与预设属性名是否相同、且配置内容的属性值与预设属性值是否相同。Method b: The second device determines whether the attribute name of the configuration content is the same as the default attribute name, and whether the attribute value of the configuration content is the same as the default attribute value.

在方式b中,配置内容的属性名包括目标FRU的机型标识和/或FRU类型。In method b, the attribute name of the configuration content includes the model ID and/or FRU type of the target FRU.

其中,目标FRU的机型标识指示目标FRU所适用的机型的标识。Among them, the model identification of the target FRU indicates the identification of the model to which the target FRU is applicable.

在一些实施例中,第二闪存存储器存储有第二模板,第二模板记载有预设属性名和预设属性值。In some embodiments, the second flash memory stores a second template, and the second template records preset attribute names and preset attribute values.

基于上述,第二格式解析单元通过公共属性获取第二模板,从而得到预设属性名和预设属性值。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.

在一个示例中,第二模板文可以是oem.json//自定义模板文档。预设属性名包括预设机型标识和预设FRU类型,In one example, the second template document may be oem.json//custom template document. The default attribute name includes the default model identification and the default FRU type.

在一个示例中,第二模板文件包括预设属性名和预设属性值。In one example, the second template file includes a preset attribute name and a preset attribute value.

示例性的,第二模板的内容如下所示:For example, the content of the second template is as follows:

其中,“Type”用于表征属性名为类型(即FRU类型),“"title":"ConfigurationType"”用于表征类型为配置类型。“enum”用于表征以下为枚举的属性值,“"Board"、"Chassis"、"NVME"、"PowerSupply"”用于表征属性值。换言之,预设FRU类型包括Board、Chassis、NVME、PowerSupply。Among them, "Type" is used to represent the attribute name type (ie, FRU type), and ""title":"ConfigurationType"" is used to represent the type as the configuration type. "enum" is used to characterize the following enumerated attribute values, and ""Board", "Chassis", "NVME", "PowerSupply"" is used to characterize the attribute values. In other words, the default FRU types include Board, Chassis, NVME, and PowerSupply.

需要说明的,关于方式b的其他相关说明,可以参考上述方式a,此处不再赘述。It should be noted that for other relevant instructions on method b, please refer to the above method a, which will not be described again here.

上述方式b中,通过配置内容的属性名与预设属性名是否相同,以及配置内容的属性值与预设属性值是否相同,确定配置内容是否满足预设条件,这样,有助于保证从配置文件中解析出的配置内容的准确性和完整性。In the above method b, it is determined whether the configuration content meets the preset conditions 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 that the configuration content is the same as the preset attribute name. The accuracy and completeness of the configuration content parsed in the file.

方式c,S303包括:第二设备判断配置内容的属性名与预设配置属性名是否相同。Method c, S303 includes: the second device determines whether the attribute name of the configuration content is the same as the default configuration attribute name.

若判断结果为相同,说明配置文件中的配置内容满足预设条件,则执行S304。若判断结果为不相同,说明配置文件中的配置内容不满足预设条件,则结束。If the judgment results are 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 different, it means that the configuration content in the configuration file does not meet the preset conditions, and the process ends.

在方式c中,配置内容的属性名可以包括FRU的制造商标识、PN部件标识、SN序列号、型号、名称、FRU类型和机型标识中的至少一个。In mode c, the attribute name of the configuration content may include at least one of the FRU's manufacturer identification, PN component identification, SN serial number, model, name, FRU type, and model identification.

需要说明的,关于方式c的相关说明,可以参见上述方式a,此处不再赘述。It should be noted that for relevant instructions on method c, please refer to the above method a, which will not be described again here.

上述方式c中,通过配置内容的名称与预设配置名称是否相同,确定配置内容是否满足预设条件,这样,有助于保证从配置文件中解析出的配置内容的准确性和完整性。In the above method c, whether the configuration content meets the preset conditions is determined by 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.

需要说明的,上述方式a至方式c,可以单独使用,或,也可以结合使用,例如,方式a和方式b可以结合使用,方式b也可以和方式c结合使用,本申请实施例对此不做限制。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 also be used in combination with method c. This is not the case in the embodiments of the present application. Make restrictions.

需要说明的,上述方式a至方式c仅为示例性说明,本申请实施例判断配置内容是否满足预设条件的具体方式不做限制。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.

S304:第二设备响应于获取请求,向第一设备发送创建请求。S304: The second device responds to the acquisition request and sends a creation request to the first device.

其中,创建请求用于请求创建目标FRU的配置文件。创建请求包括目标FRU的配置文件中的配置内容。The creation request is used to request to create the configuration file of the target FRU. The creation request includes the configuration content in the target FRU's configuration file.

示例性的,创建请求可以是RESTful架构中POST请求,在RESTful架构中,该POST请求可以用于请求创建新资源或执行指定资源的方法。在本申请实施例中,该POST请求用于请求创建新资源(即目标FRU的配置文件)。For example, the creation 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 of a specified resource. In this embodiment of the present application, the POST request is used to request the creation of a new resource (ie, the configuration file of the target FRU).

在一些实施例中,第二格式解析单元确定配置内容满足预设条件时,生成响应体报文,该响应体报文(即创建请求)。In some embodiments, when the second format parsing unit determines that the configuration content satisfies the preset condition, it generates a response body message, which is the response body message (that is, a creation request).

在一些实施例中,获取请求用于请求获取一个FRU的配置文件中的配置内容时,第二设备向第一设备发送该一个FRU的配置文件的创建请。In some embodiments, when the acquisition request is used to request to obtain the configuration content in the configuration file of one FRU, the second device sends a creation request for the configuration file of one FRU to the first device.

在另一些实施例中,获取请求用于请求获取多个FRU的配置文件中配置内容时,第二设备分别向第一设备发送该多个FRU的配置文件的创建请求。In some other embodiments, when the acquisition request is used to request to acquire the configuration content in the configuration files of multiple FRUs, the second device sends creation requests for the configuration files of the multiple FRUs to the first device respectively.

可选地,S304包括第二设备响应于获取请求,基于第二接口,向第一设备发送创建请求。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.

其中,第二接口传输JSON格式的数据。Among them, the second interface transmits data in JSON format.

在一些实施例中,第二格式解析单元确定配置内容满足预设条件时,调用第二接口,向第一设备发送创建请求。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.

该实施例中,由于FRU的配置文件为JSON文件,FRU的配置文件中的配置内容为JSON格式,因此,通过设置第一设备与第二设备之间通过第二接口传输目标FRU的配置文件中的配置内容,而第二接口支持传输JSON格式文件,这样,在进行配置内容传输时,无需进行数据格式的转换,有助于保证数据传输的便利性和准确性。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, therefore, the configuration file of the target FRU is transmitted between the first device and the second device through the second interface. configuration content, and the second interface supports the transmission of JSON format files. In this way, there is no need to convert the data format when transmitting the configuration content, which helps ensure the convenience and accuracy of data transmission.

S305:第一设备接收第二设备发送的创建请求。S305: The first device receives the creation request sent by the second device.

可选地,S305包括:第一设备根据第一接口,接收第二设备发送的创建请求。Optionally, S305 includes: the first device receives the creation request sent by the second device according to the first interface.

在一些实施例中,第一带外控制器的第一接口接收创建请求,之后,第一接口调用文件导入单元将目标FRU的配置文件中的配置内容导入第一设备。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.

可选地,S306:第一设备判断目标FRU的配置文件中的配置内容是否满足预设条件。Optionally, S306: The first device determines whether the configuration content in the configuration file of the target FRU meets the preset conditions.

若判断结果为是,则执行S307。若判断结果为否,则结束。If the judgment result is yes, execute S307. If the judgment result is no, it ends.

在一些实施例中,第一带外控制器的第一接口接收到创建请求后,调用格式解析单元,由格式解析单元解析出配置文件中的配置内容,以判断的配置内容是否满足预设条件。若满足预设条件,则说明第一设备接收的配置内容为合规的,反之,则为不合规的配置内容。In some embodiments, after receiving the creation request, the first interface of the first out-of-band controller calls the format parsing unit, and the format parsing unit parses out the configuration content in the configuration file to determine whether the configuration content meets the preset conditions. . If the preset conditions are met, the configuration content received by the first device is compliant; otherwise, the configuration content is non-compliant.

该实施例中,通过设置目标FRU的配置文件中的配置内容满足预设条件时,才基于配置内容,创建目标FRU的配置文件,这样,有助于保证配置内容的完整性,换言之,创建配置文件所需的配置内容是完整的,进而有助于避免使用不合规的配置内容,创建目标FRU的配置文件,导致基于所创建的配置文件管理目标FRU时,目标FRU的功能异常。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 file is created The required configuration content of the file is complete, which helps to avoid using non-compliant configuration content to create the target FRU configuration file, which may cause the target FRU to function abnormally when managing the target FRU based on the created configuration file.

需要说明的,S306的实现过程和相关说明,可以参考上述S303,此处不再赘述。It should be noted that the implementation process and related instructions of S306 can be referred to the above-mentioned S303, and will not be described again here.

S307:第一设备响应于创建请求,基于目标FRU的配置文件中的配置内容,创建目标FRU的配置文件。S307: In response to the creation request, the first device creates a configuration file of the target FRU based on the configuration content in the configuration file of the target FRU.

在一些实施例中,在第一格式解析单元确定配置内容满足预设条件时,调用文件导入单元在第一闪存存储器中创建目标FRU的配置文件,这样,第一闪存存储器中便存储了目标FRU的配置文件。In some embodiments, when the first format parsing unit determines that the configuration content meets the preset conditions, the file import unit is called to create the configuration file of the target FRU in the first flash memory. In this way, the target FRU is stored in the first flash memory. configuration file.

示例性的,文件导入单元响应创建请求,基于目标FRU的配置文件中的配置内容,创建目标FRU的配置文件,并将该新创建的目标FRU的配置文件存储于第一闪存存储器的数据区。其中,该新创建的目标FRU的配置文件可以是JSON格式的文件。Exemplarily, the file importing unit responds to the creation request, creates a configuration file of the target FRU based on the configuration content in the configuration file of the target FRU, and stores the newly created configuration file of the target FRU in the data area of the first flash memory. The configuration file of the newly created target FRU may be a file in JSON format.

需要说明的,响应于创建请求创建目标FRU的配置文件过程,可以参考相关技术中基于POST请求创建新资源的过程,二者原理相同,此处不再赘述。It should be noted that the process of creating a target FRU's configuration file in response to a creation request can refer to the process of creating a new resource based on a POST request in related technologies. The principles of the two are the same and will not be described again here.

在一些实施例中,获取请求用于请求获取一个FRU的配置文件中的配置内容时,第一设备响应于创建请求,创建该一个FRU的配置文件。In some embodiments, when the obtain request is used to request to obtain the configuration content in the configuration file of one FRU, the first device responds to the create request and creates the configuration file of the one FRU.

在另一些实施例中,获取请求用于请求获取多个FRU的配置文件中配置内容时,第二设备响应于创建请求,分别创建该多个FRU的配置文件。In other embodiments, when the obtain request is used to request to obtain the configuration content in the configuration files of multiple FRUs, the second device responds to the create request and creates configuration files of the multiple FRUs respectively.

可选地,FRU管理方法还包括:将第一设备的FRU配置管理服务器设置为开启状态。Optionally, the FRU management method further includes: setting the FRU configuration management server of the first device to an open state.

在一些实施例中,第一设备响应于目标扫描结果,将第一设备的FRU配置管理服务器设置为开启状态,从而使得第一设备支持创建目标FRU的配置文件。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 open state, so that the first device supports creating a configuration file of the target FRU.

由于第一设备在FRU配置管理服务设置为开启状态时,支持创建目标FRU的配置文件,这样,有助于避免在未经允许的情况下创建配置文件,进而有助于保证FRU管理的安全性。Since the first device supports creating the configuration file of the target FRU when the FRU configuration management service is set to on, this helps to avoid creating configuration files without permission, thereby helping to ensure the security of FRU management. .

S308:第一设备基于目标FRU的配置文件,管理目标FRU。S308: The first device manages the target FRU based on the configuration file of the target FRU.

在一些实施例中,获取请求用于请求获取一个FRU的配置文件中的配置内容时,第一设备基于该一个FRU的配置文件,管理该一个FRU。In some embodiments, when the acquisition request is used to request to obtain the configuration content in the configuration file of an FRU, the first device manages the FRU based on the configuration file of the FRU.

在另一些实施例中,获取请求用于请求获取多个FRU的配置文件中配置内容时,第二设备基于该多个FRU的配置文件,管理该多个FRU。In other embodiments, when the acquisition request is used to request to acquire the configuration content in the configuration files of multiple FRUs, the second device manages the multiple FRUs based on the configuration files of the multiple FRUs.

在一些实施例中,第一闪存存储器中存储目标FRU的配置文件后,调用第一FRU配置服务接口,以触发扫描FRU操作。之后,第一带外控制器扫描第一设备的FRU,在扫描目标FRU后,得到目标FRU中存储的目标FRU的名称。之后,第一带外控制器根据目标FRU的名称,加载第一闪存存储器中目标FRU的配置文件,从而实现管理FRU。In some embodiments, after the configuration file of the target FRU is stored in the first flash memory, the first FRU configuration service interface is called to trigger the scanning FRU operation. Afterwards, the first out-of-band controller scans the FRU of the first device, and after scanning the target FRU, obtains the name of the target FRU stored in the target FRU. Afterwards, the first out-of-band controller loads the configuration file of the target FRU in the first flash memory according to the name of the target FRU, thereby managing the FRU.

在另一些实施例中,第一闪存存储器中存储目标FRU的配置文件后,第一设备执行重启操作,以使得第一设备的CPU重新上电。在第一设备重新启动后,第一带外控制器扫描第一设备的FRU,在扫描目标FRU后,得到目标FRU中存储的目标FRU的名称。之后,第一带外控制器根据目标FRU的名称,加载第一闪存存储器中目标FRU的配置文件,并将对目标FRU的管理业务上报给CPU,从而实现管理FRU。In some other embodiments, after the configuration file of the target FRU is stored in the first flash memory, the first device performs a restart operation so that the CPU of the first device is powered on again. After the first device is restarted, the first out-of-band controller scans the FRU of the first device, and after scanning the target FRU, obtains the name of the target FRU stored in the target FRU. Afterwards, the first out-of-band controller loads the configuration file of the target FRU in the first flash memory according to the name of the target FRU, and reports the management service of the target FRU to the CPU, thereby managing the FRU.

由于目标FRU的部分功能需要重新第一设备的CPU重启后才可以进行管理,因此,通过设置第一闪存存储器中存储目标FRU的配置文件后,第一设备执行重启操作,并加载目标FRU的配置文件,从而可以将对目标FRU的管理业务上报给CPU,有助于保证第一带外控制器对目标FRU的管理的完善性。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 stored in the first flash memory, the first device performs a restart operation and loads the configuration of the target FRU. file, so that the management business of the target FRU can be reported to the CPU, which helps to ensure the integrity of the first out-of-band controller's management of the target FRU.

上述实施例中,在第一设备未配置目标FRU的配置文件的情况下,第一设备主动向第二设备发送获取请求,以请求获取目标FRU的配置文件中的配置内容,并在接收到第一设备的创建请求后,自动响应于创建请求,基于创建请求携带的目标FRU的配置文件中的配置内容,自动创建目标FRU的配置文件,之后,基于创建的目标FRU的配置文件,管理目标FRU。由于第一设备能够基于创建请求,自动创建目标FRU的配置文件,因此,相对于相关技术中需要对固件程序进行开发、测试、版本发布等流程才能够为第一设备配置目标FRU的配置文件,不仅有助于降低更换目标FRU的成本,还有助于提高更换目标FRU的效率。In the above embodiment, when the first device does not configure the configuration file of the target FRU, the first device actively sends an acquisition request to the second device to request to obtain the configuration content in the configuration file of the target FRU, and after receiving the first After a device creates a request, it automatically responds to the creation request, automatically 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, compared with the related technology, it is necessary to develop, test, version release and other processes of the firmware program to configure the configuration file of the target FRU for the first device. Not only does it help reduce the cost of replacing the target FRU, it also helps improve the efficiency of replacing the target FRU.

可选地,FRU管理方法还包括以下步骤一至步骤二。Optionally, the FRU management method also includes the following steps 1 to 2.

步骤一:客户端设备向第一设备发送扫描请求。Step 1: The client device sends a scan request to the first device.

其中,扫描请求用于请求在第一设备重新启动后扫描目标FRU。The scan request is used to request to scan the target FRU after the first device is restarted.

在一些实施例中,在第一闪存存储器中存储目标FRU的配置文件后,为了使得第一带外控制器可以对管理目标FRU的全部功能,用户通过客户端设备向第一设备发送扫描请求,以指示第一设备的第一带外控制器重新启动,并在重新启动后,扫描目标FRU。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 after the restart, scan the target FRU.

示例性的,客户端设备的CPU向第一设备的target链接发送扫描请求,该扫描请求可以是PSOT请求,在该实施例中,POST请求用于请求执行指定资源的方法(即扫描FRU)。该扫描请求包括@Redfish.ActionInfo链接中自定义的操作名称和操作参数。For example, the CPU of the client device sends a scan request to the target link of the first device. The scan request may be a PSOT request. In this embodiment, the POST request is used to request execution of a method of a specified resource (ie, scan FRU). The scan request includes the customized operation name and operation parameters in the @Redfish.ActionInfo link.

其中,target链接为redfish/v1/Manager/{Id}/FRUManagerService/Actions/FRUManager.RescanBuses。@Redfish.ActionInfo链接为/redfish/v1/Managers/{Id}/RescanBusesActionInfo。操作名称(Name)为RescanBuses(重新扫描总线)。操作参数(AllowableValues)为Rescan。Among them, the target link is redfish/v1/Manager/{Id}/FRUManagerService/Actions/FRUManager.RescanBuses. The @Redfish.ActionInfo link is /redfish/v1/Managers/{Id}/RescanBusesActionInfo. The operation name (Name) is RescanBuses (rescan the bus). The operation parameter (AllowableValues) is Rescan.

步骤二:第一设备响应于接收到的客户端设备发送的扫描请求,执行重启操作,并在重新启动后,扫描目标FRU。Step 2: The first device responds to the received scan request sent by the client device, performs a restart operation, and scans the target FRU after the restart.

在一些实施例中,第一设备接收到扫描请求后,执行重启操作,使得第一设备的CPU重新上电。之后,第一带外控制器扫描第一设备上的FRU,从而实现扫描到目标FRU。In some embodiments, after receiving the scan request, the first device performs a restart operation so that the CPU of the first device is powered on again. Afterwards, the first out-of-band controller scans the FRU on the first device, thereby achieving scanning to the target FRU.

该实施例中,通过设置第一设备可以响应于扫描请求,重新启动,并在重启后,扫描第一设备上的FRU,这样,在用户确定需要扫描FRU时,就可以通过向第一设备发送扫描请求,指示第一设备扫描FRU,有助于提高FRU扫描的灵活性。In this embodiment, the first device can be configured to restart in response to the scan request, and after restarting, scan the FRU on the first device. In this way, when the user determines that the FRU needs to be scanned, the user can send a message to the first device. The scan request instructs the first device to scan the FRU, which helps to increase the flexibility of FRU scanning.

以下,结合图6介绍本申请实施例的第二部分。The second part of the embodiment of the present application will be introduced below with reference to FIG. 6 .

图6是根据一示例性实施例示出的另一种现场可更换单元FRU管理方法的流程图。示例性的,该方法包括以下S601-S612。Figure 6 is a flow chart of another field replaceable unit FRU management method according to an exemplary embodiment. Exemplarily, the method includes the following S601-S612.

需要说明的,该方法适用于图2A至图2B所示的系统架构。It should be noted that this method is applicable to the system architecture shown in Figure 2A to Figure 2B.

在一些实施例中,客户端设备上存储有目标FRU的配置文件中的配置内容。此外,多个第一设备上的FRU也被更换为目标FRU。In some embodiments, the configuration content in the configuration file of the target FRU is stored on the client device. In addition, FRUs on multiple first devices are also replaced with target FRUs.

为了降低为第一设备配置目标FRU的配置文件的研发成本以及时间,该多个第一设备中的任意一个第一设备可以基于下述S601-S507的方式,自动创建目标FRU的配置文件。换言之,下述实施例中的第一设备,可以是多个第一设备中的任意一个第一设备。In order to reduce the research and development cost and time of configuring the configuration file of the target FRU for the first device, any first device among the plurality of first devices can automatically create the configuration file of the target FRU based on the following S601-S507. In other words, the first device in the following embodiments may be any first device among multiple first devices.

可选地,S601:客户端设备响应于查询指令,向第一设备发送查询请求。Optionally, S601: The client device responds to the query instruction and sends a query request to the first device.

其中,查询请求用于请求查询第一设备支持的FRU类型。The query request is used to request to query the FRU type supported by the first device.

在一些实施例中,客户端设备登入第一带外控制器的客户端后,客户端设备的CPU向第一带外控制器发送查询请求。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.

客户端设备存储有多个FRU的配置文件,示例性的,该多个FRU的配置文件可以存储客户端设备的存储设备中。为了保证之后向第一设备所发送的配置内容对应的FRU的类型是第一设备所支持的FRU类型,因此,客户端设备向第一设备发送查询请求,以请求查询第一设备支持的FRU类型。The client device stores configuration files of multiple FRUs. For example, the configuration files of the multiple FRUs may be stored in a storage device of the client device. In order to ensure that the FRU type corresponding to the configuration content subsequently sent to the first device is the FRU type supported by the first device, therefore, the client device sends a query request to the first device to request to query the FRU type supported by the first device. .

可选地,S602:第一设备响应于查询请求,向客户端设备发送目标FRU类型。Optionally, S602: In response to the query request, the first device sends the target FRU type to the client device.

在一些实施例中,第一带外控制器的第一FRU配置服务接口接收客户端设备发送的查询请求,并获取第一设备所支持的FRU类型。之后,第一FRU配置服务接口向客户端设备发送第一设备所支持的FRU类型(即目标FRU类型)。In some embodiments, the first FRU configuration service interface of the first out-of-band controller receives the query request sent by the client device and obtains the FRU type supported by the first device. Afterwards, the first FRU configuration service interface sends the FRU type supported by the first device (ie, the target FRU type) to the client device.

该实施例中,客户端设备通过查询第一设备所支持的FRU类型,这样,有助于保证向第一设备发送的配置内容对应的FRU为第一设备支持的FRU类型。In this embodiment, the client device queries the FRU type supported by the first device, which helps ensure that the FRU corresponding to the configuration content sent to the first device is the FRU type supported by the first device.

可选地,FRU管理方法还包括:Optionally, the FRU management method also includes:

步骤一:客户端设备向第一设备发送第一开启请求;第一开启请求用于请求开启第一设备的FRU配置服务,以使得第一设备支持导入配置文件中的配置内容;Step 1: The client device sends a first start request to the first device; the first start request is used to request to start the FRU configuration service of the first device, so that the first device supports the configuration content in the imported configuration file;

步骤二:第一设备响应于接收到的第一开启请求,将第一设备的FRU配置管理服务设置为开启状态。Step 2: In response to the received first enable request, the first device sets the FRU configuration management service of the first device to an enabled state.

需要说明的,该步骤一至步骤二的相关说明,可以参考上述S301a至S301c的相关说明,此处不再细述。It should be noted that for the relevant descriptions of steps one to two, please refer to the relevant descriptions of S301a to S301c mentioned above, which will not be described in detail here.

S603:客户端设备响应于创建指令,向第一设备发送创建请求。S603: The client device responds to the creation instruction and sends a creation request to the first device.

其中,创建请求用于请求创建目标FRU的配置文件。创建请求包括目标FRU的配置文件中的配置内容。The creation request is used to request to create the configuration file of the target FRU. The creation request includes the configuration content in the target FRU's configuration file.

其中,创建指令用于指示向第一设备发送目标FRU的配置文件的创建请求。Wherein, the creation instruction is used to instruct to send a creation request of the configuration file of the target FRU to the first device.

在一些实施例中,用户对客户端执行目标操作,客户端响应于用户所执行的目标操作生成创建指令。其中,目标操作可以是用户对命令行执行的操作,或者,也可以是用户对第一带外控制器的客户端所在执行的操作。In some embodiments, the user performs a target operation on the client, and the client generates a creation instruction in response to the target operation performed by the user. The target operation may be an operation performed by the user on the command line, or it may also be an operation performed by the user on the client location of the first out-of-band controller.

在一些实施例中,客户端设备中存储有目标FRU的配置文件中的配置内容。在第一设备未配置目标FRU的配置文件的情况下,客户端设备向第一设备发送创建请求,以使得第一设备可以自动创建目标FRU的配置文件。In some embodiments, the client device stores the configuration content in the configuration file of the target FRU. In the case that the first device does not configure the configuration file of the target FRU, 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.

在一些实施例中,客户端设备登入第一带外控制器的客户端后,客户端设备的CPU向第一带外控制器发送创建请求。In some embodiments, after the client device logs in to 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.

在一个示例中,客户端设备响应于创建指令,基于目标FRU类型,向第一设备发送创建强求,其中,目标FRU的配置文件属于目标FRU类型,这样,有助于保证第一设备所接收到的目标FRU的配置文件中的配置内容能够正常使用。In one example, the client device responds to the creation instruction and sends a creation request to the first device based on the target FRU type, where the configuration file of the target FRU belongs to the target FRU type. In this way, it helps to ensure that the first device receives The configuration content in the target FRU's configuration file can be used normally.

可选地,S603包括:响应于所述创建指令,基于第三接口,向所述第一设备发送所述创建请求;所述第三接口支持传输JSON格式的数据。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.

该实现方式中,由于FRU的配置文件为JSON文件,FRU的配置文件中的配置内容为JSON格式,因此,客户端设备通过第三接口向第一设备发送目标FRU的配置文件中的配置内容,而第三接口支持传输JSON格式文件,这样,在进行配置内容传输时,无需进行数据格式的转换,有助于保证数据传输的便利性和准确性。In this implementation, since the configuration file of the FRU 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. The third interface supports the transmission of JSON format files. In this way, when transmitting configuration content, there is no need to convert the data format, which helps ensure the convenience and accuracy of data transmission.

需要说明的,S603的其他相关说明,可以参考上述S304,二者原理相同,此处不再赘述。It should be noted that for other relevant instructions of S603, please refer to the above-mentioned S304. The principles of the two are the same and will not be described again here.

S604:第一设备接收客户端设备发送的创建请求。S604: The first device receives the creation request sent by the client device.

需要说明的,S604的其他相关说明,可以参考上述S305,二者原理相同,此处不再赘述。It should be noted that for other relevant instructions of S604, please refer to the above-mentioned S305. The principles of the two are the same and will not be described again here.

可选地,S605:第一设备判断目标FRU的配置文件中的配置内容是否满足预设条件。Optionally, S605: The first device determines whether the configuration content in the configuration file of the target FRU meets the preset conditions.

需要说明的,S605的其他相关说明,可以参考上述S306,二者原理相同,此处不再赘述。It should be noted that for other relevant instructions of S605, please refer to the above-mentioned S306. The principles of the two are the same and will not be described again here.

S606:第一设备响应于创建请求,基于目标FRU的配置文件中的配置内容,创建目标FRU的配置文件。S606: In response to the creation request, the first device creates a configuration file of the target FRU based on the configuration content in the configuration file of the target FRU.

需要说明的,S606的其他相关说明,可以参考上述S307,二者原理相同,此处不再赘述。It should be noted that for other related instructions of S606, please refer to the above-mentioned S307. The principles of the two are the same and will not be described again here.

S607:第一设备基于目标FRU的配置文件,管理目标FRU。S607: The first device manages the target FRU based on the configuration file of the target FRU.

需要说明的,S607的其他相关说明,可以参考上述S308,二者原理相同,此处不再赘述。It should be noted that for other related instructions of S607, you can refer to the above-mentioned S308. The principles of the two are the same and will not be repeated here.

上述实施例中,在用户确定第一设备需要使用目标FRU的配置文件时,通过创建指令,指示客户端设备向第一设备发送创建请求,使得第一设备可以自动创建目标FRU的配置文件。第一设备在接收到创建请求后,自动响应于创建请求,基于创建请求携带的目标FRU的配置文件中的配置内容,自动创建目标FRU的配置文件,之后,基于创建的目标FRU的配置文件,管理目标FRU。由于第一设备能够基于创建请求,自动创建目标FRU的配置文件,因此,相对于相关技术中需要对固件程序进行开发、测试、版本发布等流程才能够为第一设备配置目标FRU的配置文件,不仅有助于降低更换目标FRU的成本,还有助于提高更换目标FRU的效率。In the above embodiment, when the user determines that the first device needs to use the configuration file of the target FRU, the client device is instructed to send a creation request to the first device through a create 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. After that, based on the created configuration file of the target FRU, Management 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 technology, it is necessary to develop, test, version release and other processes of the firmware program to configure the configuration file of the target FRU for the first device. Not only does it help reduce the cost of replacing the target FRU, it also helps improve the efficiency of replacing the target FRU.

以下,通过S608至S612,对客户端设备获取目标FRU的配置文件的过程进行示例性介绍。Below, through S608 to S612, the process of the client device obtaining the configuration file of the target FRU is exemplarily introduced.

S608:客户端设备响应于获取指令,向第二设备发送获取请求。S608: The client device responds to the acquisition instruction and sends an acquisition request to the second device.

其中,获取请求用于请求获取目标FRU的配置文件中的配置内容。The acquisition request is used to request to acquire the configuration content in the configuration file of the target FRU.

在一些实施例中,客户端设备登入第二带外控制器的客户端后,客户端设备的CPU向第二带外控制器发送获取请求。In some embodiments, after the client device logs in to 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.

可选地,FRU管理方法还包括:Optionally, the FRU management method also includes:

步骤一:客户端设备向第二设备发送第三开启请求,第二开启请求用于请求开启第二设备的FRU配置管理服务,以使第二设备支持导出配置文件中的配置内容。Step 1: The client device sends a third start request to the second device. The second start request is 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.

步骤二:第二设备响应于接收到的第三开启请求,将第二设备的FRU配置管理服务设置为开启状态。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.

需要说明的,该步骤一至步骤二的相关说明,可以参考上述S301a至S301c的相关说明,此处不再细述。It should be noted that for the relevant descriptions of steps one to two, please refer to the relevant descriptions of S301a to S301c mentioned above, which will not be described in detail here.

需要说明的,S608的其他相关说明,可以参考上述S301,二者原理相同,此处不再赘述。It should be noted that for other related instructions of S608, you can refer to the above-mentioned S301. The principles of the two are the same and will not be described again here.

S609:第二设备接收客户端设备发送的获取请求。S609: The second device receives the acquisition request sent by the client device.

需要说明的,S609的其他相关说明,可以参考上述S302,二者原理相同,此处不再赘述。It should be noted that for other relevant instructions of S609, please refer to the above-mentioned S302. The principles of the two are the same and will not be described again here.

可选地,S610:第二设备判断目标FRU的配置文件中的配置内容是否满足预设条件。Optionally, S610: The second device determines whether the configuration content in the configuration file of the target FRU meets the preset conditions.

需要说明的,S610的其他相关说明,可以参考上述S303,二者原理相同,此处不再赘述。It should be noted that for other related instructions of S610, you can refer to the above-mentioned S303. The principles of the two are the same and will not be repeated here.

S611:第二设备向客户端设备发送目标FRU的配置文件中的配置内容。S611: The second device sends the configuration content in the configuration file of the target FRU to the client device.

需要说明的,S611的相关说明,可以参考上述S304,二者原理相同,此处不再赘述。It should be noted that for the relevant description of S611, please refer to the above-mentioned S304. The principles of the two are the same and will not be described again here.

S612:客户端设备接收第二设备发送的目标FRU的配置文件中的配置内容。S612: The client device receives the configuration content in the configuration file of the target FRU sent by the second device.

需要说明的,S612的相关说明,可以参考上述S305,二者原理相同,此处不再赘述。It should be noted that for the relevant instructions of S612, please refer to the above-mentioned S305. The principles of the two are the same and will not be described again here.

上述实施例中,第一设备响应于获取指令,向第二设备发送获取请求,以请求从第二设备获取目标FRU的配置文件中的配置内容,从而实现目标FRU的配置文件中的配置内容,这样,其他设备便可以基于配置文件中的配置内容,生成目标FRU的配置文件,相对于相关技术中需要对固件程序进行开发、测试、版本发布等流程才能够确定目标FRU的配置文件中的配置内容,不仅有助于降低确定配置文件中的配置内容的成本,还有助于提高配置文件中的配置内容的效率。In the above embodiment, in response to the acquisition instruction, the first device sends an acquisition request to the second device to request to acquire 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 related technologies, processes such as firmware program development, testing, and version release are required to determine the configuration in the configuration file of the target FRU. content, 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.

上述主要从方法的角度对本申请实施例提供的方案进行了介绍。为了实现上述功能,现场可更换单元FRU管理装置包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The above mainly introduces the solutions provided by the embodiments of the present application from the perspective of methods. In order to realize the above functions, the field replaceable unit FRU management device includes hardware structures and/or software modules corresponding to each function. Persons skilled in the art should easily realize that, with the units and algorithm steps of each example described in conjunction with 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 performed by hardware or computer software driving the hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.

本申请实施例可以根据上述方法,示例性的对现场可更换单元FRU管理装置进行功能模块的划分,例如,现场可更换单元FRU管理装置可以包括对应各个功能划分的各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。Embodiments of the present application can exemplarily divide the field replaceable unit FRU management device into functional modules according to the above method. For example, the field replaceable unit FRU management device may include functional modules corresponding to each functional division, or the two functional modules may be divided into two. One or more functions are integrated into one processing module. The above integrated modules can be implemented in the form of hardware or software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. In actual implementation, there may be other division methods.

示例性的,图7示出了上述实施例中所涉及的现场可更换单元FRU管理装置(记为现场可更换单元FRU管理装置700)的一种可能的结构示意图,该FRU管理装置700包括接收单元701、创建单元702和管理单元703。接收单元701,用于接收创建请求,创建请求用于请求创建目标FRU的配置文件;创建请求包括目标FRU的配置文件中的配置内容。例如,图3所示的S305,图6所示的S604。创建单元702,用于响应于创建请求,基于目标FRU的配置文件中的配置内容,创建目标FRU的配置文件。例如,图3所示的S307,图6所示的S606。管理单元703,用于基于目标FRU的配置文件,管理目标FRU。例如,图3所示的S308,图6所示的S607。Exemplarily, FIG. 7 shows a possible structural diagram of the field replaceable unit FRU management device (denoted as field replaceable unit FRU management device 700) involved in the above embodiment. The FRU management device 700 includes a receiving unit 701, creation unit 702 and management unit 703. The receiving unit 701 is configured to receive a creation request, which 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 Figure 3, S604 shown in Figure 6. The creation unit 702 is configured to respond to the creation request and create a configuration file of the target FRU based on the configuration content in the configuration file of the target FRU. For example, S307 shown in Figure 3, S606 shown in Figure 6. 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 Figure 3, S607 shown in Figure 6.

可选地,创建请求是客户端设备响应于创建指令发送的,创建指令用于指示向第一设备发送目标FRU的配置文件的创建请求,客户端设备存储有目标FRU的配置文件中的配置内容。Optionally, the creation request is sent by the client device in response to a creation instruction. The creation instruction is used to instruct the first device to send a creation request for the configuration file of the target FRU. The client device stores the configuration content in the configuration file of the target FRU. .

可选地,该FRU管理装置700还包括发送单元704。发送单元704,用于在第一设备未配置目标FRU的配置文件的情况下,向第二设备发送获取请求;第二设备存储有目标FRU的配置文件,获取请求用于请求获取配置文件中的配置内容;其中,创建请求是第二设备响应于获取请求发送的。Optionally, the FRU management device 700 further includes a sending unit 704. The sending unit 704 is configured to send an acquisition request to the second device when the first device does not configure the 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 file of the target FRU. Configuration content; wherein the create request is sent by the second device in response to the get request.

可选地,发送单元704,具体用于响应于接收到的目标指令,向所第二设备发送获取请求;目标指令用于指示从第二设备获取目标FRU的配置文件中的配置内容,目标指令是在第一设备未配置目标FRU的配置文件的情况下发送的;或响应于目标扫描结果,向第二设备发送获取请求;目标扫描结果包括未在第一设备上扫描到目标FRU的配置文件。Optionally, the sending unit 704 is specifically configured 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 It is sent when the first device does not configure the configuration file of the target FRU; or in response to the target scan result, an acquisition request is sent to the second device; the target scan result includes that the configuration file of the target FRU was not scanned on the first device. .

可选地,创建单元702,具体用于若配置文件中的配置内容满足预设条件,响应于创建请求,基于配置文件中的配置内容,创建目标FRU的配置文件。Optionally, the creation 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 the creation request if the configuration content in the configuration file meets the preset conditions.

可选地,配置文件中的配置内容满足预设条件,包括:配置内容的属性名与预设属性名相同、且配置内容的字段类型与预设字段类型相同;其中,配置内容的属性名包括目标FRU的制造商标识、PN部件标识、SN序列号、型号、名称中的至少一个。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 target FRU's manufacturer identification, PN component identification, SN serial number, model, and name.

可选地,配置文件中的配置内容满足预设条件,包括:配置内容的属性名与预设属性名相同、且配置内容的属性值与预设属性值相同;其中,配置内容的属性名包括目标FRU的机型标识和/或FRU类型。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 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 ID and/or FRU type of the target FRU.

可选地,获取请求包括目标FRU的名称,获取请求用于请求获取目标FRU的名称所指示的配置文件中的配置内容;或获取请求包括第一设备的机型标识,获取请求用于请求获取机型标识所支持的配置文件中的配置内容,目标FRU的配置文件为机型标识支持配置文件。Optionally, the acquisition request includes the name of the target FRU, and the acquisition request is used to request the acquisition of the configuration content in the configuration file indicated by the name of the target FRU; or the acquisition request includes the model identification of the first device, and the acquisition request is used to request the acquisition. The configuration content in the configuration file supported by the model identification. The configuration file of the target FRU is the configuration file supported by the model identification.

可选地,在获取请求包括第一设备的机型标识的情况下,获取请求还可以包括目标FRU类型,目标FRU类型为第一设备支持的FRU类型,获取请求用于请求获取属于目标FRU类型的配置文件中的配置内容,目标FRU的配置文件为属于目标FRU类型的配置文件。Optionally, when the acquisition request includes the model identification of the first device, the acquisition request may also include a target FRU type. The target FRU type is a FRU type supported by the first device, and the acquisition request is used to request to obtain the target FRU type. The configuration content in the configuration file, the configuration file of the target FRU is a configuration file belonging to the target FRU type.

可选地,配置文件中的配置内容为JSON格式;接收单元701具体用于基于第一接口,接收创建请求;第一接口支持传输JSON格式的数据。Optionally, the configuration content in the configuration file is in JSON format; the receiving unit 701 is specifically configured to receive the creation request based on the first interface; the first interface supports the transmission of data in JSON format.

关于上述可选方式的具体描述可以参见前述的方法实施例,此处不再赘述。此外,上述提供的任一种现场可更换单元FRU管理装置700的解释以及有益效果的描述均可参考上述对应的方法实施例,不再赘述。For specific descriptions of the above optional methods, please refer to the foregoing method embodiments, and will not be described again here. In addition, the explanation and description of the beneficial effects of any of the field replaceable unit FRU management devices 700 provided above may refer to the above corresponding method embodiments, and will not be described again.

示例性的,图8示出了上述实施例中所涉及的现场可更换单元FRU管理装置(记为现场可更换单元FRU管理装置800)的一种可能的结构示意图,该FRU管理装置800包括接收单元801和发送单元802。接收单元801,用于接收获取请求;获取请求用于请求获取目标FRU的配置文件中的配置内容。例如,图3所示的S302,图6所示的S602。发送单元802,用于响应于获取请求,向发送获取请求的设备发送创建请求;创建请求包括目标FRU的配置文件中的配置内容,创建请求用于请求创建目标FRU的配置文件,目标FRU的配置文件用于管理发送获取请求的设备上的目标FRU,或发送单元802,用于响应于获取请求,向发送获取请求的设备发送目标FRU的配置文件中的配置内容。例如,图3所示的S304,或图6所示的S611。Exemplarily, FIG. 8 shows a possible structural diagram of the field replaceable unit FRU management device (denoted as field replaceable unit FRU management device 800) involved in the above embodiment. The FRU management device 800 includes a receiving device. Unit 801 and sending unit 802. The receiving unit 801 is configured to receive an acquisition request; the acquisition request is used to request to acquire the configuration content in the configuration file of the target FRU. For example, S302 shown in Figure 3 and S602 shown in Figure 6 . The sending unit 802 is configured to respond to the acquisition request and send a creation request to the device that sends the acquisition request; the creation request includes the configuration content in the configuration file of the target FRU, and the creation request is used to request the creation of the configuration file of the target FRU, and the configuration of the target FRU. The file is used to manage the target FRU on the device that sends the acquisition request, or the sending unit 802 is used to respond to the acquisition request and send the configuration content in the configuration file of the target FRU to the device that sends the acquisition request. For example, S304 shown in Figure 3, or S611 shown in Figure 6.

可选地,获取请求是客户端设备响应于获取指令所发送的;或者获取请求是第一设备未配置目标FRU的配置文件的情况下,第一设备发送的。Optionally, the acquisition request is sent by the client device in response to the acquisition instruction; or the acquisition request is sent by the first device when the first device does not configure the configuration file of the target FRU.

可选地,发送单元具体用于若配置文件中的配置内容满足预设条件,则响应于获取请求。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.

可选地,配置文件中的配置内容满足预设条件,包括:配置内容的属性名与预设属性名相同、且配置内容的字段类型与预设字段类型相同;其中,配置内容的属性名包括目标FRU的制造商标识、PN部件标识、SN序列号、型号、名称中的至少一个。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 target FRU's manufacturer identification, PN component identification, SN serial number, model, and name.

可选地,配置文件中的配置内容满足预设条件,包括:配置内容的属性名与预设属性名相同、且配置内容的属性值与预设属性值相同;其中,配置内容的属性名包括目标FRU的机型标识和/或FRU类型。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 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 ID and/or FRU type of the target FRU.

可选地,获取请求包括目标FRU的名称,获取请求用于请求获取目标FRU的名称所指示的配置文件;或获取请求包括第一设备的机型标识,获取请求用于请求获取机型标识所支持的配置文件,机型标识支持配置文件包括目标FRU的配置文件。Optionally, 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 the model identification of the first device, and the acquisition request is used to request to obtain the model identification. Supported configuration files, model identification supported configuration files include the configuration file of the target FRU.

可选地,在获取请求包括第一设备的机型标识的情况下,获取请求还可以包括目标FRU类型,目标FRU类型为第一设备支持的FRU类型,获取请求用于请求获取属于目标FRU类型的配置文件。Optionally, when the acquisition request includes the model identification of the first device, the acquisition request may also include a target FRU type. The target FRU type is a FRU type supported by the first device, and the acquisition request is used to request to obtain the target FRU type. configuration file.

可选地,配置文件中的配置内容为JSON格式;发送单元802具体用于:响应于获取请求,基于第二接口,向发送获取请求的设备发送创建请求;第二接口支持传输JSON格式的数据。Optionally, the configuration content in the configuration file is in JSON format; the sending unit 802 is specifically configured to: in response to the acquisition request, send a creation request to the device that sent the acquisition request based on the second interface; the second interface supports the transmission of data in JSON format. .

可选地,配置文件中的配置内容为JSON格式;发送单元802具体用于:响应于获取请求,向发送获取请求的设备发送目标FRU的配置文件中的配置内容,包括:响应于获取请求,基于第二接口,向发送获取请求的设备发送目标FRU的配置文件中的配置内容。Optionally, the configuration content in the configuration file is in JSON format; the sending unit 802 is specifically configured 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, the configuration content in the configuration file of the target FRU is sent to the device that sends the acquisition request.

关于上述可选方式的具体描述可以参见前述的方法实施例,此处不再赘述。此外,上述提供的任一种现场可更换单元FRU管理装置800的解释以及有益效果的描述均可参考上述对应的方法实施例,不再赘述。For specific descriptions of the above optional methods, please refer to the foregoing method embodiments, and will not be described again here. In addition, the explanation and description of the beneficial effects of any of the field replaceable unit FRU management devices 800 provided above may refer to the corresponding method embodiments above, and will not be described again.

示例性的,图9示出了上述实施例中所涉及的现场可更换单元FRU管理装置(记为现场可更换单元FRU管理装置900)的一种可能的结构示意图,该FRU管理装置900包括发送单元901。发送单元901,用于响应于创建指令,向第一设备发送创建请求;创建请求用于请求创建目标FRU的配置文件;创建请求包括配置文件中的配置内容。例如,图6所示的S603。Exemplarily, FIG. 9 shows a possible structural diagram of the field replaceable unit FRU management device (denoted as field replaceable unit FRU management device 900) involved in the above embodiment. The FRU management device 900 includes: Unit 901. The sending unit 901 is configured to send a creation request to the first device in response to the creation instruction; 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. For example, S603 shown in Figure 6.

可选地,该FRU管理装置900还包括接收单元902。发送单元901,还用于响应于获取指令,向第二设备发送获取请求;获取请求用于请求获取目标FRU的配置文件中的配置内容;接收单元,用于接收的第二设备发送的目标FRU的配置文件中的配置内容。Optionally, the FRU management device 900 further includes a receiving unit 902. The sending unit 901 is also configured to send an acquisition request to the second device in response to the acquisition instruction; the acquisition request is used to request acquisition of the configuration content in the configuration file of the target FRU; the receiving unit is used to receive the target FRU sent by the second device Configuration content in the configuration file.

可选地,获取请求包括目标FRU的名称,获取请求用于请求获取目标FRU的名称所指示的配置文件中的配置内容;或获取请求包括第一设备的机型标识,获取请求用于请求获取机型标识所支持的配置文件中的配置内容,目标FRU的配置文件为机型标识支持配置文件。Optionally, the acquisition request includes the name of the target FRU, and the acquisition request is used to request the acquisition of the configuration content in the configuration file indicated by the name of the target FRU; or the acquisition request includes the model identification of the first device, and the acquisition request is used to request the acquisition. The configuration content in the configuration file supported by the model identification. The configuration file of the target FRU is the configuration file supported by the model identification.

可选地,在获取请求包括第一设备的机型标识的情况下,获取请求还可以包括目标FRU类型,目标FRU类型为第一设备支持的FRU类型,获取请求用于请求获取属于目标FRU类型的配置文件中的配置内容,目标FRU的配置文件为属于目标FRU类型的配置文件。Optionally, when the acquisition request includes the model identification of the first device, the acquisition request may also include a target FRU type. The target FRU type is a FRU type supported by the first device, and the acquisition request is used to request to obtain the target FRU type. The configuration content in the configuration file, the configuration file of the target FRU is a configuration file belonging to the target FRU type.

可选地,发送单元901具体用于:响应于创建指令,基于第三接口,向第一设备发送创建请求;第三接口支持传输JSON格式的数据。Optionally, the sending unit 901 is specifically configured to: in response to the 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.

关于上述可选方式的具体描述可以参见前述的方法实施例,此处不再赘述。此外,上述提供的任一种现场可更换单元FRU管理装置900的解释以及有益效果的描述均可参考上述对应的方法实施例,不再赘述。For specific descriptions of the above optional methods, please refer to the foregoing method embodiments, and will not be described again here. In addition, the explanation and description of the beneficial effects of any of the field replaceable unit FRU management devices 900 provided above may refer to the above corresponding method embodiments, and will not be described again.

本申请实施例还提供了一种计算机设备,该计算机设备包括处理器和存储器,处理器与存储器连接,存储器存储有计算机执行指令,处理器执行该计算机执行指令时实现上述实施例中的数据处理方法。本申请实施例对计算机设备的具体形式不作任何限制。例如,计算机设备具体可以是终端装置,也可以是网络设备。其中,终端装置可以被称为:终端、用户设备(user equipment,UE)、终端设备、接入终端、用户单元、用户站、移动站、远方站、远程终端、移动设备、用户终端、无线通信设备、用户代理或用户装置等。终端装置具体可以是手机、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等。网络设备具体可以是服务器等。其中,服务器可以是一个物理或逻辑服务器,也可以是有两个或两个以上分担不同职责的物理或逻辑服务器、相互协同来实现服务器的各项功能。An embodiment of the present application also provides a computer device. The computer device includes a processor and a memory. The processor is connected to the memory. The memory stores computer execution instructions. When the processor executes the computer execution instructions, the data processing in the above embodiments is implemented. method. The embodiments of this application do not place any restrictions on the specific form of the computer equipment. For example, the computer device may be a terminal device or a network device. Wherein, the terminal device may be called: terminal, user equipment (UE), terminal equipment, 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 may be a mobile phone, an augmented reality (AR) device, a virtual reality (VR) device, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, or a personal computer. Digital assistant (personal digital assistant, PDA), etc. The network device may specifically be a server, etc. Among them, the server can be a physical or logical server, or there can be two or more physical or logical servers that share different responsibilities and cooperate with each other to realize various functions of the server.

本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,当该计算机程序在计算机上运行时,使得该计算机执行上文提供的任一种计算机设备所执行的方法。Embodiments of the present application also provide a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is run on a computer, it causes the computer to execute any of the computer devices provided above. The method performed.

关于上述提供的任一种计算机可读存储介质中相关内容的解释及有益效果的描述,均可以参考上述对应的实施例,此处不再赘述。For explanations of relevant contents and descriptions of beneficial effects in any of the computer-readable storage media provided above, reference may be made to the corresponding embodiments described above and will not be described again here.

本申请实施例还提供了一种芯片。该芯片中集成了用于实现上述计算机设备的功能的控制电路和一个或者多个端口。可选的,该芯片支持的功能可以参考上文,此处不再赘述。本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可通过程序来指令相关的硬件完成。所述的程序可以存储于一种计算机可读存储介质中。上述提到的存储介质可以是只读存储器,随机接入存储器等。上述处理单元或处理器可以是中央处理器,通用处理器、特定集成电路(application specific integrated circuit,ASIC)、微处理器(digital signal processor,DSP),现场可编程门阵列(field programmable gatearray,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。An embodiment of the present application also provides a chip. The chip integrates a control circuit and one or more ports for realizing the functions of the above computer device. Optionally, the functions supported by this chip can be referred to above and will not be described again here. Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by instructing relevant hardware through programs. The program may be stored in a computer-readable storage medium. The storage medium mentioned above may be a read-only memory, a random access memory, etc. The above-mentioned processing unit or processor may be a central processing unit, a general-purpose processor, an application specific integrated circuit (ASIC), a microprocessor (digital signal processor, DSP), or a field programmable gate array (FPGA). ) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.

本申请实施例还提供了一种包含指令的计算机程序产品,当该指令在计算机上运行时,使得计算机执行上述实施例中的任意一种方法。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如SSD)等。Embodiments of the present application also provide a computer program product containing instructions. When the instructions are run on a computer, they cause the computer to perform any of the methods in the above embodiments. The computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, processes or functions according to embodiments of the present application are 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. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., computer instructions may be transmitted from a website, computer, server or data center via a wired (e.g. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website, computer, server or data center. Computer-readable storage media can be any available media that can be accessed by a computer or include one or more data storage devices such as servers and data centers that can be integrated with the media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, SSD), etc.

应注意,本申请实施例提供的上述用于存储计算机指令或者计算机程序的器件,例如但不限于,上述存储器、计算机可读存储介质和通信芯片等,均具有非易失性(non-transitory)。It should be noted that the above-mentioned devices for storing computer instructions or computer programs provided by the embodiments of the present application, such as but not limited to the above-mentioned memories, computer-readable storage media, communication chips, etc., are all non-transitory. .

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件程序实现时,可以全部或部分地以计算机程序产品的形式来实现。该计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或者数据中心通过有线(例如同轴电缆、光纤、数字用户线(digitalsubscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可以用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质(例如,软盘、硬盘、磁带),光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using a software program, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, processes or functions according to embodiments of the present application are 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. Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g., computer instructions may be transmitted from a website, computer, server or data center via a wired (e.g. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means to transmit to another website, computer, server or data center. Computer-readable storage media can be any available media that can be accessed by a computer or include one or more data storage devices such as servers and data centers that can be integrated with the media. Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (SSD)), etc.

尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看附图、公开内容、以及所附权利要求书,可理解并实现公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the present application has been described herein in connection with various embodiments, in practicing the claimed application, those skilled in the art can understand and implement the disclosure by reviewing the drawings, the disclosure, and the appended claims. Other variations of the embodiment. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may perform several of the functions recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not mean that a combination of these measures cannot be combined to advantageous effects.

尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Although the present application has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations may be made without departing from the spirit and scope of the application. Accordingly, the specification and drawings are intended to be merely illustrative of the application as defined by the appended claims and are to be construed to cover any and all modifications, variations, combinations or equivalents within the scope of the application. Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (16)

1.一种现场可更换单元FRU管理方法,其特征在于,用于第一设备,所述第一设备包括目标FRU;所述方法包括:1. A field replaceable unit FRU management method, characterized in that it is used for a first device, the first device includes a target FRU; the method includes: 接收创建请求,所述创建请求包括所述目标FRU的配置文件中的配置内容;Receive a creation request, where the creation request includes the configuration content in the configuration file of the target FRU; 响应于所述创建请求,基于所述目标FRU的配置文件中的配置内容,创建所述目标FRU的配置文件;In response to the creation request, create a configuration file of the target FRU based on the configuration content in the configuration file of the target FRU; 基于所述目标FRU的配置文件,管理所述目标FRU。The target FRU is managed based on the configuration file of the target FRU. 2.根据权利要求1所述的方法,其特征在于,2. The method according to claim 1, characterized in that, 所述创建请求是客户端设备响应于创建指令发送的,所述创建指令用于指示向所述第一设备发送所述目标FRU的配置文件的创建请求,所述客户端设备存储有所述目标FRU的配置文件中的配置内容;或The creation request is sent by the client device in response to a creation instruction. The creation instruction is used to instruct the first device to send a creation request for the configuration file of the target FRU. The client device stores the target. Configuration content in the FRU configuration file; or 所述方法还包括:在所述第一设备未配置所述目标FRU的配置文件的情况下,向第二设备发送获取请求;所述第二设备存储有目标FRU的配置文件,所述获取请求用于请求获取所述配置文件中的配置内容;其中,所述创建请求是所述第二设备响应于所述获取请求发送的。The method also includes: when the first device does not configure 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 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.根据权利要求2所述的方法,其特征在于,所述在所述第一设备未配置目标FRU的配置文件的情况下,向所述第二设备发送获取请求,包括:3. The method according to claim 2, characterized in that, when the first device does not configure the configuration file of the target FRU, sending an acquisition request to the second device includes: 响应于接收到的目标指令,向所第二设备发送所述获取请求;所述目标指令用于指示从所述第二设备获取所述目标FRU的配置文件中的配置内容,所述目标指令是在所述第一设备未配置目标FRU的配置文件的情况下发送的;或In response to the received target instruction, send 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 does not configure the configuration file of the target FRU; or 响应于目标扫描结果,向所述第二设备发送获取请求;所述目标扫描结果包括未在所述第一设备上扫描到所述目标FRU的配置文件。In response to a target scan result, an acquisition request is sent to the second device; the target scan result includes that the configuration file of the target FRU is not scanned on the first device. 4.根据权利要求1-3中任一项所述的方法,其特征在于,所述响应于所述创建请求,基于所述目标FRU的配置文件中的配置内容,创建所述目标FRU的配置文件,包括:4. The method according to any one of claims 1-3, characterized in that, in response to the creation request, the configuration of the target FRU is created based on the configuration content in the configuration file of the target FRU. Documents, including: 若所述配置文件中的配置内容满足预设条件,响应于所述创建请求,基于所述配置文件中的配置内容,创建所述目标FRU的配置文件。If the configuration content in the configuration file meets the preset conditions, in response to the creation request, create a configuration file for the target FRU based on the configuration content in the configuration file. 5.根据权利要求4所述的方法,其特征在于,5. The method according to claim 4, characterized in that, 所述配置文件中的配置内容满足预设条件,包括:所述配置内容的属性名与预设属性名相同、且所述配置内容的字段类型与预设字段类型相同;其中,所述配置内容的属性名包括所述目标FRU的制造商标识、PN部件标识、SN序列号、型号、名称中的至少一个;和/或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 configuration content The attribute name includes at least one of the target FRU's manufacturer identification, PN component identification, SN serial number, model, and name; and/or 所述配置文件中的配置内容满足预设条件,包括:所述配置内容的属性名与预设属性名相同、且所述配置内容的属性值与预设属性值相同;其中,所述配置内容的属性名包括所述目标FRU的机型标识和/或FRU类型。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 configuration content The attribute name includes the model identification and/or FRU type of the target FRU. 6.根据权利要求2、3或5中任一项所述的方法,其特征在于,6. The method according to any one of claims 2, 3 or 5, characterized in that, 所述获取请求包括所述目标FRU的名称,所述获取请求用于请求获取所述目标FRU的名称所指示的配置文件中的配置内容;或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 所述获取请求包括所述第一设备的机型标识,所述获取请求用于请求获取所述机型标识对应机型所支持的配置文件中的配置内容,所述目标FRU的配置文件为所述机型标识支持配置文件。The acquisition request includes the model identification of the first device. The acquisition request is used to request to obtain the configuration content in the configuration file supported by the model corresponding to the model identification. The configuration file of the target FRU is the The above model identification supports configuration files. 7.根据权利要求5所述的方法,其特征在于,7. The method according to claim 5, characterized in that, 在所述获取请求包括所述第一设备的机型标识的情况下,所述获取请求还可以包括目标FRU类型,所述目标FRU类型为所述第一设备支持的FRU类型,所述获取请求用于请求获取属于所述目标FRU类型的配置文件中的配置内容,所述目标FRU的配置文件为属于所述目标FRU类型的配置文件。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, and the target FRU type is an FRU type supported by the first device. The acquisition request Used to request to obtain 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.根据权利要求1-7中任一项所述的方法,其特征在于,所述配置文件中的配置内容为JSON格式;所述接收创建请求,包括:8. The method according to any one of claims 1-7, characterized in that the configuration content in the configuration file is in JSON format; the receiving a creation request includes: 基于第一接口,接收所述创建请求;所述第一接口支持传输JSON格式的数据。Based on the first interface, the creation request is received; the first interface supports transmitting data in JSON format. 9.一种现场可更换单元FRU管理方法,其特征在于,用于第二设备,所述第二设备中存储有目标FRU的配置文件;所述方法包括:9. A field replaceable unit FRU management method, characterized in that it is used in a second device, and the configuration file of the target FRU is stored in the second device; the method includes: 接收获取请求;所述获取请求用于请求获取所述目标FRU的配置文件中的配置内容;Receive an acquisition request; the acquisition request is used to request to obtain the configuration content in the configuration file of the target FRU; 响应于所述获取请求,向发送所述获取请求的设备发送创建请求;所述创建请求包括所述目标FRU的配置文件中的配置内容,所述创建请求用于请求创建所述目标FRU的配置文件,所述目标FRU的配置文件用于管理发送所述获取请求的设备上的所述目标FRU;或In response to the acquisition request, send 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, and the creation request is used to request the creation of the configuration of the target FRU. file, the configuration file of the target FRU is used to manage the target FRU on the device that sends the acquisition request; or 响应于所述获取请求,向发送所述获取请求的设备发送所述目标FRU的配置文件中的配置内容。In response to the acquisition request, the configuration content in the configuration file of the target FRU is sent to the device that sent the acquisition request. 10.根据权利要求9所述的方法,其特征在于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 所述获取请求是第一设备未配置目标FRU的配置文件的情况下,所述第一设备发送的。The acquisition request is sent by the first device when the first device does not configure the configuration file of the target FRU. 11.根据权利要求9或10所述的方法,其特征在于,所述响应于所述获取请求,包括: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.根据权利要求11所述的方法,其特征在于,12. The method according to claim 11, characterized in that, 所述配置文件中的配置内容满足预设条件,包括:所述配置内容的属性名与预设属性名相同、且所述配置内容的字段类型与预设字段类型相同;其中,所述配置内容的属性名包括所述目标FRU的制造商标识、PN部件标识、SN序列号、型号、名称中的至少一个;和/或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 configuration content The attribute name includes at least one of the target FRU's manufacturer identification, PN component identification, SN serial number, model, and name; and/or 所述配置文件中的配置内容满足预设条件,包括:所述配置内容的属性名与预设属性名相同、且所述配置内容的属性值与预设属性值相同;其中,所述配置内容的属性名包括所述目标FRU的机型标识和/或FRU类型。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 configuration content The attribute name includes the model identification and/or FRU type of the target FRU. 13.根据权利要求9-12中任一项所述的方法,其特征在于,13. The method according to any one of claims 9-12, characterized in that, 所述获取请求包括所述目标FRU的名称,所述获取请求用于请求获取所述目标FRU的名称所指示的配置文件;或The acquisition request includes the name of the target FRU, and the acquisition request is used to request acquisition of the configuration file indicated by the name of the target FRU; or 所述获取请求包括所述第一设备的机型标识,所述获取请求用于请求获取所述机型标识所支持的配置文件,所述机型标识支持配置文件包括所述目标FRU的配置文件。The acquisition request includes the model identification of the first device. The acquisition request is used to request to obtain the configuration file supported by the model identification. The configuration file supported by the model identification includes the configuration file of the target FRU. . 14.根据权利要求9-13中任一项所述的方法,其特征在于,所述配置文件中的配置内容为JSON格式;14. The method according to any one of claims 9-13, characterized in that the configuration content in the configuration file is in JSON format; 响应于所述获取请求,向发送所述获取请求的设备发送创建请求,包括:响应于所述获取请求,基于第二接口,向发送所述获取请求的设备发送创建请求;所述第二接口支持传输JSON格式的数据;或In response to the acquisition request, sending a creation request to the device that sent the acquisition request includes: 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 transmitting data in JSON format; or 响应于所述获取请求,向发送所述获取请求的设备发送所述目标FRU的配置文件中的配置内容,包括:响应于所述获取请求,基于第二接口,向发送所述获取请求的设备发送所述目标FRU的配置文件中的配置内容。In response to the acquisition request, sending the configuration content in the configuration file of the target FRU to the device that sent the acquisition request includes: responding 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 sent the acquisition request. Send the configuration content in the configuration file of the target FRU. 15.一种现场可更换单元FRU管理方法,其特征在于,用于客户端设备,所述客户端设备存储有目标FRU的配置文件中的配置内容;所述方法包括:15. A field replaceable unit FRU management method, characterized in that it is used for client equipment, and the client equipment stores the configuration content in the configuration file of the target FRU; the method includes: 响应于创建指令,向所述第一设备发送创建请求;所述创建请求用于请求创建所述目标FRU的配置文件;所述创建请求包括所述配置文件中的配置内容。In response to the creation instruction, a creation request is sent to the first device; the creation request is used to request creation of a configuration file of the target FRU; the creation request includes configuration content in the configuration file. 16.一种计算设备,其特征在于,包括:处理器;16. A computing device, characterized by comprising: a processor; 所述处理器与存储器连接,所述存储器用于存储计算机执行指令,所述处理器执行所述存储器存储的所述计算机执行指令,以使所述计算设备实现如权利要求1-8中任一项所述的方法。The processor is connected to a memory, the memory is used to store computer execution instructions, and the processor executes the computer execution instructions stored in the memory, so that the computing device implements any one of claims 1-8 method described in the item.
CN202310443720.4A 2023-04-23 2023-04-23 FRU (field replaceable unit) management method, device and system Active CN116820596B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310443720.4A CN116820596B (en) 2023-04-23 2023-04-23 FRU (field replaceable unit) management method, device and system
PCT/CN2023/135112 WO2024221915A1 (en) 2023-04-23 2023-11-29 Field replaceable unit (fru) management method, device, and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310443720.4A CN116820596B (en) 2023-04-23 2023-04-23 FRU (field replaceable unit) management method, device and system

Publications (2)

Publication Number Publication Date
CN116820596A true CN116820596A (en) 2023-09-29
CN116820596B CN116820596B (en) 2025-02-21

Family

ID=88113457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310443720.4A Active CN116820596B (en) 2023-04-23 2023-04-23 FRU (field replaceable unit) management method, device and system

Country Status (2)

Country Link
CN (1) CN116820596B (en)
WO (1) WO2024221915A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117271225A (en) * 2023-11-20 2023-12-22 安擎计算机信息股份有限公司 FRU information backup method, FRU information backup device and FRU information backup server
WO2024221915A1 (en) * 2023-04-23 2024-10-31 超聚变数字技术有限公司 Field replaceable unit (fru) management method, device, and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150046761A1 (en) * 2013-08-09 2015-02-12 American Megatrends, Inc. System and method for generating field replaceable unit information files
US10042634B1 (en) * 2015-12-28 2018-08-07 EMC IP Holding Company LLC Storage management system and method
CN109358876A (en) * 2018-09-28 2019-02-19 联想(北京)有限公司 A kind of version synchronization method and device, equipment, storage medium
CN110113183A (en) * 2019-04-10 2019-08-09 深圳市飞比电子科技有限公司 Firmware update, device, Internet of things system, electronic equipment and storage medium
CN110427371A (en) * 2019-07-19 2019-11-08 苏州浪潮智能科技有限公司 Server FRU field management method, device, equipment and readable storage medium storing program for executing
CN112306747A (en) * 2020-09-29 2021-02-02 新华三技术有限公司合肥分公司 RAID card fault processing method and device
CN115185553A (en) * 2021-04-01 2022-10-14 深圳市三诺数字科技有限公司 Method for updating device firmware of user and related device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116820596B (en) * 2023-04-23 2025-02-21 超聚变数字技术有限公司 FRU (field replaceable unit) management method, device and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150046761A1 (en) * 2013-08-09 2015-02-12 American Megatrends, Inc. System and method for generating field replaceable unit information files
US10042634B1 (en) * 2015-12-28 2018-08-07 EMC IP Holding Company LLC Storage management system and method
CN109358876A (en) * 2018-09-28 2019-02-19 联想(北京)有限公司 A kind of version synchronization method and device, equipment, storage medium
CN110113183A (en) * 2019-04-10 2019-08-09 深圳市飞比电子科技有限公司 Firmware update, device, Internet of things system, electronic equipment and storage medium
CN110427371A (en) * 2019-07-19 2019-11-08 苏州浪潮智能科技有限公司 Server FRU field management method, device, equipment and readable storage medium storing program for executing
CN112306747A (en) * 2020-09-29 2021-02-02 新华三技术有限公司合肥分公司 RAID card fault processing method and device
CN115185553A (en) * 2021-04-01 2022-10-14 深圳市三诺数字科技有限公司 Method for updating device firmware of user and related device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WEI YUAN ETAL.: "FEDERATED UNLEARNING FOR ON-DEVICE RECOMMENDATION", ARXIV, 3 December 2022 (2022-12-03), pages 1 - 9 *
顾苗;刘晓雷;李娜;詹海洋;刘畅;: "LabView平台下电源测控系统的实现", 装备环境工程, no. 03, 15 June 2012 (2012-06-15), pages 29 - 32 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024221915A1 (en) * 2023-04-23 2024-10-31 超聚变数字技术有限公司 Field replaceable unit (fru) management method, device, and system
CN117271225A (en) * 2023-11-20 2023-12-22 安擎计算机信息股份有限公司 FRU information backup method, FRU information backup device and FRU information backup server
CN117271225B (en) * 2023-11-20 2024-02-06 安擎计算机信息股份有限公司 FRU information backup method, FRU information backup device and FRU information backup server

Also Published As

Publication number Publication date
CN116820596B (en) 2025-02-21
WO2024221915A1 (en) 2024-10-31

Similar Documents

Publication Publication Date Title
US11983406B2 (en) Method for using BMC as proxy NVMeoF discovery controller to provide NVM subsystems to host
US20210342281A1 (en) Self-configuring baseboard management controller (bmc)
CN116820596A (en) FRU (field replaceable unit) management method, device and system
CN112867988A (en) Implementing compliance settings by a mobile device to follow a configuration scenario
US9680930B2 (en) Data communication system for a storage management system and communication method thereof
US10824724B2 (en) Detecting runtime tampering of UEFI images in an information handling system
US10831897B2 (en) Selective enforcement of secure boot database entries in an information handling system
CN112527669B (en) Self-test method and system for local services
CN107423180A (en) A kind of solid state hard disc and its diagnostic method
CN110851471A (en) Distributed log data processing method, device and system
US11283689B2 (en) Method for managing multiple servers and device employing method
WO2013075501A1 (en) Method and device for hot-plugging a node
US11385905B2 (en) Managing boot device orders for computing devices
US11113070B1 (en) Automated identification and disablement of system devices in a computing system
WO2022134161A1 (en) Consortium blockchain node management system, method and apparatus, electronic device, and storage medium
CN115756616B (en) Configuration method of basic input output system BIOS configuration item and server
US12131207B2 (en) Information processing apparatus, information processing method, program, and information processing system
US12019489B1 (en) System and method for provisioning free standing modules
US20220358003A1 (en) Data Management Method, Apparatus, and Device, Computer-Readable Storage Medium, and System
CN118689810A (en) Method, device and equipment for transmitting location information of high-speed serial bus equipment
CN117857349A (en) Equipment management method and server
WO2025026291A1 (en) Interface management method and apparatus, and related device
CN117453562A (en) A health check method and related equipment for multi-application computing framework
CN114201234A (en) A file processing method, device, system, device and storage medium
CN117615449A (en) An event subscription method and computing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant