Bmc network configuration method, apparatus, device, and storage medium

CN116319292BActive Publication Date: 2026-10-23SUGON INFORMATION IND
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211520648.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-29
Publication Date
2026-10-23
Estimated Expiration
2042-11-29

AI Technical Summary

Technical Problem

然而,对BMC网络接入或网络配置需要相关专业工程师人为手动配置

Benefits of technology

[0054]根据本发明的另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现本发明任一实施例所述的BMC网络配置方法。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116319292B_ABST
    Figure CN116319292B_ABST
Patent Text Reader

Abstract

The application discloses a BMC network configuration method and device, equipment and a storage medium. The method comprises the following steps: obtaining interface state information of a to-be-configured baseboard controller (BMC) and a pre-constructed network topology structure; the to-be-configured BMC corresponds to at least one communication network; obtaining an enableable service of the to-be-configured BMC; determining a target service terminal of the enableable service under each communication network according to the network topology structure; generating a configuration execution command between the to-be-configured BMC and the target service terminal according to the interface state information; and performing network configuration on the to-be-configured BMC according to the configuration execution command. The embodiment of the application realizes automatic configuration of the BMC network, and improves network configuration efficiency and configuration accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of computer network technology, and in particular to a BMC network configuration method, apparatus, device, and storage medium. Background Technology

[0002] The BMC (Baseboard Management Controller) is a server-specific management controller that automatically monitors the server's operating status and hardware health. When out-of-band remote access is required, the BMC needs to be connected to the network environment.

[0003] During the process of BMC accessing the network environment, network settings for the BMC need to be configured through the BIOS (Basic Input Output System) or OS (Operating System). Access to the BMC is only permitted after verifying normal communication, allowing for subsequent monitoring deployment and parameter settings. However, BMC network access or configuration requires manual configuration by specialized engineers. When configuring a large number of BMCs, manual setup becomes inefficient, time-consuming, and prone to errors due to human subjectivity. Summary of the Invention

[0004] This invention provides a BMC network configuration method, apparatus, device, and storage medium to achieve automated configuration of BMC networks, thereby improving network configuration efficiency and accuracy.

[0005] According to one aspect of the present invention, a BMC network configuration method is provided, the method comprising:

[0006] Obtain the interface status information and pre-built network topology of the baseboard controller (BMC) to be configured; the BMC to be configured corresponds to at least one communication network;

[0007] Obtain the enableable services for the BMC to be configured;

[0008] Based on the network topology, determine the target service terminals that enable the enableable services under each of the communication networks;

[0009] Based on the interface status information, generate the configuration execution command between the BMC to be configured and the target service terminal;

[0010] Execute commands according to the configuration to perform network configuration on the BMC to be configured.

[0011] Optionally, determining the target service terminal that enables the enableable service under each of the communication networks based on the network topology includes:

[0012] Based on the network topology, at least one candidate service terminal is determined to enable the enableable service under each communication network;

[0013] Determine the communication distance between the BMC to be configured and each of the candidate service terminals under the corresponding communication network;

[0014] Based on the communication distance, the target service terminal that enables the enabled service under each of the communication networks is determined.

[0015] The above technical solution determines the target service terminal by measuring the communication distance between the BMC to be configured and each candidate service terminal, thereby accurately identifying the target service terminal and facilitating the subsequent accurate establishment of a communication connection between the BMC to be configured and the target service terminal.

[0016] Optionally, generating the configuration execution command between the BMC to be configured and the target service terminal based on the interface status of the target service terminal under the corresponding communication network includes:

[0017] Determine the device information of the target service terminal under the corresponding communication network;

[0018] Based on the interface status information and the device information, generate at least one configuration mode between the BMC to be configured and the target service terminal;

[0019] Generate configuration execution instructions corresponding to each of the aforementioned configuration modes.

[0020] The above technical solution improves the accuracy of configuration mode generation by generating configuration modes based on interface status information and device information, thereby improving the accuracy of configuration execution command generation and ultimately improving the network configuration accuracy of the BMC to be configured.

[0021] Optionally, the device information includes address information and network interface information;

[0022] Accordingly, generating at least one configuration mode between the BMC to be configured and the target service terminal based on the interface status information and the device information includes:

[0023] Based on the interface status information, determine the interface status of the network interface corresponding to the target service terminal under the corresponding communication network;

[0024] If the interface is in an enabled state, then at least one configuration mode between the BMC to be configured and the target service terminal is generated based on the address information and network interface information of the target service terminal.

[0025] The above technical solution generates at least one configuration mode between the BMC to be configured and the target service terminal based on the address information and network interface information of the target service terminal, thereby improving the accuracy of configuration mode generation and thus improving the accuracy and efficiency of subsequent network configuration of the BMC to be configured.

[0026] Optionally, the network topology can be constructed in the following way:

[0027] Obtain the network data packets corresponding to at least one BMC interface to be configured in the BMC;

[0028] Packet parsing is performed on each network data packet of each BMC interface to obtain network information of the communication network accessed by each BMC interface; the network information includes at least one network segment address existing under the corresponding network;

[0029] The addresses of each network segment under the corresponding communication network are detected to obtain the service terminals corresponding to each network segment address;

[0030] Establish the network topology between the BMC to be configured and each of the service terminals.

[0031] The above technical solution obtains the network information of the communication network accessed by each BMC interface by parsing each network data packet of each BMC interface, and detects each network segment address under the corresponding communication network to obtain the service terminal corresponding to each network segment address. This achieves accurate construction of the network topology between the BMC to be configured and each service terminal, thereby improving the accuracy of subsequent determination of the target service terminal of the BMC to be configured, and thus improving the accuracy of network configuration of the BMC to be configured.

[0032] Optionally, establishing the network topology between the BMC to be configured and each of the service terminals includes:

