Device management method and apparatus, and board management controller
By identifying and directly connecting to MCTP devices using device configuration files after a BMC restart, the problem of long device discovery time after a BMC restart is solved, connection efficiency is improved, and false alarms are reduced.
Patent Information
- Application Number
- CN202310530533.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-11
- Publication Date
- 2025-12-19
- Estimated Expiration
- 2043-05-11
AI Technical Summary
After the BMC restarts, the MCTP device rediscovery process takes a long time, leading to false alarms in user-side monitoring.
After the BMC restarts, it checks whether a device configuration file exists. If it does, it establishes a connection with the MCTP device directly based on the configuration file. If it does not exist, it establishes a connection through device discovery and builds the device configuration file when the MCTP device is powered on for the first time, saves it to the BMC, and updates the configuration file to support dynamic management.
It improves the connection efficiency between BMC and MCTP devices and reduces the false alarm rate of device malfunctions.
Smart Images

Figure CN116723075B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication technology, and in particular to a device management method, device and baseboard management controller. BACKGROUND
[0002] The baseboard management controller (BMC) is a special independent system of a server with monitoring, control and management functions, and it establishes a connection with a MCTP device (i.e. a device supporting the MCTP protocol) through a management component transport protocol (MCTP) to enable a user end to manage and monitor the MCTP device through the BMC.
[0003] When the BMC performs a restart operation, all service processes thereof are restarted, and after the BMC is started, the MCTP service needs to rediscover the devices, which will consume a lot of time (e.g. more than 100 seconds, and the time consumed will vary according to the number of MCTP devices). However, during the time for rediscovering the devices, the monitoring of the MCTP device by the user end will not stop, but since the corresponding MCTP device cannot be accessed, it will be wrongly judged that an abnormal situation (e.g. card drop and disk drop) occurs.
[0004] Therefore, there is an urgent need for a device management method, device and baseboard management controller to solve the above problems. SUMMARY
[0005] In view of the problems in the prior art, the present application provides a device management method, device and baseboard management controller.
[0006] The present application provides a device management method, comprising:
[0007] After the baseboard management controller is restarted, it is judged whether a device configuration file exists in the baseboard management controller, wherein the device configuration file is constructed from device configuration information of a plurality of management component transport protocol (MCTP) devices.
[0008] If the device configuration file exists, a connection between the baseboard management controller and each of the MCTP devices is established according to the device configuration file.
[0009] According to the device management method provided by the present application, before the step of judging whether a device configuration file exists in the baseboard management controller, the method further comprises:
[0010] The connection between the baseboard management controller and each management component transmission protocol device is established when each management component transmission protocol device is powered on for the first time, and the device configuration information is constructed according to the physical address information and the electronic tag information of each management component transmission protocol device;
[0011] The device configuration information is saved into a target file in the baseboard management controller to obtain the device configuration file;
[0012] The connection between the baseboard management controller and each management component transmission protocol device is established according to the device configuration file, including:
[0013] The connection between the baseboard management controller and each management component transmission protocol device is established according to the physical address information and the electronic tag information.
[0014] According to the device management method provided by the application, the method further includes:
[0015] If the device configuration file does not exist, a device discovery request is sent by the baseboard management controller to establish the connection between the baseboard management controller and each management component transmission protocol device.
[0016] According to the device management method provided by the application, after the connection between the baseboard management controller and each management component transmission protocol device is established according to the device configuration file if the device configuration file exists, the method further includes:
[0017] A device discovery request is sent by the baseboard management controller to determine a target management component transmission protocol device, wherein the target management component transmission protocol device is a newly added management component transmission protocol device to be accessed by the baseboard management controller after the device discovery request is sent;
[0018] The connection between the baseboard management controller and the target management component transmission protocol device is established, and the device configuration file is updated according to the device configuration information of the target management component transmission protocol device to obtain an updated device configuration file, so that the connection between the baseboard management controller and each management component transmission protocol device is established according to the updated device configuration file after the next restart of the baseboard management controller.
[0019] According to the device management method provided by the application, after the connection between the baseboard management controller and each management component transmission protocol device is established according to the device configuration file if the device configuration file exists, the method further includes:
[0020] Obtain multiple real-time device configuration information based on a preset period, wherein the multiple real-time device configuration information is device configuration information of the management component transport protocol device currently connected to the baseboard management controller;
[0021] Match the multiple device configuration information in the device configuration file with the multiple real-time device configuration information, and take the device configuration information in the device configuration file that fails to match as restart device configuration information;
[0022] Establish a connection between the management component transport protocol device corresponding to the restart device configuration information and the baseboard management controller.
[0023] According to the device management method provided by the application, the method further comprises:
[0024] When a server where the baseboard management controller is located performs a restart process, determine whether the management component transport protocol device corresponding to a configuration file in the server is consistent with the management component transport protocol device corresponding to the device configuration file, and if not, delete the device configuration file.
[0025] The application further provides a device management apparatus, comprising:
[0026] A monitoring module is configured to determine whether a device configuration file exists in the baseboard management controller after the baseboard management controller is restarted, wherein the device configuration file is constructed by device configuration information of multiple management component transport protocol devices;
[0027] A processing module is configured to, if the device configuration file exists, establish a connection between the baseboard management controller and each of the management component transport protocol devices according to the device configuration file.
[0028] The application further provides a baseboard management controller comprising the device management apparatus.
[0029] The application further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the device management method according to any one of the above when executing the program.
[0030] The application further provides a non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program is executable on a processor to implement the device management method according to any one of the above.
[0031] The device management method, device and substrate management controller provided by the application can directly establish the connection between the substrate management controller and each management component transmission protocol device according to the device configuration file after the substrate management controller is restarted, compared with the existing device discovery method, the connection efficiency between the BMC and the MCTP device is improved after the MCTP service is restarted, and the device abnormal false alarm rate is reduced. BRIEF DESCRIPTION OF DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the application or prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description are some embodiments of the application, and other drawings can be obtained by those skilled in the art without creative labor.
[0033] Figure 1 The flowchart of the device management method provided by the application is shown in the figure.
[0034] Figure 2 The structure diagram of the device management device provided by the application is shown in the figure.
[0035] Figure 3 The structure diagram of the electronic device provided by the application is shown in the figure. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical scheme and advantages of the application more clear, the technical scheme in the application will be described clearly and completely in the following combined with the drawings in the application. Obviously, the described embodiments are part of the embodiments of the application, not all the embodiments. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative labor belong to the protection scope of the application.
[0037] The BMC supports multiple functions and services, such as web interface, virtual machine (Kernel-based Virtual Machine, KVM) management module, Redfish service and MCTP service, can independently and automatically monitor the temperature, voltage and state information of important components of the server, and control the fan speed and other information in real time, so as to ensure the normal operation of the whole server; at the same time, the BMC is responsible for recording the state change information and fault log of the components, which is convenient for subsequent fault analysis and cause positioning, so as to support the user to perform more diversified operation and management according to the user's own needs.
[0038] MCTP is an information transmission control protocol, which supports information transmission between terminals, gateways and network intermediate nodes, and defines configuration parameters, request / response message structures and the like which must be used in the information transmission process to ensure that the system successfully transmits information according to user requests. Among them, the MCTP protocol related functions and instruction list includes authentication function, message transmission function, configuration management and connection function. The use of these functions and protocol instructions can effectively ensure the security of network access and guarantee the reliability of information transmission in the network environment, and is an important guarantee for terminal users and enterprise systems to exchange data. The terminal equipment managed by the MCTP protocol is called MCTP equipment, for example, network cards and hard disks.
[0039] The user terminal obtains the configuration information of the MCTP equipment from the BMC external service interface, and then interacts with the MCTP equipment through the MCTP protocol to achieve the purpose of managing and monitoring the MCTP equipment. When the server does not restart as a whole, and only the BMC or a service (such as the MCTP service) under the BMC restarts, the physical device configuration of the server usually does not change. Since the BMC restart (or the MCTP service restart) will reinitialize the MCTP equipment information under normal circumstances, the BMC needs to send a device discovery request to reestablish a connection with the MCTP equipment.
[0040] However, the re-discovery process of the MCTP equipment after the BMC restarts is time-consuming (only one or two device information can be discovered at a time), and at this time, the external (user terminal) monitoring and management service of the MCTP equipment cannot access the MCTP equipment for a long time, which will be considered as an abnormality of card drop or disk drop, and a false alarm will be generated.
[0041] The present application aims to solve the problem of abnormal false alarm caused by the time-consuming connection establishment with all MCTP equipment through device discovery during the BMC restart process. The MCTP service discovers the device at normal time, and saves the configuration information corresponding to the device in a file. When the MCTP service under the BMC restarts next time, the device discovery process is skipped, and the information for establishing a connection with the MCTP equipment is directly obtained from the file, so that the connection with the MCTP equipment is re-established at the fastest speed, and the impact on the service is minimized.
[0042] Figure 1 The flowchart of the device management method provided by the present application is shown in Figure 1 The device management method provided by the present application comprises the following steps:
[0043] Step 101, after the substrate management controller is restarted, it is judged whether there is a device configuration file in the substrate management controller, wherein the device configuration file is constructed by device configuration information of a plurality of management component transmission protocol devices.
[0044] In the present application, when the BMC is restarted, the MCTP service process is started at this time, and the BMC can detect whether the device configuration file is included in the existing file by performing a self-checking process. For example, the conf partition file is detected. Since the file can be retained without being lost after the BMC is restarted, the device configuration information of a plurality of MCTP devices connected before the BMC is restarted is saved into the conf partition file, thereby forming a conf / mctp_device file (i.e. a device configuration file), and then it is judged whether the conf / mctp_device file exists after the BMC is restarted.
[0045] Step 102, if the device configuration file exists, the connection between the substrate management controller and each management component transmission protocol device is established according to the device configuration file.
[0046] In the present application, in the case where it is determined that the device configuration file exists, the device configuration information in the device configuration file is parsed, such as the physical address information and electronic tag information (such as End-to-End Identifier, abbreviated as EID) of each MCTP device, and these information is saved, so that the BMC directly establishes the connection with the corresponding MCTP device through these information.
[0047] In an embodiment, the method further comprises:
[0048] If the device configuration file does not exist, a device discovery request is sent by the substrate management controller to establish the connection between the substrate management controller and each management component transmission protocol device.
[0049] In the present application, when the BMC is restarted and the device configuration file is not detected, the original MCTP process starting flow is executed by the BMC, that is, a device discovery request is sent to connect with the discovered MCTP device.
[0050] Further, the BMC interacts with the connected MCTP device, and real-time acquires the state information of each MCTP device, so as to realize the corresponding monitoring and management of the device.
[0051] The device management method provided by the application can directly establish the connection between the substrate management controller and each management component transmission protocol device according to the device configuration file after determining that the device configuration file exists in the substrate management controller after the substrate management controller is restarted, compared with the existing device discovery method for establishing the connection, the connection efficiency between the BMC and the MCTP device is improved after the MCTP service is restarted, and the abnormal false alarm rate of the device is reduced.
[0052] On the basis of the above-mentioned embodiment, before the judging whether the device configuration file exists in the substrate management controller, the method further comprises:
[0053] When each management component transmission protocol device is powered on for the first time, the connection between the substrate management controller and each management component transmission protocol device is established, and the device configuration information is constructed according to the physical address information and the electronic tag information of each management component transmission protocol device;
[0054] The device configuration information is saved into the target file in the substrate management controller to obtain the device configuration file;
[0055] The connection between the substrate management controller and each management component transmission protocol device is established according to the device configuration file, comprising:
[0056] The connection between the substrate management controller and each management component transmission protocol device is established according to the physical address information and the electronic tag information.
[0057] In the application, when the MCTP device is powered on for the first time, the BMC establishes the connection with the MCTP device through the device discovery, and stores the related configuration information (such as the physical address and the electronic tag information) of the MCTP device into the target file (such as the conf partition file), so as to construct the device configuration file. After the BMC performs the restart operation, the connection with the MCTP device which has been connected before does not need to be established in the device discovery mode, and the configuration information of each MCTP device obtained by analyzing the device configuration file can be used to quickly establish the connection with these devices, so that the abnormal false alarm caused by the long time for establishing the connection is avoided.
[0058] On the basis of the above-mentioned embodiment, after the connection between the substrate management controller and each management component transmission protocol device is established according to the device configuration file if the device configuration file exists, the method further comprises:
[0059] sending, by the baseboard management controller, a device discovery request to determine a target management component transport protocol device, wherein the target management component transport protocol device is a newly added management component transport protocol device to be connected to the baseboard management controller after sending the device discovery request;
[0060] establishing a connection between the baseboard management controller and the target management component transport protocol device, and updating the device configuration file according to device configuration information of the target management component transport protocol device to obtain an updated device configuration file, so that the baseboard management controller and each of the management component transport protocol devices are connected according to the updated device configuration file after the next restart of the baseboard management controller.
[0061] In the present application, the BMC also continuously sends requests for discovering MCTP devices in the process of running the MCTP service, so as to discover new MCTP devices. Therefore, in the present application, when the BMC discovers a new MCTP device (i.e., a target MCTP device), the EID information and the physical address information of the target MCTP device are appended to the mctp_device file, so as to obtain an updated device configuration file. In the subsequent BMC restart operation, the BMC can establish a connection according to the updated device configuration file for these newly added MCTP devices, so as to realize dynamic monitoring and management of the MCTP devices.
[0062] On the basis of the above-mentioned embodiments, after the baseboard management controller and each of the management component transport protocol devices are connected according to the device configuration file if the device configuration file exists, the method further comprises:
[0063] obtaining a plurality of real-time device configuration information based on a preset period, wherein the plurality of real-time device configuration information is device configuration information of the management component transport protocol devices currently connected to the baseboard management controller;
[0064] matching the plurality of device configuration information in the device configuration file with the plurality of real-time device configuration information, and taking the device configuration information in the device configuration file that fails to match as restart device configuration information;
[0065] establishing a connection between the management component transport protocol device corresponding to the restart device configuration information and the baseboard management controller.
[0066] In the present application, by setting a preset period, the BMC acquires the device configuration information of the currently connected MCTP devices in time, obtains a plurality of real-time device configuration information, and matches the real-time device configuration information with the information in the device configuration file, if part of the MCTP devices restarts, part of the real-time device configuration information (i.e. the restart device configuration information) will not be matched successfully, at this time, the BMC can establish a connection with the MCTP device that has completed the restart operation according to the real-time device configuration information that is not matched successfully, thereby improving the connection efficiency of the MCTP device after restart.
[0067] On the basis of the above-mentioned embodiment, the method further comprises:
[0068] When the server where the baseboard management controller is located performs a restart process, it is judged whether the management component transport protocol device corresponding to the configuration file in the server is consistent with the management component transport protocol device corresponding to the device configuration file, if not, the device configuration file is deleted.
[0069] In the present application, when the maintenance personnel need to change the device configuration of the server where the BMC is located, such as adding a plurality of hardware devices, at this time, the server needs to be restarted. Further, in the restart process of the server, the configuration file in the server is first obtained (the new hardware device has been recorded in the configuration file), if the MCTP device corresponding to the updated configuration file in the server is inconsistent with the MCTP device corresponding to the device configuration file in the BMC before restart, the mctp_device file in the BMC needs to be deleted, and after the server completes the restart, the BMC re-establishes the corresponding connection in the form of device discovery, and generates the corresponding mctp_device file according to the new device configuration information.
[0070] The device management device provided by the present application is described below, and the device management device described below can be referred to each other corresponding to the device management method described above.
[0071] Figure 2 The structural diagram of the device management device provided by the present application is shown in Figure 2 As shown in the figure, the present application provides a device management device, which comprises a monitoring module 201 and a processing module 202, wherein the monitoring module 201 is used to judge whether there is a device configuration file in the baseboard management controller after the baseboard management controller is restarted, wherein the device configuration file is constructed by the device configuration information of a plurality of management component transport protocol devices; the processing module 202 is used to establish the connection between the baseboard management controller and each of the management component transport protocol devices according to the device configuration file if the device configuration file exists.
[0072] In the present application, when the BMC completes the restart, at this time the MCTP service process starts, the monitoring module 201 detects whether the BMC has a file including the device configuration file by performing a self-checking process, for example, detecting the conf partition file, since the file can be retained without being lost after the BMC restarts, thus the device configuration information of the plurality of MCTP devices connected before the BMC restarts is saved to the conf partition file, thereby forming the conf / mctp_device file (i.e. the device configuration file), and then the monitoring module 201 judges whether the conf / mctp_device file exists after the BMC restarts.
[0073] Further, in the case where the monitoring module 201 determines that the device configuration file exists, the device configuration information in the device configuration file is parsed by the processing module 202, such as the physical address information and the electronic tag information (such as the unique identifier End-to-End Identifier, abbreviated as EID) of each MCTP device, and these information is saved, so that the BMC directly establishes a connection with the corresponding MCTP device through these information.
[0074] When the BMC restarts and the monitoring module 202 does not detect the device configuration file, the BMC performs the original MCTP process starting process, that is, by sending a device discovery request, thereby connecting with the discovered MCTP device. Finally, the BMC interacts with the MCTP device connected to obtain the state information of each MCTP device in real time, so as to realize the corresponding monitoring and management of the device.
[0075] The device management apparatus provided by the present application can directly establish the connection between the BMC and each MCTP device according to the device configuration file when the BMC determines that the device configuration file exists after the BMC restarts, compared with the existing device discovery method for establishing connection, the connection efficiency between the BMC and the MCTP device is improved after the MCTP service restarts, and the abnormal false alarm rate of the device is also reduced.
[0076] On the basis of the above embodiment, the apparatus further comprises a configuration information acquisition module and a device configuration file construction module, wherein the configuration information acquisition module is used to establish the connection between the BMC and each MCTP device when each MCTP device is powered on for the first time, and construct the device configuration information according to the physical address information and the electronic tag information of each MCTP device; the device configuration file construction module is used to save the device configuration information into the target file in the BMC to obtain the device configuration file;
[0077] The processing module is specifically configured to establish a connection between the baseboard management controller and each of the management component transmission protocol devices according to the physical address information and the electronic tag information.
[0078] On the basis of the above-mentioned embodiments, the processing module is further configured to send a device discovery request by the baseboard management controller to establish the connection between the baseboard management controller and each of the management component transmission protocol devices if the device configuration file does not exist.
[0079] On the basis of the above-mentioned embodiments, the device further comprises a device discovery module and a configuration file updating module, wherein the device discovery module is configured to send a device discovery request by the baseboard management controller to determine a target management component transmission protocol device, wherein the target management component transmission protocol device is a newly added management component transmission protocol device to be connected by the baseboard management controller after sending the device discovery request; and the configuration file updating module is configured to establish a connection between the baseboard management controller and the target management component transmission protocol device, and update the device configuration file according to the device configuration information of the target management component transmission protocol device to obtain an updated device configuration file, so that the connection between the baseboard management controller and each of the management component transmission protocol devices is established according to the updated device configuration file after the next restart of the baseboard management controller.
[0080] On the basis of the above-mentioned embodiments, the device is further configured to:
[0081] obtain a plurality of real-time device configuration information based on a preset period, wherein the plurality of real-time device configuration information is the device configuration information of the management component transmission protocol devices currently connected by the baseboard management controller;
[0082] match the plurality of device configuration information in the device configuration file with the plurality of real-time device configuration information, and take the device configuration information in the device configuration file that is not matched successfully as restart device configuration information;
[0083] establish a connection between the management component transmission protocol device corresponding to the restart device configuration information and the baseboard management controller.
[0084] On the basis of the above-mentioned embodiments, the device further comprises a configuration file deleting module configured to determine whether the management component transmission protocol device corresponding to the configuration file in the server where the baseboard management controller is located is consistent with the management component transmission protocol device corresponding to the device configuration file when the server performs a restart process, and delete the device configuration file if the two are not consistent.
[0085] The device provided by the present application is used for executing the above-mentioned method embodiments, and the specific process and detailed content are referred to the above-mentioned embodiments, which will not be repeated here.
[0086] The present application also provides a substrate management controller comprising the device management apparatus of the above-mentioned embodiments.
[0087] In the present application, in view of the problem that the MCTP device rediscovery after the existing BMC restarts is time-consuming, the existing BMC is improved, the device management apparatus of the above-mentioned embodiments is arranged in the BMC, the configuration information of the MCTP device is backed up and reserved in the / conf partition file of the BMC (not lost when the BMC restarts), when the BMC restarts (the MCTP process restarts), whether the BMC has saved the MCTP device information is judged by detecting whether the mctp_device file of the / conf partition exists. At the same time, when the MCTP service discovers new devices each time, not only the physical address and EID information of the new devices are updated to the dynamic linked list, but also the device configuration file is updated according to the configuration information of the new devices. Further, after the BMC restarts, if the file for saving the MCTP device information exists, the preparation action of the MCTP device discovery is no longer performed, the device information is directly obtained by analyzing the file, and the problem that the MCTP device discovery process in the existing MCTP service starting process is time-consuming is avoided.
[0088] In an embodiment, when the MCTP service under the BMC restarts while the server is always kept in the on state, the BMC obtains the EID information and the physical address information interacted with the MCTP device based on the saved mctp_device file, and does not perform the preparation and device discovery process in the MCTP service starting process again, so as to quickly establish the connection with the MCTP device, put it into work earlier, and reduce the impact on the server deployment business at the minimum cost.
[0089] The substrate management controller provided by the present application can directly establish the connection between the substrate management controller and each management component transmission protocol device according to the device configuration file when the device configuration file exists in the substrate management controller after the substrate management controller restarts, compared with the existing device discovery mode for establishing the connection, the connection efficiency between the BMC and the MCTP device is improved after the MCTP service restarts, and the device abnormal false alarm rate is also reduced.
[0090] Figure 3 The structural schematic diagram of the electronic device provided by the present application is as follows, Figure 3As shown, the electronic device can include a processor 301, a communications interface 302, a memory 303, and a communications bus 304, wherein the processor 301, the communications interface 302, and the memory 303 complete communications with each other through the communications bus 304. The processor 301 can invoke a logical instruction in the memory 303 to execute a device management method, which includes: after a baseboard management controller is restarted, judging whether a device configuration file exists in the baseboard management controller, wherein the device configuration file is constructed by device configuration information of a plurality of management component transport protocol devices; and if the device configuration file exists, establishing a connection between the baseboard management controller and each of the management component transport protocol devices according to the device configuration file.
[0091] In addition, the logical instruction in the memory 303 described above can be implemented in the form of a software functional unit and sold or used as an independent product, and can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for making a computer device (which can be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0092] On the other hand, the present application also provides a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, and the computer program includes program instructions, when the program instructions are executed by a computer, the computer can execute the device management method provided by the above-mentioned methods, which includes: after a baseboard management controller is restarted, judging whether a device configuration file exists in the baseboard management controller, wherein the device configuration file is constructed by device configuration information of a plurality of management component transport protocol devices; and if the device configuration file exists, establishing a connection between the baseboard management controller and each of the management component transport protocol devices according to the device configuration file.
[0093] In yet another aspect, the present application also provides a non-transitory computer readable storage medium having stored thereon a computer program, which, when executed by a processor, implements a device management method provided by any of the above embodiments, the method comprising: after a substrate management controller is restarted, determining whether a device configuration file exists in the substrate management controller, wherein the device configuration file is constructed by device configuration information of a plurality of management component transport protocol devices; and if the device configuration file exists, establishing a connection between the substrate management controller and each of the management component transport protocol devices according to the device configuration file.
[0094] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., may be located in one place, or may be distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment according to actual needs. Those skilled in the art can understand and implement without creative labor.
[0095] From the above description of the embodiments, those skilled in the art can clearly understand that the embodiments can be realized by means of software plus necessary universal hardware platforms, and of course can also be realized by hardware. Based on such understanding, the above technical solutions, essentially or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the methods described in each embodiment or some parts of the embodiments.
[0096] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacements to some technical features; and these modifications or replacements do not make the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A device management method characterized by, The method comprises the following steps: After the substrate management controller is restarted, it is judged whether there is a device configuration file in the substrate management controller, wherein the device configuration file is constructed by device configuration information of a plurality of management component transmission protocol devices; If the device configuration file exists, the connection between the substrate management controller and each management component transmission protocol device is established according to the device configuration file; After the connection between the substrate management controller and each management component transmission protocol device is established according to the device configuration file, the method further comprises the following steps: Based on a preset period, a plurality of real-time device configuration information is obtained, wherein the plurality of real-time device configuration information is the device configuration information of the management component transmission protocol device currently connected to the substrate management controller; The plurality of device configuration information in the device configuration file is matched with the plurality of real-time device configuration information, and the device configuration information in the device configuration file that is not matched successfully is taken as restart device configuration information; The connection between the management component transmission protocol device corresponding to the restart device configuration information and the substrate management controller is established.
2. The device management method according to Claim 1, characterized by, Before the step of judging whether there is a device configuration file in the substrate management controller, the method further comprises the following steps: When each management component transmission protocol device is powered on for the first time, the connection between the substrate management controller and each management component transmission protocol device is established, and the device configuration information is constructed according to the physical address information and electronic tag information of each management component transmission protocol device; The device configuration information is saved into a target file in the substrate management controller to obtain the device configuration file; The connection between the substrate management controller and each management component transmission protocol device is established according to the device configuration file, which comprises the following steps: The connection between the substrate management controller and each management component transmission protocol device is established according to the physical address information and the electronic tag information.
3. The device management method according to Claim 1, characterized by, The method further comprises the following steps: If the device configuration file does not exist, a device discovery request is sent by the substrate management controller to establish the connection between the substrate management controller and each management component transmission protocol device.
4. The device management method according to Claim 1, characterized by, After the connection between the substrate management controller and each management component transmission protocol device is established according to the device configuration file, the method further comprises the following steps: A device discovery request is sent by the substrate management controller to determine a target management component transmission protocol device, wherein the target management component transmission protocol device is a newly added management component transmission protocol device to be accessed after the device discovery request is sent by the substrate management controller; The method further comprises:
5. The device management method according to Claim 1, characterized by, The method further comprises: The method further comprises:
6. An apparatus management device characterized by comprising: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises:
7. A baseboard management controller, comprising: The method further comprises:
8. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The method further comprises: 9.A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further comprises: The method further
Citation Information
Patent Citations
Hardware adaptation method and device, computer equipment and readable storage medium
CN115599632A