CN106657444B - A kind of method and device for the IP address configuring BMC - Google Patents

A kind of method and device for the IP address configuring BMC Download PDF

Info

Publication number
CN106657444B
CN106657444B CN201710103909.3A CN201710103909A CN106657444B CN 106657444 B CN106657444 B CN 106657444B CN 201710103909 A CN201710103909 A CN 201710103909A CN 106657444 B CN106657444 B CN 106657444B
Authority
CN
China
Prior art keywords
address
bmc
user
server
initramfs
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
CN201710103909.3A
Other languages
Chinese (zh)
Other versions
CN106657444A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710103909.3A priority Critical patent/CN106657444B/en
Publication of CN106657444A publication Critical patent/CN106657444A/en
Application granted granted Critical
Publication of CN106657444B publication Critical patent/CN106657444B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5061Pools of addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a kind of methods of IP address for configuring BMC, and in the pxe network environment that user builds, the IP address section of user configuration is obtained by the initramfs.img mirror image of load user's preparation;After the instruction for receiving the task that the BMC that user is multiple server nodes configures IP address, configured according to IP address of the IP address section got to the BMC of multiple server nodes.At cloud data manipulation center, the IP address to the BMC of each server node of data center carries out automatic configuration, the working efficiency of the IP address of each node configuration BMC in cloud data manipulation center is improved in a manner of remote batch, a large amount of human and material resources and financial resources are saved, the economic results in society having had.In addition, further such that the method has more practicability, described device has the advantages that corresponding the embodiment of the invention also provides corresponding realization device.

Description