[0033] Obtain the Time-to-Live (TTL) information fed back by the communication network accessed by each of the BMC interfaces;

[0034] Based on the TTL information, determine the device association relationship between the BMC to be configured and each service terminal under each communication network;

[0035] Based on the association relationships of each device, a network topology is established between the BMC to be configured and each of the service terminals.

[0036] The above technical solution determines the device association between the BMC to be configured and each service terminal under each communication network based on each TTL information, and establishes the network topology between the BMC to be configured and each service terminal based on each device association. This further improves the accuracy of the construction of the network topology between the BMC to be configured and each service terminal, thereby facilitating the more accurate determination of the target service terminal corresponding to the BMC to be configured.

[0037] Optionally, the interface status information can be determined in the following way:

[0038] Obtain at least one enableable network interface corresponding to the BMC to be configured;

[0039] If the enableable network interface is a dedicated network interface, then determine the access status of the network port corresponding to the dedicated network interface;

[0040] If the enableable network interface is a shared network interface, then at least one network port connected to the shared network interface is determined.

[0041] Based on the configuration mode of the shared network interface, determine the enabling status of each network port under the corresponding configuration mode;

[0042] Generate interface status information including the access status of the network port corresponding to the dedicated network interface and the enable status of each network port corresponding to the shared network interface.

[0043] The above technical solution generates interface status information of the BMC to be configured based on the access status of the network port corresponding to the dedicated network interface and the activation status of each network port corresponding to the shared network interface. This achieves comprehensiveness and richness of the interface status information of the BMC to be configured, improves the accuracy of determining the interface status information, and thus improves the accuracy of generating configuration execution instructions between the BMC to be configured and the target service terminal.

[0044] According to another aspect of the present invention, a BMC network configuration apparatus is provided, characterized in that it comprises:

[0045] The data acquisition module is used to acquire the interface status information and pre-built network topology of the baseboard controller (BMC) to be configured; the BMC to be configured corresponds to at least one communication network.

[0046] The Enabled Services Acquisition module is used to acquire the enableable services of the BMC to be configured.

[0047] The target service terminal determination module is used to determine the target service terminals that enable the enableable service under each of the communication networks based on the network topology.

[0048] The configuration execution command generation module is used to generate configuration execution commands between the BMC to be configured and the target service terminal based on the interface status information.

[0049] The network configuration module is used to execute commands according to the configuration to configure the network of the BMC to be configured.

[0050] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0051] At least one processor; and

[0052] A memory communicatively connected to the at least one processor; wherein,

[0053] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the BMC network configuration method according to any embodiment of the present invention.

[0054] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the BMC network configuration method according to any embodiment of the present invention.

[0055] This invention's embodiment identifies target service terminals with enabled services in each communication network based on the network topology; generates configuration execution commands between the BMC to be configured and the target service terminal based on interface status information; and performs network configuration on the BMC based on the configuration execution commands. This solution automatically generates network configuration execution commands for the BMC to be configured using network topology and interface status information, achieving automated network configuration of the BMC, improving configuration efficiency, and saving human resources. Simultaneously, it avoids the problems of manual configuration being susceptible to subjective human factors and low accuracy due to operator errors, thereby improving the configuration accuracy of the BMC.

[0056] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0057] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0058] Figure 1 This is a flowchart of a BMC network configuration method provided in Embodiment 1 of the present invention;

[0059] Figure 2 This is a flowchart of a BMC network configuration method provided according to Embodiment 2 of the present invention;

[0060] Figure 3A This is a flowchart of a BMC network topology construction method according to Embodiment 3 of the present invention;

[0061] Figure 3B This is a flowchart of a BMC network configuration method provided in Embodiment 3 of the present invention;

[0062] Figure 4 This is a schematic diagram of the structure of a BMC network configuration device according to Embodiment 4 of the present invention;

[0063] Figure 5 This is a schematic diagram of the structure of an electronic device that implements the BMC network configuration method of this invention. Detailed Implementation

[0064] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0065] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0066] Example 1

[0067] Figure 1 This is a flowchart of a BMC network configuration method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations involving automated configuration or access to a BMC network. The method can be executed by a BMC network configuration device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:

[0068] S110. Obtain the interface status information and pre-built network topology of the baseboard controller (BMC) to be configured; the BMC to be configured corresponds to at least one communication network.

[0069] The BMC to be configured can be a BMC that needs to be connected to the network or configured. The interface status information can be the interface status corresponding to the network interface of the BMC to be configured. For example, the interface status can include enabled and disabled states.

[0070] It is understandable that BMC network interfaces are mainly divided into two types: dedicated LANs and shared LANs used by both the BMC and the OS. Accordingly, the interface status information of the BMC to be configured can include the interface status information of both dedicated and shared network interfaces. The interface status information of the BMC to be configured can be predetermined by relevant technical personnel and continuously updated as the interface status changes to ensure that the obtained interface status information of the BMC to be configured is up-to-date.

[0071] The network topology can be a topological model between the BMC to be configured and the various service terminals associated with it in the network environment. The network topology may also include network information related to the network environment in which the BMC to be configured resides. For example, network information may include application services, network segments, and MAC addresses (Media Access Control Addresses) existing in the network.

[0072] It is understood that at least one BMC network interface is deployed on the BMC to be configured, and the communication networks of different network interfaces can be the same or different. At least one application service, network segment, and MAC address can exist in different communication networks. Furthermore, the application services under different communication networks can be the same or different.

[0073] It should be noted that in each communication network of the BMC to be configured, there can be at least one service terminal, and each service terminal can enable at least one application service existing under that communication network. The application services enabled by the service terminals under different communication networks can be the same or different.

[0074] S120. Obtain the enableable services of the BMC to be configured.

