Method and device for identifying substrate management controller

By recording the mapping information between the gateway address and the physical address in the server cluster, monitoring the address mapping construction and extracting the initial gateway address, identifying the substrate management controller, the problem of low identification efficiency in the existing technology is solved, and an accurate and efficient substrate is achieved Management controller identification.

CN119011384APending Publication Date: 2024-11-22SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410799274.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In the prior art, the recognition efficiency of the substrate management controller (BMC) is low, and it is easy to miss IP addresses, resulting in incomplete recognition. The range needs to be re-traversed when the IP addresses change, resulting in low recognition efficiency.

Method used

By recording the mapping information between the gateway address and physical address of the server device on the cluster operation and maintenance equipment, monitoring the construction of address mapping information, extracting the initial gateway address, identifying the device type, and recording the corresponding relationship, forming an initial substrate management controller list , avoid omissions and repeated identification.

Benefits of technology

The recognition efficiency of the substrate management controller is improved, the accuracy and efficiency of the recognition process are ensured, and unnecessary recognition processes are reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119011384A_ABST
    Figure CN119011384A_ABST
Patent Text Reader

Abstract

The invention provides a substrate management controller identification method and device, a server cluster comprises server equipment and cluster operation and maintenance equipment, address mapping information of the server cluster is recorded on the cluster operation and maintenance equipment, and the method comprises the steps of monitoring construction of the address mapping information; extracting an initial gateway address from the address mapping information under the condition of monitoring that the address mapping information is completely constructed; identifying a device type of the server device having the initial gateway address; extracting an initial physical address mapped by the initial gateway address from the address mapping information under the condition that the equipment type of the server equipment with the initial gateway address is identified as a baseboard management controller; and recording the initial gateway address and the initial physical address which have a corresponding relationship to obtain an initial baseboard management controller list of the server cluster. Through the substrate management controller identification method and device, the problem that the identification efficiency of the substrate management controller is low is solved, and the effect of improving the identification efficiency of the substrate management controller is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the computer field, and more specifically, to a method and device for identifying a baseboard management controller. Background Art

[0002] BMC (Baseboard Management Controller) is an out-of-band management subsystem of server equipment. It automatically starts after the server is powered on, provides management services such as server system assets, firmware, power status, etc., and monitors key indicators such as server system power consumption, temperature, fan speed, etc. to facilitate operation and maintenance personnel to confirm server status and troubleshoot. Therefore, it is necessary to clarify which IP (Internet Protocol) addresses in the local area network are the IP addresses of BMCs for operation and maintenance of server clusters. At present, the identification of BMC is achieved by manually selecting an IP address range, traversing all addresses within the IP address range, and confirming whether the device corresponding to each address is a BMC. However, such a solution relies on manual experience for the selection of IP address ranges, and it is easy to miss IP addresses, resulting in the failure to identify all BMCs. In addition, when the IP address of the device changes, it is necessary to re-determine the IP address range and re-traverse all addresses within the IP address range to identify the BMC. The identification efficiency of BMC is not high. Summary of the invention

[0003] The embodiments of the present application provide a method and device for identifying a baseboard management controller, so as to at least solve the problem of low efficiency in identifying a baseboard management controller in the related art.

[0004] According to an embodiment of the present application, a method for identifying a baseboard management controller is provided, wherein a server cluster includes a server device and a cluster operation and maintenance device, and the cluster operation and maintenance device records address mapping information of the server cluster, and the address mapping information is used to implement mapping between a gateway address and a physical address of a server device in the server cluster. The method is applied to the cluster operation and maintenance device, and the method includes:

[0005] Monitoring the construction of the address mapping information;

[0006] When monitoring that the address mapping information is constructed, extracting the initial gateway address from the address mapping information;

[0007] identifying a device type of a server device having the initial gateway address;

[0008] In the case where it is identified that the device type of the server device having the initial gateway address is a baseboard management controller, extracting an initial physical address mapped by the initial gateway address from the address mapping information;

[0009] The initial gateway address and the initial physical address having a corresponding relationship are recorded to obtain an initial baseboard management controller list of the server cluster, wherein the initial baseboard management controller list is used to record server devices belonging to baseboard management controllers in the server cluster.

[0010] In an exemplary embodiment, monitoring the construction of the address mapping information includes:

[0011] Monitoring the address resolution protocol list on the cluster operation and maintenance device, wherein the address mapping information includes the address resolution protocol list, and the address resolution protocol list is used to record the mapping relationship between the Internet Protocol address and the multiple access control protocol address of the server device in the cluster operation and maintenance device;

[0012] In the case of monitoring that the cluster operation and maintenance device starts to build the address resolution protocol list, monitoring whether the identification opportunity has arrived, wherein the identification opportunity is N times the sending period of the address resolution protocol message of the server device in the cluster operation and maintenance device, and N is an integer greater than 1;

[0013] When it is detected that the monitoring identification opportunity has arrived, it is determined that the monitoring address mapping information is completed.

[0014] In an exemplary embodiment, the identifying the device type of the server device having the initial gateway address includes: sending a first remote management control protocol message to the server device having the initial Internet Protocol address, wherein the initial gateway address includes the initial Internet Protocol address, and the first remote management control protocol message is used to request to query the support information of the server device having the initial Internet Protocol address for the intelligent platform management interface; receiving a second remote management control protocol message returned by the server device having the initial Internet Protocol address in response to the first remote management control protocol message, wherein the second remote management control protocol message is used to indicate the support information of the server device having the initial Internet Protocol address for the intelligent platform management interface; in the case where the second remote management control protocol message is used to indicate that the server device having the initial Internet Protocol address supports the intelligent platform management interface, determining that the device type of the server device having the initial Internet Protocol address is identified as a baseboard management controller;

[0015] The extracting the initial physical address mapped by the initial gateway address from the address mapping information comprises: extracting the initial multiple access control protocol address mapped by the initial Internet Protocol address from the address resolution protocol list, and sending an intelligent platform management interface command to the server device having the initial Internet Protocol address, wherein the intelligent platform management interface command is used to instruct to query the field replaceable unit information of the server device having the initial Internet Protocol address; receiving the initial field replaceable unit information returned by the server device having the initial Internet Protocol address in response to the intelligent platform management interface command, wherein the initial field replaceable unit information is used to indicate the device attributes of the server device having the initial Internet Protocol address;