A kind of method and device for the IP address configuring BMC
Technical field
The present embodiments relate to cloud fields, more particularly to a kind of method and device of IP address for configuring BMC.
Background technique
With the rapid development of cloud, cloud data manipulation center applications and give birth to.Cloud data manipulation center be cloud computing with And the conformability scheme of cloud storage, it can be realized calculating, storage, comprehensive logically resource consolidation of network.Support hardware online Extension, plug and play can manage 5000 or more servers simultaneously, and the memory space of Chi Hua 50000TB or more is supported 50000 or more virtual resource nodes support continual resource to evolve;In addition, cloud data manipulation center can be in data The heart carries out integral automation management, increases substantially operation level.
BMC (baseboard management controller, baseboard management controller) is a kind of Server remote pipe Device is managed, can monitor that plateform system management event (is invaded for example including temperature exceeding standard, voltage over standard, fan failure and cabinet automatically Deng), the logout of generation in non-volatile System Event Log.BMC provides shared register interface, Ke Yitong The interface is crossed on the server or machine remote management operational management software (such as ipmitool.exe), to the current number of platform According to being stored and retrieved.
IP address (Internet Protocol Address, internet protocol address) is one kind in the internet Internet On to host address mode.That is, the 32bit that the host of each connection on internet can distribute Location, as IP address.IP address includes network identity number and host identification number two parts, i.e., IP address by network address with Host address is constituted.It is provided according to ICP/IP protocol, IP address is indicated with binary system, each long 32bit of IP address.For side Just use, IP address can be write as metric form, intermediate to be separated using point symbol, i.e., Dotted decimal notation indicates, Such as 10.0.0.1.In addition, ICP/IP protocol needs to carry out different settings for different networks, and each node includes one A IP address, a subnet mask and a default gateway.
A large amount of server is added in cloud data manipulation center, or has been configured the server needs of BMC again When configuring the IP address of BMC, staff successively enters BIOS when the server is switched on to each server manually The set interface of (Basic Input Output System, basic input output system), the interface BIOS to the IP of BMC Location is configured.
When cloud data manipulation center needs to configure the substantial amounts of IP address server of BMC, artificial single machine is matched manually The IP address of BMC is set, not only time-consuming and laborious, manual operation can also bring inevitable fault, lead to entire data center Working efficiency and accuracy rate are low.
Therefore, the efficiency of the IP address of the BMC of multiple servers and accurate how is improved in configuration cloud data manipulation center Rate is those skilled in the art's urgent problem to be solved.
Summary of the invention
The purpose of the embodiment of the present invention is that a kind of method and device of IP address for configuring BMC is provided, to improve configuration cloud The efficiency and accuracy rate of the IP address of the BMC of multiple servers in data manipulation center.
In order to solve the above technical problems, the embodiment of the present invention the following technical schemes are provided:
On the one hand the embodiment of the present invention provides a kind of method of IP address for configuring BMC, comprising:
Obtain the initramfs.img Mirror Info of user's input;
In the pxe network environment that the user builds, by loading the initramfs.img mirror image, to obtain State the IP address section that user configures in Dynamic Host Configuration Protocol server;
The instruction that the BMC that the user is multiple server nodes configures the task of IP address is received, according to the IP Location section configures the IP address of the BMC of multiple server nodes.
Optionally, described by loading the initramfs.img mirror image, matched with obtaining the user in Dynamic Host Configuration Protocol server The IP address section set includes:
Establish IP address pond;
By loading the initramfs.img mirror image, to obtain the IP address that the user configures in Dynamic Host Configuration Protocol server Section, and the IP address section is put into the IP address pond.
Optionally, matched described according to IP address of the IP address section to the BMC of multiple server nodes After setting, further includes:
The IP address distributed for the BMC is marked, as unavailable IP address, for distinguishing the IP address Available IP address in pond.
Optionally, further includes:
Judge whether each IP address in the IP address pond can be used within a preset time;
When determining that current IP address is unavailable, the current IP address is marked, for distinguishing the IP Available IP address in the pond of location.
Optionally, matched described according to IP address of the IP address section to the BMC of multiple server nodes After setting, further includes:
The IP address of the BMC of current server node is shown to the user;
It detects whether to receive the instruction that the user modifies to the IP address of the BMC;
When the instruction for receiving the user and modifying to the IP address of the BMC, according to instruction to the IP of the BMC It modifies address.
Optionally, described to be configured according to IP address of the IP address section to the BMC of multiple server nodes Are as follows:
Multiple available IP address are chosen from the IP address pond, the quantity with IP address is not less than the service The quantity of device node;
It described can be configured with IP address of the IP address to the BMC of multiple server nodes according to multiple.
Optionally, described to be configured according to IP address of the IP address section to the BMC of multiple server nodes Are as follows:
Receive the instruction of the IP address for the BMC that the user is each server node setting;
It carries out configuring corresponding IP address according to BMC of the described instruction to multiple server nodes.
Optionally, in the pxe network environment built in the user, by loading the initramfs.img mirror Picture, to obtain the IP address section that the user configures in Dynamic Host Configuration Protocol server are as follows:
Load the initramfs.img mirror image;
Agent in the initramfs.img mirror image obtains the use by the RestFull interface of pxe server The IP address section that family is configured in Dynamic Host Configuration Protocol server.
Optionally, further includes:
To the user show the BMC to each server node carry out configuration IP address sequence and configure into Degree.
On the other hand the embodiment of the present invention provides a kind of device of IP address for configuring BMC, comprising:
Information module is obtained, for obtaining the initramfs.img Mirror Info of user's input;It is built in the user In pxe network environment, by loading the initramfs.img mirror image, configured in Dynamic Host Configuration Protocol server with to obtain the user IP address section;
Node configuration module configures the task of IP address for receiving the BMC that the user is multiple server nodes Instruction, configures according to IP address of the IP address section to the BMC of multiple server nodes.
The embodiment of the invention provides a kind of methods of IP address for configuring BMC, in the pxe network environment that user builds In, by the initramfs.img mirror image of load user's preparation to obtain the IP address section that user configures in Dynamic Host Configuration Protocol server;? After the instruction for receiving the task that the BMC that user is multiple server nodes configures IP address, according to the IP address got Section configures the IP address of the BMC of multiple server nodes.
The advantages of technical solution provided by the present application, is, at cloud data manipulation center to each server of data center The IP address of the BMC of node carries out automatic configuration, and each node in cloud data manipulation center is improved in a manner of remote batch The working efficiency for configuring the IP address of BMC, saves a large amount of human and material resources and financial resources, is conducive to carry out one to data center Body automatic management, is greatly improved operation level, the economic results in society having had.
In addition, the embodiment of the present invention provides corresponding realization device also directed to the method for configuration BIOS, further such that The method has more practicability, and described device has the advantages that corresponding.
Detailed description of the invention
It, below will be to embodiment or existing for the clearer technical solution for illustrating the embodiment of the present invention or the prior art Attached drawing needed in technical description is briefly described, it should be apparent that, the accompanying drawings in the following description is only this hair Bright some embodiments for those of ordinary skill in the art without creative efforts, can be with root Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow diagram of the method for IP address for configuring BMC provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of the method for the IP address of another configuration BMC provided in an embodiment of the present invention;
Fig. 3 is a kind of embodiment structure figure of the device of the IP address of configuration BMC provided in an embodiment of the present invention;
Fig. 4 is the another embodiment structure chart of the device of the IP address of configuration BMC provided in an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
The description and claims of this application and term " first ", " second ", " third " " in above-mentioned attached drawing Four " etc. be for distinguishing different objects, rather than for describing specific sequence.Furthermore term " includes " and " having " and Their any deformations, it is intended that cover and non-exclusive include.Such as contain a series of steps or units process, method, System, product or equipment are not limited to listed step or unit, but may include the step of not listing or unit.
Present inventor has found after study, in the IP address of the BMC of each server to cloud data manipulation center When being configured, typically staff is in the set interface for entering BIOS when it starts to each node to be configured Afterwards, the IP address of BMC is configured manually at the interface.Since the server and single machine quantity at cloud data manipulation center are huge Greatly, artificial single machine installs operating system, and not only time-consuming and laborious, manual operation can also bring inevitable fault, causes entire The working efficiency and accuracy rate of data center are low.
In consideration of it, the application carries out automatic configuration by way of remote batch, to each node in cloud data manipulation center The IP address of BMC.Staff is only needed once to be configured and issued configuration task.It greatly simplified previous Operating mode saves plenty of time and manpower, improves the IP address of the BMC of each server of cloud data manipulation center configuration Accuracy rate and working efficiency.
After describing the technical solution of the embodiment of the present invention, the various non-limiting realities of detailed description below the application Apply mode.
Referring firstly to Fig. 1, Fig. 1 is a kind of process of the method for IP address for configuring BMC provided in an embodiment of the present invention Schematic diagram, the embodiment of the present invention may include the following contents:
S101: the initramfs.img Mirror Info of user's input is obtained.
Linux kernel is after itself initialization is completed, it is desirable to be able to find and run first user program (this A program is generally termed " init " program).User program is present among file system, and therefore, kernel must be found and carry One file system can just successfully complete the bootup process of system.
User program necessary to some startings and drive module are placed in RAM disk, this RAM disk is seemed As common disk, there is file system, has cache that RAM disk carry is got up first, is waited until when kernel starts Init program and some necessary modules are behaved and then are switched among real file system.
The scheme of RAM disk is actually initrd, and still, although initrd is solved the problems, such as but and imperfect.Than Such as, disk has cache mechanism, and for RAM disk, this cache mechanism just seems many remaining and wasting spaces;disk Need file system, that file system (such as ext2) must be compiled cannot function as into kernel module come using.It is based on This, Initramfs comes into being.Initramfs is a kind of ram file system rather than disk.Initramfs is really one Cpio filing, starts required user program and drive module and is archived into a file.It therefore, there is no need to cache, be also not required to Want file system.
The process for preparing initramfs.img mirror image can be as follows:
Initramfs.img can first be downloaded and simplify mirror image, pass through gzip-dc initramfs.img | cpio-div order This image decompressing is reduced to some customized catalogue, then the agent program user's production copies in the mirror image.Pass through Gzip-dc initramfs.img | cpio-div makes to make last initramfs.img mirror image.
Certainly, other modes can also be used in initramfs.img mirror image production, and the application is not limited in any way this.
S102: in the pxe network environment that the user builds, by loading the initramfs.img mirror image, to obtain The IP address section for taking the user to configure in Dynamic Host Configuration Protocol server.
PXE (preboot execute environment, Pre-boot Execution Environment) is for no disk, the net for having disk to network Network agreement.Deposit in the BIOS or ROM on mainboard or network interface card.Work in C/S (Client/Server, client/server) Network mode, support work station by network from remote server download image, and thus support by network startup operation System, during startup, demanding terminal server distribute IP address, then with TFTP (trivial file transfer Protocol, Simple File Transfer Protocol) or MTFTP (multicast trivial file transfer protocol) association View one starting software package of downloading is executed into local memory, completes the setting of terminal basic software by this starting software package, from And guide the terminal operating system being pre-installed in server.PXE can guide several operation systems.
TFTP is that one in TCP/IP protocol suite is used to carry out simple files transmission between clients and a server Agreement provides file transfer services uncomplicated, that expense is little.Since the TFTP that MTFTP is multiple spot is serviced, and in this application Starting software package need to be only downloaded from network into local memory, therefore TFTP can be selected and transmit for file.
Building for pxe network environment can are as follows:
Third party's environment such as cobbler can be used, build Dynamic Host Configuration Protocol server configuration pxe guidance file and tftp server Tftp server address is built in address, sets tftp server root, the initramfs image copying that will be prepared in S101 To TFTP catalogue, pxelinux.cfg catalogue is then created.Wherein, Dynamic Host Configuration Protocol server is used to distribute IP address for pxe server.
Certainly, pxe network environment builds the other modes method that can also be used, and the embodiment of the present invention do not make any limit to this It is fixed.
After the pxe network environment put up, user can be by loading initramfs.img mirror image, initramfs.img Agent meeting automatic running in mirror image, the IP then configured from the RestFull Interface User of pxe server in Dynamic Host Configuration Protocol server Address field.
DHCP (agreement is arranged in Dynamic Host Configuration Protocol, DynamicHost) is a local The network protocol of net, is worked using udp protocol, for internal network or Internet service provider's automatic IP address allocation;It gives User or internal network administrator are as the means that all computers are made with central management.DynamicHost setting agreement (DHCP) It can manage and distribute automatically the communication protocol of IP network address concentratedly.In an ip network, the equipment of each connection Internet It requires to distribute unique IP address.DHCP enables network administrator to monitor and distribute IP address from central node.It is counted when certain When calculation machine moves on to the other positions in network, new IP address can be received automatically.
It should be noted that user is in the IP address section that Dynamic Host Configuration Protocol server configures, while being configured with corresponding subnet and covering Code and default gateway.
Since IP address has the characteristics that distribute level, i.e., each IP address is divided into network number and host number two Point, in order to the addressing operation of IP address, therefore subnet mask is unable to individualism, it must be used together in conjunction with IP address.Son Only one effect of net mask, is exactly divided into network address and host address two parts for some IP address.Subnet mask Setting must comply with certain rule.Identical as IP address, the length of subnet mask is also 32, and the left side is network position, with two Binary digits " 1 " indicate;The right is host bit, is indicated with binary digit " 0 ".Shown in the drawings is exactly that IP address is " 192.168.1.1 " and subnet mask are that the binary system of " 255.255.255.0 " compares.Wherein, " 1 " has 24, represent and this 24, the corresponding IP address left side is network number;" 0 " has 8, and representing 8 corresponding, IP address the right is host Number.In this way, subnet mask determined that in 32 bit binary numbers an of IP address which be network number, which be host Number.This is extremely important for the network using ICP/IP protocol, only by subnet mask, just can be shown that a host institute Subnet and other subnets relationship, work normally network.
Gateway is " critical point " that another network is arrived in a network connection, and ICP/IP protocol also can be according to subnet mask (255.255.255.0) determines that the host in two networks is in different networks.And it to realize logical between the two networks Letter, then must pass through gateway.If the destination host of the detecting host data packet in network A is not in the home network, just number The gateway of own is transmitted to according to packet, then by gateway forwards to the gateway of network B, the gateway of network B relays to certain of network B A host.Network B is also so thus, only to set the IP address of gateway, TCP/ to the process of network A forwarding data packet IP agreement is just able to achieve being in communication with each other between heterogeneous networks.
In system loads initramfs.img mirror image, the agent in initramfs.img mirror image understands automatic running, so The IP address section configured afterwards by the RestFull interface captures user of pxe server in Dynamic Host Configuration Protocol server and corresponding subnet Mask and default gateway.
In a specific embodiment, IP address pond can be established, the IP address section that will acquire and corresponding subnet Mask and default gateway are put into IP address pond.
By loading the initramfs.img mirror image, to obtain the IP address that the user configures in Dynamic Host Configuration Protocol server Section, and the IP address section is put into the IP address pond.
Optionally, in a kind of specific embodiment, IP address can be used by obtaining in IP address pond, specifically, It can are as follows:
Multiple available IP address are chosen from the IP address pond, the quantity with IP address is not less than the service The quantity of device node;
It described can be configured with IP address of the IP address to the BMC of multiple server nodes according to multiple.
In another specific embodiment, user requires difference to the IP address of the BMC of different servers, is Certain special servers are configured.When obtaining the IP address information of BMC, concretely:
Receive the instruction of the IP address for the BMC that the user is each server node setting;
It carries out configuring corresponding IP address according to BMC of the described instruction to multiple server nodes.
S103: the instruction that the BMC that the user is multiple server nodes configures the task of IP address is received, according to described IP address section configures the IP address of the BMC of multiple server nodes.
User chooses node to be configured, after getting the corresponding IP address information of each node, to each to be configured The configuration sequence of node and the time being initially configured are configured, and the task after setting as node configuration IP address is System carries out remote automation according to BMC of the task to each node and configures IP address.
Technical scheme can not only configure multiple nodes, i.e., the batch-automated node in task BMC carries out configuration IP address, can also carry out Remote configuration IP address to the BMC of individual node.
Since the uniqueness of IP address is other server nodes in the later period for the IP address dispensed When the IP address of BMC distribution is allocated, it is clear that it is disabled, in order to guarantee that the IP address dispensed is available address, The embodiment of the present invention may also include that
The IP address distributed for BMC is marked, as unavailable IP address, for distinguishing in the IP address pond Available IP address.
Further, in order to distinguish in IP address pond, occupied IP address, can real-time perfoming maintenance, optionally, can IP address in IP address pond is sorted out, specifically may be used are as follows:
Judge whether each IP address in the IP address pond can be used within a preset time;
When determining that current IP address is unavailable, the current IP address is marked, for distinguishing the IP Available IP address in the pond of location.
Certainly, other modes can also be used and be identified occupied IP address, this does not influence the reality of the application It is existing.
Pass through the management of the IP address to IP address pond, it is ensured that the IP address validity dispensed, and then improve and match The accuracy rate and efficiency set.
In technical solution provided by the present application, pass through each server section at cloud data manipulation center to data center The IP address of the BMC of point carries out automatic configuration, and each node in cloud data manipulation center is improved in a manner of remote batch and is matched The working efficiency for setting the IP address of BMC saves a large amount of human and material resources and financial resources, is conducive to carry out one to data center Change automatic management, operation level is greatly improved, the economic results in society having had.
Cloud data manipulation center carries out with postponing each server node, and the result of configuration may not be that user is required Or certain some server have special requirement, need to carry out certain options special configuration, or due to the people that works Some options error that the fault of member causes BIOS to configure, etc..In consideration of it, present invention also provides another embodiments.
Fig. 3 is referred to, Fig. 3 is that the process of the method for the IP address of another configuration BMC provided in an embodiment of the present invention is shown It is intended to, it specifically may include the following contents that the embodiment of the present invention, which for example can be applied to the server where CPU:
S201-S203: specifically with it is consistent described by above-mentioned S101-S103, details are not described herein again.
S204: Xiang Suoshu user shows the IP address of the BMC of current server node.
S205: it detects whether to receive the instruction that the user modifies to the IP address of the BMC.
The IP address that system automatically configures may can be to certain services of certain server due to error in operation or user The IP address of the BMC of device carries out special setting.Therefore a settable preset time, such as 2min.Within the preset time, carry out Detect whether that user inputs the instruction of modification.
S206: when the instruction for receiving the user and modifying to the IP address of the BMC, according to instruction to described The IP address of BMC is modified.
When the instruction for detecting that user modifies, then modified according to instruction;If not detecting repairing for user Change instruction, then directly configure according to task configuration.
By showing the IP address information of the BMC of present node to user, user can understand that each server node has IP address, subnet mask and the default gateway of body.It modifies to configuration error or particular arrangement option, further mentions The accuracy rate for rising configuration, can also increase the using flexible of user, improve the usage experience of user;Expand the field of using, tool The economic benefit having had.
When nodes certain in cloud data pool urgent need use, or need to configure completion at first, staff or user just need Assigning before for task is checked, be adjusted as desired.In a specific embodiment, it is based on above-mentioned implementation Example may also include that
To the user show the BMC to each server node carry out configuration IP address sequence and configure into Degree.
Configuration sequence is the setting during active user assigns a task to each node configuration sequence, and user is according to itself need Ask and the configuration sequence in task and configuration progress the node for needing first to configure is adjusted, specifically may be used are as follows:
Reception user modifies the instruction of the task order of the BMC configuration IP address of multiple nodes, according to described instruction Adjust each node configuration sequence.
Certainly, others can also be adjusted, such as cancels the configuration of certain several node, or increase certain several new section The BMC of point configures IP address.
In a kind of specific embodiment, in order to allow user or staff to define the current section for having configured completion Point, based on the above embodiment, the application may also include that
Configuration node is completed to user prompt.
Prompt can show (such as liquid crystal display) on the screen by way of information in a certain format.Certain format Information can be text information, such as the node that number is 010 successfully configures;It can also be graphic form;It can also be digital form, The meaning that specific value indicates can be configured in advance;Or with the form of letter, such as 010-OK.Certainly, other can also be used The information of any format carries out prompting configured successful node, this does not influence the realization of the present embodiment.
It can also be prompted by way of voice, can specifically be prompted by sounding, such as voice is exportable The node that number is 010 successfully configures.
Indicator light can also be arranged to be prompted, LED can be used as indicator light, certainly, other any shapes can also be used Formula etc., such as diode, it is preferred that the lamp that brightness is big, power is small should be selected.For example, if present node configuration successful When, then it can be prompted by lighting indicator light.
Warning note can also be carried out.
When present node configuration successful, can alarm.Buzzer yowl can be used and carry out warning note, can also be used The form of other jingle bells is alarmed, other any type of alarms can also be used, this does not influence the reality of the embodiment of the present invention It is existing.
This setting is done, is in order to which current multiple node configuring conditions are understood more intuitively in its client or staff, i.e., Task performance, allow staff can control task as early as possible execution, be conducive to improve allocative efficiency.Or it can be replaced other Alarm set, but this setting can not also be done.
It is arranged and is alarmed so that the technical solution of the application is more intuitive, visualization, facilitates staff to use, promoted User experience.
Certainly, however it is not limited to above-mentioned form is prompted, as long as reach can by the result of present node configuration successful to User prompts, and user is allowed to understand the purpose of the node of current configured completion.
Certainly, it can also be shown simultaneously, voice prompting, indicator light and warning note are set, this does not influence the present invention Realization.
The embodiment of the present invention provides corresponding realization device also directed to the method for the IP address of configuration BMC, further makes It obtains the method and has more practicability.The device of the IP address of configuration BMC provided in an embodiment of the present invention is introduced below, The device of the IP address of configuration BMC described below can correspond to each other ginseng with the method for the IP address of arrangements described above BMC According to.
Fig. 3 is referred to, Fig. 3 is the device of the IP address of configuration BMC provided in an embodiment of the present invention in a kind of specific implementation Structure chart under mode, the device can include:
Information module 301 is obtained, for obtaining the initramfs.img Mirror Info of user's input;It is taken in the user In the pxe network environment built, by loading the initramfs.img mirror image, matched with obtaining the user in Dynamic Host Configuration Protocol server The IP address section set.
Node configuration module 302 configures the task of IP address for receiving the BMC that the user is multiple server nodes Instruction, configured according to IP address of the IP address section to the BMC of multiple server nodes.
In some embodiments of the present embodiment, the acquisition information module 301 for example can also include:
Unit 3011 is established, for establishing IP address pond, the IP address section that will acquire is put into the IP address pond.
Optionally, in other embodiments of the present embodiment, referring to Fig. 4, described device for example can also include Configuration information module 303 is modified, the modification configuration information module 303 may include
Display unit 3031, Xiang Suoshu user show the IP address of the BMC of current server node;
Detection unit 3032 detects whether to receive the instruction that the user modifies to the IP address of the BMC;
Modification information unit 3033, when the instruction for receiving the user and modifying to the IP address of the BMC, according to Instruction modifies to the IP address of the BMC.
In some embodiments of the present embodiment, described device for example can also include:
Display module 304, for showing that the BMC to each server node carries out configuration IP address to the user Sequence and configuration progress.
It may also include that
Cue module 305, for prompting the user with the node that configuration is completed.
The function that each functional module of the device of the IP address of BMC is configured described in the embodiment of the present invention can be according to the above method Method specific implementation in embodiment, specific implementation process are referred to the associated description of above method embodiment, herein not It repeats again.
From the foregoing, it will be observed that the embodiment of the present invention is at cloud data manipulation center to the BMC of each server node of data center IP address carry out automatic configuration, improve cloud data manipulation center each node configuration BMC's in a manner of remote batch The working efficiency of IP address saves a large amount of human and material resources and financial resources, is conducive to carry out integral automation to data center Management, is greatly improved operation level, the economic results in society having had.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.For being filled disclosed in embodiment For setting, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part Explanation.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Above to it is provided by the present invention it is a kind of configure BMC IP address method and device be described in detail. Used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only used In facilitating the understanding of the method and its core concept of the invention.It should be pointed out that for those skilled in the art, Without departing from the principle of the present invention, can be with several improvements and modifications are made to the present invention, these improvement and modification It falls into the protection scope of the claims in the present invention.

