IPMI-based BMC address configuration method and related components
Patent Information
- Application Number
- CN202211625012.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-16
- Publication Date
- 2026-10-20
- Estimated Expiration
- 2042-12-16
AI Technical Summary
[0004]现有技术中,若用户使用带外指令为BMC配置地址,由于带外指令的使用前提是明确地址信息,而对于进入静态模式且未手动配置地址信息的阶段,BMC的地址信息则处于未配置状态,用户无法得知该状态下的地址信息;动态模式下的BMC的地址信息由DHCP协议随机提供,用户无法得知该状态下的地址信息,所以无论是静态模式还是动态模式,都会出现用户不明确BMC的地址信息的情况,无法继续下发带外指令,不利于用户远程操作
[0040]本发明提供了一种基于IPMI的BMC地址配置方法及相关组件,当IPMI模式设置指令为静态模式指令时,BMC并不会立刻进入静态模式,用户可以根据原有的地址信息下发地址配置指令,BMC在接收到地址配置指令以确认地址配置指令对应的地址信息后,再进入静态模式,避免因进入静态模式导致BMC的地址信息处于未配置状态、用户不明确地址信息的情况,带外指令可以继续使用,便于远程操控。且无论是静态模式还是动态模式,在地址配置完成后,BMC自行获取地址配置后的地址配置结果,并控制显示模块向用户显示地址配置结果,一方面,当地址配置结果包括配置后的地址信息时,不会出现与交换机失去联系的情况,便于远程操控;另一方面,当地址配置结果包括表征是否成功的信息时,无需人工进行手动查验以确认是否配置成功,节省人力,提高工作效率和准确率。
Smart Images

