CN106657444A - Method and device for configuring IP address of BMC - Google Patents

Method and device for configuring IP address of BMC Download PDF

Info

Publication number
CN106657444A
CN106657444A CN201710103909.3A CN201710103909A CN106657444A CN 106657444 A CN106657444 A CN 106657444A CN 201710103909 A CN201710103909 A CN 201710103909A CN 106657444 A CN106657444 A CN 106657444A
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.)
Granted
Application number
CN201710103909.3A
Other languages
Chinese (zh)
Other versions
CN106657444B (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)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a method for configuring an IP address of BMC. The method comprises the following steps: loading an initramfs.img mirror image prepared by a user in a pxe network environment built by the user to acquire an IP address field configured by the user; after receiving an instruction of the task of configuring IP addresses for the BMC of multiple server nodes by the user, configuring the IP addresses for the BMC of the multiple server nodes according to the acquired IP address field. In the cloud data operation center, the IP address of the BMC of each server node in the data center is automatically configured, and thus the operating efficiency of configuring the IP address for the BMC of each node in the cloud data operation center can be increased in a remote batch mode, a lot of manpower, material and financial resources can be saved, and great social and economical benefits can be provided. In addition, the embodiment of the invention also provides a corresponding implementation device, which further makes the method more practical; and the device has corresponding advantages.

Description