[0016] The recording of the initial gateway address and the initial physical address having a corresponding relationship, and obtaining the initial baseboard management controller list of the server cluster, includes: recording the initial Internet Protocol address, the initial multi-access control protocol address and the initial field replaceable unit information having a corresponding relationship, and obtaining the initial baseboard management controller list of the server cluster.

[0017] In an exemplary embodiment, extracting the initial gateway address from the address mapping information includes:

[0018] Traversing each address resolution protocol entry in the address resolution protocol list;

[0019] An Internet Protocol address is extracted from each address resolution protocol table entry as the initial Internet Protocol address.

[0020] In an exemplary embodiment, after recording the initial gateway address and the initial physical address having a corresponding relationship and obtaining the initial baseboard management controller list of the server cluster, the method further includes:

[0021] Monitoring entry events occurring in the address mapping information;

[0022] In the case where a target entry event occurs in the address mapping information, extracting a target physical address in the target entry where the target entry event occurs from the address mapping information;

[0023] The initial baseboard management controller list is updated according to the target table entry event and the target physical address to obtain a target baseboard management controller list.

[0024] In an exemplary embodiment, the monitoring of entry events occurring in the address mapping information includes at least one of the following:

[0025] Monitoring an aging event of an entry occurring in the address mapping information;

[0026] Monitor the table entry new addition events occurring in the address mapping information.

[0027] In an exemplary embodiment, the updating the initial baseboard management controller list according to the target table entry event and the target physical address to obtain the target baseboard management controller list includes:

[0028] In the case where the target entry event is the entry aging event, searching the target physical address in the initial baseboard management controller list; in the case where the target physical address is found, updating the active state field corresponding to the target physical address from the first field value to the second field value, and obtaining a target baseboard management controller list, wherein the active state field is used to indicate the active state of the corresponding server device in the server cluster, the first field value is used to indicate that the active state of the server device is active, and the second field value is used to indicate that the active state of the server device is inactive;

[0029] In the case where the target table entry event is a new event for the table entry, the target physical address is searched in the initial baseboard management controller list; in the case where the target physical address is found, the gateway address corresponding to the target physical address in the initial baseboard management controller list is updated to the gateway address corresponding to the target table entry event, and the active state field corresponding to the target physical address is set to the first field value; in the case where the target physical address is not found, the target physical address is searched in a non-baseboard management controller list, wherein the non-baseboard management controller list is used to record server devices in the server cluster that belong to non-baseboard management controllers; in the case where the target physical address is not found, the device type of the server device having the target gateway address corresponding to the target physical address is identified; in the case where the device type of the server device having the target gateway address is identified as a baseboard management controller, the target gateway address and the target physical address having a corresponding relationship are added to the initial baseboard management controller list to obtain the target baseboard management controller list.

[0030] According to another embodiment of the present application, a baseboard management controller identification device is provided, wherein a server cluster includes a server device and a cluster operation and maintenance device, and the cluster operation and maintenance device records address mapping information of the server cluster, and the address mapping information is used to implement mapping between a gateway address and a physical address of the server device in the server cluster. The device is applied to the cluster operation and maintenance device, and the device includes:

[0031] A first monitoring module, used to monitor the construction of the address mapping information;

[0032] A first extraction module is used to extract the initial gateway address from the address mapping information when monitoring that the address mapping information is constructed;

[0033] an identification module, used to identify a device type of a server device having the initial gateway address;

[0034] A second extraction module is used to extract the initial physical address mapped by the initial gateway address from the address mapping information when the device type of the server device having the initial gateway address is identified as a baseboard management controller;

[0035] The recording module is used to record the initial gateway address and the initial physical address having a corresponding relationship, and obtain an initial baseboard management controller list of the server cluster, wherein the initial baseboard management controller list is used to record the server devices belonging to the baseboard management controller in the server cluster.

[0036] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0037] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0038] Through the present application, since the cluster operation and maintenance device in the server cluster records the address mapping information used by the server cluster to realize the mapping between the gateway address and the physical address of the server device in the server cluster, by monitoring the construction of the address mapping information, when it is monitored that the construction of the address mapping information is completed, the initial gateway address is extracted from the address mapping information, and the device type of the server device with the initial gateway address is identified. When it is identified that the device type of the server device with the initial gateway address is a baseboard management controller, the initial physical address mapped by the initial gateway address is extracted from the address mapping information, and the initial gateway address and the initial physical address with a corresponding relationship are recorded, so as to obtain the initial baseboard management controller list of the server cluster for recording the server devices belonging to the baseboard management controller in the server cluster, that is, by monitoring the construction of the address mapping information , extracting the initial gateway address from the address mapping information when monitoring the completion of address mapping information construction, being able to accurately determine the range of the gateway address that may correspond to the baseboard management controller, which can avoid missing the baseboard management controller during the identification process and reduce unnecessary identification processes, and then identifying the device type of the server device with the initial gateway address based on the accurate range, extracting the initial physical address mapped by the initial gateway address when identifying that the device type of the server device with the initial gateway address is the baseboard management controller, recording the initial gateway address and the initial physical address with a corresponding relationship in a list of server devices belonging to the baseboard management controller in the server cluster, wherein the list records the initial physical address corresponding to the device that will not change, and can avoid repeated identification of the same device type, therefore, being able to solve the problem of low recognition efficiency of the baseboard management controller, and achieving the effect of improving the recognition efficiency of the baseboard management controller. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a hardware structure block diagram of a server device of a method for identifying a baseboard management controller according to an embodiment of the present application;

[0040] Figure 2 is a flow chart of a method for identifying a baseboard management controller according to an embodiment of the present application;

[0041] Figure 3 is a schematic diagram of generating an ARP list according to an embodiment of the present application;

[0042] Figure 4 is a flowchart of a method for constructing a device list according to an embodiment of the present application;

[0043] Figure 5 is a schematic diagram of a RCMP ASF Ping message format according to an embodiment of the present application;

[0044] Figure 6 is a schematic diagram of an RCMP ASF Pong message format according to an embodiment of the present application;

[0045] Figure 7 is a schematic diagram of a non-BMC device list according to an embodiment of the present application;

[0046] Figure 8 is a schematic diagram of a BMC device list according to an embodiment of the present application;

[0047] Fig. 9 It is a flowchart of a method for updating a device list when a new ARP entry event is added according to an embodiment of the present application;

[0048] Fig.10 It is a structural block diagram of an identification device of a baseboard management controller according to an embodiment of the present application. DETAILED DESCRIPTION