Claims (10)

1. a kind of method for the IP address for configuring BMC characterized by comprising
Obtain the initramfs.img Mirror Info of user's input;
In the pxe network environment that the user builds, by loading the initramfs.img mirror image, to obtain the use The IP address section that family is configured in Dynamic Host Configuration Protocol server;
The instruction that the BMC that the user is multiple server nodes configures the task of IP address is received, according to the IP address section The IP address of the BMC of multiple server nodes is configured.
2. the method according to claim 1, wherein described by loading the initramfs.img mirror image, with The user, which is obtained, in the IP address section that Dynamic Host Configuration Protocol server configures includes:
Establish IP address pond;
By loading the initramfs.img mirror image, to obtain the IP address section that the user configures in Dynamic Host Configuration Protocol server, and The IP address section is put into the IP address pond.
3. according to the method described in claim 2, it is characterized in that, it is described according to the IP address section to multiple services After the IP address of the BMC of device node is configured, further includes:
The IP address distributed for the BMC is marked, as unavailable IP address, for distinguishing in the IP address pond Available IP address.
4. according to the method described in claim 2, it is characterized by further comprising:
Judge whether each IP address in the IP address pond can be used within a preset time;
When determining that current IP address is unavailable, the current IP address is marked, for distinguishing the IP address pond Interior available IP address.
5. the method according to claim 1, which is characterized in that described according to the IP address section pair After the IP address of the BMC of multiple server nodes is configured, further includes:
The IP address of the BMC of current server node is shown to the user;
It detects whether to receive the instruction that the user modifies to the IP address of the BMC;
When the instruction for receiving the user and modifying to the IP address of the BMC, according to instruction to the IP address of the BMC It modifies.
6. according to the method described in claim 5, it is characterized in that, it is described according to the IP address section to multiple servers The IP address of the BMC of node is configured that
Multiple available IP address are chosen from the IP address pond, the quantity with IP address is not less than the server section The quantity of point;
It is configured according to IP address of the multiple available IP address to the BMC of multiple server nodes.
7. according to the method described in claim 5, it is characterized in that, it is described according to the IP address section to multiple servers The IP address of the BMC of node is configured that
Receive the instruction that the user is the IP address that BMC is arranged in each server node;
It carries out configuring corresponding IP address according to BMC of the described instruction to multiple server nodes.
8. the method according to the description of claim 7 is characterized in that leading in the pxe network environment built in the user It crosses and loads the initramfs.img mirror image, to obtain the IP address section that the user configures in Dynamic Host Configuration Protocol server are as follows:
Load the initramfs.img mirror image;
Agent in the initramfs.img mirror image obtains the user by the RestFull interface of pxe server and exists The IP address section of Dynamic Host Configuration Protocol server configuration.
9. according to the method described in claim 8, it is characterized by further comprising:
Show that the BMC to each server node carries out the sequence and configuration progress of configuration IP address to the user.
10. a kind of device for the IP address for configuring BMC characterized by comprising
Information module is obtained, for obtaining the initramfs.img Mirror Info of user's input;In the pxe that the user builds In network environment, by loading the initramfs.img mirror image, with obtaining IP that the user configures in Dynamic Host Configuration Protocol server Location section;
Node configuration module, the instruction for configuring the task of IP address for receiving the BMC that the user is multiple server nodes, It is configured according to IP address of the IP address section to the BMC of multiple server nodes.
CN201710103909.3A 2017-02-24 2017-02-24 A kind of method and device for the IP address configuring BMC Active CN106657444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710103909.3A CN106657444B (en) 2017-02-24 2017-02-24 A kind of method and device for the IP address configuring BMC

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710103909.3A CN106657444B (en) 2017-02-24 2017-02-24 A kind of method and device for the IP address configuring BMC

