CN113708957B - Configuration method, terminal device and medium for server BMC - Google Patents

Configuration method, terminal device and medium for server BMC Download PDF

Info

Publication number
CN113708957B
CN113708957B CN202110894960.7A CN202110894960A CN113708957B CN 113708957 B CN113708957 B CN 113708957B CN 202110894960 A CN202110894960 A CN 202110894960A CN 113708957 B CN113708957 B CN 113708957B
Authority
CN
China
Prior art keywords
configuration
server
ldcp
bmc
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110894960.7A
Other languages
Chinese (zh)
Other versions
CN113708957A (en
Inventor
赵栋栋
严瑾力
张小琳
李聪聪
曹佳云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Hangzhou Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Hangzhou Information Technology Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110894960.7A priority Critical patent/CN113708957B/en
Publication of CN113708957A publication Critical patent/CN113708957A/en
Application granted granted Critical
Publication of CN113708957B publication Critical patent/CN113708957B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a configuration method of a server BMC, terminal equipment and a computer readable storage medium. The method comprises the following steps: sending a link layer distributed cooperation protocol LDCP broadcast message to a server Baseboard Management Controller (BMC) in a network where the configuration terminal is located, wherein the server BMC sends a unicast LDCP message to the configuration terminal when receiving the broadcast message; receiving the unicast LDCP messages sent by each server BMC; acquiring target configuration parameters corresponding to each server BMC, and generating a response message corresponding to the unicast LDCP message according to the target configuration parameters; and sending the response message to each server BMC so that the server BMC can carry out parameter configuration based on the response message. The invention aims to achieve the effect of improving the configuration efficiency of the server BMC.

Description

Configuration method, terminal device and medium for server BMC
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a configuration method of a server BMC, a terminal device, and a computer-readable storage medium.
Background
A BMC (Baseboard Management Controller) is a server remote manager independent of a server motherboard CPU, and can automatically monitor platform system Management events (for example, temperature exceeds standard, voltage exceeds standard, fan failure, chassis intrusion, and the like), and record the events in a non-volatile system event log.
In the related art, when the server BMCs need to be configured in batch, configuration of IP addresses of a large number of server BMCs needs to be completed first. This has the disadvantage of inefficient configuration of the server BMC.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a configuration method of a server BMC, a terminal device and a computer readable storage medium, aiming at achieving the effect of improving the accuracy of the screening result of edge application.
In order to achieve the above object, the present invention provides a method for configuring a server BMC, which is applied to a configuration terminal, and the method for configuring the server BMC includes:
sending a link layer distributed cooperation protocol LDCP broadcast message to a server Baseboard Management Controller (BMC) in a network where the configuration terminal is located, wherein when the server BMC receives the broadcast message, a unicast LDCP message is sent to the configuration terminal;
receiving the unicast LDCP messages sent by the server BMC;
acquiring target configuration parameters corresponding to each server BMC, and generating a response message corresponding to the unicast LDCP message according to the target configuration parameters;
and sending the response message to each server BMC so that the server BMC can carry out parameter configuration based on the response message.
Optionally, before the step of obtaining the target configuration parameter corresponding to each server BMC and generating the response packet corresponding to the unicast LDCP packet according to the target configuration parameter, the method further includes:
determining initial configuration parameters corresponding to each server BMC according to the unicast LDCP messages;
displaying the initial configuration parameters in an interactive interface;
the step of obtaining the target configuration parameters corresponding to each server BMC and generating the response message corresponding to the unicast LDCP message according to the target configuration parameters comprises:
acquiring target configuration parameters corresponding to each server BMC based on the initial configuration parameters displayed in the interactive interface;
and generating a response message corresponding to the unicast LDCP message according to the target configuration parameters.
Optionally, the step of obtaining the target configuration parameter corresponding to each server BMC based on the initial configuration parameter displayed in the interactive interface includes:
receiving modification information based on the interactive interface, and modifying the initial configuration parameters based on the modification information;
and taking the modified initial configuration parameters corresponding to the server BMCs as the target configuration parameters corresponding to the server BMCs.
Optionally, the destination address of the LDCP broadcast message is FFFF-FFFF, and the source address is the hardware address of the configuration terminal; the target address of the unicast LDCP message is the hardware address of the configuration terminal, and the source address is the network port hardware address of the server BMC; the target address of the response message is the network port hardware address of the server BMC, and the source address is the hardware address of the configuration terminal.
Optionally, the data units of the LDCP broadcast packet, the unicast LDCP packet, and the response packet include a data header field, an operation instruction field, and a custom data field; or, the data units of the LDCP broadcast message, the unicast LDCP message, and the response message include a data header field, an authentication ciphertext field, an operation instruction field, and a custom data field.
In addition, in order to achieve the above object, the present invention further provides a configuration method of a server BMC, which is applied to the server BMC, and the configuration method of the server BMC includes:
when an LDCP broadcast message sent by a configuration terminal is received, acquiring initial configuration parameters of the LDCP broadcast message;
generating a unicast LDCP message according to the initial configuration parameters, and sending the unicast LDCP message to the configuration terminal;
receiving a response message sent by the configuration terminal, and determining a target configuration parameter according to the response message;
and performing parameter configuration according to the target configuration parameters.
Optionally, after the step of performing parameter configuration according to the target configuration parameter, the method further includes:
and sending a parameter modification result to the configuration terminal.
In addition, to achieve the above object, the present invention further provides a terminal device, where the terminal device includes a memory, a processor, and a configuration program of a server BMC stored in the memory and operable on the processor, and the configuration program of the server BMC implements the steps of the configuration method of the server BMC when executed by the processor.
In addition, to achieve the above object, the present invention also provides a terminal device, including:
the system comprises a sending module, a configuration terminal and a sending module, wherein the sending module is used for sending a link layer distributed cooperation protocol LDCP broadcast message to a server Baseboard Management Controller (BMC) in a network where the configuration terminal is located, and when the server BMC receives the broadcast message, the sending module sends a unicast LDCP message to the configuration terminal;
the receiving module is used for receiving the unicast LDCP messages sent by the server BMC;
the acquisition module is used for acquiring target configuration parameters corresponding to the server BMC and generating a response message corresponding to the unicast LDCP message according to the target configuration parameters;
and the modification module is used for sending the response message to each server BMC so that the server BMC can carry out parameter configuration based on the response message.
In order to achieve the above object, the present invention further provides a computer-readable storage medium, on which a configuration program of the server BMC is stored, and the configuration program of the server BMC implements the steps of the configuration method of the server BMC when executed by a processor.
The configuration method, the terminal device and the computer-readable storage medium for the server BMC provided by the embodiments of the present invention send a link Layer Distributed Coordination Protocol (LDCP) broadcast message to the server Baseboard Management Controller (BMC) in a network where the configuration terminal is located, then receive the unicast LDCP message sent by each server BMC, further obtain a target configuration parameter corresponding to each server BMC, generate a response message corresponding to the unicast LDCP message according to the target configuration parameter, and send the response message to each server BMC, so that the server BMC performs parameter configuration based on the response message. The batch configuration of the server BMC can be realized based on the LDCP, so that the defect that an IP address needs to be manually configured in advance when the server is configured in batch in the related technology is overcome, and the effect of improving the batch configuration efficiency of the server BMC is achieved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a configuration method of a server BMC according to an embodiment of the invention;
fig. 3 is a schematic diagram of a message format according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating a data unit format according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating a configuration method of a server BMC according to another embodiment of the invention;
fig. 6 is a schematic diagram of a message flow process according to an embodiment of the present invention;
fig. 7 is a schematic block diagram of a terminal device in accordance with an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the terminal may include: a processor 1001, e.g. a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), a mouse, etc., and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001 described previously.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1005, which is a kind of computer storage medium, may include therein a configuration program of an operating system, a network communication module, a user interface module, and a server BMC.
In the terminal shown in fig. 1, the processor 1001 may be configured to call a configuration program of the server BMC stored in the memory 1005, and perform the following operations:
sending a link layer distributed cooperation protocol LDCP broadcast message to a server Baseboard Management Controller (BMC) in a network where the configuration terminal is located, wherein the server BMC sends a unicast LDCP message to the configuration terminal when receiving the broadcast message;
receiving the unicast LDCP messages sent by each server BMC;
acquiring target configuration parameters corresponding to each server BMC, and generating a response message corresponding to the unicast LDCP message according to the target configuration parameters;
and sending the response message to each server BMC so that the server BMC can carry out parameter configuration based on the response message.
Alternatively, the processor 1001 may be configured to call a configuration program of the server BMC stored in the memory 1005, and perform the following operations:
when an LDCP broadcast message sent by a configuration terminal is received, acquiring initial configuration parameters of the LDCP broadcast message;
generating a unicast LDCP message according to the initial configuration parameters, and sending the unicast LDCP message to the configuration terminal;
receiving a response message sent by the configuration terminal, and determining a target configuration parameter according to the response message;
and performing parameter configuration according to the target configuration parameters.
A BMC (Baseboard Management Controller) is a server remote manager independent of a server motherboard CPU, and can automatically monitor platform system Management events (for example, temperature exceeds standard, voltage exceeds standard, fan failure, chassis intrusion, and the like), and record the events in a non-volatile system event log.
In a modern data center, a large amount of servers are not left, and when the servers are deployed online in a large scale, configuration (such as initialization setting) of a BMC of the server is usually performed in a manual configuration mode, but the manual configuration mode is complicated to operate, low in efficiency and prone to errors, so that if a tool for modifying configuration of the BMC of the server in a large amount is available, great convenience is brought to online deployment of the server.
In the related art, the batch configuration of the server BMC is generally implemented by the following three methods.
Firstly, acquiring a corresponding relation between an MAC address of each server BMC and an IP, then acquiring a corresponding relation between the MAC address of each server BMC and a port of a switch connected with the server BMC, inquiring a server data table based on the corresponding relation between the MAC address of each server BMC and the IP and the corresponding relation between the MAC address of each server BMC and the port of the switch connected with the server BMC, determining preset configuration information of each server BMC, wherein the server data table comprises the preset configuration information of a plurality of server BMCs, and finally configuring the plurality of server BMCs in batches according to the preset configuration information of each server BMC.
Secondly, different users are combined into corresponding templates according to a certain strategy, then corresponding files are generated, the files are read in the installation process, and tasks are executed, so that the template-based method for allocating BMC users in batches in a differentiated mode is achieved, the efficiency of allocation of BMC users in the server installation process is improved, and meanwhile the requirement for difference of permissions of BMC users of different servers is met.
And thirdly, acquiring a first BMC configuration file, generating second abstract information according to the file content of the first BMC configuration file, generating a second BMC configuration file according to the file content of the first BMC configuration file and the second abstract information, and further sending the second BMC configuration file to the BMC of the server to be managed, so that the BMC of the server to be managed performs BMC configuration according to the second BMC configuration file after the second BMC configuration file is verified according to the second abstract information.
In the related art, the three technical solutions are all batch configuration performed on the server BMC on the basis that the IP address of the server BMC is already configured. The technical scheme is that batch configuration is modified through an intrinsic interface (IPMI interface) provided by the BMC. In the second and third technical schemes, the configuration file is used for modifying the server BMC configuration in batches, and the copying of the BMC configuration is realized in the form of the configuration file. However, these technical solutions all need to be performed after configuring the BMC IP address, and under the condition that the BMC IP address is not configured, the configuration of a large number of server BMC IP addresses still needs to be completed first, so that the batch configuration can be issued by using the above-mentioned several methods.
The factory default configuration of the IP address of the server BMC generally has three modes: the first method is that the user goes to the BIOS to perform configuration without any configuration, and this method requires the user to prepare additional tools such as a display and a keyboard, and then log in the server BIOS to configure the IP address, which requires many operation steps, takes a long time, and is very inconvenient. The second mode is configured to be a uniform static default IP address, which is simpler than the above one when the IP address is modified, when the server is on line, the server can log in the BMC to modify the IP address required to be configured by the user by only connecting a network cable to the BMC management port, but when a large number of servers are on line, IP conflict can be caused when all the servers are connected to the switch for configuration, and the configuration of a single device needs repeated pulling, which consumes time and labor, and has large repeated workload, so the mode is inconvenient to use. The last one is to configure a Dynamic IP acquisition based on DHCP (Dynamic Host Configuration Protocol), which solves the problems of the two previous methods, such as cumbersome operation, network conflict and duplicated work, but this method requires configuring a separate DHCP server, and if a server allocates an IP address by itself, it is difficult for a user to determine which server allocates which IP address. If a fixed IP address is assigned to a server, the MAC address of the server port needs to be checked additionally, and then configuration is performed on the DHCP server, which results in a cumbersome operation procedure.
Therefore, in each scheme of the related art, the batch configuration of the BMC depends on the pre-configured IP address. When the server BMC needs to be configured in batch, configuration of IP addresses of a large number of server BMCs needs to be completed first. This has the disadvantage that the server BMC configuration is inefficient.
In order to solve the above-mentioned defects in the related art, an embodiment of the present invention provides a method for configuring a server BMC, which aims to overcome the above-mentioned defects in the related art and achieve the purpose of improving the efficiency of configuring the server BMC. In the invention, the configuration method of the server BMC modifies the BMC configuration in a mode of data link layer protocol communication, can be used when the server equipment is on line or after the server equipment is on line, and is also suitable for the production line to carry out the initialization configuration of batch servers.
Hereinafter, the configuration method of the server BMC according to the present invention is further explained by using specific embodiments.
In an embodiment, referring to fig. 2, the configuration method of the server BMC includes the following steps:
step S1, sending a link layer distributed cooperation protocol LDCP broadcast message to a server Baseboard Management Controller (BMC) in a network where the configuration terminal is located, wherein the server BMC sends a unicast LDCP message to the configuration terminal when receiving the broadcast message;
s2, receiving the unicast LDCP messages sent by the server BMC;
s3, acquiring target configuration parameters corresponding to each server BMC, and generating a response message corresponding to the unicast LDCP message according to the target configuration parameters;
and S4, sending the response message to each server BMC so that the server BMC can carry out parameter configuration based on the response message.
In this embodiment, the configuration terminal refers to a terminal device provided with a batch configuration modification tool. The configuration terminal may perform data interaction with a server BMC in a network where the configuration terminal is located based on a Link-Layer Distributed Collaboration Protocol (LDCP).
It should be noted that the LDCP is an internally used custom Protocol, and provides a standard Link Layer cooperation manner, and may encapsulate a communication instruction and communication Data between devices in a TLV (Type/Length/Value) format, and then encapsulate the communication instruction and the communication Data in an LDCPDU (Link-Layer Distributed Collaboration Protocol Data Unit) and issue the encapsulated communication instruction and communication Data to other devices in a network. Referring to fig. 3, the format of the LDCP message is shown in fig. 3, where the LDCP message includes an MAC address of a receiving device port, that is, a destination MAC address, which is generally 6 bytes; the MAC address of the sending device port, i.e., the source MAC address, is generally 6 bytes; the data frame type identifier is typically 2 bytes. For example, the fixed value may be set to DC00, and the data unit LDCPDU is generally 46-1500 bytes; the FCS frame check sequence used to check the message is typically 4 bytes.
It can be understood that, in the present embodiment, the LDCPDU is a data unit encapsulated in the data portion of the LDCP message. TLVs are units constituting the LDCPDU, each of which represents a part of information. Before the LDCPDU is formed, the sending party firstly encapsulates the sending information into TLV format, and then a plurality of TLVs are combined into one LDCPDU which is encapsulated in the data part of the LDCP message for transmission.
In this embodiment, referring to fig. 4, the ldcpdu part is mainly divided into four parts: the system comprises a data header, an authentication ciphertext, an operation instruction and user-defined data. The authentication ciphertext is an optional component, and whether the field needs to be added to the LDCPDU can be selectively set.
In order to better understand the components of the LDCPDU given in this embodiment, examples of the contents of the data header fields in the LDCPDU are given, as shown in table 1; giving an example of the definition content of the operation instruction field, as shown in table 2; an example of the custom data TLV content definition is given as shown in table 3 and an example of the opcode field content as shown in table 4.
Table 1: data header field content examples
Figure GDA0003900839440000081
Figure GDA0003900839440000091
Table 2: example of operation instruction field content
Figure GDA0003900839440000092
Table 3: custom data field content examples
Figure GDA0003900839440000093
Figure GDA0003900839440000101
Optionally, the Operation Code information is contained in the Operation instruction TLV package with reference to the field contents of the Operation instruction TLV shown in table 2 above. In this embodiment, the operation code includes:
table 4: concrete opcode example
Operation code Description of the invention
BMC_CFG_DEV_LIST_REQ Obtaining a list of server devices
BMC_CFG_DEV_LIST_RESP Transmitting server device information
BMC_CFG_BATCH_SET_REQ Bulk modify configuration requests
BMC_CFG_BATCH_SET_RESP Modifying configuration results in batches
In fig. 4, the type, length, and other fields corresponding to the header, the authentication ciphertext, the operation command, and the like may be set according to the protocol standard. The byte length of each field is referred to fig. 4. This embodiment is not described in detail herein.
Further, based on the above definition of the LDCP message, in this embodiment, the configuration terminal is further provided with an interactive interface, so that a user or another terminal can trigger the configuration terminal to start an equipment information collecting action. So as to collect the device information of each server BMC in the network through the configuration terminal. When the set terminal starts the device information collection action, the batch configuration modification tool deployed in the configuration terminal may first send an LDCP broadcast message to the server BMC in the network where the configuration terminal is located. The destination MAC address of the LDCP broadcast message may be set to FFFF-FFFF, and the source MAC address may be set to a MAC address of a configuration terminal, or a network port MAC address of the configuration terminal. Therefore, all servers BMC in the network where the configuration terminal is located can receive the LDCP broadcast message, and the LDCP broadcast message is responded.
It should be noted that, when the server BMC receives the LDCP broadcast message sent by the configuration terminal, it may obtain the current initial configuration parameter, and then encapsulate the initial configuration parameter into the unicast LDCP message responding to the LDCP broadcast message. And sending the unicast LDCP message to the configuration terminal in a unicast mode. After receiving the unicast LDCP message, the configuration terminal can determine the initial configuration parameters of the sending end (namely, the server BMC sending the unicast LDCP message) based on the unicast LDCP message.
Further, the configuration terminal may receive a unicast LDCP message sent by each server BMC, and then determine an internet access MAC address corresponding to each server BMC based on a unicast LDCP message source MAC address sent by each server BMC. And then the configuration terminal can also acquire the configuration of each server BMC performed by the user, namely, the target configuration parameters corresponding to each server BMC are acquired. And then generating a response message corresponding to the unicast LDCP message according to the target configuration parameters, and sending the response message to each server BMC so that the server BMC can perform parameter configuration based on the response message.
For example, after the configuration terminal receives the unicast LDCP message, the initial configuration parameters corresponding to each server BMC may be determined based on the unicast LDCP message. And then displaying the initial configuration parameters in an interactive interface. And then acquiring target configuration parameters corresponding to each server BMC based on the initial configuration parameters displayed in the interactive interface, and generating a response message corresponding to the unicast LDCP message according to the target configuration parameters. It can be understood that the destination address of the LDCP broadcast message is FFFF-FFFF, and the source address is the hardware address of the configuration terminal; the destination address of the unicast LDCP message is the hardware address of the configuration terminal, and the source address is the network port hardware address of the server BMC; the target address of the response message is the network port hardware address of the server BMC, and the source address is the hardware address of the configuration terminal.
In an optional implementation scheme, a user may directly modify, in the interactive interface, initial configuration information corresponding to each server BMC displayed in the interactive interface. The initial configuration information may include empty configuration information, that is, information that is not configured. For example, when the server BMC is not configured with an IP address, its corresponding IP address may be null. Therefore, when the user modifies the initial configuration information of the server BMC, the modification may include adding specific content corresponding to empty configuration information or modifying specific content corresponding to existing configuration information. When the user finishes modifying, the instruction for finishing modifying can be issued. For example, a certain contact may be provided in the interactive interface, and the configuration terminal determines that the instruction for completing the modification is received after the certain contact is detected to be triggered. Further, the modified initial configuration parameters may be used as the target configuration parameters when receiving the instruction to complete the modification. It will be appreciated that when the user modifies only a portion of the content in the initial configuration parameters, the unmodified content and the modified content together constitute the target configuration parameters.
In another optional embodiment, after the configuration terminal determines the initial configuration parameters corresponding to each server BMC, the initial configuration parameters corresponding to each server BMC may also be derived in a preset format. And the user can modify the initial configuration parameters in an off-line manner according to the exported file. After the initial configuration parameters are modified based on the offline file, the modified file can be uploaded to the configuration terminal. And enabling the configuration terminal to determine the target configuration parameters based on the files uploaded by the user.
Optionally, the server BMC may further send a modification result of the response to the configuration terminal when the modification is completed according to the target configuration parameter or the modification fails. So that the configuration terminal can determine whether the configuration has been completed based on the modification result.
It should be noted that, in the related art, the first solution must depend on the configured IP address of the server BMC. Under the condition that the IP address is not configured, the acquisition of the BMC information and the batch issuing of the configuration can be realized only after the IP address is acquired through a DHCP protocol, and the configuration information is all stored in the preset configuration information of the server data table. In the embodiment, batch issuing of server information acquisition and configuration is realized through the data link layer, the IP address of the server BMC does not need to be configured in advance, configuration information can be directly input on an interface by a user, and the configuration information can be uploaded by modifying after a configuration file is exported. Therefore, compared with the first technical scheme, the batch configuration method is simpler in steps and more convenient to configure.
The second related technical scheme is mainly used for configuring the user information, server information and corresponding user information need to be prepared in advance, a corresponding template is generated, and under the condition that an IP address is configured, the IPMI mode is used for configuring and issuing the user. The configuration that can be performed in this embodiment is not limited to user information, and the configuration can be modified without an IP address, the acquisition of server information is automatically acquired by a link layer protocol, and a user only needs to modify corresponding configuration information on a configuration tool interface or to re-upload the configuration after modifying derived configuration information, so that the configuration modification can be completed.
In the third related technical scheme, the configuration file exported from the source server is used as a template to generate a new configuration file, the new configuration file is respectively sent to the servers to be managed, and the new configuration file is analyzed by the servers to be managed and then takes effect. In the embodiment, communication is performed through a link layer, configuration information is analyzed by a configuration tool, the content to be modified is directly sent to a server for modification, data transmission is not required through a network IP in the modification operation, and the problem of modifying the configuration information in batches under the condition that an IP address is not configured can be solved.
In the technical scheme disclosed in this embodiment, a link layer distributed coordination protocol LDCP broadcast message is first sent to a server baseboard management controller BMC in a network where the configuration terminal is located, then the unicast LDCP message sent by each server BMC is received, so as to obtain a target configuration parameter corresponding to each server BMC, and a response message corresponding to the unicast LDCP message is generated according to the target configuration parameter and sent to each server BMC, so that the server BMC performs parameter configuration based on the response message. The batch configuration of the server BMC can be realized based on the LDCP, so that the defect that an IP address needs to be manually configured in advance when the server is configured in batch in the related technology is overcome, and the effect of improving the batch configuration efficiency of the server BMC is achieved.
Referring to fig. 5, in another embodiment of the configuration method of the server BMC of the present invention, the configuration method of the server BMC includes the steps of:
step S10, when receiving an LDCP broadcast message sent by a configuration terminal, acquiring an initial configuration parameter of the LDCP broadcast message;
step S20, generating a unicast LDCP message according to the initial configuration parameters, and sending the unicast LDCP message to the configuration terminal;
step S30, receiving a response message sent by the configuration terminal, and determining a target configuration parameter according to the response message;
and S40, performing parameter configuration according to the target configuration parameters.
In this embodiment, the configuration method of the server BMC is applied to a configuration method of a server BMC.
When the server BMC receives the LDCP broadcast message sent by the configuration terminal, it may obtain its initial configuration parameters. And determining the destination MAC address of the unicast LDCP message according to the source address of the LDCP broadcast message, and packaging the data unit of the unicast LDCP message according to the initial configuration parameters. And sending the unicast LDCP message to the configuration terminal in a unicast mode. After receiving the unicast LDCP message, the configuration terminal can determine the initial configuration parameters of the configuration terminal based on the unicast LDCP message.
Optionally, in some embodiments, after receiving the LDCP broadcast message, the authority information for configuring the terminal may be further determined based on an authentication ciphertext in the LDCP broadcast message. And when the configuration terminal part has the corresponding right, ignoring the LDCP broadcast message, otherwise, responding the LDCP broadcast message by sending the unicast LDCP message.
Further, after sending the unicast LDCP message to the configuration terminal, the method may further receive a response message of the unicast LDCP message sent by the configuration terminal, and determine the target configuration parameter according to the response message. And then parameter configuration is carried out according to the target configuration parameters.
Optionally, after the configuration is completed according to the target configuration parameters, the modified result may also be sent to the configuration terminal. Or when the modification fails, sending the modification result of the modification failure to the configuration terminal.
In the technical scheme disclosed in this embodiment, when receiving an LDCP broadcast message sent by a configuration terminal, an initial configuration parameter person of the LDCP is obtained, a unicast LDCP message is generated according to the initial configuration parameter, the unicast LDCP message is sent to the configuration terminal, a response message sent by the configuration terminal is received, a target configuration parameter is determined according to the response message, and then parameter configuration is performed according to the target configuration parameter. Thus, the effect of improving the configuration efficiency of the server BMC is achieved.
Referring to fig. 6, in a configuration process of a server BMC, a configuration terminal first sends a broadcast message, so that the server BMC receiving the broadcast message feeds back initial configuration parameters of the server BMC to the configuration terminal. The server BMC responds to the broadcast message in a unicast mode, so that after the configuration terminal receives the unicast message sent by each server BMC, the initial configuration parameters corresponding to each server BMC can be determined. And then after the initial configuration parameters are adjusted, generating unicast messages corresponding to each server BMC according to the adjusted parameters corresponding to each server BMC, namely the target configuration parameters. Namely the response message of the unicast message sent by the server BMC. And then the configuration terminal can send a response message corresponding to each server BMC in batch so that the server BMC can determine a target configuration parameter based on the response message and modify the parameter based on the target configuration parameter. When the server BMC completes modification or fails to modify or exceeds the time limit, the corresponding modification result is fed back to the configuration terminal in a unicast mode through a message.
In addition, an embodiment of the present invention further provides a terminal device, where the terminal device includes: the configuration program of the server BMC may be executed by the processor to implement the steps of the configuration method of the server BMC according to the above embodiments.
In addition, referring to fig. 7, an embodiment of the present invention further provides a terminal device 100, where the terminal device 100 includes:
a sending module 101, configured to send a link layer distributed coordination protocol LDCP broadcast message to a server baseboard management controller BMC in a network where the configuration terminal is located, where the server BMC sends a unicast LDCP message to the configuration terminal when receiving the broadcast message;
a receiving module 102, configured to receive the unicast LDCP message sent by each server BMC;
an obtaining module 103, configured to obtain a target configuration parameter corresponding to each server BMC, and generate a response packet corresponding to the unicast LDCP packet according to the target configuration parameter;
and a modification module 104, configured to send the response packet to each server BMC, so that the server BMC performs parameter configuration based on the response packet.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a configuration program of the server BMC is stored on the computer-readable storage medium, and when the configuration program of the server BMC is executed by a processor, the steps of the configuration method of the server BMC according to the above embodiments are implemented.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method of the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but in many cases, the former is a better implementation. Based on such understanding, the technical solution of the present invention or the portions contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for causing a terminal device to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (10)