[0049] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0050] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0051] The method embodiments provided in the embodiments of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a baseboard management controller identification method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0052] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the identification method of the baseboard management controller in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0053] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0054] In this embodiment, a method for identifying a baseboard management controller is provided. Figure 2 The present invention is a flowchart of a method for identifying a baseboard management controller according to an embodiment of the present application. The server cluster includes a server device and a cluster operation and maintenance device. The cluster operation and maintenance device records the address mapping information of the server cluster. The address mapping information is used to implement the mapping between the gateway address and the physical address of the server device in the server cluster. The method is applied to the cluster operation and maintenance device, such as Figure 2 As shown, the process includes the following steps:

[0055] Step S202, monitoring the construction of the address mapping information;

[0056] Step S204, when monitoring that the address mapping information is constructed, extracting the initial gateway address from the address mapping information;

[0057] Step S206, identifying the device type of the server device having the initial gateway address;

[0058] Step S208, when it is identified that the device type of the server device having the initial gateway address is a baseboard management controller, extracting the initial physical address mapped by the initial gateway address from the address mapping information;

[0059] Step S210, recording the initial gateway address and the initial physical address having a corresponding relationship, and obtaining an initial baseboard management controller list of the server cluster, wherein the initial baseboard management controller list is used to record server devices belonging to baseboard management controllers in the server cluster.

[0060] Through the above steps, since the cluster operation and maintenance device in the server cluster records the address mapping information used by the server cluster to realize the mapping between the gateway address and the physical address of the server device in the server cluster, by monitoring the construction of the address mapping information, when it is monitored that the construction of the address mapping information is completed, the initial gateway address is extracted from the address mapping information, and the device type of the server device with the initial gateway address is identified. When it is identified that the device type of the server device with the initial gateway address is a baseboard management controller, the initial physical address mapped by the initial gateway address is extracted from the address mapping information, and the initial gateway address and the initial physical address with a corresponding relationship are recorded to obtain the initial baseboard management controller list of the server cluster for recording the server devices belonging to the baseboard management controller in the server cluster, that is, by monitoring the construction of the address mapping information The invention relates to a method for extracting an initial gateway address from the address mapping information when monitoring that the address mapping information is completed, and accurately determining the range of the gateway address that may correspond to the baseboard management controller, thereby avoiding missing the baseboard management controller during the identification process and reducing unnecessary identification processes. The device type of the server device with the initial gateway address is then identified based on the accurate range. When it is identified that the device type of the server device with the initial gateway address is the baseboard management controller, the initial physical address mapped by the initial gateway address is extracted, and the initial gateway address and the initial physical address with a corresponding relationship are recorded in a list of server devices belonging to the baseboard management controller in the server cluster. The list records the initial physical address corresponding to the device that will not change, and avoids repeated identification of the same device type. Therefore, the problem of low identification efficiency of the baseboard management controller can be solved, thereby achieving the effect of improving the identification efficiency of the baseboard management controller.

[0061] Optionally, in an embodiment of the present application, the server cluster includes server devices and cluster operation and maintenance devices, and the server devices include but are not limited to servers, baseboard management controllers, gateways, routers and other devices, and the above multiple devices are all configured with corresponding gateway addresses. The cluster operation and maintenance devices include but are not limited to recording the address mapping information of the server cluster by maintaining an ARP (Address Resolution Protocol) list. Through the recorded address mapping information, the physical address of the device can be queried according to the gateway address of the device, and the physical address of the device can also be queried according to the physical address of the device.

[0062] Optionally, in the embodiment provided in step S202, constructing address mapping information includes but is not limited to periodically sending address information through devices in the server cluster, wherein the address information includes gateway address information and physical address information, receiving and parsing address information sent by devices in the server cluster, and recording the address information of the device in an address mapping information list.

[0063] Optionally, in an embodiment of the present application, monitoring the construction of the address mapping information includes but is not limited to monitoring the construction time of the address mapping information, and when the construction time reaches the target time, it is determined that the monitoring has completed the construction of the address mapping information.

[0064] Optionally, in the embodiment provided in step S204, the initial gateway address includes but is not limited to an Internet Protocol address, ie, an IP address.

[0065] Optionally, in an embodiment of the present application, extracting the initial gateway address from the address mapping information includes but is not limited to traversing the address mapping information of the server cluster to extract the initial gateway address when the number of BMCs in the server cluster is unknown; when the number of BMCs in the server cluster is known, determining whether all BMCs in the server cluster are identified by recording the number of identified BMCs during device identification; if not all BMCs in the server cluster are identified, continuing to extract the initial gateway address from the address mapping information; and stopping the extraction of the initial gateway address when all BMCs in the server cluster are identified.

[0066] Optionally, in the embodiment provided in step S206, the device type of the server device includes but is not limited to BMC or other devices.

[0067] Optionally, in an embodiment of the present application, identifying the device type of the server device having the initial gateway address includes but is not limited to sending an IPMI command to the server device through the initial gateway address, monitoring whether the server device provides feedback to the IPMI command and whether the feedback to the IPMI command is correct. When it is monitored that the server device provides feedback to the IPMI command and the feedback to the IPMI command is correct, it is considered that the device type of the server device with the initial gateway address is a baseboard management controller.

[0068] Optionally, in the embodiment provided in step S208, the initial physical address includes but is not limited to a multiple access control protocol address, ie, a MAC address.

[0069] Optionally, in an embodiment of the present application, extracting the initial physical address mapped by the initial gateway address from the address mapping information includes but is not limited to obtaining a first initial physical address by querying the address mapping information according to the initial gateway address; sending a device information acquisition request to a server device whose device type is a baseboard management controller, receiving device information returned by the server device in response to the device information acquisition request, wherein the device information includes a second initial physical address of the server device; comparing the first initial address and the second initial physical address; in the case where the first initial address and the second initial physical address are the same address, determining the first initial physical address or the second initial physical address as the initial physical address; in the case where the first initial address and the second initial physical address are different addresses, determining the second initial physical address as the initial physical address, updating the address mapping information of the server cluster recorded on the cluster operation and maintenance device, and sending an address mapping error alarm message to the cluster operation and maintenance device. Through the above steps, the erroneous acquisition of the physical address caused by the untimely update of the address mapping information is avoided, and the repeated execution of the identification operation of the baseboard management controller is further avoided, thereby improving the identification efficiency of the baseboard management controller.

[0070] Optionally, in the embodiment provided in step S210, the initial baseboard management controller list of the server cluster includes but is not limited to recording the IP address and MAC address of the determined BMC, and may also record information related to the BMC, such as device serial number, device manufacturer, device name, etc.

