BMC IP feature information acquisition method, electronic equipment, storage medium and program product

By determining whether the user operation meets the preset conditions on the BMC server and obtaining and managing BMC IP characteristic information, the problem of low efficiency in BMC IP characteristic information management in the prior art is solved, and the effect of efficiently managing BMC IP characteristic information without restarting the server is achieved.

CN119583618APending Publication Date: 2025-03-07AGRICULTURAL BANK OF CHINA
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411687230.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

In the prior art, the BMC IP characteristic information management is inefficient, which leads to the loss of BMC IP characteristic information during remote monitoring or control, which requires restart of the BMC, resulting in business interruption and inefficient management.

Method used

By determining whether the user's operation meets the preset conditions, obtain the BMC IP characteristic information when the conditions are met, and decide whether to directly send or broadcast the BMC IP characteristic information based on whether the IP address of the target server is stored, so as to realize the re-acquisition of the information without restarting the server.

Benefits of technology

It avoids business interruptions caused by server restart, improves the efficiency of BMC IP characteristic information management, and ensures the stability of timely acquisition and management of information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583618A_ABST
    Figure CN119583618A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a BMC IP feature information acquisition method, electronic equipment, a storage medium and a program product, and is applied to the technical field of communication. The method is applied to a baseboard management controller (BMC) server, and comprises the following steps: judging whether the operation of a user meets a preset condition or not; when the operation of the user meets a preset condition, acquiring IP (Internet Protocol) feature information of a BMC (Baseboard Management Controller); if the IP address of the target server is stored, sending the BMC IP feature information to the target server based on the IP address of the target server; and if the IP address of the target server is not stored, broadcasting the BMC IP feature information, so that the target server obtains the BMC IP feature information. The method is used for achieving the effect of improving the BMC IP feature information management efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method for acquiring BMC IP feature information, an electronic device, a storage medium, and a program product. Background Art

[0002] With the development of cloud computing and virtualization technology, the scale of data centers continues to expand, including a large number of physical servers, and the physical locations of multiple data centers are dispersed. Therefore, the management of each server in the data center has become the core of data center operation and maintenance.

[0003] In the prior art, in order to manage the physical server, it is necessary to obtain the network address of the physical server. Due to the uncertainty of the computer system, the BMC that exists independently of the computer system and hardware has become the main choice for controlling the target server. When remote monitoring and control are performed based on the BMC, it is necessary to obtain the IP feature information corresponding to each BMC. The management method of the IP feature information corresponding to the BMC is mainly static IP address allocation and dynamic IP address generation. If the IP feature information corresponding to the BMC is lost during remote monitoring or control, the BMC needs to be restarted to obtain the IP feature information.

[0004] Therefore, the prior art has the problem of low efficiency in managing IP feature information of the BMC. Summary of the invention

[0005] The embodiments of the present application provide a method for acquiring BMC IP feature information, an electronic device, a storage medium, and a program product, so as to achieve the effect of improving the management efficiency of BMC IP feature information.

[0006] In a first aspect, an embodiment of the present application provides a method for obtaining BMC IP feature information, which is applied to a BMC server and includes:

[0007] Determine whether the user's operation meets the preset conditions;

[0008] When the user's operation meets the preset conditions, obtain BMC IP feature information;

[0009] If the IP address of the target server is stored, the BMC IP feature information is sent to the target server based on the IP address of the target server;

[0010] If the IP address of the target server is not stored, the BMC IP characteristic information is broadcasted so that the target server acquires the BMC IP characteristic information.

[0011] In a possible implementation, the BMC server includes a physical button UID, and the preset condition includes that the number of times the UID is clicked reaches a preset number within a preset time period.

[0012] In a possible implementation, the BMC server further includes a complex programmable logic device CPLD, a short press count calculation register, and a timer, and determines whether the user's operation meets a preset condition, including:

[0013] When the UID is clicked, it sends a short-press signal to the CPLD;

[0014] If the timer is not started, the CPLD controls the timer to start according to the short-press signal and obtains the accumulated time obtained by timing;

[0015] According to the short-press signal, the CPLD controls the short-press count register to count and obtain the cumulative number of short-presses;

[0016] When the accumulated duration does not exceed the preset duration and the accumulated number of short presses is not less than the preset number of times, it is determined that the user's operation meets the preset condition;

[0017] When the accumulated duration exceeds the preset duration, or the accumulated number of short presses is less than the preset number, it is determined that the user's operation does not meet the preset condition.