Publications (2)

Publication Number Publication Date
CN106657444A CN106657444A (en) 2017-05-10
CN106657444B true CN106657444B (en) 2019-09-24

Family

ID=58847540

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710103909.3A Active CN106657444B (en) 2017-02-24 2017-02-24 A kind of method and device for the IP address configuring BMC

Country Status (1)

Country Link
CN (1) CN106657444B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659677B (en) * 2017-11-07 2021-03-19 湖南长城银河科技有限公司 IP address automatic configuration device and method based on BMC
CN108040131A (en) * 2017-11-10 2018-05-15 中国电子科技集团公司第三十二研究所 Method for automatically configuring network port address of node management module by whole cabinet server
CN109343932A (en) * 2018-09-13 2019-02-15 郑州云海信息技术有限公司 A kind of system and method for batch configuration virtualization system calculate node
CN109388442A (en) * 2018-10-31 2019-02-26 郑州云海信息技术有限公司 A kind of method, apparatus and computer equipment of batch configuration BMC user
CN110750464A (en) * 2019-09-05 2020-02-04 北京浪潮数据技术有限公司 Computer node storage pooling method, device and system
CN111565211B (en) * 2020-01-14 2023-05-23 西安奥卡云数据科技有限公司 CDN configuration distribution network system
CN111953804B (en) * 2020-07-09 2022-09-20 北京火山引擎科技有限公司 Network data transmission method, device, medium and electronic equipment
CN114422361B (en) * 2021-11-26 2024-08-06 浪潮通信技术有限公司 Operation and maintenance management method, device, equipment and product of cluster server

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902327A (en) * 2012-12-29 2014-07-02 鸿富锦精密工业(深圳)有限公司 BMC starting system and method
CN104182261A (en) * 2014-09-01 2014-12-03 浪潮电子信息产业股份有限公司 Online firmware batch upgrading method
CN104580475A (en) * 2015-01-13 2015-04-29 华为技术有限公司 Remote control method, terminal equipment, management server and remote control system
CN104683134A (en) * 2013-12-02 2015-06-03 鸿富锦精密工业(深圳)有限公司 System and method for configuring cluster server testing environment
CN105426184A (en) * 2015-11-12 2016-03-23 浪潮电子信息产业股份有限公司 Method for setting static IP of Linux system of whole cabinet in batch
CN106354430A (en) * 2016-08-27 2017-01-25 浪潮(北京)电子信息产业有限公司 Method and device for allocating RAID card based on BMC
CN106357838A (en) * 2016-09-26 2017-01-25 杭州昆海信息技术有限公司 Method and device for distributing IP (Internet protocol) address

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9985820B2 (en) * 2015-02-22 2018-05-29 Mellanox Technologies, Ltd. Differentiating among multiple management control instances using addresses

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902327A (en) * 2012-12-29 2014-07-02 鸿富锦精密工业(深圳)有限公司 BMC starting system and method
CN104683134A (en) * 2013-12-02 2015-06-03 鸿富锦精密工业(深圳)有限公司 System and method for configuring cluster server testing environment
CN104182261A (en) * 2014-09-01 2014-12-03 浪潮电子信息产业股份有限公司 Online firmware batch upgrading method
CN104580475A (en) * 2015-01-13 2015-04-29 华为技术有限公司 Remote control method, terminal equipment, management server and remote control system
CN105426184A (en) * 2015-11-12 2016-03-23 浪潮电子信息产业股份有限公司 Method for setting static IP of Linux system of whole cabinet in batch
CN106354430A (en) * 2016-08-27 2017-01-25 浪潮(北京)电子信息产业有限公司 Method and device for allocating RAID card based on BMC
CN106357838A (en) * 2016-09-26 2017-01-25 杭州昆海信息技术有限公司 Method and device for distributing IP (Internet protocol) address