[0071] Optionally, in an embodiment of the present application, the initial gateway address and the initial physical address having a corresponding relationship are recorded to obtain the initial baseboard management controller list of the server cluster, including but not limited to recording the initial gateway address, initial physical address and other device information of the server device whose device type is the baseboard management controller into the initial baseboard management controller list.

[0072] As an optional implementation manner, the monitoring the construction of the address mapping information includes:

[0073] Monitoring the address resolution protocol list on the cluster operation and maintenance device, wherein the address mapping information includes the address resolution protocol list, and the address resolution protocol list is used to record the mapping relationship between the Internet Protocol address and the multiple access control protocol address of the server device in the cluster operation and maintenance device;

[0074] In the case of monitoring that the cluster operation and maintenance device starts to build the address resolution protocol list, monitoring whether the identification opportunity has arrived, wherein the identification opportunity is N times the sending period of the address resolution protocol message of the server device in the cluster operation and maintenance device, and N is an integer greater than 1;

[0075] When it is detected that the monitoring identification opportunity has arrived, it is determined that the monitoring address mapping information is completed.

[0076] Optionally, in an embodiment of the present application, including but not limited to determining the sending period of the address resolution protocol message of the server device in the cluster operation and maintenance device as Interval, and determining the aging time of the address resolution protocol list as Timeout, wherein, including but not limited to setting the relationship between the sending period and the aging time to Timeout≥3*Interval, including but not limited to determining that the monitoring identification time has arrived after waiting for an aging period, determining that the monitoring address mapping information is completed, and obtaining the table entry of the address resolution protocol list.

[0077] Through the above steps, whether the monitoring identification opportunity is reached is monitored by monitoring whether the address resolution protocol message of the server device in the cluster operation and maintenance device is sent N times of the period, where N is an integer greater than 1. This ensures that the address resolution protocol message has been sent at least once when the monitoring identification opportunity is determined to have arrived, thereby ensuring that the address information of all devices in the server cluster is recorded on the cluster operation and maintenance device, avoiding the situation of missing BMC during the identification process, and improving the identification efficiency of BMC.

[0078] As an optional implementation, the identifying the device type of the server device having the initial gateway address comprises: sending a first remote management control protocol message to the server device having the initial Internet Protocol address, wherein the initial gateway address includes the initial Internet Protocol address, and the first remote management control protocol message is used to request to query the support information of the server device having the initial Internet Protocol address for the intelligent platform management interface; receiving a second remote management control protocol message returned by the server device having the initial Internet Protocol address in response to the first remote management control protocol message, wherein the second remote management control protocol message is used to indicate the support information of the server device having the initial Internet Protocol address for the intelligent platform management interface; in the case where the second remote management control protocol message is used to indicate that the server device having the initial Internet Protocol address supports the intelligent platform management interface, determining that the device type of the server device having the initial Internet Protocol address is identified as a baseboard management controller;

[0079] The extracting the initial physical address mapped by the initial gateway address from the address mapping information comprises: extracting the initial multiple access control protocol address mapped by the initial Internet Protocol address from the address resolution protocol list, and sending an intelligent platform management interface command to the server device having the initial Internet Protocol address, wherein the intelligent platform management interface command is used to instruct to query the field replaceable unit information of the server device having the initial Internet Protocol address; receiving the initial field replaceable unit information returned by the server device having the initial Internet Protocol address in response to the intelligent platform management interface command, wherein the initial field replaceable unit information is used to indicate the device attributes of the server device having the initial Internet Protocol address;

[0080] The recording of the initial gateway address and the initial physical address having a corresponding relationship, and obtaining the initial baseboard management controller list of the server cluster, includes: recording the initial Internet Protocol address, the initial multi-access control protocol address and the initial field replaceable unit information having a corresponding relationship, and obtaining the initial baseboard management controller list of the server cluster.

[0081] Optionally, in an embodiment of the present application, the first remote management control protocol message includes but is not limited to an RCMPASFPing message, and the second remote management control protocol message includes but is not limited to an RCMP ASF Pong message. By sending an RCMP ASF Ping message to determine the support information of the server device corresponding to the initial gateway address for the intelligent platform management interface, i.e., the lPM l interface, it can be determined whether the server device corresponding to the initial gateway address is a BMC.

[0082] Optionally, in an embodiment of the present application, including but not limited to obtaining field replaceable unit information, i.e., FRU information, of the server device by sending an IPMI command to the server device, obtaining device properties of the server device having an initial Internet Protocol address.

[0083] Optionally, in an embodiment of the present application, including but not limited to, when the server device is preliminarily determined to be a BMC by judging whether the server device supports the IPM1 interface, the device FRU information is obtained by sending an IPM1 command to the server device, and a second round of confirmation of whether the server device is a BMC is completed based on the FRU information. More specifically, the final confirmation of the BMC is completed through the obtained information such as the device product manufacturer, product name, product serial number, etc.

[0084] Through the above steps, by detecting whether the server device with the initial Internet Protocol address supports the intelligent platform management interface, it is determined whether the server device is a BMC, and further more device attribute information of the server device is obtained through the IPM1 command, and the obtained device attribute information and the initial Internet Protocol address and initial multi-access control protocol address of the device are recorded in the initial BMC list. By recording more attribute information of the BMC, it is possible to further determine whether the server device is a BMC while expanding the device information of the BMC that the user can obtain. It is also possible to determine whether the server device corresponding to the newly added initial gateway address is a known BMC through the recorded more device information, thereby reducing repeated identification processes and improving the identification efficiency of the BMC.

[0085] As an optional implementation manner, extracting the initial gateway address from the address mapping information includes:

[0086] Traversing each address resolution protocol entry in the address resolution protocol list;

[0087] An Internet Protocol address is extracted from each address resolution protocol table entry as the initial Internet Protocol address.

[0088] Through the above steps, the initial gateway address is extracted from the address mapping information, which can ensure that all gateway address ranges of server devices in the server cluster are accurately obtained, and the BMC is identified within the accurate address range, which can not only ensure that the server device that is the BMC is not missed, but also reduce unnecessary identification processes and improve the identification efficiency of the BMC.

[0089] As an optional implementation manner, after recording the initial gateway address and the initial physical address having a corresponding relationship and obtaining the initial baseboard management controller list of the server cluster, the method further includes:

[0090] Monitoring entry events occurring in the address mapping information;

[0091] In the case where a target entry event occurs in the address mapping information, extracting a target physical address in the target entry where the target entry event occurs from the address mapping information;