[0018] In a possible implementation, the BMC server further includes a message sending status register and a microcontroller BMC, and the method further includes:

[0019] When it is determined that the user's operation meets the preset condition, the CPLD sets the value of the message sending status register to a first value;

[0020] When it is determined that the user's operation does not meet the preset condition, the CPLD sets the value of the message sending status register to a second value;

[0021] Accordingly, when the user's operation meets the preset conditions, the BMC IP feature information is obtained, including:

[0022] The BMC periodically polls the value of the message sending status register, and when the value of the message sending status register is polled to be the first value, obtains the BMC IP characteristic information.

[0023] In a possible implementation, the method further includes:

[0024] When the accumulated time exceeds the preset time, or the accumulated number of short presses is less than the preset number, the timer will be reset.

[0025] In a possible implementation manner, after acquiring the BMC IP feature information, the method further includes:

[0026] Encapsulate BMC IP feature information to generate BMC IP message;

[0027] Correspondingly, if the IP address of the target server is stored, the BMC IP feature information is sent to the target server based on the IP address of the target server, including:

[0028] If the IP address of the target server is stored, the BMC IP message is sent to the target server based on the IP address of the target server;

[0029] Correspondingly, if the IP address of the target server is not stored, the BMC IP characteristic information is broadcast, including:

[0030] If the IP address of the target server is not stored, the BMC IP message is broadcast.

[0031] In a second aspect, an embodiment of the present application provides a BMC IP feature information acquisition device, which is applied to a BMC server, and the method includes:

[0032] The first processing module is used to determine whether the user's operation meets the preset conditions;

[0033] The acquisition module is used to obtain BMC IP feature information when the user's operation meets the preset conditions;

[0034] A second processing module is used to send the BMC IP feature information to the target server based on the IP address of the target server when the IP address of the target server is stored;

[0035] The third processing module is used to broadcast the BMC IP characteristic information when the IP address of the target server is not stored, so that the target server obtains the BMC IP characteristic information.

[0036] In a possible implementation, the BMC server includes a physical button UID, and the preset condition includes that the number of times the UID is clicked reaches a preset number within a preset time period.

[0037] In a possible implementation manner, the BMC server further includes a complex programmable logic device CPLD, a short press count calculation register, and a timer, and the first processing module is further configured to:

[0038] When the UID is clicked, a short press signal is sent to the CPLD;

[0039] If the timer is not started, the CPLD controls the timer to start according to the short-press signal and obtains the accumulated time obtained by timing;

[0040] According to the short-press signal, the CPLD controls the short-press count register to count and obtain the cumulative number of short-presses;

[0041] When the accumulated duration does not exceed the preset duration and the accumulated number of short presses is not less than the preset number of times, it is determined that the user's operation meets the preset condition;

[0042] When the accumulated duration exceeds the preset duration, or the accumulated number of short presses is less than the preset number, it is determined that the user's operation does not meet the preset condition.

[0043] In a possible implementation, the BMC server further includes a message sending status register and a microcontroller BMC, and the device further includes a control module, and the control module is used to:

[0044] When it is determined that the user's operation meets the preset condition, setting the value of the message sending status register to a first value;

[0045] When it is determined that the user's operation does not meet the preset condition, setting the value of the message sending status register to a second value;

[0046] Correspondingly, the acquisition module is also used to:

[0047] When the value of the message sending status register polled by the BMC is the first value, the BMC IP characteristic information is acquired.

[0048] In a possible implementation manner, the control module is further configured to:

[0049] When the accumulated time exceeds the preset time, or the accumulated number of short presses is less than the preset number, the timer will be reset.

[0050] In a possible implementation manner, after acquiring the BMC IP feature information, the acquisition module is further configured to:

[0051] Encapsulate BMC IP feature information to generate BMC IP message;

[0052] Accordingly, the second processing module is also used for:

[0053] When the IP address of the target server is stored, the BMC IP message is sent to the target server based on the IP address of the target server;

[0054] Accordingly, the third processing module is also used for:

[0055] The BMC IP message is broadcasted without storing the IP address of the target server.

[0056] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;

[0057] Memory stores computer-executable instructions;

[0058] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementations of the first aspect.

[0059] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the first aspect above and / or various possible implementations of the first aspect.

[0060] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect and / or various possible implementation methods of the first aspect.