[0075] The enableable services can be application services supported by the BMC to be configured and can be enabled; the number of enableable services in the BMC to be configured can be at least one. For example, enableable services can be DHCP (Dynamic Host Configuration Protocol) service, DNS (Domain Name System) service, or hostname service, etc.

[0076] S130. Based on the network topology, determine the target service terminals that can enable services under each communication network.

[0077] It should be noted that, within the corresponding communication network, multiple service terminals may be enabling the same application service. Therefore, within the corresponding communication network, there may be multiple candidate service terminals enabling the available service.

[0078] For example, based on the network topology, at least one service terminal connected to the BMC to be configured can be identified under different communication networks. For any communication network, at least one candidate service terminal with enabled services can be identified among the service terminals communicating with the BMC to be configured under that communication network, and one candidate service terminal can be arbitrarily selected as the target service terminal.

[0079] In one specific embodiment, the communication network connected to the BMC interface of the BMC to be configured includes communication network A and communication network B. In communication network A, among the service terminals, candidate service terminals with enabled services include candidate service terminal a1, candidate service terminal a2, and candidate service terminal a3; in communication network B, among the service terminals, candidate service terminals with enabled services include candidate service terminal b1 and candidate service terminal b2. For communication network A, any one of candidate service terminals a1, a2, and a3 can be selected as the target service terminal for enabling services under communication network A. For example, the target service terminal for communication network A is candidate service terminal a1. For communication network B, any one of candidate service terminals b1 and b2 can be selected as the target service terminal for enabling services under communication network B. For example, the target service terminal for communication network B is candidate service terminal b2.

[0080] S140. Based on the interface status information, generate the configuration execution command between the BMC to be configured and the target service terminal.

[0081] For example, before generating configuration execution commands, it is necessary to determine the enabling status of the BMC network interface corresponding to the communication network to which the target service terminal belongs. If the network interface is enabled, configuration execution commands between the BMC to be configured and the target service terminal are generated; if the network interface is disabled, it means that the target service terminal cannot be successfully enabled, the target service terminal is removed, and no further configuration execution commands will be generated between it and the target service terminal. The configuration execution commands can be commands that the BMC can automatically deploy and execute.

[0082] The process of generating configuration execution instructions can be as follows: If it is determined that the target service terminal can be successfully enabled, determine the interface information of the network interface corresponding to the target service terminal, such as the network segment to which the target service terminal belongs and the IP (Internet Protocol) address of the target service terminal. Based on the interface information, generate configuration execution instructions between the BMC to be configured and the target service terminal.

[0083] S150. Execute commands according to the configuration to perform network configuration on the BMC to be configured.

[0084] For example, the BMC to be configured can automatically deploy the corresponding configuration according to the configuration execution command, so as to realize the adaptive access of the BMC network to be configured.

[0085] It should be noted that after configuring the network for the BMC to be configured, it is also possible to check whether the configured network meets expectations. Specifically, this can involve testing the network connectivity of the BMC to be configured, and based on the test results, determining whether to reconfigure the BMC. Optionally, after the network connectivity of the BMC to be configured is in a normal state, the relevant configuration execution commands and configuration results can be archived, for example, by storing them on a local server or uploading them to a designated server for subsequent analysis.

[0086] This invention's embodiment identifies target service terminals with enabled services in each communication network based on the network topology; generates configuration execution commands between the BMC to be configured and the target service terminal based on interface status information; and performs network configuration on the BMC based on the configuration execution commands. This solution automatically generates network configuration execution commands for the BMC to be configured using network topology and interface status information, achieving automated network configuration of the BMC, improving configuration efficiency, and saving human resources. Simultaneously, it avoids the problems of manual configuration being susceptible to subjective human factors and low accuracy due to operator errors, thereby improving the configuration accuracy of the BMC.

[0087] It should be noted that the network topology of the BMC to be configured can be pre-built by relevant technical personnel. To further ensure the completeness of the network topology construction and the richness of the network information contained in the network topology, the network topology of the BMC to be configured can also be constructed by sniffing the interface of the BMC to be configured, thereby facilitating the accurate configuration and access of the BMC network in the future.

[0088] In one optional embodiment, the network topology is constructed as follows: obtain network data packets corresponding to at least one BMC interface of the BMC to be configured; perform packet parsing on each network data packet of each BMC interface to obtain network information of the communication network accessed by each BMC interface; the network information includes at least one network segment address existing under the corresponding network; probe each network segment address under the corresponding communication network to obtain the service terminal corresponding to each network segment address; and establish the network topology between the BMC to be configured and each service terminal.

[0089] The number of BMC interfaces on the BMC to be configured can be one or more, and the communication networks corresponding to different BMC interfaces can be the same or different. The network data packets corresponding to different communication networks are different.

[0090] The method for capturing network packets on the BMC interface can be passive sniffing. For example, passive sniffing can be performed on each BMC interface to be configured. Passive sniffing can be achieved by enabling promiscuous mode on the BMC interface to capture all network packets flowing through that BMC interface.

[0091] For example, the network data packets corresponding to the obtained BMC interface are parsed to obtain the network information of the communication network accessed by the corresponding BMC interface. This network information may include all application services, network segment addresses, and MAC addresses present in the communication network. After determining the network segment addresses in the corresponding communication network, each network segment address can be actively scanned or probed to obtain the active IP addresses under each network segment address, and the service terminal associated with each IP address can be determined based on the IP address.

[0092] Optionally, after determining the service terminals associated with each communication network, it is also possible to determine at least one application service enabled by each service terminal under the corresponding communication network, and to determine the service attributes and service versions of each enabled application service under the corresponding service terminal. The application services enabled by the service terminal, along with the service attributes and service versions of each application service under the corresponding service terminal, can be attached as association information with the service terminal to the network topology of the BMC to be configured.