[0092] The initial baseboard management controller list is updated according to the target table entry event and the target physical address to obtain a target baseboard management controller list.

[0093] Optionally, in the embodiment of the present application, the table entry events occurring in the address mapping information include, but are not limited to, the addition of table entries and the reduction of table entries, including, but not limited to, defining the reduction of table entries as an aging event of table entries, and defining the addition of table entries as the time of adding table entries. Including, but not limited to, collecting messages carrying address information sent by a server device according to a preset period, recording the update time of each pair of address mapping information when updating the address mapping information according to the message carrying address information, detecting the update time of all information in the address mapping information, and in the case where it is detected that the update time of any address information lags behind the latest update time in the address mapping information by M preset periods, it is considered that an aging event of the table entry has occurred, where M is an integer greater than 1.

[0094] Through the above steps, the BMC list is updated by monitoring the table entry events occurring in the address mapping information, so that changes in the server cluster can be obtained in time, and the BMC list information is updated in response to the changes in time, thereby ensuring the accuracy of the BMC list information.

[0095] As an optional implementation manner, the monitoring of the table entry events occurring in the address mapping information includes at least one of the following:

[0096] Monitoring an aging event of an entry occurring in the address mapping information;

[0097] Monitor the table entry new addition events occurring in the address mapping information.

[0098] As an optional implementation manner, the updating the initial baseboard management controller list according to the target table entry event and the target physical address to obtain the target baseboard management controller list includes:

[0099] In the case where the target entry event is the entry aging event, searching the target physical address in the initial baseboard management controller list; in the case where the target physical address is found, updating the active state field corresponding to the target physical address from the first field value to the second field value, and obtaining a target baseboard management controller list, wherein the active state field is used to indicate the active state of the corresponding server device in the server cluster, the first field value is used to indicate that the active state of the server device is active, and the second field value is used to indicate that the active state of the server device is inactive;

[0100] In the case where the target table entry event is a new event for the table entry, the target physical address is searched in the initial baseboard management controller list; in the case where the target physical address is found, the gateway address corresponding to the target physical address in the initial baseboard management controller list is updated to the gateway address corresponding to the target table entry event, and the active state field corresponding to the target physical address is set to the first field value; in the case where the target physical address is not found, the target physical address is searched in a non-baseboard management controller list, wherein the non-baseboard management controller list is used to record server devices in the server cluster that belong to non-baseboard management controllers; in the case where the target physical address is not found, the device type of the server device having the target gateway address corresponding to the target physical address is identified; in the case where the device type of the server device having the target gateway address is identified as a baseboard management controller, the target gateway address and the target physical address having a corresponding relationship are added to the initial baseboard management controller list to obtain the target baseboard management controller list.

[0101] Optionally, in the embodiment of the present application, the first field value is set to 1 to indicate that the active state of the server device is active, and the second field value is set to 0 to indicate that the active state of the server device is inactive. When the active state of the server device changes from active to inactive, it includes but is not limited to indicating that the server where the BMC is located is powered off.

[0102] Optionally, in an embodiment of the present application, including but not limited to recording a non-BMC device list while recording a BMC list in the cluster operation and maintenance device, in the event of a new table item addition event, by searching the BMC list and the non-BMC device list for the target physical address of the new table item, it can be determined whether the table item addition event corresponds to a new server device in the server cluster or a change in the gateway address of a server device in the server cluster.

[0103] Through the above steps, when a table entry event occurs, it is first determined whether the table entry event actually involves the addition of a server device in the server cluster based on the physical address corresponding to the server device that will not change. Only when it is determined that the table entry event actually represents a newly added server device, the BMC identification operation is performed on the server device, thereby avoiding repeated execution of the BMC identification process for the same server device and improving the identification efficiency of the BMC.

[0104] As an optional implementation, the embodiment of the present application provides a real-time discovery solution for BMC devices in a local area network, which is used to accurately identify BMC devices from a large number of devices in the local area network and build a BMC device list. In addition, when the server is powered off or the BMC IP address (i.e., gateway address) is changed in the local area network, the BMC device list information can be updated in time to ensure the accuracy of the data in the list. The real-time discovery solution for BMC devices in a local area network involves the following contents:

[0105] (1) Obtain online devices in the local area network;

[0106] Each device in the LAN needs to send free ARP messages to refresh the ARP table entries (i.e., the address mapping information list) of the devices in the LAN, and to notify the operation and maintenance equipment in the same LAN of the online status of the current device. Specifically: Each device in the LAN periodically (this period can be regarded as Interval (i.e., the sending period of the Address Resolution Protocol message)) sends free ARP messages. Periodic ARP messages can be regarded as keep-alive messages. The operation and maintenance equipment can confirm whether the BMC device is active through periodic free ARP messages. Send free ARP messages when the BMC IP changes. When the BMC IP address changes, it is necessary to send ARP messages in time to notify other devices in the LAN to refresh the ARP table entries to ensure the accuracy of the ARP table entries of the operation and maintenance equipment. Figure 3 FIG. 1 is a schematic diagram of generating an ARP list according to an embodiment of the present application. Figure 3 As shown in the figure, by sending free ARP packets, the operation and maintenance equipment can obtain the active BMC devices in the current LAN through the ARP table entries. In order to ensure that the ARP table entries of the operation and maintenance equipment can contain all BMC device information at the same time, the ARP aging time of the operation and maintenance equipment needs to be configured. This time is regarded as Timeout. The relationship between the ARP aging time and the BMC periodic free ARP cycle is: Timeout≧3*Interval.

[0107] (2) Build a list of BMC devices and non-BMC devices;

[0108] After configuring the aging time of the device ARP table entry, wait for an aging cycle (i.e., the identification opportunity arrives) to obtain the ARP table entry of the operation and maintenance device. For each address in the ARP table entry, execute steps S2.1 to S2.3 to implement device identification and BMC device and non-BMC device list construction. Figure 4 FIG. 1 is a flow chart of a method for constructing a device list according to an embodiment of the present application. Figure 4 As shown:

[0109] Step S2.1, sending RCMP ASF Ping message to confirm the device IPMI (Intelligent Platform Management Interface) support status. Figure 5 It is a schematic diagram of a RCMP ASF Ping message format according to an embodiment of the present application. For each ARP table entry, an RCMP ASF Ping message request is sent to obtain the device's support for the IPMI interface. When it is confirmed that the device corresponding to the IP address in the ARP table entry does not support the IPMI interface, the device is added to the non-BMC device list, otherwise the execution continues. After sending the RCMP ASF Ping message (i.e., the first process management control protocol message) to the BMC, the BMC returns a RCMP ASF Pong (i.e., the second process management control protocol message) message. Figure 6 The figure is a schematic diagram of a RCMP ASF Pong message format according to an embodiment of the present application. By parsing the "Supported Entities" field in the RCMP ASF Pong message, it is confirmed whether the peer device supports the IPMI protocol.