[0061] The BMC IP feature information acquisition method, device, storage medium and program product provided in the embodiments of the present application determine whether the user's operation meets the preset conditions. When it is determined that the user's operation meets the preset conditions, the BMC IP feature information corresponding to the current BMC server is acquired; at the same time, according to whether the IP address of the target server is stored in the current BMC server, it is determined whether to send the BMC IP feature information directly to the target server or to send the BMC IP feature information in the form of a broadcast. Compared with the prior art, when it is necessary to re-acquire the BMC IP feature information, the present application does not need to restart the BMC server, but directly issues an instruction to resend the BMC IP information through the user's triggering behavior, thereby realizing the re-acquisition of the BMC IP information. The business interruption caused by the server restart is avoided, and the technical effect of improving the efficiency of BMC IP feature information management is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0063] Figure 1 Schematic diagram of the process of obtaining BMC IP feature information provided by this application Figure 1 ;

[0064] Figure 2 Schematic diagram of the BMC IP feature information transmission process provided for this application;

[0065] Figure 3 A schematic diagram of a CPLD capturing a short press signal provided in an embodiment of the present application;

[0066] Figure 4 Schematic diagram of the process of obtaining BMC IP feature information provided by this application Figure 2 ;

[0067] Figure 5 A schematic diagram of the structure of the BMC IP feature information acquisition device provided by this application;

[0068] Figure 6 A schematic diagram of the structure of the electronic device provided in this application.

[0069] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0070] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0071] First, the terms involved in this application are explained:

[0072] Baseboard Management Controller (BMC): A microcontroller in server hardware that manages and monitors the system. It provides remote management capabilities for the system, including power control, hardware monitoring, and fault diagnosis.

[0073] Complex Programmable Logic Device (CPLD): A programmable logic device used to implement digital circuits. It consists of multiple configurable logic blocks that can be programmed to implement specific logic functions.

[0074] Internet Protocol (IP): IP is the main protocol used to transmit data in the network. It is responsible for transmitting data packets from the source address to the destination address. The IP protocol defines the format of IP addresses and the structure of data packets, and is the basis of Internet communication.

[0075] Dynamic Host Configuration Protocol (DHCP): DHCP is a network management protocol used to automatically assign IP addresses and other network configuration parameters (such as subnet masks, gateways, and DNS servers) to devices on a network.

[0076] User Datagram Protocol (UDP): is a simple transport layer protocol that provides connectionless data transmission services. It does not guarantee the order and integrity of data packets, but has low latency and overhead and is suitable for real-time applications such as video streaming and online games.

[0077] Transmission Control Protocol (TCP): is a reliable transport layer protocol that provides connection-oriented data transmission services. It ensures that data packets arrive in order and provides error detection and retransmission mechanisms. TCP is widely used in applications that require reliable transmission, such as web browsing and email.

[0078] Intelligent Platform Management Interface (IPMI): is a standard interface for hardware management systems that allows system administrators to remotely monitor, manage, and maintain servers and other devices. It provides a way to monitor hardware status, temperature, fan speed, and other information independently of the main processor, as well as perform diagnostics and reboot operations over a remote connection. IPMI also supports remote system power control, which can help administrators effectively manage a large number of servers and devices and improve system reliability and stability.

[0079] In the prior art, in order to achieve the management of multiple physical servers, it is necessary to achieve remote monitoring or control of multiple servers. Due to the uncertainty of computer systems, there are disconnections and data leakage in the remote monitoring or control method based on computer systems. In order to avoid the instability of computer systems, the prior art implements remote connection and control of physical servers based on more stable BMC IP feature information. Based on the IP feature information assigned when the BMC is started or the IP feature information dynamically assigned by the server, the server where the BMC is located is remotely managed, thereby achieving management and control of the server.

[0080] However, when the BMC IP characteristic information of the server is used for server management, there is still a situation where the IP characteristic information is missing. At this time, it is necessary to re-acquire the BMC IP characteristic information of the server. The method of re-acquiring the BMC IP characteristic information in the prior art is mainly to restart the server corresponding to the BMC, reconfigure the static BMC IP characteristic information or re-acquire the dynamic BMC IP characteristic information. At this time, the running server needs to perform a restart operation, and the business running on the server needs to be interrupted. At the same time, the process from the server restarting to the issuance of the new BMC IP characteristic information is related to the startup efficiency of the server itself, which leads to the lengthening of the timeline for obtaining the new BMC IP characteristic information, thereby causing the technical problem of low management efficiency of the BMC IP characteristic information.