Figure CN116389412B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of BMC (Browser Control Center), and in particular to a BMC address configuration method and related components based on IPMI. Background Technology
[0002] IPMI (Intelligent Platform Management Interface) is an open standard hardware management interface specification widely used in switches. IPMI controls switches using open-source command-line tools. IPMI control commands are divided into in-band and out-of-band commands: in-band commands are executed directly on the switch, while out-of-band commands are executed via remote control methods such as Linux. A key characteristic of remote operation using out-of-band commands is that the target switch's address information must be explicitly specified.
[0003] In practical applications, the switch responds to IPMI control commands through the BMC (Baseboard Management Controller). The process of configuring the address of the BMC through IPMI is divided into two types: static mode and dynamic DHCP (Dynamic Host Configuration Protocol) mode. In static mode, the operator configures the address of the BMC by manually entering the corresponding command. In dynamic mode, the address of the BMC is automatically configured through the DHCP protocol.
[0004] In existing technologies, if a user configures the BMC address using out-of-band commands, the use of out-of-band commands requires explicit address information. However, in static mode where address information is not manually configured, the BMC's address information is unconfigured, and the user cannot know this information. In dynamic mode, the BMC's address information is randomly provided by the DHCP protocol, and the user cannot know this information either. Therefore, in both static and dynamic modes, the user is often unaware of the BMC's address information, preventing the issuance of out-of-band commands and hindering remote operation. If in-band commands are used to configure the BMC address, in static mode, issuing the configuration command does not guarantee successful configuration; manual verification of the configuration result is required for confirmation and subsequent operations. In dynamic mode, since the address information is randomly provided by the DHCP protocol, manual verification of the configuration result is also necessary to obtain the configured address information. Manual operation is not only time-consuming and labor-intensive, but also introduces unavoidable errors, leading to reduced efficiency and accuracy. Summary of the Invention
[0005] The purpose of this invention is to provide a BMC address configuration method and related components based on IPMI, which facilitates remote control without the need for manual verification to confirm successful configuration, thereby saving manpower and improving work efficiency and accuracy.
[0006] To address the aforementioned technical problems, this invention provides an IPMI-based BMC address configuration method, applied to a BMC, comprising:
[0007] Determine the IPMI mode setting command;
[0008] When the IPMI mode setting instruction is a static mode instruction, upon receiving the address configuration instruction, the BMC is triggered to enter static mode and perform corresponding address configuration according to the address configuration instruction.
[0009] When the IPMI mode setting instruction is a dynamic mode instruction, the BMC is triggered to enter dynamic mode and perform the corresponding address configuration;
[0010] Obtain the address configuration result after address configuration, the address configuration result including the configured address information and / or information indicating whether the configuration was successful;
[0011] The control display module displays the address configuration results.
[0012] Preferably, when the address configuration result includes the configured address information, after obtaining the address configuration result corresponding to the IPMI mode setting instruction, the method further includes:
[0013] Determine if the configured address information is valid;
[0014] If so, proceed to the step of displaying the address configuration result in the control display module.
[0015] Preferably, when the IPMI mode setting instruction is a static mode instruction, determining whether the configured address information is valid includes:
[0016] Determine whether the configured address information is the same as the address information corresponding to the address configuration instruction;
[0017] If they are the same, then the configured address information is deemed valid;
[0018] If they are different, the configured address information is deemed invalid.
[0019] Preferably, when the IPMI mode setting instruction is a dynamic mode instruction, determining whether the configured address information is valid includes:
[0020] Determine whether there is any invalid information in the preset invalid information database that is identical to the configured address information;
[0021] If it exists, the configured address information is deemed invalid;
[0022] If it does not exist, then the configured address information is deemed valid.
[0023] Preferably, the address configuration instructions include IP address configuration instructions, gateway information configuration instructions, and mask information configuration instructions.
[0024] Preferably, the control display module displays the address configuration result, including:
[0025] The address configuration result is transmitted to the display module so that the display module displays the address configuration result.
[0026] Preferably, before the control display module displays the address configuration result, the method further includes:
[0027] Determine whether the address configuration results were collected within a preset time period;
[0028] If so, proceed to the step of controlling the display module to display the address configuration result;
[0029] If not, control the display module to display collection failure information.
[0030] To address the aforementioned technical problems, this invention also provides a BMC address configuration system based on IPMI, comprising:
[0031] The mode determination module is used to determine the IPMI mode setting command;
[0032] The static configuration module is used to trigger the BMC to enter static mode after receiving the address configuration instruction when the IPMI mode setting instruction is a static mode instruction, and to perform corresponding address configuration according to the address configuration instruction.
[0033] The dynamic configuration module is used to trigger the BMC to enter dynamic mode and perform corresponding address configuration when the IPMI mode setting instruction is a dynamic mode instruction;
[0034] The result acquisition module is used to acquire the address configuration result corresponding to the IPMI mode setting instruction. The address configuration result includes the configured address information and / or information indicating whether the success is successful.
[0035] The display module is used to control the display module to display the address configuration results.
[0036] To address the aforementioned technical problems, the present invention also provides a switch, comprising:
[0037] Memory, used to store computer programs;
[0038] BMC is used to implement the steps of the IPMI-based BMC address configuration method as described above when executing the computer program.
[0039] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by the BMC, implements the steps of the IPMI-based BMC address configuration method described above.
[0040] This invention provides a BMC address configuration method and related components based on IPMI. When the IPMI mode setting command is a static mode command, the BMC does not immediately enter static mode. The user can issue an address configuration command based on the existing address information. After receiving the address configuration command and confirming the address information corresponding to the command, the BMC then enters static mode. This avoids situations where the BMC's address information is unconfigured or the user is unclear about the address information due to entering static mode. Out-of-band commands can still be used, facilitating remote control. Furthermore, regardless of whether it is static or dynamic mode, after address configuration is completed, the BMC automatically obtains the address configuration result and controls the display module to display the result to the user. On the one hand, when the address configuration result includes the configured address information, there will be no loss of connection with the switch, facilitating remote control; on the other hand, when the address configuration result includes information indicating success or failure, manual verification is unnecessary, saving manpower and improving work efficiency and accuracy. Attached Figure Description
[0041] To more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the prior art and embodiments will be briefly introduced below. Obviously, the 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.
[0042] Figure 1 A flowchart illustrating a BMC address configuration method based on IPMI provided in an embodiment of the present invention;
[0043] Figure 2 A flowchart of BMC address configuration in dynamic mode based on IPMI provided for embodiments of the present invention;
[0044] Figure 3A flowchart of BMC address configuration in static mode based on IPMI provided for embodiments of the present invention;
[0045] Figure 4 This is a structural diagram of a BMC address configuration system based on IPMI provided in an embodiment of the present invention. Detailed Implementation
[0046] The core of this invention is to provide a BMC address configuration method and related components based on IPMI, which facilitates remote control without the need for manual verification to confirm successful configuration, thus saving manpower and improving work efficiency and accuracy.
[0047] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0048] To help better understand the solutions provided by the embodiments of the present invention, before introducing the methods provided by the embodiments of this application, we will first introduce the application scenarios of the solutions provided by the embodiments of the present invention.
[0049] The switch's BMC (Block Controller) and CPU (Central Processing Unit) share a Console and a single RJ45 interface, but both have independent addresses. The BMC's address configuration mode can be set to static mode or dynamic DHCP mode, automatically obtaining an address via the DHCP protocol.
[0050] BMC is more commonly used in customer scenarios with out-of-band commands. However, when using out-of-band commands for address configuration, whether in static or dynamic mode, the switch will lose connection due to unknown address information. If you need to view the address information or perform further settings and operations, you must connect the switch to a serial port server and configure it through the serial port; or you can connect to the CPU side via SSH (Network Working Group, Secure Shell protocol) to make settings.
[0051] When configuring addresses using in-band commands, each command executes quickly. However, the completion of command execution does not necessarily mean the corresponding settings are actually complete. The `ipmitool lan print 1` command is needed to check if the "Set inProgress" status is "Set Complete". Only when the status changes to "Set Complete" is the command truly complete. In dynamic DHCP mode, we need to wait for the "Complete" command to retrieve the address information. In static mode, we need to wait for each "Set Complete" command before proceeding to the next step; otherwise, the system may display "Set successful" but the actual configuration may fail.
[0052] Please refer to Figure 1 , Figure 1 A flowchart of a BMC address configuration method based on IPMI provided in an embodiment of the present invention, the method being applied to a BMC, including:
[0053] S101: Determine IPMI mode setting command;
[0054] S102: When the IPMI mode setting instruction is a static mode instruction, after receiving the address configuration instruction, the BMC is triggered to enter static mode and perform the corresponding address configuration according to the address configuration instruction;
[0055] S103: When the IPMI mode setting instruction is set to dynamic mode, the BMC is triggered to enter dynamic mode and perform the corresponding address configuration.
[0056] S104: Obtain the address configuration result after address configuration. The address configuration result includes the configured address information and / or information indicating whether the configuration was successful.
[0057] S105: Control the display module to display the address configuration results.
[0058] The IPMI mode setting commands and address configuration commands used in this embodiment are both IPMI commands. Furthermore, this embodiment does not limit the specific form of the IPMI commands; for example, they can be in-band commands or out-of-band commands, and both can be used to achieve normal IPMI command delivery through the method provided in this embodiment. Specifically, in this embodiment, the out-of-band command format is: ipmitool -I lanplus -H <bmcip> -U <username> -P <password>Specific instructions.
[0059] This embodiment does not limit the specific type of address configuration instructions. For example, it may include IP address configuration instructions, gateway information configuration instructions, or mask information configuration instructions. Furthermore, when the address configuration instruction is an IP address configuration instruction, the corresponding configured address information is an IP address; when the address configuration instruction is a gateway information configuration instruction, the corresponding configured address information is gateway information; and when the address configuration instruction is a mask information configuration instruction, the corresponding configured address information is a mask.
[0060] In a specific embodiment, the IPMI command `ipmitool lan set 1 ipsrc dhcp / static` is used to execute the setting mode. When a static mode command is received, the BMC will not immediately enter static mode. At this time, the original address information can still be used to send address configuration commands to the BMC. Only when the address configuration command is received will the BMC be triggered to enter static mode and perform the corresponding address configuration according to the address configuration command. When a dynamic mode command is received, the BMC enters dynamic mode, and the BMC's address information is randomly provided by the DHCP protocol for corresponding address configuration.
[0061] This embodiment does not limit the specific structure of the display module, as long as it can display the address configuration result to the user so that the user can obtain the configured address information and / or information indicating whether the configuration was successful. By displaying the BMC's current address information to the user through the display module, the user can clearly see the BMC's specific IP address, subnet mask information, and gateway information.
[0062] This invention provides a BMC address configuration method and related components based on IPMI. When the IPMI mode setting command is a static mode command, the BMC does not immediately enter static mode. The user can issue an address configuration command based on the existing address information. After receiving the address configuration command and confirming the address information corresponding to the command, the BMC then enters static mode. This avoids situations where the BMC's address information is unconfigured or the user is unclear about the address information due to entering static mode. Out-of-band commands can still be used, facilitating remote control. Furthermore, regardless of whether it is static or dynamic mode, after address configuration is completed, the BMC automatically obtains the address configuration result and controls the display module to display the result to the user. On the one hand, when the address configuration result includes the configured address information, there will be no loss of connection with the switch, facilitating remote control; on the other hand, when the address configuration result includes information indicating success or failure, manual verification is unnecessary, saving manpower and improving work efficiency and accuracy.
[0063] Based on the above embodiments:
[0064] In a preferred embodiment, when the address configuration result includes the configured address information, after obtaining the address configuration result corresponding to the IPMI mode setting instruction, the method further includes:
[0065] Determine if the configured address information is valid;
[0066] If so, proceed to the control display module to display the address configuration results.
[0067] This embodiment does not limit the specific method for determining whether the configured address information is valid. For example, it can be compared with the address information corresponding to the address configuration instruction; if they are different, the configured address information is determined to be invalid. Alternatively, an invalid information database can be established, marking unusable address information and entering it into the database; if the configured address information is the same as invalid information in the database, it is determined to be invalid. Furthermore, invalid information in the invalid information database can include "000.000.0.0", or it can include illegal address information that violates address information rules, or it can be address information that is already in use, or it can be other invalid information.
[0068] This embodiment ensures the validity of the configured address information by automating the verification of the address information, saving manpower and improving the accuracy and efficiency of configuration.
[0069] In a preferred embodiment, when the IPMI mode setting instruction is a static mode instruction, determining whether the configured address information is valid includes:
[0070] Determine whether the configured address information is the same as the address information corresponding to the address configuration command;
[0071] If they are the same, the configured address information is considered valid.
[0072] If they are different, the configured address information is deemed invalid.
[0073] This embodiment provides a method for judging the validity of configured address information in static mode. The method compares the configured address information with the address information corresponding to the address configuration instruction to determine whether the configured address information is valid. This eliminates the need for users to manually verify each item, greatly improving work efficiency.
[0074] In a preferred embodiment, when the IPMI mode setting instruction is a dynamic mode instruction, determining whether the configured address information is valid includes:
[0075] Determine whether there is any invalid information in the preset invalid information database that is identical to the configured address information;
[0076] If it exists, the configured address information is deemed invalid;
[0077] If it does not exist, the configured address information is considered valid.
[0078] This embodiment does not limit the specific type of invalid information in the preset invalid information database. For example, it may include "000.000.0.0", or it may include illegal address information that violates address information rules, or it may be address information that has already been occupied, or it may be other invalid information.
[0079] This embodiment provides a method for judging the validity of configured address information in dynamic mode. The method compares the invalid information in a preset invalid information database with the configured address information to determine whether the configured address information is valid. This eliminates the need for users to manually check and compare, further improving the accuracy and automation efficiency of address configuration.
[0080] In one preferred embodiment, the address configuration instructions include IP address configuration instructions, gateway information configuration instructions, and mask information configuration instructions.
[0081] In a specific embodiment, the IP address configuration command is ipmitool lan set 1 ipaddr XXXX, the gateway information configuration command is ipmitool lan set 1 netmask XXXX, and the mask information configuration command is ipmitool lan set 1 defgw ipaddr XXXX.
[0082] It's important to note that IP addresses have a hierarchical allocation structure, meaning each IP address is divided into a network address and a host address to facilitate IP address addressing. Therefore, a subnet mask doesn't exist alone; it's usually used in conjunction with an IP address. The purpose of a subnet mask is to divide an IP address into its network and host parts. Like IP addresses, subnet masks are 32 bits long, with the network bits on the left represented by binary "1"s and the host bits on the right represented by binary "0". A gateway acts as a "gateway" connecting one network to another; communication between these two networks must go through a gateway.
[0083] This embodiment provides three address configuration instructions to configure the corresponding address information, thereby improving the accuracy of the configuration and expanding the scope of application.
[0084] In one preferred embodiment, the control display module displays the address configuration results, including:
[0085] The address configuration result is transmitted to the display module so that the display module can display the address configuration result.
[0086] This embodiment does not limit the specific content and structure of the display module. For example, it can be an LCD screen, a voice prompt module, or other forms.
[0087] Furthermore, when the address configuration result includes the configured address information, it can be displayed on the screen in a certain format. This format can be text, images, numbers (the meaning of which can be preset), or letters. Of course, any other format can be used to display the configured address information without affecting the implementation of this embodiment. It can also be displayed via voice, specifically by speaking the configured address information. When the address configuration result includes information indicating success or failure, in addition to the above formats, an indicator light can be used. LEDs can be used as indicator lights, but other forms such as diodes can also be used. Preferably, a high-brightness, low-power light should be selected. For example, if the current address configuration is successful, the indicator light can be illuminated. An alarm can also be triggered when the current address configuration is successful: a continuous buzzer sound, other ringing sounds, or any other form of alarm can be used, all without affecting the implementation of this embodiment.
[0088] This embodiment provides prompts to customers or staff through a prompting module, enabling them to more intuitively understand the current address configuration status. This allows staff to quickly control task execution, making the process more intuitive and visual, facilitating staff use, improving user experience, increasing configuration efficiency, and avoiding situations where users are unclear about BMC address information, thus facilitating remote operation.
[0089] In a preferred embodiment, before the control display module displays the address configuration result, the following is also included:
[0090] Determine whether address configuration results were collected within the preset time period;
[0091] If so, proceed to the step of controlling the display module to display the address configuration result;
[0092] If not, the control display module will display a collection failure message.
[0093] This embodiment sets a preset time period, and if the address configuration result is not collected within the preset time period, it is considered as an address configuration result collection failure, thus ensuring the validity of the address information and the efficiency of address configuration.
[0094] Please refer to Figure 2 , Figure 2 A flowchart of BMC address configuration in dynamic mode based on IPMI is provided for embodiments of the present invention:
[0095] When the BMC receives the dynamic DHCP mode setting command, it sends a done signal;
[0096] The done signal triggers the BMC to enter dynamic mode and perform the corresponding address configuration;
[0097] Obtain the IP address, gateway information, and subnet mask information, and check whether the obtained IP address, gateway information, and subnet mask information are valid values;
[0098] If all values are valid, the control display module will display the IP address, gateway information, and subnet mask information.
[0099] Please refer to Figure 3 , Figure 3 A flowchart of BMC address configuration in static mode based on IPMI is provided for embodiments of the present invention:
[0100] When the BMC receives the static mode setting instruction and the address configuration instruction, it sends a done signal. The address configuration instruction includes the IP address configuration instruction, the gateway information configuration instruction, and the mask information configuration instruction.
[0101] The done signal triggers the BMC to enter static mode and configure the corresponding address according to the address configuration instruction;
[0102] Obtain the IP address, gateway information, and subnet mask information, and check whether the obtained IP address, gateway information, and subnet mask information are valid values;
[0103] If all values are valid, the control display module will display the IP address, gateway information, and subnet mask information.
[0104] The done signal mentioned in the above embodiments is sent by the BMC and used as a trigger signal. In dynamic DHCP mode, the BMC sends the done signal as soon as it receives the dynamic DHCP mode setting command. In static mode, the done signal is sent only after all three address configuration commands have been received, so that the BMC can enter static mode and perform the corresponding address configuration.
[0105] Please refer to Figure 4 , Figure 4 A structural diagram of a BMC address configuration system based on IPMI provided in an embodiment of the present invention includes:
[0106] The mode determination module 401 is used to determine the IPMI mode setting command;
[0107] The static configuration module 402 is used to trigger the BMC to enter static mode after receiving the address configuration instruction when the IPMI mode setting instruction is a static mode instruction, and to perform the corresponding address configuration according to the address configuration instruction.
[0108] The dynamic configuration module 403 is used to trigger the BMC to enter dynamic mode and perform corresponding address configuration when the IPMI mode setting instruction is a dynamic mode instruction;
[0109] Result acquisition module 404 is used to acquire the address configuration result corresponding to the IPMI mode setting instruction. The address configuration result includes the configured address information and / or information indicating whether the success is successful.
[0110] Display module 405 is used to control the display module to display the address configuration results.
[0111] Based on the above embodiments:
[0112] As a preferred embodiment, it further includes:
[0113] The validity judgment module is used to determine whether the configured address information is valid. If it is valid, the process will proceed to the control display module to display the address configuration result.
[0114] In a preferred embodiment, when the IPMI mode setting command is a static mode command, the effective determination module includes:
[0115] The static validity judgment module is used to determine whether the configured address information is the same as the address information corresponding to the address configuration instruction;
[0116] The static validity module is used to determine the validity of the configured address information when the configured address information is the same as the address information corresponding to the address configuration instruction.
[0117] The static invalidation module is used to determine that the configured address information is invalid when the configured address information is different from the address information corresponding to the address configuration instruction.
[0118] In a preferred embodiment, when the IPMI mode setting command is a dynamic mode command, the effective determination module includes:
[0119] The dynamic validity judgment module is used to determine whether there is invalid information in the preset invalid information database that is the same as the configured address information;
[0120] The dynamic invalidation module is used to determine that the configured address information is invalid when there is invalid information in the preset invalid information database that is the same as the configured address information.
[0121] The dynamic validity module is used to determine the validity of the configured address information when there is no invalid information in the preset invalid information database that is the same as the configured address information.
[0122] In one preferred embodiment, the display module 405 includes:
[0123] The configuration result display module is used to transmit the address configuration result to the display module so that the display module can display the address configuration result.
[0124] As a preferred embodiment, it further includes:
[0125] The collection and judgment module is used to determine whether address configuration results have been collected within a preset time period;
[0126] The collection failure display module is used to control the display module to display collection failure information when the address configuration result is not collected within a preset time period.
[0127] To address the aforementioned technical problems, the present invention also provides a switch, comprising:
[0128] Memory, used to store computer programs;
[0129] BMC is used to implement the steps of the IPMI-based BMC address configuration method described above when executing computer programs.
[0130] To address the aforementioned technical problems, the present invention also provides a computer-readable storage medium storing a computer program, which, when executed by the BMC, implements the steps of the IPMI-based BMC address configuration method described above.
[0131] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.
[0132] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0133] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.< / password> < / username> < / bmcip>
Claims
1. A BMC address configuration method based on IPMI, characterized in that, Applied to BMC, including: Determine the IPMI mode setting command; When the IPMI mode setting instruction is a static mode instruction, the BMC maintains the original address information before the static mode instruction was issued, and receives the address configuration instruction through the original address information. The address configuration instruction includes an IP address configuration instruction, a gateway information configuration instruction, and a mask information configuration instruction. After the IP address configuration instruction, the gateway information configuration instruction, and the mask information configuration instruction are all received, the BMC issues a done signal. The done signal triggers the BMC to enter static mode and perform corresponding address configuration according to the address configuration instruction. When the IPMI mode setting instruction is a dynamic mode instruction, the BMC issues a done signal, which triggers the BMC to enter dynamic mode and perform corresponding address configuration. Obtain the IP address, gateway information, and subnet mask information, and determine whether the obtained IP address, gateway information, and subnet mask information are valid values; If all values are valid, the control display module displays the IP address, gateway information, and mask information.
2. The BMC address configuration method based on IPMI as described in claim 1, characterized in that, When the IPMI mode setting instruction is a static mode instruction, it is determined whether the obtained IP address, gateway information, and subnet mask information are valid values, including: Determine whether the IP address, the gateway information, and the mask information are the same as the address information corresponding to the address configuration instruction; If they are the same, then the IP address, the gateway information, and the mask information are determined to be valid values; If they are different, then the IP address, the gateway information, and the mask information are determined to be invalid values.
3. The BMC address configuration method based on IPMI as described in claim 1, characterized in that, When the IPMI mode setting instruction is a dynamic mode instruction, it is determined whether the obtained IP address, gateway information, and subnet mask information are valid values, including: Determine whether there is any invalid information in the preset invalid information database that is identical to the IP address, the gateway information, and the mask information; If they exist, then the IP address, the gateway information, and the mask information are determined to be invalid values. If none of them exist, the IP address, the gateway information, and the mask information are determined to be valid values.
4. The BMC address configuration method based on IPMI as described in any one of claims 1 to 3, characterized in that, Before the control display module displays the IP address, the gateway information, and the mask information, the following is also included: Determine whether the IP address, the gateway information, and the mask information have been obtained within a preset time period; If so, proceed to the step of determining whether the IP address, the gateway information, and the mask information are valid values; If not, control the display module to display collection failure information.
5. A BMC address configuration system based on IPMI, characterized in that, include: The mode determination module is used to determine the IPMI mode setting command; The static configuration module is used to maintain the original address information before the static mode instruction was issued when the IPMI mode setting instruction is a static mode instruction, and to receive the address configuration instruction through the original address information. The address configuration instruction includes an IP address configuration instruction, a gateway information configuration instruction, and a mask information configuration instruction. After the IP address configuration instruction, the gateway information configuration instruction, and the mask information configuration instruction are all received, the BMC issues a done signal. The done signal triggers the BMC to enter static mode and perform corresponding address configuration according to the address configuration instruction. The dynamic configuration module is used to trigger the BMC to issue a done signal when the IPMI mode setting instruction is a dynamic mode instruction. The done signal triggers the BMC to enter dynamic mode and perform corresponding address configuration. The result acquisition module is used to obtain the IP address, gateway information, and subnet mask information after the address is configured. The validity determination module is used to detect whether the IP address, the gateway information, and the mask information are valid values; The display control module is used to control the display module to display the IP address, the gateway information, and the mask information when the IP address, the gateway information, and the mask information are all valid values.
6. A switch, characterized in that, include: Memory, used to store computer programs; BMC, used to implement the steps of the IPMI-based BMC address configuration method as described in any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by the BMC, implements the steps of the IPMI-based BMC address configuration method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Method and device for configuring IP address of BMC
CN106657444A
IP configuration method and device, controller and storage medium
CN115102926A