[0110] Step S2.2, send IPMI command to obtain device FRU information, complete the second round of filtering according to the FRU information, and finally confirm whether the device is BMC. After confirming that the device supports IPMI interface, send IPMI command to obtain device FRU information, and complete the final confirmation of BMC device according to device product manufacturer, product name, and product serial number. Figure 7 FIG. 1 is a schematic diagram of a non-BMC device list according to an embodiment of the present application. Figure 7 As shown, when it is confirmed that the device is a non-BMC device, the device is added to the non-BMC device list, otherwise the execution continues.

[0111] Step S2.3, construct a BMC list based on the ARP table entry and the device FRU information (i.e., field replaceable unit information). After confirming that the device is a BMC device, add the device to the BMC device list. Figure 8 is a schematic diagram of a BMC device list according to an embodiment of the present application, such as Figure 8As shown, for each BMC device, the device MAC address (ie, physical address), IP address, vendor, product name, serial number, and active status (obtained from the ARP table entry and FRU information) are recorded.

[0112] Through the above steps, you can complete the construction of the BMC device list and non-BMC device list. The BMC device list is all the BMC devices in the current LAN, and the MAC address, IP address and FRU information of each BMC device are obtained.

[0113] (3) Dynamically update the list of BMC devices and non-BMC devices;

[0114] When a server in the LAN is powered off or the BMC IP address is changed, the previously constructed BMC list will be inaccurate. Therefore, after completing the construction of the BMC device list, you need to pay attention to the ARP table aging and update events of the operation and maintenance equipment in real time, and complete the BMC device list update according to different ARP table event, including:

[0115] (1) In response to the ARP table entry aging event, update the BMC active status information in the BMC device list. When an IP address in the ARP table entry ages, it may be that the server where the BMC is located is powered off or the IP address has changed. The BMC device list information is queried based on the MAC of the aged ARP table entry. If it exists, the device corresponding to the ARP table entry is a BMC device, so the BMC device list information is updated and the active status of the device is changed to "inactive".

[0116] (2) Respond to the ARP entry new event and update the BMC device list information. Fig. 9 is a flow chart of a method for updating a device list when a new ARP entry event occurs according to an embodiment of the present application, such as Fig. 9 As shown in the figure, when a new ARP entry is added to the ARP table, the following steps are performed:

[0117] Step S3.1, query the ARP table entry MAC address in the BMC device list to confirm whether it is a BMC device. Query the BMC device list according to the ARP table entry MAC address to confirm whether the device exists. If it exists, it is a BMC device IP address change event, so update the device IP address information in the BMC device list and change the device active status to "active". If it does not exist, continue to execute.

[0118] Step S3.2, query the ARP table entry MAC address in the non-BMC device list to confirm whether it is a known non-BMC device. If it exists, it is a non-BMC device IP address change event, so no processing is performed. If it does not exist, it is a new "online" device, and continue to step S3.3.

[0119] Step S3.3, confirm the type of the new "online" device, and update the BMC device list or non-BMC device list. According to the BMC device confirmation process when building the BMC device list (sending RCMPASF and IPMIFRU acquisition commands), confirm whether the new device is a BMC device. If it is a BMC device, add the device to the BMC device list, otherwise add it to the non-BMC device list.

[0120] Through the above process, by responding to ARP table event, the real-time update of BMC device list and non-BMC device list is realized, which greatly reduces the number of BMC identity confirmations and ensures the accuracy of BMC device list.

[0121] The embodiment of the present application provides a real-time discovery solution for BMC devices in a local area network, which obtains online devices in the current network by sending free ARP entries and collecting ARP entries in the local area network, obtains device FRU information through RCMP ASFPing / Pong messages and IPMI commands, performs device identity confirmation, accurately identifies BMC devices, and uses MAC addresses as the unique identifiers of local area network devices. By building a BMC device list and a non-BMC device list, the secondary confirmation of devices with confirmed identities is reduced, thereby improving the efficiency of device identity confirmation. In general, the embodiment of the present application obtains a list of online devices in the current local area network by collecting ARP entries in the local area network, and by building a BMC device list and a non-BMC device list, it avoids the confirmation of invalid IP addresses and the repeated identity confirmation of the same device, greatly reducing the number of BMC device identity authentications and improving the discovery efficiency. And by responding to ARP entry events, the device list is updated in real time to ensure the accuracy of the BMC device list and the non-BMC device list at any time.

[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0123] In this embodiment, a baseboard management controller identification device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0124] Fig.10 1 is a structural block diagram of an identification device of a baseboard management controller according to an embodiment of the present application, wherein a server cluster includes a server device and a cluster operation and maintenance device, and the cluster operation and maintenance device records the address mapping information of the server cluster, and the address mapping information is used to implement the mapping between the gateway address and the physical address of the server device in the server cluster, and the device is applied to the cluster operation and maintenance device, such as Fig.10 As shown, the device comprises:

[0125] A first monitoring module 1002, used to monitor the construction of the address mapping information;

[0126] A first extraction module 1004 is used to extract the initial gateway address from the address mapping information when monitoring that the address mapping information is constructed;

[0127] Identification module 1006, used to identify the device type 2 of the server device having the initial gateway address

[0128] A second extraction module 1008 is configured to extract an initial physical address mapped by the initial gateway address from the address mapping information when it is identified that the device type of the server device having the initial gateway address is a baseboard management controller;

[0129] The recording module 1010 is used to record the initial gateway address and the initial physical address having a corresponding relationship, and obtain an initial baseboard management controller list of the server cluster, wherein the initial baseboard management controller list is used to record server devices belonging to the baseboard management controller in the server cluster.