[0081] In view of the above technical problems, the present application proposes the following technical concept: In the prior art, the method of obtaining BMC IP feature information by restarting the server leads to the problem of low efficiency in BMC IP feature information management. Therefore, it is possible to consider re-acquiring BMC IP feature information without triggering server restart. Specifically, the trigger condition is set to determine whether the current user's operation meets the preset condition, and when the condition is met, the BMC IP feature information corresponding to the BMC server is sent to the target server for receiving. Among them, the preset condition needs to be combined with the user operation on the BMC server, a specific physical button is set as a trigger button, and the short press signal emitted by the physical button is used as one of the trigger conditions. The number of short press signals and the interval duration of the short press signal are combined to determine whether the current user's operation meets the preset condition, so as to determine the need to re-acquire BMC IP feature information without restarting the server. Combined with the information of the target server stored in the BMC server, the newly acquired BMC IP address information is sent to the target server for receiving and management in the form of IP address transmission or broadcast transmission, thereby achieving the technical effect of improving the efficiency of BMC IP feature information management.

[0082] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0083] Figure 1 Schematic diagram of the process of obtaining BMC IP feature information provided by this application Figure 1 .like Figure 1 As shown, the method includes:

[0084] S101: Determine whether the user's operation meets a preset condition.

[0085] It should be noted that the method for obtaining BMC IP characteristic information provided in this embodiment is applied to a BMC server.

[0086] In this step, the preset condition refers to the number of times the UID is clicked within a preset time length reaching a preset number. Among them, UID refers to a physical button in the BMC server. The BMC server also includes: CPLD, timer, and short press count calculation register. Among them, CPLD refers to the complex programmable logic device in the BMC server, which is used to receive the short press signal sent by the UID, and calculate the short press timer and short press count register based on the short press signal.

[0087] Optionally, a possible implementation method of determining whether the user's operation meets the preset condition is:

[0088] S1011. When UID is clicked, a short press signal is sent to CPLD.

[0089] In this step, the connection method between UID and CPLD is: the output pin of UID is connected to the input pin of CPLD.

[0090] Exemplarily, the implementation method of the UID sending the short press signal to the CPLD may be:

[0091] a1. Initialize and configure the input mode of the UID and the timer corresponding to the UID; the timer is used to calculate the duration of the UID click.

[0092] a2. When it is detected that the UID is pressed, the timer is started.

[0093] a3. When UID is kept pressed, the timer continues counting.

[0094] a4. If the UID is released, read the value of the timer.

[0095] a5. According to the value calculated by the timer, determine whether it is less than the preset long press threshold. If so, it indicates that the current UID click operation is a short press operation. Otherwise, it indicates that the current UID click operation is a long press operation.

[0096] a6. When the click operation of the UID is determined to be a short press, a short press signal is sent to the CPLD based on the output pin of the UID.

[0097] S1012: If the timer is not started, the CPLD controls the timer to start according to the short-press signal, and obtains the accumulated time obtained by timing.

[0098] It should be noted that after the timer is started, before COLD receives the next short press signal, CPLD can also detect whether the accumulated time of the timer exceeds the preset time. When it is determined that the accumulated time exceeds, the timer is cleared and the short press count register is reset at the same time. This is to avoid the situation where the timer counts consistently when only one click is made.

[0099] S1013. The CPLD controls the short press count register to count according to the short press signal, and obtains the cumulative number of short presses.

[0100] In this step, after the CPLD receives the first short press signal, it will continuously control the short press count calculation register to accumulate according to the subsequently received short press signals.

[0101] Exemplarily, the CPLD receives a short press signal sent by the UID, and the value of the short press count calculation register is the default value 0; the CPLD controls the short press count register to start calculating the short press count, and the value of the short press count calculation register is 1; after the CPLD receives the next short press signal, it controls the short press count calculation register to accumulate, and the obtained value is 2; and so on. When the timer duration does not exceed the preset duration, the short press count calculation register remains in the accumulation state.

[0102] S1014: When the accumulated duration does not exceed the preset duration and the accumulated number of short presses is not less than the preset number of times, it is determined that the user's operation meets the preset condition.

[0103] Exemplarily, the preset duration is set to 3 seconds and the preset number is set to 2 times; when the cumulative duration does not exceed 3 seconds and the cumulative number of short presses within the cumulative duration is not less than 2 times, it indicates that the click behavior of the current UID meets the preset conditions.