Also Published As

Publication number Publication date
CN106657444A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106657444B (en) A kind of method and device for the IP address configuring BMC
US8601466B2 (en) Software deployment method and system, software deployment server and user server
US7600005B2 (en) Method and apparatus for provisioning heterogeneous operating systems onto heterogeneous hardware systems
CN106126273B (en) A kind of method of upgrading BIOS
US8332490B2 (en) Method, apparatus and program product for provisioning a computer system
US9858105B1 (en) Service for managing custom virtual machine images
US20140129819A1 (en) Cloud cluster system and boot deployment method for the same
US10817378B2 (en) Managing boot failures in an information handling system
CN106911729A (en) A kind of operating system remote installation method suitable for domestic processor
CN110266761B (en) Load balancing application creation method and device, computer equipment and storage medium
US11762644B2 (en) Agentless installation for building deployments
CN108282369A (en) A kind of physical machine remote deployment method and device based on openstack
CN107391193A (en) A kind of client, the system and method for configuration server
CN108259305A (en) A kind of physical machine remote dummy lan handover method and device based on openstack
CN110099095B (en) Software deployment method and device, electronic equipment and computer-readable storage medium
CN103777979A (en) Method and device for recovering BIOD through cloud end
US11586447B2 (en) Configuration after cluster migration
CN111200527B (en) Method for automatically discovering and deploying bare computer based on ironic
CN109756359B (en) Method for automatically initializing network device, remote server and network system
CN110489305B (en) Server management method and device
CN108989123A (en) A kind of server configuration method and device
CN113419813B (en) Method and device for deploying bare engine management service based on container platform
CN111124437A (en) Bare computer resource configuration information acquisition method, system and equipment based on OpenStack
CN106897064A (en) A kind of method and device of configuration BIOS
CN106648957A (en) Operating system backup and recovery method and 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