CN116723075A - Equipment management method, device and substrate management controller - Google Patents

Equipment management method, device and substrate management controller Download PDF

Info

Publication number
CN116723075A
CN116723075A CN202310530533.XA CN202310530533A CN116723075A CN 116723075 A CN116723075 A CN 116723075A CN 202310530533 A CN202310530533 A CN 202310530533A CN 116723075 A CN116723075 A CN 116723075A
Authority
CN
China
Prior art keywords
equipment
management controller
configuration file
transmission protocol
component transmission
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.)
Pending
Application number
CN202310530533.XA
Other languages
Chinese (zh)
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310530533.XA priority Critical patent/CN116723075A/en
Publication of CN116723075A publication Critical patent/CN116723075A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0253Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0273Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using web services for network management, e.g. simple object access protocol [SOAP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a device management method, a device and a baseboard management controller, wherein the method comprises the following steps: after restarting a baseboard management controller, judging whether an equipment configuration file exists in the baseboard management controller, wherein the equipment configuration file is constructed by equipment configuration information of a plurality of management component transmission protocol equipment; if the equipment configuration file exists, establishing connection between the baseboard management controller and each management component transmission protocol equipment according to the equipment configuration file. According to the invention, after the substrate management controller is restarted, when the equipment configuration file exists in the substrate management controller, the connection between the substrate management controller and each management component transmission protocol equipment can be established directly according to the equipment configuration file, compared with the existing equipment discovery mode, the connection is established, after the MCTP service is restarted, the connection efficiency between the BMC and the MCTP equipment is improved, and meanwhile, the equipment abnormality false alarm rate is reduced.

Description

Equipment management method, device and substrate management controller
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a device management method, a device, and a baseboard management controller.
Background
The baseboard management controller (Baseboard Management Controller, abbreviated as BMC) is used as a special independent system with monitoring, controlling and managing functions of the server, and establishes connection with MCTP equipment (namely equipment supporting MCTP protocol) through a management component transmission protocol (Manangement Component Transport Protocol, abbreviated as MCTP), so that a user side can manage and monitor the MCTP equipment through the BMC.
When the BMC performs a restart operation, all service processes thereof are restarted, and when the BMC is started, the MCTP service needs to rediscover the devices, which takes more time (for example, 100 seconds, and the time period is also changed according to the number of MCTP devices). However, during the period of rediscovery of the device, the monitoring of the MCTP device by the user terminal is not stopped, but the MCTP device is not accessed, so that abnormal conditions (such as card dropping and disk dropping) of the device can be misjudged.
Therefore, there is a need for an apparatus management method, device and baseboard management controller to solve the above problems.
Disclosure of Invention
Aiming at the problems existing in the prior art, the invention provides a device management method, a device and a substrate management controller.
The invention provides a device management method, which comprises the following steps:
after restarting a baseboard management controller, judging whether an equipment configuration file exists in the baseboard management controller, wherein the equipment configuration file is constructed by equipment configuration information of a plurality of management component transmission protocol equipment;
if the equipment configuration file exists, establishing connection between the baseboard management controller and each management component transmission protocol equipment according to the equipment configuration file.
According to the device management method provided by the invention, before the judging whether the device configuration file exists in the baseboard management controller, the method further comprises the following steps:
when each management component transmission protocol device is electrified for the first time, establishing connection between the substrate management controller and each management component transmission protocol device, and constructing device configuration information according to physical address information and electronic tag information of each management component transmission protocol device;
saving the equipment configuration information into a target file in the baseboard management controller to obtain the equipment configuration file;
the establishing connection between the baseboard management controller and each management component transmission protocol device according to the device configuration file comprises the following steps:
and establishing connection between the baseboard management controller and each management component transmission protocol device according to the physical address information and the electronic tag information.
According to the device management method provided by the invention, the method further comprises the following steps:
and if the equipment configuration file does not exist, sending an equipment discovery request through the baseboard management controller so as to establish connection between the baseboard management controller and each management component transmission protocol equipment.
According to the device management method provided by the invention, 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 comprises:
transmitting a device discovery request through the baseboard management controller, and determining 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 baseboard management controller transmits the device discovery request;
establishing a connection between the baseboard management controller and the target management component transmission protocol device, updating 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, and establishing the connection between the baseboard management controller and each management component transmission protocol device according to the updated device configuration file after the next restarting of the baseboard management controller.
According to the device management method provided by the invention, 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 comprises:
acquiring a plurality of pieces of real-time equipment configuration information based on a preset period, wherein the plurality of pieces of real-time equipment configuration information are equipment configuration information of the management component transmission protocol equipment which is connected with the baseboard management controller currently;
matching a plurality of pieces of equipment configuration information in the equipment configuration file with a plurality of pieces of real-time equipment configuration information, and taking the equipment configuration information which is not successfully matched in the equipment configuration file as restarting equipment configuration information;
and establishing connection between the management component transmission protocol equipment corresponding to the restarting equipment configuration information and the baseboard management controller.
According to the device management method provided by the invention, the method further comprises the following steps:
when a server where the baseboard management controller is located executes a restarting process, judging whether management component transmission protocol equipment corresponding to a configuration file in the server is consistent with management component transmission protocol equipment corresponding to the equipment configuration file, and if not, deleting the equipment configuration file.
The invention also provides a device management apparatus, comprising:
the monitoring module is used for judging whether equipment configuration files exist in the baseboard management controller after the baseboard management controller is restarted, wherein the equipment configuration files are constructed by equipment configuration information of a plurality of management component transmission protocol equipment;
and the processing module is used for establishing connection between the baseboard management controller and each management component transmission protocol device according to the device configuration file if the device configuration file exists.
The invention also provides a baseboard management controller which comprises the equipment management device.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the device management method as described in any of the above when executing the program.
The present invention 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 as described in any of the above.
According to the device management method, the device and the substrate management controller provided by the invention, after the substrate management controller is restarted, when the device configuration file exists in the substrate management controller, the connection between the substrate management controller and each management component transmission protocol device can be established directly according to the device configuration file.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the invention, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a device management method according to the present invention;
FIG. 2 is a schematic diagram of a device management apparatus according to the present invention;
fig. 3 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The BMC supports various functions and services, such as a web interface, a virtual machine (Kernel-based Virtual Machine, KVM) management module, a Redfish service, an MCTP service and the like, can automatically monitor information such as temperature, voltage, state and the like of important components of a server, and can control information such as fan rotation speed and the like in real time, so that normal operation of the whole server is ensured; meanwhile, the BMC is responsible for recording state change information and fault logs of the components, is convenient for subsequent fault analysis and reason positioning, and supports the user side to perform more diversified operation and management according to own requirements.
MCTP is used as an information transmission control protocol supporting information transmission among terminals, gateways and intermediate nodes of the network, and defines configuration parameters, request/response message structures and the like which must be used in the information transmission process, so as to ensure that the system successfully transmits information according to user requests. The MCTP protocol related functions and the instruction list comprise an authentication function, a message transmission function, a configuration management function and a connection function, and the use of the functions and the protocol instructions can effectively ensure the security of network access, ensure the reliability of information transmission in a network environment and are important guarantees for data exchange of end users and enterprise systems. And the terminal devices managed through the MCTP protocol are called MCTP devices, such as network cards and hard disks.
The user side obtains the configuration information of the MCTP device from the BMC external server side interface, and interacts with the MCTP device through the MCTP protocol, so as to achieve the purpose of managing and monitoring the MCTP device. When the server is not restarted by the whole machine, only the BMC or a service (such as MCTP service) under the BMC is restarted, the physical device configuration of the server is not changed, and the BMC is required to send a device discovery request to reestablish the connection with the MCTP device because the BMC is restarted (or the MCTP service is restarted) under the conventional condition.
However, the rediscovery process of the MCTP device after the BMC is restarted is time-consuming (only one or two device information can be found at a time), and at this time, the external (user side) monitors and manages the service for the MCTP device, and because the MCTP device cannot be accessed for a long time, it is considered that the MCTP device has an abnormality of card or disk failure, and a false alarm is generated.
The invention aims at the problem that in the restarting process of the BMC, connection with all MCTP devices is required to be established again in a device discovery mode, so that a large number of abnormal false alarms caused by time consumption are caused. And discovering the equipment when the MCTP service normally operates, and simultaneously storing configuration information corresponding to the equipment in a file. When the BMC restarts the MCTP service next time, the process of rediscoverying the device is skipped, and the information for establishing connection with the MCTP device is directly obtained from the file, so that the connection with the MCTP device is established again at the fastest speed, and the influence on the service is reduced to the minimum.
Fig. 1 is a schematic flow chart of a device management method provided by the present invention, and as shown in fig. 1, the present invention provides a device management method, including:
step 101, after the 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 transmission protocol devices.
In the invention, when the BMC is restarted, the MCTP service process is started at the moment, the BMC can detect whether the existing file of the BMC comprises a device configuration file or not by executing a self-checking process, for example, the conf partition file is detected, and because the file can be reserved and not lost after the BMC is restarted, the device configuration information of a plurality of MCTP devices connected before the BMC is restarted is stored in the conf partition file, thereby forming a conf/mctp_device file (namely the device configuration file), and further judging whether the conf/mctp_device file exists or not after the BMC is restarted.
Step 102, if the equipment configuration file exists, establishing connection between the baseboard management controller and each management component transmission protocol equipment according to the equipment configuration file.
In the invention, under the condition that the existence of the device configuration file is determined, the device configuration information in the device configuration file, such as the physical address information and the electronic tag information (such as unique Identifier End-to-End Identifier, EID for short) of each MCTP device, is analyzed, and the information is stored, so that the BMC directly establishes connection with the corresponding MCTP device through the information.
In an embodiment, the method further comprises:
and if the equipment configuration file does not exist, sending an equipment discovery request through the baseboard management controller so as to establish connection between the baseboard management controller and each management component transmission protocol equipment.
In the invention, when the BMC is restarted and the device configuration file is not detected, the BMC executes the original MCTP process starting flow, namely, the BMC is connected with the discovered MCTP device by sending the device discovery request.
Further, the BMC interacts with the MCTP devices for establishing connection to acquire the state information of each MCTP device in real time so as to realize corresponding monitoring and management of the devices.
According to the device management method provided by the invention, after the substrate management controller is restarted, when the device configuration file exists in the substrate management controller, the connection between the substrate management controller and each management component transmission protocol device can be established directly according to the device configuration file, compared with the connection established in the existing device discovery mode, after the MCTP service is restarted, the connection efficiency between the BMC and the MCTP device is improved, and meanwhile, the abnormal false alarm rate of the device is reduced.
On the basis of the foregoing embodiment, before the determining whether a device configuration file exists in the baseboard management controller, the method further includes:
when each management component transmission protocol device is electrified for the first time, establishing connection between the substrate management controller and each management component transmission protocol device, and constructing device configuration information according to physical address information and electronic tag information of each management component transmission protocol device;
saving the equipment configuration information into a target file in the baseboard management controller to obtain the equipment configuration file;
the establishing connection between the baseboard management controller and each management component transmission protocol device according to the device configuration file comprises the following steps:
and establishing connection between the baseboard management controller and each management component transmission protocol device according to the physical address information and the electronic tag information.
In the invention, when the MCTP device is powered on for the first time, the BMC establishes connection with the MCTP device through device discovery, and stores relevant configuration information (such as physical address, electronic tag information and the like) of the MCTP device into a target file (such as conf partition file), thereby constructing and obtaining a device configuration file. After the BMC executes the restarting operation, connection with the MCTP devices connected before is not required to be established in a device discovery mode, and connection with the MCTP devices can be established quickly only through the configuration information of each MCTP device obtained by analyzing the device configuration file, so that abnormal false alarm caused by long-time connection establishment is avoided.
On the basis of the above embodiment, 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:
transmitting a device discovery request through the baseboard management controller, and determining 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 baseboard management controller transmits the device discovery request;
establishing a connection between the baseboard management controller and the target management component transmission protocol device, updating 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, and establishing the connection between the baseboard management controller and each management component transmission protocol device according to the updated device configuration file after the next restarting of the baseboard management controller.
In the invention, the BMC also continuously sends a request for discovering the MCTP device in the process of running the MCTP service so as to discover the new MCTP device. Therefore, in the present invention, when the BMC discovers a new MCTP device (i.e., a target MCTP device), EID information and physical address information of the target MCTP device are additionally filled into the mctp_device file, thereby obtaining an updated device configuration file. In the subsequent BMC restarting operation, for the newly-added MCTP devices, the BMC can establish connection according to the updated device configuration file, so as to realize dynamic monitoring and management of the MCTP devices.
On the basis of the above embodiment, 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:
acquiring a plurality of pieces of real-time equipment configuration information based on a preset period, wherein the plurality of pieces of real-time equipment configuration information are equipment configuration information of the management component transmission protocol equipment which is connected with the baseboard management controller currently;
matching a plurality of pieces of equipment configuration information in the equipment configuration file with a plurality of pieces of real-time equipment configuration information, and taking the equipment configuration information which is not successfully matched in the equipment configuration file as restarting equipment configuration information;
and establishing connection between the management component transmission protocol equipment corresponding to the restarting equipment configuration information and the baseboard management controller.
In the invention, by setting a preset period, the BMC regularly acquires the device configuration information of the currently connected MCTP device to obtain a plurality of real-time device configuration information, matches the real-time device configuration information with the information in the device configuration file, and if part of the MCTP devices are restarted, the situation that part of the real-time device configuration information (namely the restarting device configuration information) is not successfully matched can occur, at the moment, the BMC can establish connection with the MCTP devices which have completed restarting operation according to the real-time device configuration information which is not successfully matched, thereby improving the connection efficiency of the MCTP devices after restarting.
On the basis of the above embodiment, the method further includes:
when a server where the baseboard management controller is located executes a restarting process, judging whether management component transmission protocol equipment corresponding to a configuration file in the server is consistent with management component transmission protocol equipment corresponding to the equipment configuration file, and if not, deleting the equipment configuration file.
In the invention, when maintenance personnel need to change the device configuration of the server where the BMC is located, such as adding a plurality of hardware devices, the server needs to be restarted. Further, during the restarting process of the server, firstly, a configuration file in the server (in which new hardware devices are recorded) is obtained, if MCTP devices corresponding to the updated configuration file in the server are inconsistent with MCTP devices corresponding to the device configuration file in the BMC before restarting, the mctp_device file in the BMC needs to be deleted, after the restarting of the server is completed, the BMC reestablishes corresponding connection in a device discovery manner, and generates a corresponding mctp_device file according to new device configuration information.
The device management apparatus provided by the present invention will be described below, and the device management apparatus described below and the device management method described above may be referred to correspondingly to each other.
Fig. 2 is a schematic structural diagram of an apparatus management device provided by the present invention, and as shown in fig. 2, the present invention provides an apparatus management device, which includes a monitoring module 201 and a processing module 202, where the monitoring module 201 is configured to determine whether an apparatus configuration file exists in a baseboard management controller after the baseboard management controller is restarted, where the apparatus configuration file is constructed by apparatus configuration information of a plurality of management component transmission protocol apparatuses; the processing module 202 is configured to establish a 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.
In the present invention, when the BMC is restarted, at this time, the MCTP service process is started, and the monitoring module 201 detects whether the existing file of the BMC includes a device configuration file by executing a self-checking process, for example, detects a conf partition file, and since the file can be reserved after the BMC is restarted and is not lost, device configuration information of a plurality of MCTP devices connected to the MCTP device before the BMC is restarted is saved in the conf partition file, so as to form a conf/mctp_device file (i.e., a device configuration file), and further, after the BMC is restarted, the monitoring module 201 determines whether the conf/mctp_device file exists.
Further, when the monitoring module 201 determines that the device configuration file exists, the processing module 202 parses the device configuration information in the device configuration file, such as physical address information and electronic tag information (such as unique Identifier End-to-End Identifier, EID for short) of each MCTP device, and stores the information, so that the BMC directly establishes a connection with the corresponding MCTP device through the information.
When the BMC is restarted and the monitoring module 202 does not detect the device configuration file, the BMC executes the original MCTP process start procedure, that is, by sending a device discovery request, so as to connect with the discovered MCTP device. Finally, the BMC interacts with the MCTP devices which establish the connection to acquire the state information of each MCTP device in real time so as to realize corresponding monitoring and management of the devices.
According to the device management device provided by the invention, after the substrate management controller is restarted, when the device configuration file exists in the substrate management controller, the connection between the substrate management controller and each management component transmission protocol device can be established directly according to the device configuration file, compared with the connection established in the existing device discovery mode, after the MCTP service is restarted, the connection efficiency between the BMC and the MCTP device is improved, and meanwhile, the abnormal false alarm rate of the device is reduced.
On the basis of the above embodiment, the apparatus further includes a configuration information acquisition module and an equipment configuration file construction module, where the configuration information acquisition module is configured to establish connection between the baseboard management controller and each management component transmission protocol device when each management component transmission protocol device is powered on for the first time, and construct the equipment configuration information according to physical address information and electronic tag information of each management component transmission protocol device; the device configuration file construction module is used for storing the device configuration information into a target file in the baseboard management controller to obtain the device configuration file;
the processing module is specifically configured to establish connection between the baseboard management controller and each management component transport protocol device according to the physical address information and the electronic tag information.
On the basis of the above embodiment, the processing module is further configured to send, if the device configuration file does not exist, a device discovery request through the baseboard management controller, so as to establish a connection between the baseboard management controller and each management component transport protocol device.
On the basis of the above embodiment, the apparatus further includes a device discovery module and a configuration file updating module, where the device discovery module is configured to send a device discovery request through the baseboard management controller, and determine a target management component transport protocol device, where the target management component transport protocol device is a new management component transport protocol device to be accessed by the baseboard management controller after sending the device discovery request; the configuration file updating module is used for establishing connection between the baseboard management controller and the target management component transmission protocol equipment, updating the equipment configuration file according to the equipment configuration information of the target management component transmission protocol equipment to obtain an updated equipment configuration file, and establishing connection between the baseboard management controller and each management component transmission protocol equipment according to the updated equipment configuration file after the next restarting of the baseboard management controller.
On the basis of the above embodiment, the device is further configured to:
acquiring a plurality of pieces of real-time equipment configuration information based on a preset period, wherein the plurality of pieces of real-time equipment configuration information are equipment configuration information of the management component transmission protocol equipment which is connected with the baseboard management controller currently;
matching a plurality of pieces of equipment configuration information in the equipment configuration file with a plurality of pieces of real-time equipment configuration information, and taking the equipment configuration information which is not successfully matched in the equipment configuration file as restarting equipment configuration information;
and establishing connection between the management component transmission protocol equipment corresponding to the restarting equipment configuration information and the baseboard management controller.
On the basis of the above embodiment, the apparatus further includes a configuration file deleting module, configured to determine, when the server where the baseboard management controller is located executes the restarting process, whether a management component transmission protocol device corresponding to a configuration file in the server is consistent with a management component transmission protocol device corresponding to the device configuration file, and if not, delete the device configuration file.
The device provided by the invention is used for executing the method embodiments, and specific flow and details refer to the embodiments and are not repeated herein.
The invention also provides a baseboard management controller, which comprises the equipment management device in each embodiment.
In the invention, aiming at the problem that the MCTP device rediscoveres long time after the existing BMC is restarted, the existing BMC is improved, the device management device described in each embodiment is arranged in the BMC, so that the BMC can reserve the configuration information backup of the MCTP device in the/conf partition file of the BMC (the BMC is not lost during restarting), and when the BMC is restarted (the MCTP process is restarted), whether the BMC has saved the MCTP device information is judged by detecting whether the mctp_device file of the/conf partition exists or not. Meanwhile, when the MCTP service discovers new equipment, the physical address and EID information of the new equipment are updated into a dynamic linked list, and equipment configuration files are updated according to the configuration information of the new equipment. And after the BMC is restarted, if the file for storing the MCTP equipment information exists, the preparation action of MCTP equipment discovery is not performed, the file is directly analyzed to acquire the equipment information, and the problem that the MCTP equipment discovery process takes too long in the existing MCTP service starting process is avoided.
In an embodiment, when the server keeps the on state all the time, if the MCTP service under the BMC is restarted, the BMC acquires EID information and physical address information interacted with the MCTP device based on the stored mctp_device file, and does not re-perform the preparation and the process of discovering the device in the MCTP service starting process, so that the connection is established with the MCTP device, and the connection is put into operation earlier, so that the influence on the server deployment service is reduced with minimum cost.
According to the baseboard management controller provided by the invention, after the baseboard management controller is restarted, when the equipment configuration file exists in the baseboard management controller, the connection between the baseboard management controller and each management component transmission protocol equipment can be established directly according to the equipment configuration file.
Fig. 3 is a schematic structural diagram of an electronic device according to the present invention, as shown in fig. 3, the electronic device may include: processor (Processor) 301, communication interface (Communications Interface) 302, memory (Memory) 303 and communication bus 304, wherein Processor 301, communication interface 302, memory 303 accomplish the communication between each other through communication bus 304. The processor 301 may invoke logic instructions in the memory 303 to perform a device management method comprising: after restarting a baseboard management controller, judging whether an equipment configuration file exists in the baseboard management controller, wherein the equipment configuration file is constructed by equipment configuration information of a plurality of management component transmission protocol equipment; if the equipment configuration file exists, establishing connection between the baseboard management controller and each management component transmission protocol equipment according to the equipment configuration file.
Further, the logic instructions in the memory 303 may be implemented in the form of software functional units and stored in a computer readable storage medium when sold or used as a stand alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the device management method provided by the above methods, the method comprising: after restarting a baseboard management controller, judging whether an equipment configuration file exists in the baseboard management controller, wherein the equipment configuration file is constructed by equipment configuration information of a plurality of management component transmission protocol equipment; if the equipment configuration file exists, establishing connection between the baseboard management controller and each management component transmission protocol equipment according to the equipment configuration file.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the device management method provided in the above embodiments, the method comprising: after restarting a baseboard management controller, judging whether an equipment configuration file exists in the baseboard management controller, wherein the equipment configuration file is constructed by equipment configuration information of a plurality of management component transmission protocol equipment; if the equipment configuration file exists, establishing connection between the baseboard management controller and each management component transmission protocol equipment according to the equipment configuration file.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A device management method, comprising:
after restarting a baseboard management controller, judging whether an equipment configuration file exists in the baseboard management controller, wherein the equipment configuration file is constructed by equipment configuration information of a plurality of management component transmission protocol equipment;
if the equipment configuration file exists, establishing connection between the baseboard management controller and each management component transmission protocol equipment according to the equipment configuration file.
2. The device management method according to claim 1, wherein before said determining whether a device profile exists in the baseboard management controller, the method further comprises:
when each management component transmission protocol device is electrified for the first time, establishing connection between the substrate management controller and each management component transmission protocol device, and constructing device configuration information according to physical address information and electronic tag information of each management component transmission protocol device;
saving the equipment configuration information into a target file in the baseboard management controller to obtain the equipment configuration file;
the establishing connection between the baseboard management controller and each management component transmission protocol device according to the device configuration file comprises the following steps:
and establishing connection between the baseboard management controller and each management component transmission protocol device according to the physical address information and the electronic tag information.
3. The device management method according to claim 1, characterized in that the method further comprises:
and if the equipment configuration file does not exist, sending an equipment discovery request through the baseboard management controller so as to establish connection between the baseboard management controller and each management component transmission protocol equipment.
4. The device management method according to claim 1, wherein after said establishing a connection between said baseboard management controller and each of said management component transport protocol devices according to said device profile if said device profile exists, said method further comprises:
transmitting a device discovery request through the baseboard management controller, and determining 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 baseboard management controller transmits the device discovery request;
establishing a connection between the baseboard management controller and the target management component transmission protocol device, updating 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, and establishing the connection between the baseboard management controller and each management component transmission protocol device according to the updated device configuration file after the next restarting of the baseboard management controller.
5. The device management method according to claim 1, wherein after said establishing a connection between said baseboard management controller and each of said management component transport protocol devices according to said device profile if said device profile exists, said method further comprises:
acquiring a plurality of pieces of real-time equipment configuration information based on a preset period, wherein the plurality of pieces of real-time equipment configuration information are equipment configuration information of the management component transmission protocol equipment which is connected with the baseboard management controller currently;
matching a plurality of pieces of equipment configuration information in the equipment configuration file with a plurality of pieces of real-time equipment configuration information, and taking the equipment configuration information which is not successfully matched in the equipment configuration file as restarting equipment configuration information;
and establishing connection between the management component transmission protocol equipment corresponding to the restarting equipment configuration information and the baseboard management controller.
6. The device management method according to claim 1, characterized in that the method further comprises:
when a server where the baseboard management controller is located executes a restarting process, judging whether management component transmission protocol equipment corresponding to a configuration file in the server is consistent with management component transmission protocol equipment corresponding to the equipment configuration file, and if not, deleting the equipment configuration file.
7. A device management apparatus, comprising:
the monitoring module is used for judging whether equipment configuration files exist in the baseboard management controller after the baseboard management controller is restarted, wherein the equipment configuration files are constructed by equipment configuration information of a plurality of management component transmission protocol equipment;
and the processing module is used for establishing connection between the baseboard management controller and each management component transmission protocol device according to the device configuration file if the device configuration file exists.
8. A baseboard management controller comprising the device management apparatus of claim 7.
9. 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 processor implements the device management method according to any of claims 1 to 6 when executing the computer program.
10. A non-transitory computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when executed by a processor, implements the device management method according to any one of claims 1 to 6.
CN202310530533.XA 2023-05-11 2023-05-11 Equipment management method, device and substrate management controller Pending CN116723075A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310530533.XA CN116723075A (en) 2023-05-11 2023-05-11 Equipment management method, device and substrate management controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310530533.XA CN116723075A (en) 2023-05-11 2023-05-11 Equipment management method, device and substrate management controller

Publications (1)

Publication Number Publication Date
CN116723075A true CN116723075A (en) 2023-09-08

Family

ID=87870542

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310530533.XA Pending CN116723075A (en) 2023-05-11 2023-05-11 Equipment management method, device and substrate management controller

Country Status (1)

Country Link
CN (1) CN116723075A (en)

Similar Documents

Publication Publication Date Title
TW201944236A (en) Task processing method, apparatus, and system
US9189349B2 (en) Distributed blade server system, management server and switching method
WO2019100605A1 (en) Platform-as-a-service paas container platform construction method, server, system, and storage medium
CN109976822B (en) Configuration method and device of distributed application and distributed system
CN105589712B (en) BMC module update method and device
CN110830283B (en) Fault detection method, device, equipment and system
CN112506702B (en) Disaster recovery method, device, equipment and storage medium for data center
CN111694707A (en) Small server cluster management system and method
CN115658113A (en) Server self-starting method and device, readable storage medium and electronic equipment
CN114363334B (en) Cloud system, network configuration method, device and equipment of cloud desktop virtual machine
CN110275793B (en) Detection method and equipment for MongoDB data fragment cluster
CN115150419A (en) Configuration and access method and system for hybrid cloud object storage
EP3525400B1 (en) Network service management method and system
JP6421516B2 (en) Server device, redundant server system, information takeover program, and information takeover method
CN111342986A (en) Distributed node management method and device, distributed system and storage medium
CN112948008A (en) Ironic based physical bare computer management method
CN116723075A (en) Equipment management method, device and substrate management controller
RU2710288C1 (en) Method of remote abnormal state reset of racks used in data center
CN113890880A (en) Method, system, equipment and storage medium for data synchronization among multiple nodes
CN114090369A (en) Service instance monitoring method, device and storage medium
CN112787868A (en) Information synchronization method and device
CN110890989A (en) Channel connection method and device
CN113872803A (en) Firmware upgrading method and device
CN109698840B (en) Method and device for detecting DHCP (dynamic host configuration protocol) malicious event
CN116708528B (en) Method and device for monitoring TCP long connection between nodes

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