[0104] S1015: When the accumulated duration exceeds the preset duration, or the accumulated number of short presses is less than the preset number, it is determined that the user's operation does not meet the preset condition.

[0105] In this step, the situation where the preset condition is not met is mainly that the interval between consecutive clicks of the UID is long.

[0106] For example, when the preset duration is 3 seconds and the preset number is 3 times; if after the first short press, the interval exceeds 3 seconds and the second short press is still not triggered, it can be determined that the cumulative duration exceeds the preset duration; if there are only two short presses within 3 seconds, it indicates that the cumulative number of short presses is lower than the preset number.

[0107] It should be noted that when the accumulated duration exceeds the preset duration, or the accumulated number of short presses is less than the preset number, the timer needs to be reset.

[0108] S102: When the user's operation meets a preset condition, obtain BMC IP feature information.

[0109] It should be noted that the BMC server also includes: a message sending status register and a BMC, wherein the BMC refers to a microcontroller for implementing message sending.

[0110] In this step, when it is determined that the user's operation meets the preset conditions, it is also necessary to shield the UID to prevent the CPLD from receiving the short press signal sent by the physical button UID; at the same time, it is necessary to set the signal that the BMC can read so that the BMC can obtain the BMC IP feature information. Specifically:

[0111] S1021. When it is determined that the user's operation meets a preset condition, the CPLD sets the value of the message sending status register to a first value.

[0112] Exemplarily, when the user's operation meets the preset condition, the CPLD sets the value of the message sending status register to 1; when the user's operation does not meet the preset condition, the CPLD sets the value of the message sending status register to 0.

[0113] S1022: When it is determined that the user operation does not meet the preset condition, the CPLD sets the value of the message sending status register to a second value.

[0114] Optionally, when the user operation meets the preset condition, obtaining the BMC IP characteristic information may specifically be:

[0115] The BMC periodically polls the value of the message sending status register, and when the value of the message sending status register is polled to be the first value, obtains the BMC IP characteristic information.

[0116] Among them, BMC IP feature information includes: IP address, subnet mask, default gateway, MAC address, DHCP setting, VLAN ID, IPMI version, network port and security settings. Among them, IP address refers to the Wang Luoping address of BMC, which is used to identify and access BMC in the network; subnet mask is used to determine the IP address of the network part and the BMC server part; default gateway is used to route the network traffic corresponding to BMC to other networks; MAC address refers to the physical address of BMC, which is used to identify the unique network interface in Ethernet; DHCP setting indicates whether BMC uses dynamic host configuration protocol to automatically obtain network configuration; VLAN ID identifies the VLAN ID that BMC may need to configure if a virtual LAN is used for correct communication; IPMI version refers to the IPMI version supported by BMC; network port refers to the port number used by BMC; security setting refers to whether BMC enables or disables encrypted communication, user authentication and access list control. It should be noted that these IP feature information enable BMC to communicate and manage operations in the network, supporting remote monitoring, troubleshooting and system management.

[0117] Optionally, after the BMC IP characteristic information is obtained, the BMC IP characteristic information needs to be further processed, specifically: the BMC IP characteristic information is encapsulated to generate a BMC IP message.

[0118] Exemplarily, the method of generating the BMC IP message may be:

[0119] S1023: Determine that the communication protocol of the BMC is IPMI, and use a corresponding data format.

[0120] S1024: Construct an IPMI message header and data field based on the BMC IP feature information.

[0121] S1025: Encapsulate the BMC IP characteristic information in the form of fields or commands, and generate a corresponding BMC IP message.

[0122] S103: If the IP address of the target server is stored, the BMC IP feature information is sent to the target server based on the IP address of the target server.

[0123] Optionally, a possible implementation of sending the BMC IP characteristic information to the target server in this step is:

[0124] When the IP address of the target server is stored in the BMC server, the BMC IP message is sent to the target server based on the IP address of the target server.

[0125] Exemplarily, the BMC may send a BMC IP message to the target server in the following manner:

[0126] S1031. Obtain the current network configuration of the BMC server and check whether the IP address of the target server exists.

[0127] In this step, the method of checking whether the IP address exists can be: parsing a local configuration file, using a network command, or implementing it through an API call.