1. A configuration method of a server BMC is applied to a configuration terminal, and comprises the following steps:
sending a link layer distributed cooperation protocol LDCP broadcast message to a server Baseboard Management Controller (BMC) in a network where the configuration terminal is located, wherein when the server BMC receives the broadcast message, the server BMC obtains initial configuration parameters of the server BMC, generates a unicast LDCP message according to the initial configuration parameters, and sends the unicast LDCP message to the configuration terminal;
receiving the unicast LDCP messages sent by the server BMC;
acquiring target configuration parameters corresponding to each server BMC, and generating a response message corresponding to the unicast LDCP message according to the target configuration parameters;
and sending the response message to each server BMC so that the server BMC can carry out parameter configuration based on the response message.
2. The method as claimed in claim 1, wherein before the step of obtaining the target configuration parameter corresponding to each BMC of the server and generating the response packet corresponding to the unicast LDCP message according to the target configuration parameter, the method further comprises:
determining initial configuration parameters corresponding to each server BMC according to the unicast LDCP messages;
displaying the initial configuration parameters in an interactive interface;
the step of obtaining the target configuration parameters corresponding to each server BMC and generating the response message corresponding to the unicast LDCP message according to the target configuration parameters comprises:
acquiring target configuration parameters corresponding to each server BMC based on the initial configuration parameters displayed in the interactive interface;
and generating a response message corresponding to the unicast LDCP message according to the target configuration parameters.
3. The method of claim 2, wherein the step of obtaining the target configuration parameters corresponding to each of the server BMCs based on the initial configuration parameters shown in the interactive interface comprises:
receiving modification information based on the interactive interface, and modifying the initial configuration parameters based on the modification information;
and taking the modified initial configuration parameters corresponding to the server BMCs as the target configuration parameters corresponding to the server BMCs.
4. The configuration method for the server BMC of claim 1, wherein a destination address of the LDCP broadcast message is FFFF-FFFF, and a source address is a hardware address of the configuration terminal; the target address of the unicast LDCP message is the hardware address of the configuration terminal, and the source address is the network port hardware address of the server BMC; the target address of the response message is the network port hardware address of the server BMC, and the source address is the hardware address of the configuration terminal.
5. The method of claim 1, wherein the data units of the LDCP broadcast message, the unicast LDCP message, and the response message comprise a header field, an operation instruction field, and a custom data field; or, the data units of the LDCP broadcast message, the unicast LDCP message, and the response message include a data header field, an authentication ciphertext field, an operation instruction field, and a custom data field.
6. The configuration method of the server BMC is applied to the server BMC, and is characterized by comprising the following steps:
when an LDCP broadcast message sent by a configuration terminal is received, acquiring initial configuration parameters of the LDCP broadcast message;
generating a unicast LDCP message according to the initial configuration parameters, and sending the unicast LDCP message to the configuration terminal;
receiving a response message sent by the configuration terminal, and determining a target configuration parameter according to the response message, wherein the configuration terminal acquires the target configuration parameter corresponding to the server BMC, and generates a response message corresponding to the unicast LDCP message according to the target configuration parameter;
and performing parameter configuration according to the target configuration parameters.
7. The method of claim 6, wherein after the step of configuring parameters according to the target configuration parameters, the method further comprises:
and sending a parameter modification result to the configuration terminal.
8. A terminal device, characterized in that the terminal device comprises: a memory, a processor, and a configuration program of the server BMC stored on the memory and executable on the processor, the configuration program of the server BMC implementing the steps of the configuration method of the server BMC according to any one of claims 1 to 7 when executed by the processor.
9. A terminal device, characterized in that the terminal device comprises:
the system comprises a sending module, a configuration terminal and a sending module, wherein the sending module is used for sending a link Layer Distributed Collaboration Protocol (LDCP) broadcast message to a server substrate management controller (BMC) in a network where the configuration terminal is located, acquiring an initial configuration parameter of the server BMC when the server BMC receives the broadcast message, generating a unicast LDCP message according to the initial configuration parameter, and sending the unicast LDCP message to the configuration terminal;
the receiving module is used for receiving the unicast LDCP messages sent by the server BMC;
the acquisition module is used for acquiring target configuration parameters corresponding to each server BMC and generating a response message corresponding to the unicast LDCP message according to the target configuration parameters;
and the modification module is used for sending the response message to each server BMC so that the server BMC can carry out parameter configuration based on the response message.
10. A computer-readable storage medium, on which a configuration program of a server BMC is stored, the configuration program of the server BMC implementing the steps of the configuration method of the server BMC according to any one of claims 1 to 7 when being executed by a processor.
CN202110894960.7A 2021-08-03 2021-08-03 Configuration method, terminal device and medium for server BMC Active CN113708957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110894960.7A CN113708957B (en) 2021-08-03 2021-08-03 Configuration method, terminal device and medium for server BMC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110894960.7A CN113708957B (en) 2021-08-03 2021-08-03 Configuration method, terminal device and medium for server BMC

