A kind of server management system MAC Address distribution method
Technical field
The present invention relates to server admin technical field, particularly a kind of server management system MAC Address distribution method.
Background technology
Management system in blade server or whole machine cabinet server comprises a SMC and multiple BMC usually, SMC needs to be communicated by LAN with extraneous and SMC and BMC, in order to support that the LAN needs that communicate are that the LAN interface of each Management Controller arranges unique MAC Address when machine dispatches from the factory.But the efficiency artificially arranging MAC Address is not high, easily occurs the mistakes such as MAC Address conflict yet.How simply to carry out unified distribution to the MAC Address of SMC and BMC in server management system is efficiently technical issues that need to address.
In order to solve the problem of efficient unified distribution MAC Address, the present invention proposes a kind of server management system MAC Address distribution method.
Summary of the invention
The present invention, in order to make up the defect of prior art, provides a kind of simple server management system MAC Address distribution method efficiently.
The present invention is achieved through the following technical solutions:
A kind of server management system MAC Address distribution method, it is characterized in that: server management system comprises a SMC and multiple BMC, described SMC carries out Socket by LAN with MAC Address server and communicates, and described SMC is communicated with multiple BMC by IPMB bus;
After MAC Address request monitoring process receives the MAC Address request message of MAC Address distribution process transmission, from MAC Address resource pool, take out a MAC Address be not assigned with return to MAC Address distribution process, and identifying this MAC Address state for distribute, the MAC Address that described MAC Address distribution process uses before using IPMI order amendment SMC is this MAC Address;
Described SMC makes to use the same method according to the BMC quantity in cabinet and obtains the MAC Address of BMC from MAC Address server subsequently, and using IPMI order to arrange through the MAC Address of IPMB bus to each BMC, the MAC Address be assigned with in the MAC Address resource pool that MAC Address server identifies can not be used to MAC Address again and distribute.
Server management system MAC Address distribution method of the present invention, comprises the following steps:
(1) set up LAN between server management system with MAC Address server to be connected;
(2) MAC Address server and server management system is started;
(3), after described SMC has started, in serial ports, the MAC Address distribution process on it is manually run;
(4) MAC Address given tacit consent in described MAC Address distribution process use firmware is carried out Socket with managing I P with the MAC Address request monitoring process in the MAC Address server in same network segment and is communicated, and sends MAC Address request command;
(5) after described MAC Address request monitoring process receives the MAC Address request command from MAC Address distribution process, from MAC Address resource pool, take out one be not identified as the MAC Address of having distributed, returned to MAC Address distribution process by MAC Address request-reply, identified this MAC Address for distribution state simultaneously;
(6) MAC Address that described MAC Address distribution process uses IPMI order SetLANConfigurationParameters to arrange SMC is be designated the MAC Address of having distributed in described step (5);
(7) described SMC makes to use the same method according to the quantity of BMC in cabinet and obtains the MAC Address of BMC from MAC Address server;
(8) described MAC Address distribution process uses IPMI order SetLANConfigurationParameters to arrange the MAC Address of each BMC through IPMB bus;
(9) described MAC Address distribution process exits, and the MAC Address assigning process of complete machine management system completes.
In described step (4), when MAC Address for acquiescence is invalid, MAC Address distribution process can arrange an interim MAC Address by IPMI order SetLANConfigurationParameters, this interim MAC Address can be random generation, also can be hard coded in program.
In described step (7), described BMC can send initialization completion signal after completing initialization procedure, and described SMC counts the quantity of BMC in conjunction with the SlotID of each BMC and the initialization completion signal that detects;
Described SMC once obtains the MAC Address of a BMC by MAC Address request command, determines to perform number of times, without the need to increasing new request command and corresponding request-reply according to the quantity of BMC.
The invention has the beneficial effects as follows: this server management system MAC Address distribution method, decrease human intervention, improve MAC Address allocative efficiency, solve the efficiency that MAC Address is artificially set low, easily there is the problem of the mistakes such as MAC Address conflict, unified distribution can be carried out to the MAC Address of SMC and BMC in server management system simply efficiently.
Accompanying drawing explanation
Accompanying drawing 1 is server management system MAC Address distribution system schematic diagram of the present invention;
Accompanying drawing 2 is server management system MAC Address distribution method schematic diagram of the present invention.
Embodiment
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearly understand, below in conjunction with drawings and Examples, the present invention will be described in detail.It should be noted that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
A server typically with multiple blade, is provided with a management support plate and several computing units, and the important component such as chassis power supply, fan.Management support plate places a SMC, each computing unit places a BMC.Described SMC and MAC Address server transmit MAC Address request command and MAC Address request-reply by LAN, and described SMC and BMC transmits IPMI by IPMB bus and arranges network configuration parameters order, as shown in Figure 1.
As shown in Figure 2, described SMC is according to following steps distribution server management system MAC Address:
(1) set up LAN between server management system with MAC Address server to be connected;
(2) MAC Address server and server management system is started;
(3), after described SMC has started, in serial ports, the MAC Address distribution process on it is manually run;
(4) MAC Address given tacit consent in described MAC Address distribution process use firmware is carried out Socket with managing I P with the MAC Address request monitoring process in the MAC Address server in same network segment and is communicated, and sends MAC Address request command;
When MAC Address for acquiescence is invalid, MAC Address distribution process can arrange an interim MAC Address by IPMI order SetLANConfigurationParameters, this interim MAC Address can be random generation, also can be hard coded in program;
(5) after described MAC Address request monitoring process receives the MAC Address request command from MAC Address distribution process, from MAC Address resource pool, take out one be not identified as the MAC Address of having distributed, returned to MAC Address distribution process by MAC Address request-reply, identified this MAC Address for distribution state simultaneously;
The MAC Address be assigned with in the MAC Address resource pool that MAC Address server identifies can not be used to MAC Address again and distribute;
(6) MAC Address that described MAC Address distribution process uses IPMI order SetLANConfigurationParameters to arrange SMC is be designated the MAC Address of having distributed in described step (5);
(7) described SMC makes to use the same method according to the quantity of BMC in cabinet and obtains the MAC Address of BMC from MAC Address server;
Described BMC can send initialization completion signal after completing initialization procedure, and described SMC counts the quantity of BMC in conjunction with the SlotID of each BMC and the initialization completion signal that detects;
Described SMC once obtains the MAC Address of a BMC by MAC Address request command, determines to perform number of times, without the need to increasing new request command and corresponding request-reply according to the quantity of BMC;
(8) described MAC Address distribution process uses IPMI order SetLANConfigurationParameters to arrange the MAC Address of each BMC through IPMB bus;
(9) described MAC Address distribution process exits, and the MAC Address assigning process of complete machine management system completes.
Above-described embodiment, the just one of the specific embodiment of the invention, the usual change that those skilled in the art carries out within the scope of technical solution of the present invention and replacement all should be included in protection scope of the present invention.