[0128] S1032: If the IP address of the target server exists, use the UDP or TCP protocol to send the encapsulated BMC IP message to the IP address and the designated port of the target server.

[0129] S104: If the IP address of the target server is not stored, broadcast the BMC IP characteristic information so that the target server obtains the BMC IP characteristic information.

[0130] Optionally, a possible implementation of broadcasting the BMC IP characteristic information in this step is:

[0131] If the IP address of the target server is not stored, the BMC IP message is broadcast.

[0132] Exemplarily, if the IP address of the target server does not exist, the BMC IP message is sent using a broadcast address, wherein the broadcast address may be the last address of the subnet to which the BMC communication belongs.

[0133] It should be noted that after the message is sent, the CPLD removes the shielding of the UID and resets the short press count register and the message sending status register; at the same time, the target server for receiving needs to parse the BMC IP message to obtain the IP feature information that can remotely manage the BMC server.

[0134] The BMC IP characteristic information acquisition method provided in the embodiment of the present application determines whether the user's operation meets the preset conditions. When it is determined that the user's operation meets the preset conditions, the BMC IP characteristic information corresponding to the current BMC server is acquired; at the same time, according to whether the IP address of the target server is stored in the current BMC server, it is determined whether to send the BMC IP characteristic information directly to the target server or to send the BMC IP characteristic information in the form of broadcast. Compared with the prior art, when it is necessary to re-acquire the BMC IP characteristic information, the present application does not need to restart the BMC server, but directly issues an instruction to resend the BMC IP information through the user's triggering behavior, thereby realizing the re-acquisition of the BMC IP information. The business interruption caused by the server restart is avoided, and the technical effect of improving the efficiency of BMC IP characteristic information management is achieved.

[0135] On the basis of the above embodiments, in combination with a BMC server and a target server corresponding to the BMC server, the present application proposes a schematic diagram of a transmission process of BMC feature information. Figure 2 The BMC IP feature information transmission process diagram provided for this application is as follows: Figure 2 As shown in the figure, the transmission process of BMC IP characteristic information includes:

[0136] A1. The user manually triggers the physical button of the BMC server. The physical button and CPLD are connected through physical pins. The physical button generates a signal based on the user's triggering behavior and sends it to the CPLD of the BMC server.

[0137] A2. The CPLD receives the signal sent by the physical button. The CPLD recognizes that the signal sent by the physical button triggers the condition for sending the BMC IP characteristic information. The CPLD refreshes the register used to determine whether to send the BMC IP characteristic information. Figure 1 The message sending status register in the illustrated embodiment.

[0138] A3. When the value of the message sending status register obtained by BMC polling is 1, the BMC IP characteristic information in the BMC server is encapsulated, and the encapsulated message is sent to the target server; after sending, the BMC resets the message sending status register.

[0139] A4. The target server for receiving the BMC IP characteristic information, when receiving the BMC IP message, parses and extracts the information in the message to obtain the IP characteristic information corresponding to the BMC server.

[0140] exist Figure 1 and Figure 2 Based on the illustrated embodiment, the present application also provides a schematic diagram of a CPLD receiving a physical key signal. Figure 3 A schematic diagram of a CPLD capturing a short press signal provided in an embodiment of the present application. Assuming that the signal sent by the physical button to the CPLD when it is short pressed is a high-level signal, and when the short press is not triggered, it stably outputs a low level or no output to the CPLD, the CPLD will regard the level change of the rising edge as a short press signal. The preset duration in the preset conditions is 3 seconds, and the preset number of times is 2 times; if Figure 3 As shown, if there are two rising edge level changes within 3 seconds, it indicates that the user's physical operation meets the preset conditions.

[0141] Based on the above embodiment, this embodiment further explains in detail how to obtain BMC IP feature information. Figure 4 Schematic diagram of the process of obtaining BMC IP feature information provided by this application Figure 2 ,like Figure 4 As shown, the method includes:

[0142] B1. Initialize the parameters, set the value of the short press count register to 0, and set the value of the message sending status register to 0.

[0143] B2. The user clicks UID.

[0144] B3, short press count calculation register starts accumulating the number of short press signals based on the UID.

[0145] B4. Determine whether the cumulative number is 1.

[0146] B5. When the cumulative number reaches 1, start the timer and begin timing.

[0147] B6. Determine whether the accumulated duration of the timer exceeds the preset duration.

[0148] B7. When the accumulated time exceeds the preset time, reset the timer and the short press count register; when the accumulated time does not exceed the preset time, wait for the next UID click operation.