A kind of method and device of the IP address of configuration BMC
Technical field
The present embodiments relate to cloud field, more particularly to a kind of method and device of the IP address of configuration BMC.
Background technology
With developing rapidly for 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, can realize calculating, store, comprehensive logically resource consolidation of network.Support that hardware is online Extension, plug and play can simultaneously manage the server of more than 5000, and the memory space of more than pond 50000TB is supported The virtual resource node of more than 50000, supports that continual resource is evolved;Additionally, 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 Reason device, can automatically monitor that plateform system management event (is for example invaded including temperature exceeding standard, voltage over standard, fan failure and cabinet Deng), the logout for occurring in non-volatile System Event Log.BMC provides shared register interface, Ke Yitong Cross the interface on the server or machine remote management operational management software (such as ipmitool.exe), the current number to platform According to being stored and retrieved.
IP address (Internet Protocol Address, internet protocol address) is one kind in Internet internets On to main frame addressing mode.That is, the 32bit ground that each connection main frame on internet can distribute Location, as IP address.IP address include network identity number and host identification number two parts, i.e. IP address by the network address with Host address is constituted.Specify according to ICP/IP protocol, IP address is represented with binary system, the long 32bit of each IP address.For side Just use, IP address can be write as metric form, and middle to be separated using point symbol, i.e., Dotted decimal notation is represented, Such as 10.0.0.1.Additionally, ICP/IP protocol needs to carry out different settings for different networks, and each node includes one Individual IP address, a subnet mask and a default gateway.
Adding substantial amounts of server in cloud data manipulation center, or be configured the server of BMC needs again During the IP address of configuration BMC, staff to each server enters into BIOS when the server is started shooting manually successively The setting interface of (Basic Input Output System, basic input output system), on IP ground of the BIOS interfaces to BMC Location is configured.
When cloud data manipulation center needs the substantial amounts of the IP address server of configuration BMC, artificial unit is matched somebody with somebody manually The IP address of BMC is put, is not only wasted time and energy, artificial operation can also bring inevitably error, cause whole data center Operating efficiency and accuracy rate are low.
Therefore, how to improve in configuration cloud data manipulation center the efficiency of the IP address of the BMC of multiple servers with it is accurate Rate, is those skilled in the art's problem demanding prompt solution.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of method and device of the IP address of configuration BMC, to improve configuration cloud The efficiency and accuracy rate of the IP address of the BMC of multiple servers in data manipulation center.
To solve above-mentioned technical problem, the embodiment of the present invention provides technical scheme below:
On the one hand the embodiment of the present invention provides a kind of method of the IP address of configuration BMC, including:
Obtain the initramfs.img Mirror Infos of user input;
In the pxe network environments that the user builds, by loading the initramfs.img mirror images, to obtain State the IP address section that user configures in Dynamic Host Configuration Protocol server;
The instruction of the task of the BMC configuration IP address that the user is multiple server nodes is received, according to IP ground Location section is configured to the IP address of the BMC of multiple server nodes.
Optionally, it is described by loading the initramfs.img mirror images, matched somebody with somebody in Dynamic Host Configuration Protocol server with obtaining the user The IP address section put includes:
Set up IP address pond;
By loading the initramfs.img mirror images, to obtain the IP address that the user configures in Dynamic Host Configuration Protocol server Section, and the IP address section is put into into the IP address pond.
Optionally, described the IP address of the BMC of multiple server nodes is matched somebody with somebody according to the IP address section After putting, also include:
The IP address distributed for the BMC is marked, as unavailable IP address, for distinguishing the IP address Available IP address in pond.
Optionally, also include:
Judge whether each IP address in the IP address pond can use in Preset Time;
When judging that current IP address is unavailable, the current IP address is marked, for distinguishing the IP ground Available IP address in the pond of location.
Optionally, described the IP address of the BMC of multiple server nodes is matched somebody with somebody according to the IP address section After putting, also include:
The IP address of the BMC of current server node is shown to the user;
Detect whether to receive the instruction that the user modifies the IP address of the BMC;
When the instruction that the user modifies to the IP address of the BMC is received, according to IP of the instruction to the BMC Modify address.
Optionally, it is described the IP address of the BMC of multiple server nodes is configured according to the IP address section For:
Multiple available IP address are chosen from the IP address pond, the quantity of the available IP address is not less than the service The quantity of device node;
The IP address of the BMC of multiple server nodes is configured according to multiple available IP address.
Optionally, it is described the IP address of the BMC of multiple server nodes is configured according to the IP address section For:
Receive the instruction of the IP address that the user is the BMC that each described server node is arranged;
According to the instruction BMC of multiple server nodes is carried out configuring corresponding IP address.
Optionally, it is described in the pxe network environments that the user builds, by loading the initramfs.img mirrors Picture, be in the IP address section that Dynamic Host Configuration Protocol server is configured to obtain the user:
Load the initramfs.img mirror images;
Agent in the initramfs.img mirror images, by the RestFull interfaces of pxe servers the use is obtained The IP address section that family configures in Dynamic Host Configuration Protocol server.
Optionally, also include:
To the user show the BMC to server node each described carry out configure IP address order and configure into Degree.
On the other hand the embodiment of the present invention provides a kind of device of the IP address of configuration BMC, including:
Information module is obtained, for obtaining the initramfs.img Mirror Infos of user input;Build in the user In pxe network environments, by loading the initramfs.img mirror images, to obtain what the user configured in Dynamic Host Configuration Protocol server IP address section;
Node configuration module, for receiving the task of the BMC configuration IP address that the user is multiple server nodes Instruction, configures according to the IP address section to the IP address of the BMC of multiple server nodes.
A kind of method of the IP address of configuration BMC is embodiments provided, in the pxe network environments that user builds In, by loading the initramfs.img mirror images of user's preparation to obtain the IP address section that user configures in Dynamic Host Configuration Protocol server; After the instruction of the receiving the BMC configuration IP address that user is multiple server nodes of the task, according to the IP address for getting Section is configured to the IP address of the BMC of multiple server nodes.
The advantage of the technical scheme that the application is provided is, in each server of cloud data manipulation center to data center The IP address of the BMC of node carries out automatic configuration, and each node of cloud data manipulation center is improve in the way of remote batch The operating efficiency of the IP address of configuration BMC, saves a large amount of human and material resources and financial resources, is conducive to carrying out one to data center Body automatic management, is greatly improved operation level, with good economic results in society.
Additionally, the embodiment of the present invention be also directed to configure BIOS method provide realize device accordingly, further such that Methods described has more practicality, and described device has corresponding advantage.
Description of the drawings
For the clearer explanation embodiment of the present invention or the technical scheme of prior art, below will be to embodiment or existing The accompanying drawing to be used needed for technology description is briefly described, it should be apparent that, drawings in the following description are only this Some bright embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can be with root Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for the IP address of configuration BMC provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for the IP address of another kind of configuration BMC provided in an embodiment of the present invention;
Fig. 3 is a kind of embodiment structure chart 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 that those skilled in the art more fully understand the present invention program, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiment is only a part of embodiment of the invention, rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative work premise Lower obtained every other embodiment, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd " " in the description and claims of this application and above-mentioned accompanying drawing Four " it is etc. the object for distinguishing different, rather than for describing specific order.In addition term " comprising " and " having " and Their any deformations, it is intended that cover non-exclusive including.For example contain the process of series of steps or unit, method, System, product or equipment are not limited to the step of listing or unit, but may include the step of not listing or unit.
Present inventor has found through research, in the IP address of the BMC of each server to cloud data manipulation center When being configured, typically all staff is entering into the setting interface of BIOS to each node to be configured when it starts Afterwards, at the interface IP address of BMC is configured manually.Due to the server and unit quantity Pang at cloud data manipulation center Greatly, artificial unit installation operation system, not only wastes time and energy, and artificial operation can also bring inevitably error, causes whole The operating efficiency and accuracy rate of data center is low.
In consideration of it, the application is by way of remote batch, automatic configuration is carried out to each node in cloud data manipulation center The IP address of BMC.Only need to staff and once configured and issued configuration task.Greatly simplified conventional Mode of operation, 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 operating efficiency.
After the technical scheme for describing the embodiment of the present invention, the various non-limiting reality of detailed description below the application Apply mode.
Referring firstly to Fig. 1, Fig. 1 is a kind of flow process of the method for the IP address of configuration BMC provided in an embodiment of the present invention Schematic diagram, the embodiment of the present invention may include herein below:
S101:Obtain the initramfs.img Mirror Infos of user input.
Linux kernel are after itself initialization is completed, it is desirable to be able to find and run first user program (this Individual program is generally termed " init " program).User program is present among file system, therefore, kernel must find and carry One file system can just successfully complete the bootup process of system.
The necessary user program of some startups and drive module are placed in RAM disk, this RAM disk is looked As common disk, there is file system, there is cache, when kernel starts, RAM disk carries are got up first, wait until After init programs and some necessary modules are behaved, then switch among real file system.
The scheme of RAM disk is actually initrd, but, although initrd solves problem 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 File system is needed, that file system (such as ext2) must be compiled into kernel and cannot function as module to use.It is based on This, Initramfs arises at the historic moment.Initramfs is a kind of ram file system rather than disk.Initramfs is really one Cpio files, and the user program and drive module needed for starting is archived into a file.Therefore, there is no need to cache, be also not required to Want file system.
The process for preparing initramfs.img mirror images can be as follows:
Initramfs.img can first be downloaded and simplify mirror image, by gzip-dc initramfs.img | cpio-div are ordered This image decompressing is reduced to into certain self-defined catalogue, the agent programs that then user is made are copied in the mirror image.Pass through Gzip-dc initramfs.img | cpio-div make to make last initramfs.img mirror images.
Certainly, initramfs.img mirror images make and other modes may also be employed, and the application is not limited in any way to this.
S102:In the pxe network environments that the user builds, by loading the initramfs.img mirror images, to obtain Take the IP address section that the user configures in Dynamic Host Configuration Protocol server.
PXE (preboot execute environment, Pre-boot Execution Environment) is used for without disk, has the net of disk networking Network agreement.Deposit in mainboard or BIOS or ROM on network interface card.Work in C/S (Client/Server, client/server) Network schemer, support work station by network from far-end server download image, and thus support by network startup operate System, in start-up course, demanding terminal server-assignment IP address, then with TFTP (trivial file transfer Protocol, TFTP) or MTFTP (multicast trivial file transfer protocol) associations View is downloaded a startup software kit and is performed in local memory, completes terminal basic software by this startup software kit and arranges, from And guide the terminal operating system being pre-installed in server.PXE can guide several operation systems.
TFTP is that in TCP/IP protocol suite is used for carrying out simple files transmission between clients and a server Agreement, there is provided the little file transfer services of uncomplicated, expense.Because MTFTP is serviced for the TFTP of multiple spot, and in this application Only need to download from network and start software kit in local memory, therefore can select TFTP for file transmission.
Building for pxe network environments can be:
Third party's environment such as cobbler can be used, Dynamic Host Configuration Protocol server configuration pxe guiding files and tftp server is built Address, builds tftp server address, tftp server root is set, by the initramfs image copyings prepared in S101 To TFTP catalogues, pxelinux.cfg catalogues are then created.Wherein, Dynamic Host Configuration Protocol server is used for being pxe server-assignment IP address.
Certainly, pxe network environments build the other modes method that may also be employed, and the embodiment of the present invention do not make any limit to this It is fixed.
After the pxe network environments put up, user can be by loading initramfs.img mirror images, initramfs.img Agent meeting automatic runnings in mirror image, the IP for then configuring in Dynamic Host Configuration Protocol server from the RestFull Interface Users of pxe servers Address field.
DHCP (Dynamic Host Configuration Protocol, DynamicHost arranges agreement) is a local The procotol of net, is worked using udp protocol, for internal network or Internet service provider's automatic IP address allocation;Give User or internal network keeper are used as the means that all computers are made with central management.DynamicHost arranges agreement (DHCP) Can manage and distribute automatically the communication protocol of IP network address concentratedly.In an ip network, the equipment of each connection Internet It is required for distributing unique IP address.DHCP enables network manager to monitor from central node and distributes IP address.When certain meter When calculation machine moves on to the other positions in network, new IP address can be automatically received.
It should be noted that user is in the IP address section that Dynamic Host Configuration Protocol server is configured, while be configured with corresponding subnet covering Code and default gateway.
Due to IP address have distribution level the characteristics of, will each IP address be 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, and it must be used together with reference to IP address.Son Net mask only one of which is acted on, and exactly certain IP address is divided into into the network address and host address two parts.Subnet mask Setting must comply with certain rule.Identical with IP address, the length of subnet mask is also 32, and the left side is network position, uses two Binary digits " 1 " are represented;The right is main frame position, is represented with binary digit " 0 ".Shown in the drawings is exactly that IP address is " 192.168.1.1 " and subnet mask are compareed for the binary system of " 255.255.255.0 ".Wherein, " 1 " has 24, represents and this 24 corresponding, the IP address left side is network number;" 0 " has 8, and it is main frame to represent 8 corresponding, IP address the right Number.So, subnet mask determined that in 32 bit binary numbers of an IP address which be network number, which be main frame Number.This is extremely important for the network using ICP/IP protocol, only by subnet mask, just can be shown that a main frame institute Subnet and other subnets relation, make network normal work.
Gateway is " critical point " of the network connection to another network, and ICP/IP protocol also can be according to subnet mask (255.255.255.0) judge that the main frame in two networks is in different networks.And to realize logical between the two networks Letter, then must pass through gateway.If the destination host of the detecting host packet in network A is not in the home network, just number Be transmitted to the gateway of its own according to bag, then by gateway forwards to network B gateway, the gateway of network B relays to certain of network B Individual main frame.It is also so thus, only to set the IP address of gateway, TCP/ that network B forwards the process of packet to network A IP agreement could realize being in communication with each other between heterogeneous networks.
In system loads initramfs.img mirror image, the agent meeting automatic runnings in initramfs.img mirror images, so The IP address section for being configured in Dynamic Host Configuration Protocol server by the RestFull interface captures users of pxe servers afterwards and corresponding subnet Mask and default gateway.
In a kind of specific embodiment, IP address pond can be set up, by the IP address section for getting and corresponding subnet Mask and default gateway are put in IP address pond.
By loading the initramfs.img mirror images, to obtain the IP address that the user configures in Dynamic Host Configuration Protocol server Section, and the IP address section is put into into the IP address pond.
Optionally, in a kind of specific embodiment, IP address can be can use by obtaining in IP address pond, specifically, Can be:
Multiple available IP address are chosen from the IP address pond, the quantity of the available IP address is not less than the service The quantity of device node;
The IP address of the BMC of multiple server nodes is configured according to multiple available IP address.
In another specific embodiment, user requires difference to the IP address of the BMC of different servers, is Some special servers are configured.When the IP address information of BMC is obtained, concretely:
Receive the instruction of the IP address that the user is the BMC that each described server node is arranged;
According to the instruction BMC of multiple server nodes is carried out configuring corresponding IP address.
S103:The instruction of the task of the BMC configuration IP address that the user is multiple server nodes is received, according to described IP address section is configured to the IP address of the BMC of multiple server nodes.
User chooses node to be configured, to be configured to each after the corresponding IP address information of each node is got The configuration sequence of node and the time being initially configured are configured, and configure the task of IP address after setting as node, are System carries out remote automation configuration IP address to the BMC of each node according to the task.
Technical scheme not only can be configured to multiple nodes, i.e., the batch-automated node in task BMC carries out configuration IP address, also can carry out Remote configuration IP address to the BMC of individual node.
It is other server nodes in the later stage for the IP address for having dispensed due to the uniqueness of IP address When the IP address of BMC distribution is allocated, it is clear that be disabled, in order to ensure that the IP address for dispensing is available address, The embodiment of the present invention may also include:
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 be safeguarded in real time, optionally, can IP address in IP address pond is sorted out, can be specifically:
Judge whether each IP address in the IP address pond can use in Preset Time;
When judging that current IP address is unavailable, the current IP address is marked, for distinguishing the IP ground Available IP address in the pond of location.
Certainly, other modes may also be employed and is identified occupied IP address, this does not affect the reality of the application It is existing.
By the management of the IP address to IP address pond, it is ensured that the IP address validity for dispensing, and then raising is matched somebody with somebody The accuracy rate put and efficiency.
In the technical scheme that the application is provided, by each server section at cloud data manipulation center to data center The IP address of the BMC of point carries out automatic configuration, each node of cloud data manipulation center is improve in the way of remote batch and is matched somebody with somebody The operating efficiency of the IP address of BMC is put, a large amount of human and material resources and financial resources are saved, is conducive to carrying out data center one Change automatic management, operation level is greatly improved, with good economic results in society.
Cloud data manipulation center is carried out with postponing to each server node, and the result of configuration may not be that user is required , or certain some server has special requirement, needs to carry out some options special configuration, or due to the people that works The error of member causes some options errors of BIOS configurations, etc..In consideration of it, present invention also provides another embodiment.
Fig. 3 is referred to, Fig. 3 is that the flow process of the method for the IP address of another kind of configuration BMC provided in an embodiment of the present invention is shown It is intended to, the embodiment of the present invention for example can be applicable to the server at CPU places, specifically may include herein below:
S201-S203:Specifically consistent with described by above-mentioned S101-S103, here is omitted.
S204:The IP address of the BMC of current server node is shown to the user.
S205:Detect whether to receive the instruction that the user modifies the IP address of the BMC.
The IP address that system is automatically configured may be due to error in operation, or user can be serviced some of certain server The IP address of the BMC of device carries out special setting.Therefore a Preset Time, such as 2min can be set.Within the default time, carry out Detect whether the instruction that user input is changed.
S206:When the instruction that the user modifies to the IP address of the BMC is received, according to instruction to described The IP address of BMC is modified.
When the instruction that user modifies is detected, then modified according to instruction;If being not detected by repairing for user Change instruction, then the carrying out for directly configuring according to task configures.
By the IP address information for displaying to the user that the BMC of present node, user can understand each server node tool The IP address of body, subnet mask and default gateway.Configuration error or particular arrangement option is modified, is further carried The accuracy rate of configuration is risen, can also increase the use flexibility of user, improve the experience of user;Expansion uses field, has The economic benefit having had.
When some nodes are badly in need of using in cloud data pool, or need to configure at first and complete, staff or user just need Assigning before for task is checked, be adjusted as desired.In a kind of specific embodiment, based on above-mentioned enforcement Example may also include:
To the user show the BMC to server node each described carry out configure IP address order and configure into Degree.
Configuration sequence is during active user assigns a task to the setting of each node configuration sequence, and user is according to itself need Ask and task in configuration sequence and configuration progress to needing the node for first configuring to be adjusted, can be specifically:
Receive user changes the instruction of the task order of the BMC configuration IP address of multiple nodes, according to the instruction Adjust each node configuration sequence.
Certainly, also others can be adjusted, for example, cancels the configuration of certain several node, or increase certain several new section The BMC configuration IP address of point.
In a kind of specific embodiment, in order to allow user or staff clearly currently to configure the section for completing Point, based on above-described embodiment, the application may also include:
Configuration node has been completed to user prompting.
Prompting can pass through the form of information in a certain format and show on screen (such as liquid crystal display).Certain form Information can be Word message, and such as numbering is that 010 node is successfully configured;Alternatively graphic form;Alternatively digital form, The meaning that concrete numerical value is represented can be configured in advance;Or in the form of letter, such as 010-OK.Certainly, other may also be employed The information of any form carries out the configured successful node of prompting, and this does not affect the realization of the present embodiment.
Can also be pointed out by the form of voice, specifically can be pointed out by sounding, for example voice is exportable Numbering is that 010 node is successfully configured.
Indicator lamp can also be arranged to be pointed out, certainly, other any shapes can may also be employed using LED as indicator lamp Formula etc., such as diode, it is preferred that the lamp that brightness is big, power is little should be selected.For example, if present node configuration successful When, then can be pointed out by lighting indicator lamp.
Alarm can also be carried out.
When present node configuration successful, can be reported to the police.Can be yowled using buzzer carries out alarm, may also be employed The form of other jingle bells is reported to the police, and other any type of warnings may also be employed, and this does not affect the reality of the embodiment of the present invention It is existing.
The setting is done, is in order to its client or staff get more information about current multiple node configuring conditions, i.e., Task performance, allow staff can control task as early as possible execution, be conducive to improving allocative efficiency.Or can be replaced other Alarm set, but can not also do the setting.
Setting carry out reporting to the police cause the application technical scheme is more directly perceived, visualization, facilitate staff to use, lifted User experience.
Certainly, however it is not limited to which above-mentioned form is pointed out, if reach can by the result of present node configuration successful to User is pointed out, and allows user to understand the purpose of the current configured node for completing.
Certainly, also can simultaneously be shown, voice message, indicator lamp and alarm are set, this is not affected the present invention Realization.
The embodiment of the present invention is also directed to the method for the IP address for configuring BMC there is provided device is realized accordingly, further makes Obtain methods described and have more practicality.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 mutually corresponding ginseng with the method for the IP address of arrangements described above BMC According to.
Fig. 3 is referred to, Fig. 3 is that the device of the IP address of configuration BMC provided in an embodiment of the present invention is embodied as in one kind Structure chart under mode, the device may include:
Information module 301 is obtained, for obtaining the initramfs.img Mirror Infos of user input;Take in the user In the pxe network environments built, by loading the initramfs.img mirror images, matched somebody with somebody in Dynamic Host Configuration Protocol server with obtaining the user The IP address section put.
Node configuration module 302, for receiving the task that the BMC that the user is multiple server nodes configures IP address Instruction, the IP address of the BMC of multiple server nodes is configured according to the IP address section.
In some embodiments of the present embodiment, the acquisition information module 301 for example can also include:
Unit 3011 is set up, for setting up IP address pond, the IP address section for getting is put in the IP address pond.
Optionally, in other embodiments of the present embodiment, Fig. 4 is referred to, described device for example can also include Modification configuration information module 303, the modification configuration information module 303 may include
Display unit 3031, the IP address of the BMC of current server node is shown to the user;
Detector unit 3032, detects whether to receive the instruction that the user modifies the IP address of the BMC;
Modification information unit 3033, when receiving the instruction that the user modifies to the IP address of the BMC, according to The IP address to the BMC is instructed to modify.
In some embodiments of the present embodiment, described device for example can also include:
Display module 304, for showing that the BMC to server node each described carries out configuration IP address to the user Order and configuration progress.
May also include:
Reminding module 305, for prompting the user with the node for completing to configure.
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 said method Method in embodiment is implemented, and it implements the associated description that process is referred to said method embodiment, herein not Repeat again.
From the foregoing, it will be observed that BMC of the embodiment of the present invention at cloud data manipulation center to each server node of data center IP address carry out automatic configuration, improve cloud data manipulation center each node configuration BMC's in the way of remote batch The operating efficiency of IP address, saves a large amount of human and material resources and financial resources, is conducive to carrying out integral automation to data center Management, is greatly improved operation level, with good economic results in society.
Each embodiment is described by the way of progressive in this specification, and what each embodiment was stressed is and other The difference of embodiment, between each embodiment same or similar part mutually referring to.For dress disclosed in embodiment For putting, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part Illustrate.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and The interchangeability of software, according to function has generally described the composition and step of each example in the above description.These Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty Technical staff can use different methods to realize described function to each specific application, but this realization should not Think beyond the scope of this invention.
The step of method described with reference to the embodiments described herein or algorithm, directly can be held with hardware, processor Capable software module, or the combination of the two is implementing.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In field in known any other form of storage medium.
The method and device of a kind of IP address of configuration BMC provided by the present invention are described in detail above. Specific case used herein is set forth to the principle and embodiment of the present invention, and the explanation of above example is simply used Understand the method for the present invention and its core concept in help.It should be pointed out that for those skilled in the art, Under the premise without departing from the principles of the invention, some improvement and modification can also be carried out to the present invention, these improve and modify Fall in the protection domain of the claims in the present invention.