[0130] Through the above steps, since the cluster operation and maintenance device in the server cluster records the address mapping information used by the server cluster to realize the mapping between the gateway address and the physical address of the server device in the server cluster, by monitoring the construction of the address mapping information, when it is monitored that the construction of the address mapping information is completed, the initial gateway address is extracted from the address mapping information, and the device type of the server device with the initial gateway address is identified. When it is identified that the device type of the server device with the initial gateway address is a baseboard management controller, the initial physical address mapped by the initial gateway address is extracted from the address mapping information, and the initial gateway address and the initial physical address with a corresponding relationship are recorded to obtain the initial baseboard management controller list of the server cluster for recording the server devices belonging to the baseboard management controller in the server cluster, that is, by monitoring the construction of the address mapping information The invention relates to a method for extracting an initial gateway address from the address mapping information when monitoring that the address mapping information is completed, and accurately determining the range of the gateway address that may correspond to the baseboard management controller, thereby avoiding missing the baseboard management controller during the identification process and reducing unnecessary identification processes. The device type of the server device with the initial gateway address is then identified based on the accurate range. When it is identified that the device type of the server device with the initial gateway address is the baseboard management controller, the initial physical address mapped by the initial gateway address is extracted, and the initial gateway address and the initial physical address with a corresponding relationship are recorded in a list of server devices belonging to the baseboard management controller in the server cluster. The list records the initial physical address corresponding to the device that will not change, and avoids repeated identification of the same device type. Therefore, the problem of low identification efficiency of the baseboard management controller can be solved, thereby achieving the effect of improving the identification efficiency of the baseboard management controller.

[0131] As an optional implementation manner, the first monitoring module includes:

[0132] A first monitoring unit is used to monitor an address resolution protocol list on the cluster operation and maintenance device, wherein the address mapping information includes the address resolution protocol list, and the address resolution protocol list is used to record a mapping relationship between an Internet Protocol address and a multiple access control protocol address of a server device in the cluster operation and maintenance device;

[0133] A second monitoring unit is used to monitor whether an identification opportunity has arrived when monitoring that the cluster operation and maintenance device starts to build the address resolution protocol list, wherein the identification opportunity is N times the sending period of the address resolution protocol message of the server device in the cluster operation and maintenance device, and N is an integer greater than 1;

[0134] The first determining unit is used to determine that the construction of the monitoring address mapping information is completed when it is detected that the monitoring identification opportunity has arrived.

[0135] As an optional implementation, the identification module includes: a first sending unit, used to send a first remote management and control protocol message to a server device having an initial Internet Protocol address, wherein the initial gateway address includes the initial Internet Protocol address, and the first remote management and control protocol message is used to request to query the support information of the server device having the initial Internet Protocol address for the intelligent platform management interface; a first receiving unit, used to receive a second remote management and control protocol message returned by the server device having the initial Internet Protocol address in response to the first remote management and control protocol message, wherein the second remote management and control protocol message is used to indicate the support information of the server device having the initial Internet Protocol address for the intelligent platform management interface; a second determining unit, used to determine that the device type of the server device having the initial Internet Protocol address is a baseboard management controller when the second remote management and control protocol message is used to indicate that the server device having the initial Internet Protocol address supports the intelligent platform management interface;

[0136] As an optional implementation, the second extraction module includes: a second sending unit, used to extract the initial multiple access control protocol address mapped by the initial Internet Protocol address from the address resolution protocol list, and send an intelligent platform management interface command to the server device with the initial Internet Protocol address, wherein the intelligent platform management interface command is used to instruct to query the field replaceable unit information of the server device with the initial Internet Protocol address; a second receiving unit, used to receive the initial field replaceable unit information returned by the server device with the initial Internet Protocol address in response to the intelligent platform management interface command, wherein the initial field replaceable unit information is used to indicate the device attributes of the server device with the initial Internet Protocol address;

[0137] As an optional implementation, the recording module includes: a recording unit, used to record the initial Internet Protocol address, the initial multi-access control protocol address and the initial field replaceable unit information with a corresponding relationship, and obtain the initial baseboard management controller list of the server cluster.

[0138] As an optional implementation manner, the first extraction module includes:

[0139] A search unit, configured to traverse each address resolution protocol entry in the address resolution protocol list;

[0140] The extracting unit is used to extract an Internet Protocol address from each address resolution protocol table entry as the initial Internet Protocol address.

[0141] As an optional implementation manner, the identification device further includes:

[0142] A second monitoring module, used to monitor entry events occurring in the address mapping information;

[0143] A third extraction module is used to extract, from the address mapping information, a target physical address in a target table entry where the target table entry event occurs, when a target table entry event is monitored to occur in the address mapping information;

[0144] An updating module is used to update the initial baseboard management controller list according to the target table entry event and the target physical address to obtain a target baseboard management controller list.

[0145] As an optional implementation manner, the second monitoring module monitors entry events occurring in the address mapping information, including at least one of the following:

[0146] Monitoring an aging event of an entry occurring in the address mapping information;

[0147] Monitor the table entry new addition events occurring in the address mapping information.

[0148] As an optional implementation, the update module includes:

[0149] A first search unit is used to search the target physical address in the initial baseboard management controller list when the target table entry event is the table entry aging event; a first update unit is used to update the active state field corresponding to the target physical address from the first field value to the second field value when the target physical address is found, so as to obtain a target baseboard management controller list, wherein the active state field is used to indicate the active state of the corresponding server device in the server cluster, the first field value is used to indicate that the active state of the server device is active, and the second field value is used to indicate that the active state of the server device is inactive;

[0150] a second search unit, configured to search the target physical address in the initial baseboard management controller list when the target table entry event is a new event for the table entry; a second update unit, configured to update the gateway address corresponding to the target physical address in the initial baseboard management controller list to the gateway address corresponding to the target table entry event when the target physical address is found, and set the active state field corresponding to the target physical address to the first field value; a third search unit, configured to search the target physical address in a non-baseboard management controller list when the target physical address is not found, wherein the non-baseboard management controller list is used to record server devices in the server cluster that belong to non-baseboard management controllers; an identification unit, configured to identify the device type of the server device having the target gateway address corresponding to the target physical address when the target physical address is not found; and an adding unit, configured to add the target gateway address and the target physical address having a corresponding relationship to the initial baseboard management controller list when it is identified that the device type of the server device having the target gateway address is a baseboard management controller, so as to obtain the target baseboard management controller list.

[0151] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0152] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0153] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0154] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0155] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0156] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0157] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0158] An embodiment of the present application also provides a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any one of the above method embodiments.