[0149] B8. When the accumulated number of times in B4 is not 1, determine whether the accumulated duration of the timer exceeds the preset duration.

[0150] B9. When the accumulated duration in B7 exceeds the preset duration, reset the timer and jump to step B1 to initialize the parameters.

[0151] B10. When the accumulated duration in B7 does not exceed the preset duration, the message sending status register is set to 1, the physical button UID is shielded, and the timer is reset.

[0152] B11. The BMC polls and finds that the value of the message sending status register is 1, and collects BMC IP feature information from the BMC server.

[0153] B12. Determine whether the IP address of the target server exists in the BMC server.

[0154] B13. When the IP address of the target server does not exist, the BMC encapsulates the BMC IP characteristic information into a BMC IP message and broadcasts it.

[0155] B14. When the IP address of the target server exists, the BMC encapsulates the BMC IP characteristic information into a BMCIP message and sends it to the target server through the IP address.

[0156] B15. After the message is sent, the CPLD removes the shielding of the UID and resets the short press count register and the message sending status register.

[0157] B16. The target server at the receiving end receives the message, parses the message and extracts information.

[0158] In this embodiment, the CPLD in the BMC server is used to receive the short press signal of the physical button, and based on the number of short press signals and the interval between consecutive short press signals, it is determined whether the user's click operation is valid; thereby the initial BMC encapsulates and sends the IP feature information. Without restarting the physical server, the BMC IP feature information is resent, thereby achieving the technical effect of improving the efficiency of BMC IP feature information management.

[0159] Figure 5 The schematic diagram of the structure of the BMC IP feature information acquisition device provided by this application is as follows: Figure 5 As shown, the BMC IP feature information acquisition device 50 provided in this embodiment includes:

[0160] The first processing module 501 is used to determine whether the user's operation meets the preset conditions;

[0161] The acquisition module is used to obtain BMC IP feature information when the user's operation meets the preset conditions;

[0162] The second processing module 502 is used to send the BMC IP feature information to the target server based on the IP address of the target server when the IP address of the target server is stored;

[0163] The third processing module 503 is used to broadcast the BMC IP characteristic information when the IP address of the target server is not stored, so that the target server obtains the BMC IP characteristic information.

[0164] In a possible implementation, the BMC server includes a physical button UID, and the preset condition includes that the number of times the UID is clicked reaches a preset number within a preset time period.

[0165] In a possible implementation, the BMC server further includes a complex programmable logic device CPLD, a short press count calculation register, and a timer, and the first processing module 501 is further configured to:

[0166] When the UID is clicked, a short press signal is sent to the CPLD;

[0167] If the timer is not started, the CPLD controls the timer to start according to the short-press signal and obtains the accumulated time obtained by timing;

[0168] According to the short-press signal, the CPLD controls the short-press count register to count and obtain the cumulative number of short-presses;

[0169] When the accumulated duration does not exceed the preset duration and the accumulated number of short presses is not less than the preset number of times, it is determined that the user's operation meets the preset condition;

[0170] When the accumulated duration exceeds the preset duration, or the accumulated number of short presses is less than the preset number, it is determined that the user's operation does not meet the preset condition.

[0171] In a possible implementation, the BMC server further includes a message sending status register and a microcontroller BMC. The device further includes a control module 504. The control module 504 is used to:

[0172] When it is determined that the user's operation meets the preset condition, setting the value of the message sending status register to a first value;

[0173] When it is determined that the user's operation does not meet the preset condition, setting the value of the message sending status register to a second value;

[0174] Correspondingly, the acquisition module is also used to:

[0175] When the value of the message sending status register polled by the BMC is the first value, the BMC IP characteristic information is acquired.

[0176] In a possible implementation, the control module 504 is further configured to:

[0177] When the accumulated time exceeds the preset time, or the accumulated number of short presses is less than the preset number, the timer will be reset.

[0178] In a possible implementation, after acquiring the BMC IP feature information, the acquisition module is further configured to:

[0179] Encapsulate BMC IP feature information to generate BMC IP message;

[0180] Accordingly, the second processing module 502 is further used for:

[0181] When the IP address of the target server is stored, the BMC IP message is sent to the target server based on the IP address of the target server;

[0182] Accordingly, the third processing module 503 is further used for:

[0183] The BMC IP message is broadcasted without storing the IP address of the target server.