Claims (10)

1. a kind of method of the IP address of configuration BMC, it is characterised in that include:
Obtain the initramfs.img Mirror Infos of user input;
In the pxe network environments that the user builds, by loading the initramfs.img mirror images, to obtain the use The IP address section that family configures in Dynamic Host Configuration Protocol server;
The instruction of the task of the BMC configuration IP address that the user is multiple server nodes is received, according to the IP address section The IP address of the BMC of multiple server nodes is configured.
2. method according to claim 1, it is characterised in that described by loading the initramfs.img mirror images, with Obtain the user includes in the IP address section that Dynamic Host Configuration Protocol server is configured:
Set up IP address pond;
By loading the initramfs.img mirror images, to obtain the IP address section that the user configures in Dynamic Host Configuration Protocol server, and The IP address section is put into into the IP address pond.
3. method according to claim 2, it is characterised 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, also include:
The IP address distributed for the BMC is marked, as unavailable IP address, for distinguishing in the IP address pond Available IP address.
4. method according to claim 2, it is characterised in that also include:
Judge whether each IP address in the IP address pond can use in Preset Time;
When judging 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 Claims 1-4 any one, it is characterised in that described according to the IP address section pair After the IP address of the BMC of multiple server nodes is configured, also include:
The IP address of the BMC of current server node is shown to the user;
Detect whether to receive the instruction that the user modifies the IP address of the BMC;
When the instruction that the user modifies to the IP address of the BMC is received, according to IP address of the instruction to the BMC Modify.
6. method according to claim 5, it is characterised in that it is described according to the IP address section to multiple servers The IP address of the BMC of node is configured to:
Multiple available IP address are chosen from the IP address pond, the quantity of the available IP address is not less than the server section The quantity of point;
The IP address of the BMC of multiple server nodes is configured according to multiple available IP address.
7. method according to claim 5, it is characterised in that it is described according to the IP address section to multiple servers The IP address of the BMC of node is configured to:
Receive the instruction of the IP address that the user is the BMC that each described server node is arranged;
According to the instruction BMC of multiple server nodes is carried out configuring corresponding IP address.
8. method according to claim 7, it is characterised in that described in the pxe network environments that the user builds, leads to Cross and load the initramfs.img mirror images, be in the IP address section that Dynamic Host Configuration Protocol server is configured to obtain the user:
Load the initramfs.img mirror images;
Agent in the initramfs.img mirror images, obtains the user and exists by the RestFull interfaces of pxe servers The IP address section of Dynamic Host Configuration Protocol server configuration.
9. method according to claim 8, it is characterised in that also include:
Show that the BMC to server node each described carries out configuring the order and configuration progress of IP address to the user.
10. a kind of device of the IP address of configuration BMC, it is characterised in that include:
Information module is obtained, for obtaining the initramfs.img Mirror Infos of user input;In the pxe that the user builds In network environment, by loading the initramfs.img mirror images, to obtain the IP ground that the user configures in Dynamic Host Configuration Protocol server Location section;
Node configuration module, for receiving the instruction of the task of the BMC configuration IP address that the user is multiple server nodes, The IP address of the BMC of multiple server nodes is configured according to the IP address section.
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 true CN106657444A (en) 2017-05-10
CN106657444B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659677A (en) * 2017-11-07 2018-02-02 湖南长城银河科技有限公司 The apparatus and method that a kind of IP address based on BMC automatically configures
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
CN111565211A (en) * 2020-01-14 2020-08-21 西安奥卡云数据科技有限公司 CDN configuration distribution network system
CN111953804A (en) * 2020-07-09 2020-11-17 北京字节跳动网络技术有限公司 Network data transmission method, device, medium and electronic equipment
CN114422361A (en) * 2021-11-26 2022-04-29 浪潮通信技术有限公司 Operation and maintenance management method, device, equipment and product of cluster server