Publications (2)

Publication Number Publication Date
CN113708957A CN113708957A (en) 2021-11-26
CN113708957B true CN113708957B (en) 2022-12-27

Family

ID=78651600

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110894960.7A Active CN113708957B (en) 2021-08-03 2021-08-03 Configuration method, terminal device and medium for server BMC

Country Status (1)

Country Link
CN (1) CN113708957B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115242872B (en) * 2022-06-24 2024-02-02 平安银行股份有限公司 Data processing method, device, computer equipment and readable storage medium
CN115714719B (en) * 2022-10-26 2024-05-14 苏州浪潮智能科技有限公司 Operation and maintenance processing method and device of server, electronic equipment and storage medium
CN116192626B (en) * 2023-02-10 2024-06-14 苏州浪潮智能科技有限公司 Device access method and device, computer readable storage medium and electronic device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102714559B (en) * 2009-11-19 2018-01-19 瑞典爱立信有限公司 The configuration of synchronizing network
CN103944867B (en) * 2013-01-23 2017-09-12 华为技术有限公司 Processing method, the device and system of dynamic host configuration protocol message
CN107682165A (en) * 2017-10-18 2018-02-09 国电南瑞科技股份有限公司 Status information cross-network segment transmission method in a kind of power automatic system
CN108521341B (en) * 2018-03-23 2019-09-13 新华三信息技术有限公司 Message transmitting method and device
CN111510320A (en) * 2020-03-13 2020-08-07 苏州浪潮智能科技有限公司 Network parameter configuration method, device, equipment and readable storage medium