[0184] The (device subject) provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be described in detail here.

[0185] Figure 6 This is a schematic diagram of the structure of the electronic device provided in this application. Figure 6 As shown, the electronic device 60 provided in this embodiment includes: at least one processor 601 and a memory 602. Optionally, the device 60 also includes a communication component 603. The processor 601, the memory 602 and the communication component 603 are connected via a bus 604.

[0186] In a specific implementation process, at least one processor 601 executes the computer execution instructions stored in the memory 602, so that at least one processor 601 executes the above method.

[0187] The specific implementation process of the processor 601 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.

[0188] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0189] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0190] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0191] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0192] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.

[0193] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.

[0194] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.

[0195] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, device or unit, which can be electrical, mechanical or other forms.

[0196] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0197] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0198] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0199] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0200] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A method for obtaining BMC IP characteristic information, characterized in that: Applied to a baseboard management controller (BMC) server, the method includes: Determine whether the user's operation meets the preset conditions; When the user's operation meets the preset condition, obtaining BMC Internet Protocol IP feature information; If the IP address of the target server is stored, the BMC IP characteristic information is sent to the target server based on the IP address of the target server; If the IP address of the target server is not stored, the BMC IP characteristic information is broadcasted so that the target server acquires the BMC IP characteristic information.

2. The method according to claim 1, characterized in that The BMC server includes a physical button UID, and the preset condition includes that the number of times the UID is clicked reaches a preset number within a preset time period.

3. The method according to claim 2, characterized in that The BMC server further includes a complex programmable logic device (CPLD), a short press count calculation register, and a timer. The step of determining whether the user's operation meets a preset condition includes: When the UID is clicked, a short press signal is sent to the CPLD; If the timer is not started, the CPLD controls the timer to start according to the short press signal, and obtains the accumulated time obtained by timing; The CPLD controls the short press count calculation register to count according to the short press signal, and obtains the cumulative number of short presses; When the accumulated duration does not exceed the preset duration, and the accumulated number of short presses is not less than the preset number of times, it is determined that the user's operation meets the preset condition; When the accumulated duration exceeds the preset duration, or the accumulated number of short presses is less than the preset number, it is determined that the user's operation does not meet the preset condition.

4. The method according to claim 3, characterized in that The BMC server also includes a message sending status register and a microcontroller BMC, and the method also includes: When it is determined that the operation of the user meets the preset condition, the CPLD sets the value of the message sending status register to a first value; When it is determined that the operation of the user does not meet the preset condition, the CPLD sets the value of the message sending status register to a second value; Accordingly, when the user's operation meets the preset condition, obtaining BMC IP feature information includes: The BMC periodically polls the value of the message sending status register, and when the value of the message sending status register polled is the first value, acquires the BMC IP characteristic information.

5. The method according to claim 3 or 4, characterized in that: The method further comprises: When the accumulated duration exceeds the preset duration, or the accumulated number of short presses is less than the preset number, the timer is reset.

6. The method according to any one of claims 1 to 3, characterized in that: After acquiring the BMC IP feature information, the method further includes: Encapsulating the BMC IP characteristic information to generate a BMC IP message; Correspondingly, if the IP address of the target server is stored, sending the BMC IP feature information to the target server based on the IP address of the target server includes: If the IP address of the target server is stored, the BMC IP message is sent to the target server based on the IP address of the target server; Correspondingly, if the IP address of the target server is not stored, broadcasting the BMC IP characteristic information includes: If the IP address of the target server is not stored, the BMC IP message is broadcasted.

7. A BMC IP feature information acquisition device, characterized in that: Applied to a BMC server, the method includes: The first processing module is used to determine whether the user's operation meets the preset conditions; An acquisition module, used for acquiring BMC IP feature information when the user's operation meets the preset condition; A second processing module, configured to send the BMC IP feature information to the target server based on the IP address of the target server when the IP address of the target server is stored; The third processing module is configured to broadcast the BMC IP characteristic information when the IP address of the target server is not stored, so that the target server acquires the BMC IP characteristic information.

8. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.

10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.

Citation Information

Patent Citations

  • Method for implementing process of viewing BMC IP address of server mainboard at any time

    CN106021075A

  • Method and device for checking IP address

    CN106657434A

  • Server power supply information processing method, device and system

    CN109597475A

  • Server management method and device, server and readable storage medium

    CN109617712A

  • Server, query device and query method

    CN115658422A