[0093] In one specific embodiment, if the BMC to be configured has a BMC interface A, and the communication network connected to BMC interface A has network segment addresses 10.1 and 10.2, then an active scan is performed on network segment addresses 10.1 and 10.2 respectively. For example, the IP addresses 10.1.1, 10.1.2, ..., 10.1.100 under network segment address 10.1 are probed, and the live IP addresses 10.1.1 and 10.1.2 are finally determined. Therefore, the service terminal a associated with IP address 10.1.1 and the service terminal b associated with IP address 10.1.2 are determined respectively. Optionally, at least one application service enabled by service terminal a and service terminal b can also be determined, as well as the service attributes and service version information of each application service under the corresponding service terminal. For example, service terminal a has application services a1 and a2 enabled; service terminal b has application services b1, b2, and b3 enabled.

[0094] For example, after determining the surviving service terminals under each network segment address of the corresponding communication network, a network topology is established between the BMC to be configured and each service terminal. Continuing the example above, the BMC to be configured can establish a network topology between surviving service terminal a and service terminal b under the communication network corresponding to BMC interface A.

[0095] It should be noted that in this embodiment, the communication networks connected to different BMC interfaces of the BMC to be configured can each contain multiple active service terminals, and are not limited to the two service terminals in the example above. Therefore, the number of service terminals with topological relationships to the BMC in the network topology of the BMC to be configured is not limited to the two in the example above.

[0096] This optional embodiment obtains the network information of the communication network accessed by each BMC interface by parsing each network data packet of each BMC interface, and detects each network segment address under the corresponding communication network to obtain the service terminal corresponding to each network segment address. This achieves accurate construction of the network topology between the BMC to be configured and each service terminal, thereby improving the accuracy of subsequent determination of the target service terminal of the BMC to be configured, and thus improving the accuracy of network configuration of the BMC to be configured.

[0097] It should be noted that during the process of establishing the network topology between the BMC to be configured and each service terminal, since the relative positions between the BMC to be configured and each service terminal are different, in order to further improve the accuracy of establishing the network topology between the BMC to be configured and each service terminal, the network topology between the BMC to be configured and each service terminal can also be constructed based on the TTL (Time To Live) information fed back by each communication network.

[0098] In one optional embodiment, establishing the network topology between the BMC to be configured and each service terminal includes: obtaining the Time-to-Live (TTL) information fed back by the communication network accessed by each BMC interface; determining the device association relationship between the BMC to be configured and each service terminal under each communication network based on the TTL information; and establishing the network topology between the BMC to be configured and each service terminal based on the device association relationship.

[0099] Among them, TTL information can represent the communication distance between the BMC to be configured and the service terminal, that is, the number of nodes connected between the BMC to be configured and the service terminal.

[0100] For example, based on TTL information, the device association relationship between the BMC to be configured and the service terminal under the corresponding communication network can be determined. This device association relationship can be the number of nodes connected between the BMC to be configured and the service terminal; for example, the number of nodes could be two, indicating that there are two nodes connecting the BMC to be configured and the service terminal. Communication between the BMC to be configured and the service terminal requires passing through these two nodes. Based on the device association relationship between the BMC to be configured and each service terminal under each communication network, the network topology between the BMC to be configured and each service terminal can be accurately established.

[0101] This optional embodiment determines the device association between the BMC to be configured and each service terminal under each communication network based on each TTL information, and establishes the network topology between the BMC to be configured and each service terminal based on each device association, thereby improving the accuracy of the construction of the network topology between the BMC to be configured and each service terminal, which facilitates the subsequent more accurate determination of the target service terminal corresponding to the BMC to be configured.

[0102] It should be noted that the interface status information of the BMC to be configured can be determined in advance by relevant technical personnel. To further ensure the comprehensiveness of the interface status information of the BMC to be configured, the interface status of the dedicated network interface and the shared network interface of the BMC to be configured can be analyzed and determined in detail separately, so as to achieve the comprehensiveness and richness of the interface status information of the BMC to be configured.

[0103] In an optional embodiment, the interface status information is determined as follows: At least one enableable network interface corresponding to the BMC to be configured is obtained; if the enableable network interface is a dedicated network interface, the access status of the network port corresponding to the dedicated network interface is determined; if the enableable network interface is a shared network interface, at least one network port connected to the shared network interface is determined; based on the configuration mode of the shared network interface, the enable status of each network port under the corresponding configuration mode is determined; and interface status information including the access status of the network port corresponding to the dedicated network interface and the enable status of each network port corresponding to the shared network interface is generated.

[0104] The enableable network interfaces corresponding to the BMC to be configured can include dedicated network interfaces and shared network interfaces. The enableable network interfaces in the BMC to be configured can be obtained by using a pre-set self-test program to retrieve the list of enableable network interfaces and then selecting the enableable network interfaces corresponding to the BMC to be configured from that list. The self-test program can be pre-set or pre-written by relevant technical personnel and is specifically used to automatically detect the enableable network interfaces in the BMC.

[0105] The dedicated network interface is a fixed BMC-exclusive interface on the motherboard, and it can only be connected to one network port. The shared network interface can correspond to at least one network card on the BMC, and each network card can correspond to at least one network port.

[0106] For example, if the enableable network interface is a dedicated network interface, the access status of the corresponding network port can be determined. The access status can be whether the network port is connected to the network. If the enableable network interface is a shared network interface, at least one network interface card (NIC) connected to the shared network interface can be identified, and at least one network port connected to each NIC can be determined. Based on the configuration mode of the shared network interface, the enabling status of each network port under the corresponding configuration mode is determined. The configuration modes include manual configuration mode and automatic configuration mode.