Also Published As

Publication number Publication date
CN113708957A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
CN113708957B (en) Configuration method, terminal device and medium for server BMC
CN107257392B (en) Method and device for setting equipment serial number and computer readable storage medium
CN107592367B (en) Resource sharing method and device for household appliances and computer readable storage medium
CN108039969B (en) Network automatic configuration method, device, system, storage medium and target computer
WO2020135574A1 (en) Message processing method and apparatus, control plane device, and computer storage medium
CN106453681B (en) IP address allocation method and device
CN112363775B (en) Method, system and storage medium for dynamically modifying microservice configuration information
CN111130902B (en) Switch management method, device and storage medium
CN112527397A (en) Method and device for modifying basic input output system options and computer equipment
CN104158859A (en) PXE-based information acquisition method, PXE (pre-boot execution environment) client, PXE server and system
CN108039968B (en) Network optimization method, device and computer readable storage medium
CN113890879A (en) Load balancing method and device for data access, computer equipment and medium
WO2020177020A1 (en) Internet of things device discovery method, apparatus, and terminal device
JP2003258799A (en) Operation support system
CN111464523A (en) Network monitoring method, terminal device and computer readable storage medium
CN105530187B (en) Physical address acquisition methods and device
JP2007243825A (en) Controller to which programmable controller is applied
CN112769829A (en) Deployment method of cloud physical machine, related equipment and readable storage medium
CN109525417B (en) Household appliance access method based on internet access, household appliance controller and storage medium
CN111930482A (en) Task processing method, device and equipment based on node cluster and storage medium
CN115333933B (en) Automatic management method, medium and equipment for servers on machine room
CN104468159A (en) Management method and device of dynamic host configuration protocol server and relay
CN115277391B (en) Network configuration method, device, cluster and storage medium
CN115268951A (en) Installation method, device, equipment and storage medium of operating system
CN111327437B (en) Flow table processing method, flow table processing device, and SDN network system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant