Method, device and terminal for automatically configuring server MCTP master management terminal
By setting up the MCTP configuration module in the BIOS and using SPS firmware to capture BMC location information, the MCTP function of the server is automatically configured, which solves the problem of low configuration and testing efficiency caused by the diverse server types in the existing technology, and reduces labor costs and development time .
Patent Information
- Application Number
- CN202211734875.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-31
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2042-12-31
AI Technical Summary
The existing server types are diverse, resulting in the configuration and testing of MCTP functions that need to be adapted and modified one by one, resulting in high labor costs and low efficiency. Each server model needs to release a separate BIOS version, which increases development and testing time.
By setting up the MCTP configuration module in the BIOS, using SPS firmware to capture the BMC location information during the boot POST, and using the HECI command to set it as the MCTP main management end, to realize the automated configuration of the MCTP function, avoiding separate configuration and BIOS Release of the version.
It realizes the automated configuration of the server MCTP function, reduces labor costs, improves the efficiency of MCTP function enablement, and simplifies the server configuration process.
Smart Images

Figure CN116016155B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of server configuration, and in particular relates to a method, a device and a terminal for automatically configuring a server MCTP master management terminal. Background Art
[0002] MCTP is the abbreviation of management component transport protocol, a device management protocol used for mutual communication between management controllers and management devices in computers, and can realize information transmission between different buses.
[0003] SPS, short for server platform services, is a basic service embedded in Intel chips. It interacts with BIOS and is used to configure chip status and functions. It is a firmware component running on Intel chips.
[0004] With the rapid development of servers, the performance requirements of existing servers are getting higher and higher, and the requirements for various indicators besides performance are also getting higher and higher. The MCTP function exists in the server, but the use of this function needs to be configured in advance in the BIOS. There are various types of existing servers, including desktop servers, rack servers, blade servers, and cabinet servers. From the functional point of view, they are further subdivided into general servers, high-density servers, AI servers, cloud servers, etc. The complex and diverse types lead to the diversity of hardware configurations. At present, each model with different configurations must be separately configured and the MCTP function must be enabled, and a separate BIOS version needs to be released.
[0005] For complex and diverse models, each time a new server model is introduced, the BIOS needs to be modified and adapted to enable the MTCP function, and the function needs to be self-tested. The existing method takes more than two days to develop the MCTP function and self-test the version function for a server model, and more than three days to prepare the BIOS version and test the version. Each project needs to perform these adaptations, which seriously increases the manpower cost of the project.
[0006] This is a shortcoming of the prior art. Therefore, in view of the above-mentioned defects in the prior art, it is very necessary to provide a method, device and terminal for automatically configuring the server MCTP master management terminal. Summary of the invention
[0007] In view of the above-mentioned defect of the prior art that the existing server models are diverse and the BIOS needs to be adapted and modified one by one to configure the MCTP function for the server, the present invention provides a method, device and terminal for automatically configuring the server MCTP master management terminal to solve the above-mentioned technical problems.
[0008] In a first aspect, the present invention provides a method for automatically configuring a server MCTP master management terminal, comprising the following steps:
[0009] S1. Set up the MCTP configuration module for the server;
[0010] S2. The SPS firmware receives the BMC location information captured by the MCTP configuration module during the server boot POST process;
[0011] S3. The SPS firmware sets the BMC as the MCTP primary management end based on the BMC location information and enables the MCTP service.
[0012] Furthermore, the specific steps of step S1 are as follows:
[0013] S11. Pre-set the MCTP configuration module in the server BIOS;
[0014] S12. Set the MCTP configuration module to start when the BIOS is turned on. The MCTP configuration module is the key to implementing MCTP configuration under BIOS.
[0015] Furthermore, the specific steps of step S2 are as follows:
[0016] S21. The server is powered on, and the BIOS enumerates all PCIE root ports during POST.
[0017] S22. The MCTP configuration module grabs the root port of the VGA device corresponding to the BMC from all PCIE root ports enumerated during the BIOS POST process;
[0018] S23. The MCTP configuration module uses the HECI command to send the root port location information of the BMC corresponding VGA device to the SPS firmware. The BMC corresponding VGA is captured from the PCIE devices enumerated during the BIOS POST process, thus providing a basis for the setting of the MCTP master management end.
[0019] Furthermore, the specific steps of step S22 are as follows:
[0020] S221. The attribute information of the BMC corresponding to the VGA device is stored in the BIOS in advance, recorded as the target attribute information;
[0021] S222. The MCTP configuration module records the BDF information of all PCIE root ports enumerated by the BIOS during the POST process;
[0022] S223. The MCTP configuration module calculates the configuration space base address of the corresponding PCIE root port according to each BDF information, and then searches for the corresponding device attribute information storage address according to each configuration space base address, and reads the attribute information of each device;
[0023] S224. The MCTP configuration module compares and matches each device attribute information with the pre-stored target attribute information in turn. When the match is successful, the device corresponding to the device attribute information matching the target attribute information is the VGA device corresponding to the BMC. The pre-stored attribute information of the VGA device is a unique value of the VGA device, which is different from other PCIE devices.
[0024] Furthermore, the BDF information includes bus value information, device data information, and function value information.
[0025] Furthermore, the specific steps of step S223 are as follows:
[0026] S2231. The MCTP configuration module calculates the configuration space base address of the corresponding PCIE root port according to each BDF information;
[0027] S2232. The MCTP configuration module offsets the configuration space base address of each PCIE root port by 0x1A to obtain the bus number of the device under each PCIE root port;
[0028] S2233. The MCTP configuration module calculates the configuration space base address of the device under the PCIE root port according to the bus number of each device;
[0029] S2234. The MCTP configuration module reads the values in the two addresses with offsets of 0 and 2 in the configuration space of each device to obtain the attribute information of each device. The attribute values of each PCIE device enumerated in the POST process are checked in turn. The device that is consistent with the pre-stored attribute value must be the VGA device under the BMC, and the attribute value of each device is stored in the two addresses with offsets of 0 and 2 in the configuration space of each device.
[0030] Furthermore, the specific steps of step S224 are as follows:
[0031] S2241. The MCTP configuration module locates a device attribute information;
[0032] S2242. The MCTP configuration module compares and matches the positioning device attribute information with the pre-stored target attribute information;
[0033] If the match fails, go to step S2243;
[0034] If the match is successful, proceed to step S2244;
[0035] S2243. Determine whether all device attribute information has been located;
[0036] If yes, it is determined that the VGA device under the BMC has failed to be located and the process ends;
[0037] If not, locate the next device attribute information and return to step S2242;
[0038] S2244. Determine that the positioning device is the VGA device under the BMC;
[0039] S2245. Record the BDF information of the PCIE root port corresponding to the position information of the VAG device under the BMC. Compare the attribute information in sequence to find the BDF information of the VGA device under the BMC, locate the VGA device, and find the BMC.
[0040] Further, in step S23, the MCTP configuration module uses the HECI command to send the BDF information, which is the root port location information of the VGA device under the BMC, to the SPS firmware.
[0041] Furthermore, the specific steps of step S3 are as follows:
[0042] S31. The SPS firmware receives the BDF information indicating the location information sent by the MCTP configuration module;
[0043] S32.SPS firmware sets the PCIE device corresponding to the received BDF information as the MCTP master management end, implements the configuration of BMC as the MCTP master management end, and enables the MCTP service.
[0044] In a second aspect, the present invention provides a device for automatically configuring a server MCTP master management terminal, comprising:
[0045] An MCTP configuration module setting unit, used to set an MCTP configuration module for a server;
[0046] BMC location information capture unit, used for SPS firmware to receive MCTP configuration module to capture BMC location information from server power-on POST process;
[0047] The MCTP master management terminal setting unit is used by the SPS firmware to set the BMC as the MCTP master management terminal according to the BMC location information, and the MCTP service is enabled.
[0048] Further, the MCTP configuration module setting unit includes:
[0049] An MCTP configuration module preset subunit, for presetting the MCTP configuration module under the server BIOS;
[0050] MCTP configuration starts the startup setting subunit, which is used to set the MCTP configuration module to start when the BIOS is turned on;
[0051] The BMC position information capture unit includes:
[0052] The server power-on subunit is used to power on the server. The BIOS enumerates all PCIE root ports during the POST process.
[0053] The BMC corresponding device root port capture subunit, the MCTP configuration module captures the root port of the BMC corresponding VGA device from all PCIE root ports enumerated during the BIOS POST process;
[0054] The root port location sending subunit is used by the MCTP configuration module to send the root port location information of the VGA device corresponding to the BMC to the SPS firmware using the HECI command;
[0055] The MCTP master management terminal setting unit includes:
[0056] A location information receiving subunit, used for the SPS firmware to receive BDF information indicating location information sent by the MCTP configuration module;
[0057] The MCTP enabling subunit is used by the SPS firmware to set the PCIE device corresponding to the received BDF information as the MCTP primary management end, implement the configuration of the BMC as the MCTP primary management end, and enable the MCTP service.
[0058] In a third aspect, the present invention provides a terminal, including a processor and a memory;
[0059] The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the terminal executes the method described in the first aspect above.
[0060] The beneficial effects of the present invention are:
[0061] The method, device and terminal for automatically configuring the server MCTP master management terminal provided by the present invention realize the automatic configuration of the server MCTP function in the BIOS, thereby avoiding the separate configuration of the MCTP function for models with different server configurations and the separate release of BIOS versions, greatly improving the efficiency of enabling the server MCTP function and reducing labor costs.
[0062] In addition, the invention has a reliable design principle, a simple structure and a very broad application prospect.
[0063] It can be seen that compared with the prior art, the present invention has outstanding substantive features and significant progress, and the beneficial effects of its implementation are also obvious. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0065] Figure 1 It is a flow chart of method embodiment 1 of the automatic configuration server MCTP master management terminal of the present invention.
[0066] Figure 2 It is a flow chart of method embodiment 2 of the automatic configuration server MCTP master management terminal of the present invention.
[0067] Figure 3 It is a schematic diagram of the device of the automatic configuration server MCTP main management terminal of the present invention.
[0068] In the figure, 1-MCTP configuration module setting unit; 1.1-MCTP configuration module preset subunit; 1.2-MCTP configuration start-up setting subunit; 2-BMC location information capture unit; 2.1-server startup subunit; 2.2-BMC corresponding device root port capture subunit; 2.3-root port location sending subunit; 3-MCTP main management terminal setting unit; 3.1-location information receiving subunit; 3.2-MCTP enabling subunit. DETAILED DESCRIPTION
[0069] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0070] POST, POWER ON SELF TEST, is a function set by BIOS. After the computer is powered on, the system first checks various internal devices through the POST program. Once a problem is found, the system will give a warning or sound a whistle.
[0071] BDF, each function in the PCIE bus has a unique identifier corresponding to it, and this identifier is BDF, where B stands for BUS, which is the bus number, D stands for Device, which is the device number, and F stands for Function, which is the function number.
[0072] HECI, which stands for Management Engine Interface, is referred to as HECI driver. HECI driver is the management engine interface driver of Intel chipset. Through this interface, advanced management applications such as Intel active management can be implemented.
[0073] Embodiment 1:
[0074] like Figure 1 As shown, the present invention provides a method for automatically configuring a server MCTP master management terminal, comprising the following steps:
[0075] S1. Set up the MCTP configuration module for the server;
[0076] S2. The SPS firmware receives the BMC location information captured by the MCTP configuration module during the server boot POST process;
[0077] S3. The SPS firmware sets the BMC as the MCTP primary management end based on the BMC location information and enables the MCTP service.
[0078] The method for automatically configuring the server MCTP master management terminal provided by the present invention realizes the automatic configuration of the server MCTP function in the BIOS, thereby avoiding the separate configuration of the MCTP function for models with different server configurations and the separate release of BIOS versions, greatly improving the efficiency of enabling the server MCTP function and reducing labor costs.
[0079] Embodiment 2:
[0080] like Figure 2 As shown, the present invention provides a method for automatically configuring a server MCTP master management terminal, comprising the following steps:
[0081] S1. Set up the MCTP configuration module for the server; the specific steps of step S1 are as follows:
[0082] S11. Pre-set the MCTP configuration module in the server BIOS;
[0083] S12. Set the MCTP configuration module to start when the BIOS is turned on;
[0084] S2. The SPS firmware receives the BMC location information captured by the MCTP configuration module during the server startup POST process; the specific steps of step S2 are as follows:
[0085] S21. The server is powered on, and the BIOS enumerates all PCIE root ports during POST.
[0086] S22. The MCTP configuration module grabs the root port of the VGA device corresponding to the BMC from all PCIE root ports enumerated during the BIOS POST process;
[0087] S23. The MCTP configuration module uses the HECI command to send the root port location information of the VGA device corresponding to the BMC to the SPS firmware;
[0088] S3. The SPS firmware sets the BMC as the MCTP master management end according to the BMC location information, and enables the MCTP service. The specific steps of step S3 are as follows:
[0089] S31. The SPS firmware receives the BDF information indicating the location information sent by the MCTP configuration module;
[0090] S32.SPS firmware sets the PCIE device corresponding to the received BDF information as the MCTP master management end, implements the configuration of BMC as the MCTP master management end, and enables the MCTP service.
[0091] Embodiment 3:
[0092] like Figure 2 As shown, the present invention provides a method for automatically configuring a server MCTP master management terminal, comprising the following steps:
[0093] S1. Set up the MCTP configuration module for the server; the specific steps of step S1 are as follows:
[0094] S11. Pre-set the MCTP configuration module in the server BIOS;
[0095] S12. Set the MCTP configuration module to start when the BIOS is turned on;
[0096] S2. The SPS firmware receives the BMC location information captured by the MCTP configuration module during the server startup POST process; the specific steps of step S2 are as follows:
[0097] S21. The server is turned on, and the BIOS enumerates all PCIE root ports during the POST process;
[0098] S22. The MCTP configuration module captures the root port of the BMC corresponding to the VGA device from all PCIE root ports enumerated during the BIOS POST process; the specific steps of step S22 are as follows:
[0099] S221. The attribute information of the BMC corresponding to the VGA device is stored in the BIOS in advance, recorded as the target attribute information;
[0100] S222. The MCTP configuration module records the BDF information of all PCIE root ports enumerated by the BIOS during the POST process;
[0101] S223. The MCTP configuration module calculates the configuration space base address of the corresponding PCIE root port according to each BDF information, and then searches for the corresponding device attribute information storage address according to each configuration space base address, and reads the attribute information of each device;
[0102] S224. The MCTP configuration module compares and matches the attribute information of each device with the pre-stored target attribute information in turn. When the match is successful, the device corresponding to the device attribute information matching the target attribute information is the VGA device corresponding to the BMC;
[0103] S23. The MCTP configuration module uses the HECI command to send the root port location information of the VGA device corresponding to the BMC to the SPS firmware; In step S23, the MCTP configuration module uses the HECI command to send the BDF information as the root port location information of the VGA device under the BMC to the SPS firmware;
[0104] S3. The SPS firmware sets the BMC as the MCTP master management end according to the BMC location information, and enables the MCTP service. The specific steps of step S3 are as follows:
[0105] S31. The SPS firmware receives the BDF information indicating the location information sent by the MCTP configuration module;
[0106] S32.SPS firmware sets the PCIE device corresponding to the received BDF information as the MCTP master management end, implements the configuration of BMC as the MCTP master management end, and enables the MCTP service.
[0107] Embodiment 4:
[0108] like Figure 2 As shown, the present invention provides a method for automatically configuring a server MCTP master management terminal, comprising the following steps:
[0109] S1. Set up the MCTP configuration module for the server; the specific steps of step S1 are as follows:
[0110] S11. Pre-set the MCTP configuration module in the server BIOS;
[0111] S12. Set the MCTP configuration module to start when the BIOS is turned on;
[0112] S2. The SPS firmware receives the BMC location information captured by the MCTP configuration module during the server startup POST process; the specific steps of step S2 are as follows:
[0113] S21. The server is turned on, and the BIOS enumerates all PCIE root ports during the POST process;
[0114] S22. The MCTP configuration module captures the root port of the BMC corresponding to the VGA device from all PCIE root ports enumerated during the BIOS POST process; the specific steps of step S22 are as follows:
[0115] S221. The attribute information of the BMC corresponding to the VGA device is stored in the BIOS in advance, recorded as the target attribute information;
[0116] S222. The MCTP configuration module records the BDF information of all PCIE root ports enumerated by the BIOS during the POST process;
[0117] S223. The MCTP configuration module calculates the configuration space base address of the corresponding PCIE root port according to each BDF information, and then searches for the corresponding device attribute information storage address according to each configuration space base address, and reads each device attribute information; the specific steps of step S223 are as follows:
[0118] S2231. The MCTP configuration module calculates the configuration space base address of the corresponding PCIE root port according to each BDF information;
[0119] S2232. The MCTP configuration module offsets the configuration space base address of each PCIE root port by 0x1A to obtain the bus number of the device under each PCIE root port;
[0120] S2233. The MCTP configuration module calculates the configuration space base address of the device under the PCIE root port according to the bus number of each device;
[0121] S2234. The MCTP configuration module reads the values of the two addresses with base address offsets of 0 and 2 in the configuration space of each device to obtain attribute information of each device;
[0122] S224. The MCTP configuration module compares and matches each device attribute information with the pre-stored target attribute information in turn. When the match is successful, the device corresponding to the device attribute information matching the target attribute information is the VGA device corresponding to the BMC; the specific steps of step S224 are as follows:
[0123] S2241. The MCTP configuration module locates a device attribute information;
[0124] S2242. The MCTP configuration module compares and matches the positioning device attribute information with the pre-stored target attribute information;
[0125] If the match fails, go to step S2243;
[0126] If the match is successful, proceed to step S2244;
[0127] S2243. Determine whether all device attribute information has been located;
[0128] If yes, it is determined that the VGA device under the BMC has failed to be located and the process ends;
[0129] If not, locate the next device attribute information and return to step S2242;
[0130] S2244. Determine that the positioning device is the VGA device under the BMC;
[0131] S2245. Record the BDF information of the PCIE root port corresponding to the location information of the VAG device under BMC;
[0132] S23. The MCTP configuration module uses the HECI command to send the root port location information of the VGA device corresponding to the BMC to the SPS firmware; In step S23, the MCTP configuration module uses the HECI command to send the BDF information as the root port location information of the VGA device under the BMC to the SPS firmware;
[0133] S3. The SPS firmware sets the BMC as the MCTP master management end according to the BMC location information, and enables the MCTP service. The specific steps of step S3 are as follows:
[0134] S31. The SPS firmware receives the BDF information indicating the location information sent by the MCTP configuration module;
[0135] S32.SPS firmware sets the PCIE device corresponding to the received BDF information as the MCTP master management end, implements the configuration of BMC as the MCTP master management end, and enables the MCTP service.
[0136] Embodiment 5:
[0137] like Figure 3 As shown, the present invention provides a device for automatically configuring a server MCTP master management terminal, comprising:
[0138] An MCTP configuration module setting unit 1, used to set an MCTP configuration module for the server;
[0139] BMC location information capturing unit 2, used for the SPS firmware to receive the BMC location information captured by the MCTP configuration module during the server startup POST process;
[0140] The MCTP master management terminal setting unit 3 is used for the SPS firmware to set the BMC as the MCTP master management terminal according to the BMC location information, and the MCTP service is enabled.
[0141] The device for automatically configuring the server MCTP main management terminal provided by the present invention realizes the automatic configuration of the server MCTP function in the BIOS, thereby avoiding the separate configuration of the MCTP function for models with different server configurations and the separate release of BIOS versions, greatly improving the efficiency of enabling the server MCTP function and reducing labor costs.
[0142] Embodiment 6:
[0143] like Figure 3 As shown, the present invention provides a device for automatically configuring a server MCTP master management terminal, comprising:
[0144] The MCTP configuration module setting unit 1 is used to set the MCTP configuration module for the server; the MCTP configuration module setting unit 1 includes:
[0145] MCTP configuration module preset subunit 1.1, for presetting the MCTP configuration module under the server BIOS;
[0146] MCTP configuration start-up setting subunit 1.2 is used to set the MCTP configuration module to start when the BIOS is turned on;
[0147] The BMC location information capturing unit 2 is used for the SPS firmware to receive the BMC location information captured by the MCTP configuration module during the server startup POST process; the BMC location information capturing unit 2 includes:
[0148] The server power-on subunit 2.1 is used to power on the server, and the BIOS enumerates all PCIE root ports during the POST process;
[0149] The BMC corresponding device root port capture subunit 2.2, the MCTP configuration module captures the root port of the BMC corresponding VGA device from all PCIE root ports enumerated in the BIOS POST process;
[0150] The root port location sending subunit 2.3 is used for the MCTP configuration module to send the root port location information of the VGA device corresponding to the BMC to the SPS firmware using the HECI command;
[0151] The MCTP master management terminal setting unit 3 is used for the SPS firmware to set the BMC as the MCTP master management terminal according to the BMC location information, and the MCTP service is enabled; the MCTP master management terminal setting unit 3 includes:
[0152] The location information receiving subunit 3.1 is used for the SPS firmware to receive the BDF information representing the location information sent by the MCTP configuration module;
[0153] The MCTP enabling subunit 3.2 is used for the SPS firmware to set the PCIE device corresponding to the received BDF information as the MCTP primary management end, implement the configuration of the BMC as the MCTP primary management end, and enable the MCTP service.
[0154] Embodiment 7:
[0155] The present invention provides a terminal, comprising a processor and a memory;
[0156] The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the terminal executes the method described in any one of the above embodiments 1-4.
[0157] Although the present invention has been described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person of ordinary skill in the art may easily think of changes or substitutions within the technical scope disclosed by the present invention, and these shall be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A method for automatically configuring a server MCTP master management terminal, characterized in that: The steps include: S1. Set up the MCTP configuration module for the server; the specific steps of step S1 are as follows: S11. Pre-set the MCTP configuration module in the server BIOS; S12. Set the MCTP configuration module to start when the BIOS is turned on; S2. The SPS firmware receives the BMC location information captured by the MCTP configuration module during the server startup POST process; the specific steps of step S2 are as follows: S21. The server is turned on, and the BIOS enumerates all PCIE root ports during the POST process; S22. The MCTP configuration module captures the root port of the BMC corresponding to the VGA device from all PCIE root ports enumerated during the BIOS POST process; the specific steps of step S22 are as follows: S221. The attribute information of the BMC corresponding to the VGA device is stored in the BIOS in advance, recorded as the target attribute information; S222. The MCTP configuration module records the BDF information of all PCIE root ports enumerated by the BIOS during the POST process; S223. The MCTP configuration module calculates the configuration space base address of the corresponding PCIE root port according to each BDF information, and then searches for the corresponding device attribute information storage address according to each configuration space base address, and reads each device attribute information; the specific steps of step S223 are as follows: S2231. The MCTP configuration module calculates the configuration space base address of the corresponding PCIE root port according to each BDF information; S2232. The MCTP configuration module offsets the configuration space base address of each PCIE root port by 0x1A to obtain the bus number of the device under each PCIE root port; S2233. The MCTP configuration module calculates the configuration space base address of the device under the PCIE root port according to the bus number of each device; S2234. The MCTP configuration module reads the values of the two addresses with base address offsets of 0 and 2 in the configuration space of each device to obtain attribute information of each device; S224. The MCTP configuration module compares and matches each device attribute information with the pre-stored target attribute information in turn. When the match is successful, the device corresponding to the device attribute information matching the target attribute information is the VGA device corresponding to the BMC; the specific steps of step S224 are as follows: S2241. The MCTP configuration module locates a device attribute information; S2242. The MCTP configuration module compares and matches the positioning device attribute information with the pre-stored target attribute information; If the match fails, go to step S2243; If the match is successful, proceed to step S2244; S2243. Determine whether all device attribute information has been located; If yes, it is determined that the VGA device under the BMC has failed to be located and the process ends; If not, locate the next device attribute information and return to step S2242; S2244. Determine that the positioning device is the VGA device under the BMC; S2245. Record the BDF information of the PCIE root port corresponding to the location information of the VAG device under BMC; S23. The MCTP configuration module uses the HECI command to send the root port location information of the VGA device corresponding to the BMC to the SPS firmware; In step S23, the MCTP configuration module uses the HECI command to send the BDF information as the root port location information of the VGA device under the BMC to the SPS firmware; S3. The SPS firmware sets the BMC as the MCTP master management end according to the BMC location information, and enables the MCTP service. The specific steps of step S3 are as follows: S31. The SPS firmware receives the BDF information indicating the location information sent by the MCTP configuration module; S32.SPS firmware sets the PCIE device corresponding to the received BDF information as the MCTP master management end, implements the configuration of BMC as the MCTP master management end, and enables the MCTP service.
2. A device for automatically configuring a server MCTP master management terminal is used to implement the method of claim 1, characterized in that: include: An MCTP configuration module setting unit (1), used for setting an MCTP configuration module for a server; A BMC location information capture unit (2), used for the SPS firmware to receive the MCTP configuration module to capture the BMC location information during the server power-on POST process; The MCTP master management terminal setting unit (3) is used for the SPS firmware to set the BMC as the MCTP master management terminal according to the BMC location information, and enable the MCTP service.
3. A terminal, characterized in that: including a processor and a memory; The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the terminal executes the method described in claim 1 above.