Citations (8)

* 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 (Internet Protocol) of Linux system of whole cabinet in batches
US20160248620A1 (en) * 2015-02-22 2016-08-25 Mellanox Technologies Ltd. Differentiating among multiple management control instances using addresses
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

Patent Citations (8)

* 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
US20160248620A1 (en) * 2015-02-22 2016-08-25 Mellanox Technologies Ltd. Differentiating among multiple management control instances using addresses
CN105426184A (en) * 2015-11-12 2016-03-23 浪潮电子信息产业股份有限公司 Method for setting static IP (Internet Protocol) of Linux system of whole cabinet in batches
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

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659677A (en) * 2017-11-07 2018-02-02 湖南长城银河科技有限公司 The apparatus and method that a kind of IP address based on BMC automatically configures
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
CN111565211A (en) * 2020-01-14 2020-08-21 西安奥卡云数据科技有限公司 CDN configuration distribution network system
CN111565211B (en) * 2020-01-14 2023-05-23 西安奥卡云数据科技有限公司 CDN configuration distribution network system
CN111953804A (en) * 2020-07-09 2020-11-17 北京字节跳动网络技术有限公司 Network data transmission method, device, medium and electronic equipment
CN114422361A (en) * 2021-11-26 2022-04-29 浪潮通信技术有限公司 Operation and maintenance management method, device, equipment and product of cluster server

Also Published As

Publication number Publication date
CN106657444B (en) 2019-09-24

Similar Documents

Publication Publication Date Title
CN106657444A (en) Method and device for configuring IP address of BMC
US9813374B1 (en) Automated allocation using spare IP addresses pools
US8601466B2 (en) Software deployment method and system, software deployment server and user server
CN103324498B (en) Method and equipment for booting bare metal computing device
CN109558212B (en) Virtualization management method and system of physical equipment, physical equipment and medium
CN108055327A (en) Cloud computing experiment porch based on OpenStack
US20140129819A1 (en) Cloud cluster system and boot deployment method for the same
US20100262815A1 (en) Detection Mechanism for System Image Class
AU2003257885A1 (en) Method and System for Network Switch Configuration
CN104767649A (en) Bare metal server deployment method and device
JP2014038610A (en) Method of high-speed automation of cluster system construction using virtual disk
US20060253555A1 (en) Remote control apparatus
CN106911729A (en) A kind of operating system remote installation method suitable for domestic processor
CN112328262A (en) Deployment method, system and device of operating system and electronic equipment
CN109445801A (en) A kind of method and apparatus detecting bare machine network interface card information
CN108282369A (en) A kind of physical machine remote deployment method and device based on openstack
CN103777979A (en) Method and device for recovering BIOD through cloud end
CN108259305A (en) A kind of physical machine remote dummy lan handover method and device based on openstack
CN105007290A (en) Linux system remote installation configuration management method aiming at disk-free server
CN104935468A (en) PXE technology-based interactive system and method for realizing operation of operating system thereof
US10282346B1 (en) Scalable network device self-configuration in large networks
CN107086937B (en) Monitoring method and device
CN110489305B (en) Server management method and device
US11586447B2 (en) Configuration after cluster migration
CN111124437A (en) Bare computer resource configuration information acquisition method, system and equipment based on OpenStack

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