A kind of server management system MAC Address distribution method
Technical field
The present invention relates to server admin technical field, more particularly to a kind of server management system MAC Address distribution side
Method.
Background technology
Management system in blade server or whole machine cabinet server generally comprise a SMC and multiple BMC, SMC with
Extraneous and SMC needs to communicate by LAN with BMC, in order to support LAN communication to need when machine dispatches from the factory for each management
The LAN interface of controller sets unique MAC Address.But it is artificial that the inefficient of MAC Address is set, with also easily there is MAC
The mistakes such as location conflict.How unified distribution simply and efficiently to be carried out to the MAC Address of SMC in server management system and BMC
It is a technical issues that need to address.
In order to solve the problems, such as efficiently to distribute unitedly MAC Address, the present invention is with proposing a kind of server management system MAC
Location distribution method.
The content of the invention
In order to compensate for the shortcomings of the prior art, the present invention provides a kind of simple efficient server management system MAC
Location distribution method.
The present invention is achieved through the following technical solutions:
A kind of server management system MAC Address distribution method, it is characterised in that:Server management system includes one
SMC and multiple BMC, the SMC carry out Socket communications by LAN and MAC Address server, and the SMC passes through IPMB buses
Communicate with multiple BMC;
After MAC Address request monitoring process receives the MAC Address request message that MAC Address distribution process is sent, from MAC
A unassigned MAC Address is taken out in the resource pool of location and returns to MAC Address distribution process, and identifies the MAC Address state
To have distributed, the MAC Address distribution process is the MAC Address using the MAC Address used before IPMI orders modification SMC;
BMC quantity of the subsequent SMC in cabinet obtains BMC's using same method from MAC Address server
MAC Address, and the MAC Address of each BMC is configured through IPMB buses using IPMI orders, MAC Address server is marked
MAC Address allocated will not be used for MAC Address distribution again in the MAC Address resource pool of knowledge.
Server management system MAC Address distribution method of the present invention, comprises the following steps:
(1)LAN connections are established between server management system and MAC Address server;
(2)Start MAC Address server and server management system;
(3)After the SMC start completions, the MAC Address of operation thereon distributes process manually in serial ports;
(4)The MAC Address distribution process uses the MAC Address and management IP and the MAC in same network segment given tacit consent in firmware
MAC Address request monitoring process in address server carries out Socket communications, sends MAC Address request command;
(5)After the MAC Address request monitoring process receives the MAC Address request command from MAC Address distribution process,
One is taken out from MAC Address resource pool and is not identified as allocated MAC Address, is returned by MAC Address request-reply
Process is distributed back to MAC Address, while identifies this MAC Address to have distributed state;
(6)The MAC Address distribution process is set using IPMI order Set LAN Configuration Parameters
The MAC Address for putting SMC is the step(5)In be identified as allocated MAC Address;
(7)The SMC obtains BMC's using same method according to the quantity of BMC in cabinet from MAC Address server
MAC Address;
(8)The MAC Address distribution process is passed through using IPMI order Set LAN Configuration Parameters
IPMB buses set the MAC Address of each BMC;
(9)The MAC Address distribution process exits, and the MAC Address assigning process of complete machine management system is completed.
The step(4)In, for acquiescence MAC Address it is invalid in the case of, MAC Address distribution process can pass through
IPMI order Set LAN Configuration Parameters one interim MAC Address of setting, this interim MAC
Location randomly generates or is hard coded into program.
The step(7)In, the BMC can send initialization completion signal, the SMC knots after initialization procedure is completed
Close the Slot ID of each BMC and the initialization completion signal detected counts the quantity of BMC;
The SMC once obtains the MAC Address of a BMC by MAC Address request command, is determined according to the quantity of BMC
Number is performed, without increasing new request command and corresponding request-reply.
The beneficial effects of the invention are as follows:The server management system MAC Address distribution method, reduces human intervention, carries
High MAC Address allocative efficiency, solves that the artificial efficiency for setting MAC Address is low, the mistake such as MAC Address conflict easily occurs
Problem, simply and efficiently can carry out unified distribution to the MAC Address of SMC in server management system and BMC.
Brief description of the drawings
Attached drawing 1 is server management system MAC Address distribution system schematic diagram of the present invention;
Attached drawing 2 is server management system MAC Address distribution method schematic diagram of the present invention.
Embodiment
In order to which technical problems, technical solutions and advantages to be solved are more clearly understood, tie below
Accompanying drawings and embodiments are closed, the present invention will be described in detail.It should be noted that specific embodiment described herein is only used
To explain the present invention, it is not intended to limit the present invention.
One server typically with multiple blades, equipped with a management support plate and several computing units, and machine
The important components such as case power supply, fan.Manage and a SMC is placed on support plate, a BMC is placed on each computing unit.The SMC
MAC Address request command is transmitted by LAN with MAC Address server and MAC Address request-reply, the SMC and BMC pass through
IPMB buses transmission IPMI sets network configuration parameters order, as shown in Figure 1.
As shown in Figure 2, the SMC is according to following steps distribution server management system MAC Address:
(1)LAN connections are established between server management system and MAC Address server;
(2)Start MAC Address server and server management system;
(3)After the SMC start completions, the MAC Address of operation thereon distributes process manually in serial ports;
(4)The MAC Address distribution process uses the MAC Address and management IP and the MAC in same network segment given tacit consent in firmware
MAC Address request monitoring process in address server carries out Socket communications, sends MAC Address request command;
For acquiescence MAC Address it is invalid in the case of, MAC Address distribution process can pass through IPMI order Set LAN
Configuration Parameters set an interim MAC Address, this interim MAC Address can be randomly generated
Or be hard coded into program;
(5)After the MAC Address request monitoring process receives the MAC Address request command from MAC Address distribution process,
One is taken out from MAC Address resource pool and is not identified as allocated MAC Address, is returned by MAC Address request-reply
Process is distributed back to MAC Address, while identifies this MAC Address to have distributed state;
MAC Address allocated will not be used for MAC again in the MAC Address resource pool that MAC Address server is identified
Address is distributed;
(6)The MAC Address distribution process is set using IPMI order Set LAN Configuration Parameters
The MAC Address for putting SMC is the step(5)In be identified as allocated MAC Address;
(7)The SMC obtains BMC's using same method according to the quantity of BMC in cabinet from MAC Address server
MAC Address;
The BMC can send initialization completion signal after initialization procedure is completed, and the SMC is with reference to each BMC's
Slot ID and the initialization completion signal detected count the quantity of BMC;
The SMC once obtains the MAC Address of a BMC by MAC Address request command, is determined according to the quantity of BMC
Number is performed, without increasing new request command and corresponding request-reply;
(8)The MAC Address distribution process is passed through using IPMI order Set LAN Configuration Parameters
IPMB buses set the MAC Address of each BMC;
(9)The MAC Address distribution process exits, and the MAC Address assigning process of complete machine management system is completed.
One kind of embodiment described above, the simply specific embodiment of the invention, those skilled in the art is in this hair
The usual variations and alternatives carried out in the range of bright technical solution should all include within the scope of the present invention.