[0159] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0160] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0161] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for identifying a baseboard management controller, characterized in that: The server cluster includes server devices and cluster operation and maintenance devices. The cluster operation and maintenance devices record address mapping information of the server cluster. The address mapping information is used to implement mapping between gateway addresses and physical addresses of server devices in the server cluster. The method is applied to the cluster operation and maintenance devices. The method includes: Monitoring the construction of the address mapping information; In the case where the address mapping information is monitored to be constructed, extracting the initial gateway address from the address mapping information; identifying the device type of the server device having the initial gateway address; In the case where it is identified that the device type of the server device having the initial gateway address is a baseboard management controller, extracting an initial physical address mapped by the initial gateway address from the address mapping information; The initial gateway address and the initial physical address having a corresponding relationship are recorded to obtain an initial baseboard management controller list of the server cluster, wherein the initial baseboard management controller list is used to record server devices belonging to baseboard management controllers in the server cluster.

2. The method according to claim 1, characterized in that The monitoring of the construction of the address mapping information includes: Monitoring the address resolution protocol list on the cluster operation and maintenance device, wherein the address mapping information includes the address resolution protocol list, and the address resolution protocol list is used to record the mapping relationship between the Internet Protocol address and the multiple access control protocol address of the server device in the cluster operation and maintenance device; In the case of monitoring that the cluster operation and maintenance device starts to build the address resolution protocol list, monitoring whether the identification opportunity has arrived, wherein the identification opportunity is N times the sending period of the address resolution protocol message of the server device in the cluster operation and maintenance device, and N is an integer greater than 1; When it is detected that the monitoring identification opportunity has arrived, it is determined that the monitoring address mapping information is completed.

3. The method according to claim 2, characterized in that The identifying the device type of the server device having the initial gateway address comprises: sending a first remote management control protocol message to the server device having the initial Internet Protocol address, wherein the initial gateway address includes the initial Internet Protocol address, and the first remote management control protocol message is used to request to query the support information of the server device having the initial Internet Protocol address for the intelligent platform management interface; receiving a second remote management control protocol message returned by the server device having the initial Internet Protocol address in response to the first remote management control protocol message, wherein the second remote management control protocol message is used to indicate the support information of the server device having the initial Internet Protocol address for the intelligent platform management interface; in the case where the second remote management control protocol message is used to indicate that the server device having the initial Internet Protocol address supports the intelligent platform management interface, determining that the device type of the server device having the initial Internet Protocol address is identified as a baseboard management controller; The extracting the initial physical address mapped by the initial gateway address from the address mapping information comprises: extracting the initial multiple access control protocol address mapped by the initial Internet Protocol address from the address resolution protocol list, and sending an intelligent platform management interface command to the server device having the initial Internet Protocol address, wherein the intelligent platform management interface command is used to instruct to query the field replaceable unit information of the server device having the initial Internet Protocol address; receiving the initial field replaceable unit information returned by the server device having the initial Internet Protocol address in response to the intelligent platform management interface command, wherein the initial field replaceable unit information is used to indicate the device attributes of the server device having the initial Internet Protocol address; The recording of the initial gateway address and the initial physical address having a corresponding relationship, and obtaining the initial baseboard management controller list of the server cluster, includes: recording the initial Internet Protocol address, the initial multi-access control protocol address and the initial field replaceable unit information having a corresponding relationship, and obtaining the initial baseboard management controller list of the server cluster.

4. The method according to claim 3, characterized in that The extracting the initial gateway address from the address mapping information comprises: Traversing each address resolution protocol entry in the address resolution protocol list; An Internet Protocol address is extracted from each address resolution protocol table entry as the initial Internet Protocol address.

5. The method according to claim 1, characterized in that After recording the initial gateway address and the initial physical address having a corresponding relationship and obtaining the initial baseboard management controller list of the server cluster, the method further includes: Monitoring entry events occurring in the address mapping information; In the case where a target entry event occurs in the address mapping information, extracting a target physical address in the target entry where the target entry event occurs from the address mapping information; The initial baseboard management controller list is updated according to the target table entry event and the target physical address to obtain a target baseboard management controller list.

6. The method according to claim 5, characterized in that The monitoring of the table entry events occurring in the address mapping information includes at least one of the following: Monitoring an aging event of an entry occurring in the address mapping information; Monitor the newly added entry events occurring in the address mapping information.

7. The method according to claim 6, characterized in that The updating of the initial baseboard management controller list according to the target table entry event and the target physical address to obtain a target baseboard management controller list includes: In the case where the target entry event is the entry aging event, searching the target physical address in the initial baseboard management controller list; in the case where the target physical address is found, updating the active state field corresponding to the target physical address from the first field value to the second field value, and obtaining a target baseboard management controller list, wherein the active state field is used to indicate the active state of the corresponding server device in the server cluster, the first field value is used to indicate that the active state of the server device is active, and the second field value is used to indicate that the active state of the server device is inactive; In the case where the target table entry event is a new event for the table entry, the target physical address is searched in the initial baseboard management controller list; in the case where the target physical address is found, the gateway address corresponding to the target physical address in the initial baseboard management controller list is updated to the gateway address corresponding to the target table entry event, and the active state field corresponding to the target physical address is set to the first field value; in the case where the target physical address is not found, the target physical address is searched in a non-baseboard management controller list, wherein the non-baseboard management controller list is used to record server devices in the server cluster that belong to non-baseboard management controllers; in the case where the target physical address is not found, the device type of the server device having the target gateway address corresponding to the target physical address is identified; in the case where the device type of the server device having the target gateway address is identified as a baseboard management controller, the target gateway address and the target physical address having a corresponding relationship are added to the initial baseboard management controller list to obtain the target baseboard management controller list.

8. A baseboard management controller identification device, characterized in that: The server cluster includes server devices and cluster operation and maintenance devices. The cluster operation and maintenance devices record address mapping information of the server cluster. The address mapping information is used to implement mapping between gateway addresses and physical addresses of server devices in the server cluster. The device is applied to the cluster operation and maintenance devices, and includes: A first monitoring module, used to monitor the construction of the address mapping information; A first extraction module is used to extract the initial gateway address from the address mapping information when monitoring that the address mapping information is constructed; an identification module, used to identify a device type of a server device having the initial gateway address; A second extraction module is used to extract the initial physical address mapped by the initial gateway address from the address mapping information when the device type of the server device having the initial gateway address is identified as a baseboard management controller; The recording module is used to record the initial gateway address and the initial physical address having a corresponding relationship, and obtain an initial baseboard management controller list of the server cluster, wherein the initial baseboard management controller list is used to record the server devices belonging to the baseboard management controller in the server cluster.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Address configuration method and device, storage medium and program product

    CN119383170A

  • Metadata processing method, computer equipment, readable storage medium and program product

    CN120029830A

  • Metadata Processing Method, Computer Device, Readable Storage Medium and Program Product

    CN120029830B