A method, device, equipment and readable storage medium for bare-metal management of a server
By establishing a device mapping relationship table in the server cluster and sending target commands, the complex problem of server cluster management in the bare metal state is solved, and the batch management of bare metal and the management efficiency of operating system without dependencies is improved.
Patent Information
- Application Number
- CN202211293493.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-21
- Publication Date
- 2025-07-01
- Estimated Expiration
- 2042-10-21
AI Technical Summary
After the server is assembled and before filling the system, there are complex problems in managing the server cluster in bare metal state.
By using the substrate management controllers of each bare metal in the server cluster, a device mapping relationship table is established, the target command is determined and sent to each target bare metal, and feedback information is received, batch management of bare metal is achieved.
It realizes batch management of server clusters in bare metal state, simplifies the operation process, avoids dependence on the operating system, and improves management efficiency and convenience.
Smart Images

Figure CN115665223B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer application technologies, and in particular, to a method, device, equipment, and readable storage medium for managing bare-metal servers. Background Art
[0002] A bare metal refers to an electronic computer without an operating system and other software installed. After a server is assembled, it is in a bare-metal state, that is, without an operating system.
[0003] After the server is assembled and before the system is installed, the server still needs to be managed. For example, querying the health status of hardware devices and configuring whether they are consistent. In the bare-metal state, cluster operation methods based on the operating system are all invalid at this time. Therefore, managing the server cluster in this state is complex.
[0004] In summary, how to effectively solve problems such as batch management of a server cluster in the bare-metal state is a technical problem that those skilled in the art urgently need to solve at present. Summary of the Invention
[0005] The purpose of this application is to provide a method, device, equipment, and readable storage medium for managing bare-metal servers, which can perform batch management on a server cluster in the bare-metal state.
[0006] To solve the above technical problems, this application provides the following technical solutions:
[0007] A bare-metal management method includes:
[0008] Using the baseboard management controller of each bare metal in the server cluster to establish a device mapping relationship table corresponding to the bare metal;
[0009] After the target command description is selected and the one-key query instruction is obtained, using the command mapping relationship table to determine the target command to be executed;
[0010] Using the device mapping relationship table to determine each target bare metal to which the target command is to be executed;
[0011] Sending the target command to each of the target bare metals respectively, and receiving the feedback information sent by each of the target bare metals.
[0012] Preferably, using the baseboard management controller of each bare metal in the server cluster to establish a device mapping relationship table corresponding to the bare metal includes:
[0013] Obtaining the IP address of each bare metal from the DHCP server;
[0014] Using the IP address to establish a communication connection with each bare metal through the baseboard management controller;
[0015] Using the communication connection, obtain the SN information of each bare machine;
[0016] Using the SN information and the IP address, establish the device mapping relationship table.
[0017] Preferably, obtaining the IP address of each bare machine from the DHCP server includes:
[0018] After the server cluster is connected to the local area network, use the DHCP server in the local area network to assign the IP address to each bare machine;
[0019] Communicate with the DHCP server to obtain the IP address.
[0020] Preferably, establishing a communication connection with each bare machine using the IP address through the baseboard management controller includes:
[0021] Output a login prompt message on the display interface;
[0022] Obtain the login information, and when the login information is correct, use the IP address to establish the communication connection through the baseboard management controller.
[0023] Preferably, establishing the device mapping relationship table using the SN information and the IP address includes:
[0024] Using the lighting command, determine the correspondence between the SN information, the IP address and the physical bare machine;
[0025] Using the correspondence, establish the device mapping relationship table.
[0026] Preferably, the target command description is selected, including:
[0027] Output each command description in the command mapping relationship table on the display interface;
[0028] Monitor the display interface to obtain the operation information that the target command description is selected.
[0029] Preferably, it further includes:
[0030] After obtaining the one-key installation instruction, determine the selected bare machine and start the BMC installation program;
[0031] Using the time-division multiplexing method, transfer the image in the storage space to each of the selected bare machines to realize batch image installation.
[0032] A server bare machine management device, including:
[0033] The device mapping relationship establishment module is used to establish a device mapping relationship table corresponding to the bare machine by using the baseboard management controllers of each bare machine in the server cluster;
[0034] The command confirmation module is used to determine the target command to be executed by using the command mapping relationship table after the target command description is selected and the one-key query instruction is obtained;
[0035] The bare machine determination module is used to determine each target bare machine to execute the target command by using the device mapping relationship table;
[0036] The command execution module is used to send the target command to each of the target bare machines respectively and receive the feedback information sent by each of the target bare machines.
[0037] An electronic device includes:
[0038] A memory for storing a computer program;
[0039] A processor for implementing the steps of the above-mentioned server bare machine management method when executing the computer program.
[0040] A readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned server bare machine management method are implemented.
[0041] Applying the method provided by the embodiments of the present application, using the baseboard management controllers of each bare machine in the server cluster to establish a device mapping relationship table corresponding to the bare machine; after the target command description is selected and the one-key query instruction is obtained, using the command mapping relationship table to determine the target command to be executed; using the device mapping relationship table to determine each target bare machine to execute the target command; sending the target command to each target bare machine respectively and receiving the feedback information sent by each target bare machine.
[0042] In the present application, for each bare machine in the server cluster, first establish a device mapping relationship table corresponding to the bare machine. Then, after the target command description is selected and the one-key query instruction is obtained, use the command mapping relationship table to determine the target command to be executed. Then, use the device mapping relationship table to determine each target bare machine to execute the target command. After determining the target command to be executed and the target bare machines for executing the target command, directly send the target command to each target bare machine respectively, so as to receive the feedback information sent by each target bare machine. That is, in the present application, batch operations of multiple bare machines can be realized without relying on an operating system, and due to the existence of command descriptions and one-key query functions, there are also advantages of a friendly interface and simple operation.
[0043] Correspondingly, the embodiments of the present application further provide a server bare metal management device, a device, and a readable storage medium corresponding to the above-mentioned server bare metal management method, which have the above technical effects and will not be elaborated herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] To more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required for use in the description of the embodiments or related technologies. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0045] Figure 1 It is a flowchart of an implementation of a server bare metal management method in an embodiment of the present application;
[0046] Figure 2 It is a schematic structural diagram of a server bare metal management device in an embodiment of the present application;
[0047] Figure 3 It is a schematic structural diagram of an electronic device in an embodiment of the present application;
[0048] Figure 4 It is a specific schematic structural diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0049] To enable those skilled in the art to better understand the solution of the present application, the following further elaborates the present application in conjunction with the drawings and specific embodiments. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of them. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts belong to the scope of protection of the present application.
[0050] Please refer to Figure 1 , Figure 1 It is a flowchart of a server bare metal management method in an embodiment of the present application. This method can be applied to a server management device, and the method includes the following steps:
[0051] S101. Use the baseboard management controller of each bare metal in the server cluster to establish a device mapping relationship table corresponding to the bare metal.
[0052] Among them, the baseboard management controller is the BMC (Baseboard Management Controller).
[0053] The server cluster includes a cluster of multiple servers, and the servers have baseboard management controllers.
[0054] In this application, a device mapping relationship table corresponding to the bare metal can be established based on the baseboard management controllers of each bare metal in the server cluster. It should be noted that the bare metal referred to in the embodiments of this application is the server that makes up the server cluster and the operating system has not been installed on this server yet.
[0055] The device mapping relationship table refers to a table constructed by the mapping relationships that can uniquely determine each bare metal in the server cluster. Specifically, in this device mapping relationship table, it can specifically be the correspondence between the SN information and the IP address of each bare metal, or the correspondence between the SN information, the IP address, and the physical bare metal. The physical bare metal referred to in the embodiments of this application means that the physical characteristics corresponding to the bare metal are clear. For example, it is clear about the specific location where the logic is specifically stored in the rack.
[0056] Constructing the device mapping relationship table based on the base management controller means that in actual operation, the information required to construct the device mapping relationship is obtained based on the BMC network. Specifically, for how to obtain this information based on the BMC network, it can specifically refer to the specific communication establishment and use of the relevant BMC network, or refer to the specific implementation steps provided in a specific embodiment described below.
[0057] In a specific embodiment of this application, using the baseboard management controllers of each bare metal in the server cluster to establish a device mapping relationship table corresponding to the bare metal includes:
[0058] Step 1: Obtain the IP addresses of each bare metal from the DHCP server;
[0059] Step 2: Use the IP addresses to establish communication connections with each bare metal through the baseboard management controller;
[0060] Step 3: Use the communication connections to obtain the SN information of each bare metal;
[0061] Step 4: Use the SN information and the IP addresses to establish the device mapping relationship table.
[0062] For ease of description, the above four steps will be combined and described below.
[0063] The DHCP server can assign IP addresses to the bare metal. Therefore, the IP addresses of each bare metal can be obtained from the DHCP server.
[0064] Specifically, Step 1: Obtain the IP addresses of each bare metal from the DHCP server includes:
[0065] Step 1: After the server cluster is connected to the local area network, use the DHCP server in the local area network to assign IP addresses to each bare metal;
[0066] Step 2: Communicate with the DHCP server to obtain an IP address.
[0067] That is, the server cluster can be physically connected to the local area network first, and then the DHCP (Dynamic Host Configuration Protocol) server in the local area network can assign IP addresses to each bare machine. Specifically, for how the DHCP server assigns IP addresses to each bare machine in the server cluster, reference can be made to the dynamic host configuration protocol, which will not be elaborated here one by one.
[0068] By interacting with the DHCP server, the management device can obtain the IP addresses of each bare machine.
[0069] There is a baseboard management controller in the bare machine, and the baseboard management controller can communicate externally. Therefore, a communication connection can be established with the bare machine based on the baseboard management controller.
[0070] Preferably, considering security issues, in a specific implementation manner of the present application, the identity of the operator can also be verified, and a communication connection is established when it is determined that the verification is passed. That is, in the above step two, using the IP address, a communication connection is established with each bare machine through the baseboard management controller, including:
[0071] Step 1: Output a login prompt message on the display interface;
[0072] Step 2: Obtain the login information, and establish a communication connection with the corresponding baseboard management controller when the login information is correct.
[0073] That is, a login prompt message can be output on the display interface of the management device so that the operator can input login information, such as a username and password. After obtaining the login information, the login information is verified, and when it is determined that the login information is correct, the management device establishes a corresponding communication connection with the corresponding baseboard management controller.
[0074] After the established communication connection, the SN (Serial Number) information of the corresponding bare machine can be obtained based on this communication connection.
[0075] After obtaining the SN information, a unique mapping relationship based on the SN information and the IP address can be established for the same bare machine. These mapping relationships are stored in the identification mapping relationship table.
[0076] In a specific implementation manner of the present application, in the above step four, using the SN information and the IP address to establish a device mapping relationship table includes:
[0077] Step 1: Use the lighting command to determine the correspondence between SN information, IP address, and the physical bare machine;
[0078] Step 2: Use the correspondence to establish a device mapping relationship table.
[0079] Among them, the lighting command enables the corresponding server to light up the corresponding lamp so that the operator can clearly know which physical bare machine the current corresponding operation is on. That is, based on the lighting command, the correspondence between SN information, IP address, and the physical bare machine can be clarified. Based on this correspondence, a device mapping relationship table including physical bare machine information can be constructed.
[0080] For example: Physically connect the server cluster to the local area network based on the BMC network. There is a DHCP server in this local area network. After the server is powered on, the DHCP server will assign a dedicated IP address to each bare machine. Connect the management device to the local area network. The management device will communicate with the DHCP server to obtain the IP addresses assigned to each bare machine, and then based on these IP addresses, communicate with the bare machines in the server cluster through the network. When the connection is successful, the interface display function of the management device will prompt to enter the username and password. After entering correctly, it will establish communication with the baseboard control manager of the bare machine. When the input is incorrect, the error type can be prompted and a chance for re-entry can be given. After successfully establishing communication with the baseboard control manager in the server of the server cluster, the SN information of the bare machine can be obtained as the machine ID, and a device mapping relationship table of SN and IP address can be established and stored in the storage space of the management device for subsequent search. Preferably, the SN information, IP, and the physical bare machine can also be uniquely associated by sending a lighting command.
[0081] S102: After the target command description is selected and the one-key query instruction is obtained, use the command mapping relationship table to determine the target command to be executed.
[0082] In this embodiment, the command description can be displayed in the management device, and the command mapping relationship table is stored in the management device. The mapping relationship table records the correspondence between each command description and the command.
[0083] Among them, the command description is the corresponding explanation of the command. Specifically, the command description can specifically correspond to the description of all or part of the commands required for managing the server cluster. Specifically, information such as the function of the command and the description of the command return result can be explained. The command description can be the command description corresponding to the commands that are difficult to understand or are prone to be wrongly executed or wrongly operated selected by the management personnel. The specific presentation content of the command description can be determined according to actual needs, and this is not limited in the embodiments of the present application.
[0084] In this embodiment, the command description selected by the operator is determined as the target command description, that is, any one of the displayed command descriptions can be used as the target command description. When the operation selects the target command description and clicks the one-key query, it is regarded as obtaining a query instruction. Based on the command mapping relationship table, the target command to be executed can be determined.
[0085] In a specific implementation manner of the present application, the selection of the target command description in step S102 includes:
[0086] Step 1: Output each command description in the command mapping relationship table on the display interface;
[0087] Step 2: Monitor the display interface to obtain the operation information indicating that the target command description is selected.
[0088] For the convenience of description, the above two steps will be combined and described below.
[0089] A one-to-one mapping relationship can be established between user-friendly command descriptions and the actually executed commands and stored in the storage space, and each command description is displayed on the user interface. When performing a batch query operation, the user can select a certain command description and then click the one-key query in the management device. After detecting that the one-key query is clicked, it can be determined that the target command description is selected.
[0090] S103: Use the device mapping relationship table to determine each target bare machine for the target command to be executed.
[0091] Based on the device mapping relationship table, each target bare machine for the target command to be executed can be identified. Here, the target bare machines can be in batches or a small number, such as individual bare machines.
[0092] Specifically, the management device finds the target command to be executed according to the command mapping relationship, and then finds the IP corresponding to the SN according to the stored device mapping relationship table.
[0093] S104: Send the target command to each target bare machine respectively and receive the feedback information sent by each target bare machine.
[0094] Send the target command to the corresponding bare machine. Then, the required information obtained (i.e., the feedback information, such as the health status, configuration information, etc.) is transmitted back to the management device and bound to the corresponding SN and stored in the storage space.
[0095] Apply the method provided by the embodiments of the present application, and use the baseboard management controllers of each bare machine in the server cluster to establish a device mapping relationship table corresponding to the bare machines; after the target command description is selected and the one-key query instruction is obtained, use the command mapping relationship table to determine the target command to be executed; use the device mapping relationship table to determine each target bare machine for executing the target command; send the target command to each target bare machine respectively, and receive the feedback information sent by each target bare machine.
[0096] In the present application, for each bare machine in the server cluster, first establish a device mapping relationship table corresponding to the bare machine. Then, after the target command description is selected and the one-key query instruction is obtained, use the command mapping relationship table to determine the target command to be executed. Then, use the device mapping relationship table to determine each target bare machine for executing the target command. After determining the target command to be executed and the target bare machines for executing the target command, directly send the target command to each target bare machine respectively, so as to receive the feedback information sent by each target bare machine. That is, in the present application, batch operations of multiple bare machines can be realized without relying on an operating system, and due to the existence of command descriptions and the one-key query function, there are also the advantages of a friendly interface and simple operation.
[0097] It should be noted that based on the above embodiments, the embodiments of the present application also provide corresponding improvement solutions. In the preferred / improved embodiments, the same steps or corresponding steps as those in the above embodiments can be referred to each other, and the corresponding beneficial effects can also be referred to each other, and will not be elaborated one by one in the preferred / improved embodiments of this article.
[0098] In a specific implementation manner of the present application, a batch filling system can also be realized. The implementation process includes:
[0099] Step 1: After obtaining the one-key filling instruction, determine the selected bare machine and start the filling program of the BMC;
[0100] Step 2: Use the time-division multiplexing method to transfer the image in the storage space to each selected bare machine to realize batch filling of the image.
[0101] For the convenience of description, the above two steps will be combined and described below.
[0102] Display one-key filling in the management device. When the user clicks one-key filling, the selected bare machine can be determined, and the filling program of the BMC can be started. Then, use the time-division multiplexing method to transfer the image in the storage space to each selected bare machine, so as to realize batch filling of the image. This image is the image of the operating system, and filling the image means filling the operating system.
[0103] Among them, time division multiplexing, i.e., TDMA (TIME DIVISION MULTIPLEX ACCESS), is applied in the network to transmit multiple data on one line based on the technology of applying the line in different time periods.
[0104] For example: The image can be copied to the storage space of the management device through a USB flash drive. When the user clicks the one-key installation, the management device can send a series of commands to start the BMC installation program, and then transmit the image to each selected machine in a time division multiplexing manner to achieve batch image installation.
[0105] Corresponding to the above method embodiment, the embodiment of the present application also provides a server bare metal management device, and the server bare metal management device described below can be correspondingly referred to the server bare metal management method described above.
[0106] See Figure 2 As shown, the device includes the following modules:
[0107] The device mapping relationship establishment module 101 is used to establish a device mapping relationship table corresponding to the bare metal by using the baseboard management controller of each bare metal in the server cluster;
[0108] The command confirmation module 102 is used to determine the target command to be executed by using the command mapping relationship table after the target command description is selected and the one-key query instruction is obtained;
[0109] The bare metal determination module 103 is used to determine each target bare metal for executing the target command by using the device mapping relationship table;
[0110] The command execution module 104 is used to send the target command to each target bare metal respectively and receive the feedback information sent by each target bare metal.
[0111] By applying the device provided in the embodiment of the present application, a device mapping relationship table corresponding to the bare metal is established by using the baseboard management controller of each bare metal in the server cluster; after the target command description is selected and the one-key query instruction is obtained, the target command to be executed is determined by using the command mapping relationship table; each target bare metal for executing the target command is determined by using the device mapping relationship table; the target command is sent to each target bare metal respectively, and the feedback information sent by each target bare metal is received.
[0112] In this application, for each bare machine in the server cluster, first establish a device mapping relationship table corresponding to the bare machine. Then, after the target command description is selected and the one-key query instruction is obtained, use the command mapping relationship table to determine the target command to be executed. Then, use the device mapping relationship table to determine each target bare machine for executing the target command. After determining the target command to be executed and the target bare machines for executing this target command, directly send the target command to each target bare machine respectively, so as to receive the feedback information sent by each target bare machine. That is, in this application, batch operation of multiple bare machines can be realized without relying on an operating system, and due to the existence of command description and one-key query function, it also has the advantages of friendly interface and simple operation.
[0113] In a specific implementation manner of this application, the device mapping relationship establishment module 101 is specifically used to obtain the IP addresses of each bare machine from the DHCP server;
[0114] Use the IP address to establish a communication connection with each bare machine through the baseboard management controller;
[0115] Use the communication connection to obtain the SN information of each bare machine;
[0116] Use the SN information and the IP address to establish a device mapping relationship table.
[0117] In a specific implementation manner of this application, the device mapping relationship establishment module 101 is specifically used to, after the server cluster is connected to the local area network, use the DHCP server in the local area network to assign IP addresses to each bare machine;
[0118] Communicate with the DHCP server to obtain the IP address.
[0119] In a specific implementation manner of this application, the device mapping relationship establishment module 101 is specifically used to output a login prompt message on the display interface;
[0120] Obtain the login information, and when the login information is correct, use the IP address to establish a communication connection through the baseboard management controller.
[0121] In a specific implementation manner of this application, the device mapping relationship establishment module 101 is specifically used to use the lighting command to determine the correspondence between the SN information, the IP address and the physical bare machine;
[0122] Use the correspondence to establish a device mapping relationship table.
[0123] In a specific implementation manner of this application, the command confirmation module 102 is specifically used to output each command description in the command mapping relationship table on the display interface;
[0124] Monitor the display interface to obtain the target command, which indicates the selected operation information.
[0125] In a specific embodiment of the present application, it further includes:
[0126] A batch filling module, which is used to determine the selected bare machine and start the BMC filling program after obtaining the one-key filling instruction;
[0127] Use the time-division multiplexing method to transfer the image in the storage space to each selected bare machine to achieve batch filling of the image.
[0128] Corresponding to the above method embodiment, the embodiment of the present application also provides an electronic device. An electronic device described below can be correspondingly referred to the server bare machine management method described above.
[0129] See Figure 3 As shown, the electronic device includes:
[0130] A memory 332, which is used to store computer programs;
[0131] A processor 322, which is used to implement the steps of the server bare machine management method in the above method embodiment when executing the computer program.
[0132] Specifically, please refer to Figure 4 , Figure 4 which is a schematic structural diagram of an electronic device provided in this embodiment. The electronic device may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 322 (for example, one or more processors) and a memory 332. The memory 332 stores one or more computer application programs 342 or data 344. Among them, the memory 332 can be short-term storage or persistent storage. The program stored in the memory 332 may include one or more modules (not marked in the figure), and each module may include a series of instruction operations on the data processing device. Further, the central processor 322 can be set to communicate with the memory 332 and execute a series of instruction operations in the memory 332 on the electronic device 301.
[0133] The electronic device 301 may further include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input / output interfaces 358, and / or one or more operating systems 341.
[0134] The steps in the server bare machine management method described above can be implemented by the structure of the electronic device.
[0135] Corresponding to the above method embodiments, the embodiments of the present application further provide a readable storage medium. A readable storage medium described below can be correspondingly referred to with a server bare metal management method described above.
[0136] A readable storage medium has a computer program stored thereon. When the computer program is executed by a processor, the steps of the server bare metal management method in the above method embodiments are implemented.
[0137] Specifically, the readable storage medium can be various readable storage media such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc that can store program codes.
[0138] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The same or similar parts among the embodiments can be referred to each other. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple. For the relevant parts, reference can be made to the description in the method part.
[0139] Those skilled in the art can further realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been generally described according to functions in the above description. Whether these functions are executed in the form of hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0140] The steps of the method or algorithm described in combination with the embodiments disclosed herein can be directly implemented by hardware, a software module executed by a processor, or a combination of the two. The software module can be placed in a random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.
[0141] Finally, it should also be noted that in this article, terms such as "including", "comprising", or any other variant are intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article, or device.
[0142] In this text, specific examples are used to illustrate the principle and implementation mode of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation mode and application scope. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A bare-metal server management method, characterized in that, Including: Using the baseboard management controllers of each bare machine in the server cluster to establish a device mapping relationship table corresponding to the bare machine; After the target command description is selected and the one-key query instruction is obtained, using the command mapping relationship table to determine the target command to be executed; Using the device mapping relationship table to determine each target bare machine to execute the target command; Sending the target command to each of the target bare machines respectively, receiving the feedback information sent by each of the target bare machines, and binding and storing the feedback information with the corresponding SN in the storage space; SN is the product serial number of the bare machine; Among them, the selection of the target command description includes: Outputting each command description in the command mapping relationship table on the display interface; Monitoring the display interface to obtain the operation information of the selection of the target command description.
2. The server bare metal management method according to claim 1, wherein Using the baseboard management controllers of each bare machine in the server cluster to establish a device mapping relationship table corresponding to the bare machine, including: Obtaining the IP addresses of each of the bare machines from the DHCP server; Using the IP addresses to establish communication connections with each of the bare machines through the baseboard management controller; Using the communication connections to obtain the SN information of each of the bare machines; Using the SN information and the IP addresses to establish the device mapping relationship table.
3. The server bare-metal management method according to claim 2, wherein The obtaining of the IP addresses of each of the bare machines from the DHCP server includes: After the server cluster is connected to the local area network, using the DHCP server in the local area network to assign the IP addresses to each of the bare machines; Communicating with the DHCP server to obtain the IP addresses.
4. The server bare metal management method according to claim 2, wherein Using the IP addresses to establish communication connections with each of the bare machines through the baseboard management controller, including: Outputting login prompt information on the display interface; Obtaining login information, and when the login information is correct, using the IP addresses to establish the communication connections through the baseboard management controller.
5. The server bare metal management method according to claim 2, wherein Using the SN information and the IP addresses to establish the device mapping relationship table, including: Using the lighting command to determine the corresponding relationship between the SN information, the IP addresses and the physical bare machines; Using the corresponding relationship to establish the device mapping relationship table.
6. The server bare-metal management method according to any one of claims 1 to 5, characterized in that Also including: After obtaining the one-key filling instruction, determining the selected bare machine and starting the BMC filling program; Using the time-division multiplexing method to transmit the image in the storage space to each of the selected bare machines to achieve batch image filling.
7. A bare-metal server management device, characterized in that, Including: A device mapping relationship establishment module for using the baseboard management controllers of each bare machine in the server cluster to establish a device mapping relationship table corresponding to the bare machine; A command confirmation module for, after the target command description is selected and the one-key query instruction is obtained, using the command mapping relationship table to determine the target command to be executed; among them, the selection of the target command description includes: outputting each command description in the command mapping relationship table on the display interface; monitoring the display interface to obtain the operation information of the selection of the target command description; A bare machine determination module for using the device mapping relationship table to determine each target bare machine to execute the target command; A command execution module, configured to separately send the target command to each of the target bare machines, receive feedback information sent by each of the target bare machines, and bind and store the feedback information with the corresponding SN in a storage space; the SN is the product serial number of the bare machine.
8. An electronic device, characterized in that, It includes: A memory, configured to store computer programs; A processor, configured to implement the steps of the server bare machine management method according to any one of claims 1 to 6 when executing the computer programs.
9. A readable storage medium, characterized in that, A computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the steps of the server bare machine management method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Communication adaptation layer system and method for obtaining the network element information
CN101035020A
Bare computer information acquisition method and system and storage medium
CN113037849A