[0107] If the shared network interface is configured in manual configuration mode, it checks whether the actual network port accessing the network is the same as the currently specified network port. If yes, the shared network interface is configured correctly, and the currently specified network port is enabled in an available state. If no, the shared network interface is configured incorrectly, and the currently specified network port is disabled. The currently specified network port can be directly obtained from the relevant configuration parameters of the BMC to be configured.

[0108] If the configuration mode of the shared network interface is automatic configuration mode, the NCSI (Network Connectivity Status Indicator) protocol can be used to detect all network cards and ports corresponding to the shared network interface, mark the network ports connected to the network, and determine that the enabled state of the marked network ports is available; the enabled state of the unmarked network ports is unavailable.

[0109] Generate interface status information, including the access status of the network ports corresponding to the dedicated network interfaces and the activation status of each network port corresponding to the shared network interfaces. Optionally, the interface status information may also include the total number of network cards and network ports corresponding to the shared network interfaces, as well as the number of available network cards and network ports.

[0110] This optional embodiment generates interface status information of the BMC to be configured based on the access status of the network port corresponding to the dedicated network interface and the activation status of each network port corresponding to the shared network interface. This achieves comprehensiveness and richness of the interface status information of the BMC to be configured, improves the accuracy of determining the interface status information, and thus improves the accuracy of generating configuration execution instructions between the BMC to be configured and the target service terminal.

[0111] Example 2

[0112] Figure 2 This is a flowchart of a BMC network configuration method provided in Embodiment 2 of the present invention. This embodiment is an optimization and improvement based on the above technical solutions.

[0113] Furthermore, the step "Based on the network topology, determine the target service terminal for enabling services under each communication network" is refined to "Based on the network topology, determine at least one candidate service terminal for enabling services under each communication network; determine the communication distance between the BMC to be configured and each candidate service terminal under the corresponding communication network; based on the communication distance, determine the target service terminal for enabling services under each communication network." This improves the method for determining the target service terminal.

[0114] Furthermore, the step "generating configuration execution commands between the BMC to be configured and the target service terminal based on the interface status of the target service terminal under the corresponding communication network" is refined to "determining the device information of the target service terminal under the corresponding communication network; generating at least one configuration mode between the BMC to be configured and the target service terminal based on the interface status information and device information; generating configuration execution instructions corresponding to each configuration mode" to improve the generation method of configuration execution instructions.

[0115] like Figure 2 As shown, the method includes the following specific steps:

[0116] S210. Obtain the interface status information and pre-built network topology of the baseboard controller (BMC) to be configured; the BMC to be configured corresponds to at least one communication network.

[0117] S220. Obtain the enableable services of the BMC to be configured.

[0118] S230. Based on the network topology, determine at least one candidate service terminal that can enable services under each communication network.

[0119] It is understandable that at least one service terminal exists under different communication networks, and each service terminal can enable the same or different application services, and the number of enabled application services can be one or more. Therefore, under different communication networks, there can be candidate service terminals that have enabled the available services, and the number of candidate service terminals that have enabled the available services under the corresponding communication network can be one or more.

[0120] For example, based on the network topology, at least one service terminal that is connected to the BMC to be configured can be identified in each communication network; and at least one candidate service terminal that has enabled the service in the corresponding communication network can be selected from the service terminals.

[0121] S240. Determine the communication distance between the BMC to be configured and each candidate service terminal under the corresponding communication network.

[0122] Understandably, within the corresponding communication network, the communication distance between the BMC to be configured and each service terminal varies due to the different number of node devices connected between them. That is, when other node devices are connected between the BMC to be configured and the service terminal, the communication distance is greater than the communication distance between the BMC to be configured and the service terminal when no other node devices are connected. Specifically, the communication distance between the BMC to be configured and each candidate service terminal can be determined through the TTL information fed back by the corresponding communication network.

[0123] For example, based on the TTL information fed back by the corresponding communication network, the communication distance between the BMC to be configured and each candidate service terminal under the corresponding communication network is determined. Optionally, the network topology of the BMC to be configured can be analyzed to determine whether there are other node devices connected between the BMC to be configured and each candidate service terminal, and candidate service terminals connected to other node devices can be eliminated, only determining the communication distance between each candidate service terminal not connected to other node devices and the BMC to be configured.

[0124] S250. Based on the communication distance, determine the target service terminals that can enable services under each communication network.

[0125] For example, the target service terminal can be selected from the candidate service terminals that have the smallest communication distance to the BMC to be configured.

[0126] Optionally, if multiple candidate service terminals with short communication distances to the BMC to be configured exist, and their communication distances are similar, the target service terminal can be selected from these candidate service terminals according to pre-defined selection rules. These selection rules can be pre-defined by relevant technical personnel. For example, the selection rules could involve determining terminal information such as the terminal performance and the number of services enabled by each candidate service terminal with a similar distance, and selecting the target service terminal based on this information. For instance, a candidate service terminal with a larger number of enabled services and better terminal performance could be selected as the target service terminal.

[0127] S260. Determine the device information of the target service terminal under the corresponding communication network.

[0128] The device information may include the target service terminal's terminal address, service port, and corresponding network interface.

[0129] For example, if the pre-built network topology of the BMC to be configured contains device information for each target service terminal, the device information of the target service terminal under the corresponding communication network can be directly obtained from the network topology. If the pre-built network topology of the BMC to be configured does not contain device information for each target service terminal, the target service terminal under the corresponding communication network can be actively probed to obtain the device information of the target service terminal.

[0130] S270. Based on the interface status information and device information, generate at least one configuration mode between the BMC to be configured and the target service terminal.

[0131] For example, based on the interface status information, it can be determined whether a communication connection can be established between the BMC to be configured and the target service terminal. If so, a configuration mode between the BMC to be configured and the target service terminal is generated based on the device information of the target service terminal. The configuration mode can be a configuration method used to establish a communication connection between the BMC to be configured and the target service terminal.

[0132] It should be noted that there may be situations where the BMC to be configured and the target service terminal cannot establish a communication connection. This could be due to reasons such as the interface being unavailable or issues with the target service terminal itself. Therefore, to further improve the accuracy of generating the configuration mode between the BMC to be configured and the target service terminal, the corresponding configuration mode can be generated based on the interface status information, as well as the address and network interface information in the device information.

[0133] In one optional embodiment, the device information includes address information and network interface information; correspondingly, based on the interface status information and the device information, at least one configuration mode between the BMC to be configured and the target service terminal is generated, including: determining the interface status of the network interface corresponding to the target service terminal under the corresponding communication network based on the interface status information; if the interface status is an enableable state, then generating at least one configuration mode between the BMC to be configured and the target service terminal based on the address information and network interface information of the target service terminal.

[0134] The address information can be the IP address of the target service terminal, and the network segment address information to which the IP address of the target service terminal belongs; the network interface information can be the service port of the application service corresponding to the target service terminal, etc.

[0135] For example, based on the interface status information, the interface status of the network interface corresponding to the target service terminal under the corresponding communication network can be determined; if the interface status is enabled, a configuration mode between the BMC to be configured and the target service terminal is generated; if the interface status is disabled, it means that the target service terminal and the BMC to be configured cannot establish a communication connection, and the target service terminal under the corresponding network is removed.

[0136] It should be noted that even if the interface is in an enabled state, there may still be situations where a communication connection cannot be established between the BMC to be configured and the target service terminal, for example, due to reasons on the part of the target service terminal itself.

[0137] For example, if the interface status is enabled, a first configuration mode between the BMC to be configured and the target service terminal is generated based on the address information and network interface information of the target service terminal, and the priority of the first configuration mode is set to the highest priority. That is, when configuring the network of the BMC under test in the future, this configuration mode will be used first. In addition, for cases where the interface status is available but a communication connection may not be established, an IP address is statically configured for the target service terminal, and a second configuration mode is generated based on this static IP address. When the first configuration mode fails to configure successfully, the second configuration mode can be enabled for reconfiguration.

[0138] This optional embodiment determines the interface status of the network interface corresponding to the target service terminal under the corresponding communication network based on the interface status information; if the interface status is enabled, at least one configuration mode between the BMC to be configured and the target service terminal is generated based on the address information and network interface information of the target service terminal, thereby improving the accuracy of configuration mode generation and thus improving the accuracy and efficiency of subsequent network configuration of the BMC to be configured.

[0139] S280. Generate configuration execution instructions corresponding to each configuration mode.

[0140] For example, configuration execution instructions corresponding to the configuration mode can be automatically generated based on a preset instruction generation program, according to the configuration mode. The instruction generation program can be pre-written or pre-configured by relevant technical personnel.

[0141] S290. Execute commands according to the configuration to perform network configuration on the BMC to be configured.

[0142] This embodiment identifies at least one candidate service terminal for enabling the available service in each communication network based on the network topology; determines the communication distance between the BMC to be configured and each candidate service terminal in the corresponding communication network; and determines the target service terminal for enabling the available service in each communication network based on the communication distance. This technical solution, by determining the target service terminal through the communication distance between the BMC to be configured and each candidate service terminal, achieves accurate identification of the target service terminal, thus facilitating the subsequent accurate establishment of a communication connection between the BMC to be configured and the target service terminal. By determining the device information of the target service terminal in the corresponding communication network; generating at least one configuration mode between the BMC to be configured and the target service terminal based on interface status information and device information; and generating configuration execution instructions corresponding to each configuration mode, this technical solution improves the accuracy of configuration mode generation by generating configuration modes based on interface status information and device information, thereby improving the accuracy of configuration execution instruction generation and ultimately improving the network configuration accuracy of the BMC to be configured.

[0143] Example 3

[0144] This embodiment provides a preferred example based on the above embodiments. This preferred embodiment includes two stages: a BMC network topology construction stage and a BMC network configuration stage.

[0145] Figure 3A This is a flowchart of a BMC network topology construction method provided in Embodiment 3 of the present invention. The method includes the following specific steps:

[0146] S301. Obtain the network data packets corresponding to at least one BMC interface of the BMC to be configured.

[0147] S302. Parse each network data packet of each BMC interface to obtain the network information of the communication network accessed by each BMC interface; the network information includes at least one network segment address existing under the corresponding network.

[0148] S303. Probe the addresses of each network segment under the corresponding communication network to obtain the service terminals corresponding to each network segment address.

[0149] S304. Obtain the Time-to-Live (TTL) information fed back by the communication network accessed by each BMC interface.

[0150] S305. Based on the TTL information, determine the device association between the BMC to be configured and each service terminal under each communication network.

[0151] S306. Based on the relationships between the devices, establish the network topology between the BMC to be configured and each service terminal.

[0152] Figure 3B This is a flowchart of a BMC network configuration method provided in Embodiment 3 of the present invention. The method includes the following specific steps:

[0153] S310. Obtain the interface status information and pre-built network topology of the baseboard controller (BMC) to be configured; wherein, the BMC to be configured corresponds to at least one communication network.

[0154] S320: Obtain the enableable services of the BMC to be configured.

[0155] S330. Based on the network topology, determine at least one candidate service terminal that can enable services under each communication network.

[0156] S340. Determine the communication distance between the BMC to be configured and each candidate service terminal under the corresponding communication network.

[0157] S350. Based on the communication distance, determine the target service terminals that can enable services under each communication network.

[0158] S360. Determine the device information of the target service terminal under the corresponding communication network; wherein, the device information includes address information and network interface information.

[0159] S370. Based on the interface status information, determine the interface status of the network interface corresponding to the target service terminal under the corresponding communication network.

[0160] S380. If the interface status is enabled, then generate at least one configuration mode between the BMC to be configured and the target service terminal based on the address information and network interface information of the target service terminal.

[0161] S390. Generate configuration execution instructions corresponding to each configuration mode.

[0162] S3100 executes commands according to the configuration to perform network configuration on the BMC to be configured.

[0163] Example 4

[0164] Figure 4 This is a schematic diagram of a BMC network configuration device provided in Embodiment 4 of the present invention. The BMC network configuration device provided in this embodiment of the present invention is applicable to situations involving automated configuration or access to a BMC network. This BMC network configuration device can be implemented in hardware and / or software, such as… Figure 4 As shown, the device specifically includes: a data acquisition module 401, an enableable service acquisition module 402, a target service terminal determination module 403, a configuration execution instruction generation module 404, and a network configuration module 405. Among them,

[0165] The data acquisition module 401 is used to acquire the interface status information and pre-built network topology of the baseboard controller (BMC) to be configured; the BMC to be configured corresponds to at least one communication network.

[0166] Enableable service acquisition module 402 is used to acquire enableable services of the BMC to be configured;

[0167] The target service terminal determination module 403 is used to determine the target service terminals that enable the enableable service under each of the communication networks according to the network topology.

[0168] The configuration execution command generation module 404 is used to generate configuration execution commands between the BMC to be configured and the target service terminal based on the interface status information.

[0169] The network configuration module 405 is used to execute commands according to the configuration to perform network configuration on the BMC to be configured.

[0170] This invention's embodiment identifies target service terminals with enabled services in each communication network based on the network topology; generates configuration execution commands between the BMC to be configured and the target service terminal based on interface status information; and performs network configuration on the BMC based on the configuration execution commands. This solution automatically generates network configuration execution commands for the BMC to be configured using network topology and interface status information, achieving automated network configuration of the BMC, improving configuration efficiency, and saving human resources. Simultaneously, it avoids the problems of manual configuration being susceptible to subjective human factors and low accuracy due to operator errors, thereby improving the configuration accuracy of the BMC.

[0171] Optionally, the target service terminal determination module 403 includes:

[0172] The candidate service terminal determination unit is used to determine, based on the network topology, at least one candidate service terminal that enables the enableable service under each communication network.

[0173] A communication distance determination unit is used to determine the communication distance between the BMC to be configured and each of the candidate service terminals under the corresponding communication network.

[0174] The target service terminal determination unit is used to determine the target service terminals that enable the enableable service under each of the communication networks based on the communication distance.

[0175] Optionally, the configuration execution instruction generation module 404 includes:

[0176] The device information determination unit is used to determine the device information of the target service terminal under the corresponding communication network.

[0177] A configuration mode generation unit is used to generate at least one configuration mode between the BMC to be configured and the target service terminal based on the interface status information and the device information.

[0178] The configuration execution instruction generation unit is used to generate configuration execution instructions corresponding to each of the configuration modes.

[0179] Optionally, the device information includes address information and network interface information;

[0180] Accordingly, the configuration mode generation unit includes:

[0181] The interface status determination subunit is used to determine the interface status of the network interface corresponding to the target service terminal under the corresponding communication network based on the interface status information.

[0182] The configuration mode generation subunit is used to generate at least one configuration mode between the BMC to be configured and the target service terminal based on the address information and network interface information of the target service terminal if the interface status is enabled.

[0183] Optionally, the device further includes: a topology construction module for constructing a network topology;

[0184] The topology construction module includes:

[0185] The data packet acquisition unit is used to acquire network data packets corresponding to at least one BMC interface to be configured in the BMC;

[0186] The network information determination unit is used to perform packet parsing on each network data packet of each BMC interface to obtain the network information of the communication network accessed by each BMC interface; the network information includes at least one network segment address existing under the corresponding network;

[0187] The service terminal determination unit is used to detect the network segment addresses under the corresponding communication network and obtain the service terminals corresponding to each network segment address.

[0188] The topology construction unit is used to establish the network topology between the BMC to be configured and each of the service terminals.

[0189] Optionally, the topology building unit includes:

[0190] The TTL information acquisition subunit is used to acquire the Time-to-Live (TTL) information fed back by the communication network accessed by each BMC interface.

[0191] The association information determination subunit is used to determine the device association relationship between the BMC to be configured and each service terminal under each communication network based on the TTL information.

[0192] The topology construction subunit is used to establish the network topology between the BMC to be configured and each of the service terminals according to the association relationship of each device.

[0193] Optionally, the device further includes: an interface status information determination module, used to determine interface status configuration information;

[0194] The interface status information determination module includes:

[0195] The network interface acquisition unit is used to acquire at least one enableable network interface corresponding to the BMC to be configured.

[0196] An interface status determination unit is used to determine the access status of the network port corresponding to the dedicated network interface if the enableable network interface is a dedicated network interface.

[0197] A network port determination unit is used to determine at least one network port that is connected to the shared network interface if the enableable network interface is a shared network interface.

[0198] The activation status determination unit is used to determine the activation status of each network port under the corresponding configuration mode according to the configuration mode of the shared network interface.

[0199] The access status determination unit is used to generate interface status information, including the access status of the network port corresponding to the dedicated network interface and the enable status of each network port corresponding to the shared network interface.

[0200] The BMC network configuration device provided in this embodiment of the invention can execute the BMC network configuration method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method execution.

[0201] Example 5

[0202] Figure 5 A schematic diagram of an electronic device 50 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0203] like Figure 5 As shown, the electronic device 50 includes at least one processor 51 and a memory, such as a read-only memory (ROM) 52 and a random access memory (RAM) 53, communicatively connected to the at least one processor 51. The memory stores computer programs executable by the at least one processor. The processor 51 can perform various appropriate actions and processes based on the computer program stored in the ROM 52 or loaded from storage unit 58 into the RAM 53. The RAM 53 can also store various programs and data required for the operation of the electronic device 50. The processor 51, ROM 52, and RAM 53 are interconnected via a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.

[0204] Multiple components in electronic device 50 are connected to I / O interface 55, including: input unit 56, such as keyboard, mouse, etc.; output unit 57, such as various types of monitors, speakers, etc.; storage unit 58, such as disk, optical disk, etc.; and communication unit 59, such as network card, modem, wireless transceiver, etc. Communication unit 59 allows electronic device 50 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0205] Processor 51 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 51 performs the various methods and processes described above, such as the BMC network configuration method.

[0206] In some embodiments, the BMC network configuration method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 58. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 50 via ROM 52 and / or communication unit 59. When the computer program is loaded into RAM 53 and executed by processor 51, one or more steps of the BMC network configuration method described above may be performed. Alternatively, in other embodiments, processor 51 may be configured to execute the BMC network configuration method by any other suitable means (e.g., by means of firmware).

[0207] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0208] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0209] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0210] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0211] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0212] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0213] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0214] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A BMC network configuration method, characterized in that, include: Obtain the interface status information and pre-built network topology of the baseboard controller (BMC) to be configured; the BMC to be configured corresponds to at least one communication network; Obtain the enableable services for the BMC to be configured; Based on the network topology, determine the target service terminals that enable the enableable services under each of the communication networks; Based on the interface status information, generate the configuration execution command between the BMC to be configured and the target service terminal; Execute commands according to the configuration to perform network configuration on the BMC to be configured; The interface status information is determined as follows: Obtain at least one enableable network interface corresponding to the BMC to be configured; If the enableable network interface is a dedicated network interface, then determine the access status of the network port corresponding to the dedicated network interface; If the enableable network interface is a shared network interface, then at least one network port connected to the shared network interface is determined. Based on the configuration mode of the shared network interface, determine the enabling status of each network port under the corresponding configuration mode; Generate interface status information including the access status of the network port corresponding to the dedicated network interface and the enable status of each network port corresponding to the shared network interface.

2. The method according to claim 1, characterized in that, The step of determining the target service terminal that enables the enableable service under each of the communication networks based on the network topology includes: Based on the network topology, at least one candidate service terminal is determined to enable the enableable service under each communication network; Determine the communication distance between the BMC to be configured and each of the candidate service terminals under the corresponding communication network; Based on the communication distance, the target service terminal that enables the enabled service under each of the communication networks is determined.

3. The method according to claim 1, characterized in that, The step of generating the configuration execution command between the BMC to be configured and the target service terminal based on the interface status information includes: Determine the device information of the target service terminal under the corresponding communication network; Based on the interface status information and the device information, generate at least one configuration mode between the BMC to be configured and the target service terminal; Generate configuration execution instructions corresponding to each of the aforementioned configuration modes.

4. The method according to claim 3, characterized in that, The device information includes address information and network interface information; Accordingly, generating at least one configuration mode between the BMC to be configured and the target service terminal based on the interface status information and the device information includes: Based on the interface status information, determine the interface status of the network interface corresponding to the target service terminal under the corresponding communication network; If the interface is in an enabled state, then at least one configuration mode between the BMC to be configured and the target service terminal is generated based on the address information and network interface information of the target service terminal.

5. The method according to any one of claims 1-4, characterized in that, The network topology is constructed as follows: Obtain the network data packets corresponding to at least one BMC interface to be configured in the BMC; Packet parsing is performed on each network data packet of each BMC interface to obtain network information of the communication network accessed by each BMC interface; the network information includes at least one network segment address existing under the corresponding network; The addresses of each network segment under the corresponding communication network are detected to obtain the service terminals corresponding to each network segment address; Establish the network topology between the BMC to be configured and each of the service terminals.

6. The method according to claim 5, characterized in that, The process of establishing the network topology between the BMC to be configured and each of the service terminals includes: Obtain the Time-to-Live (TTL) information fed back by the communication network accessed by each of the BMC interfaces; Based on the TTL information, determine the device association relationship between the BMC to be configured and each service terminal under each communication network; Based on the association relationships of each device, a network topology is established between the BMC to be configured and each of the service terminals.

7. A BMC network configuration device, characterized in that, include: The data acquisition module is used to acquire the interface status information and pre-built network topology of the baseboard controller (BMC) to be configured; the BMC to be configured corresponds to at least one communication network. The Enabled Services Acquisition module is used to acquire the enableable services of the BMC to be configured. The target service terminal determination module is used to determine the target service terminals that enable the enableable service under each of the communication networks based on the network topology. The configuration execution command generation module is used to generate configuration execution commands between the BMC to be configured and the target service terminal based on the interface status information. The network configuration module is used to execute commands according to the configuration to perform network configuration on the BMC to be configured; The device further includes: an interface status information determination module, used to determine interface status configuration information; the interface status information determination module includes: The network interface acquisition unit is used to acquire at least one enableable network interface corresponding to the BMC to be configured. An interface status determination unit is used to determine the access status of the network port corresponding to the dedicated network interface if the enableable network interface is a dedicated network interface. A network port determination unit is used to determine at least one network port that is connected to the shared network interface if the enableable network interface is a shared network interface. The activation status determination unit is used to determine the activation status of each network port under the corresponding configuration mode according to the configuration mode of the shared network interface. The access status determination unit is used to generate interface status information, including the access status of the network port corresponding to the dedicated network interface and the enable status of each network port corresponding to the shared network interface.

8. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the BMC network configuration method according to any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the BMC network configuration method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Server BMC configuration method, terminal equipment and medium

    CN113708957A