CN105426184A - Method for setting static IP of Linux system of whole cabinet in batch - Google Patents
Method for setting static IP of Linux system of whole cabinet in batch Download PDFInfo
- Publication number
- CN105426184A CN105426184A CN201510772359.5A CN201510772359A CN105426184A CN 105426184 A CN105426184 A CN 105426184A CN 201510772359 A CN201510772359 A CN 201510772359A CN 105426184 A CN105426184 A CN 105426184A
- Authority
- CN
- China
- Prior art keywords
- rmc
- node
- bmcip
- static
- setting
- 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.)
- Pending
Links
- 230000003068 static effect Effects 0.000 title claims abstract description 31
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000013515 script Methods 0.000 claims description 12
- 238000012423 maintenance Methods 0.000 description 2
- 241000282326 Felis catus Species 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F15/00—Digital computers in general; Data processing equipment in general
- G06F15/16—Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
- G06F15/161—Computing infrastructure, e.g. computer clusters, blade chassis or hardware partitioning
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Computer Security & Cryptography (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method for setting static IP of Linux systems of a whole cabinet in batches, belonging to the field of server cluster operation; the invention sets a static IP for the BMC of each node through the RMC, wherein the static IP is the OS which is desired to be set? IP; fill the complete cabinet with Linux by PXE server? The OS, when the new Linux system is started for the first time, reads BMC through ipmitool? Compared with the prior art, the method for setting the static IP of the Linux system of the whole cabinet in batches has strong practicability and high efficiency, and realizes automatic setting in batches without manual intervention; the realization cost is low, and the expandability is strong.
Description
Technical field
The present invention discloses a kind of method of batch setting whole machine cabinet linux system static IP, belongs to server cluster field operation.
Background technology
Along with Constructing data center is towards the future development of overall usability, the demand of machine room to high density rack is growing.Because high density rack has, node is many, volume is large, relevance is strong, and the management mode of former single node server is no longer applicable to instantly.The particularly static IP batch setting aspect of OS.For the machine room that completely cuts off with extraneous network environment, realize the batch setting of OS static IP, what needs did is that each node needs keyboard and these outside input-output device of display to do auxiliary, and the feature that high density server has node numerous, OS static IP to carry out a whole machine cabinet node to it is arranged needs a large amount of manpower of cost and time, thus causes product in test and the problem that later stage O&M cost increases greatly, efficiency is extremely low.And the invention provides a kind of method of batch setting whole machine cabinet linux system static IP, arrange a static IP to the BMC of each node by RMC, this static IP is the OSIP wanting to arrange; By PXE server to the filling LinuxOS of whole machine cabinet, when new clothes linux system first time starts, BMCIP is read by ipmitool, and by the static IP configuration file of this value write OS, the method of a kind of batch setting whole machine cabinet of the present invention linux system static IP compared with prior art, practical, efficiency is high, achieve batch, arrange without the need to the robotization of manual intervention; Realize cost low, extensibility is strong.
Summary of the invention
The OS static IP that the present invention is directed to whole machine cabinet node in prior art is arranged needs a large amount of manpower of cost and time, thus cause product in test and the problem that later stage O&M cost increases greatly, efficiency is extremely low, a kind of method of batch setting whole machine cabinet linux system static IP is provided, compared with prior art, practical, efficiency is high, achieve batch, arrange without the need to the robotization of manual intervention; Realize cost low, extensibility is strong.
The concrete scheme that the present invention proposes is:
A kind of method of batch setting whole machine cabinet linux system static IP:
Utilize RMC remote supervision module to be set to the IP that OS wants setting to BMC, after the filled system of PXE, allow linux system automatically read BMCIP and write OSIP configuration file, its specific implementation process is:
One, build test platform, setup test environment, make RMC and can intercom mutually with each node;
Two, write the script being arranged BMCIP under Xshell environment by RMC, this place IP is the OSIP numerical value needing setting;
Three, log in RMC by Xshell, run BMCIP and script is set;
Four, by PXE server to the filling LinuxOS of whole machine cabinet, in OS first time start-up course, add self-starting instruction fetch BMCIP, give OSIP configuration file by this value.
Described RMC is utilize RMC to be connected with the node backboard of some nodes by plate in node with intercoming mutually with each node, indirectly communicates with Node B MC, and carries out the setting of IP to it.Run the service end of Xshell and connect RMC by serial ports, RMC by plate in node and receive and send between node backboard IP is set order to each Node B MC.
By PXE server to the filling LinuxOS of all nodes of whole machine cabinet, and add self-starting instruction load ipmitool order in OS first time start-up course, read the BMCIP preset, and by the IP configuration file of this numerical value write OS.The linux system that PXE server fills, have modified the self-starting file of OS mirror image in advance, add one read BMCIP with ipmitool and write the instruction of OS static IP configuration file, OS can be realized like this and automatically revise the OSIP wanted, remove manually-operated trouble from.
Usefulness of the present invention is:
The present invention arranges a static IP to the BMC of each node by RMC, and this static IP is the OSIP wanting to arrange; By PXE server to the filling LinuxOS of whole machine cabinet, when new clothes linux system first time starts, BMCIP can be read by ipmitool, and by the static IP configuration file of this value write OS, the present invention can write different IP and arrange script according to the IP wanted, be applied to all nodes in place; Simple operating steps and execution efficiency is fast; Substantially reduce the time of whole machine cabinet node environment configurations in test and O&M process, provide very big convenience to test O&M slip-stick artist; Save the test duration, reduce the test duration and drop into; Major part needs the machine room configuring OS static IP all can use the method, is easy to promote.
Accompanying drawing explanation
Fig. 1 the inventive method schematic flow sheet.
Embodiment
A kind of method of batch setting whole machine cabinet linux system static IP:
Utilize RMC remote supervision module to be set to the IP that OS wants setting to BMC, after the filled system of PXE, allow linux system automatically read BMCIP and write OSIP configuration file, its specific implementation process is:
One, build test platform, setup test environment, make RMC and can intercom mutually with each node;
Two, write the script being arranged BMCIP under Xshell environment by RMC, this place IP is the OSIP numerical value needing setting;
Three, log in RMC by Xshell, run BMCIP and script is set;
Four, by PXE server to the filling LinuxOS of whole machine cabinet, in OS first time start-up course, add self-starting instruction fetch BMCIP, give OSIP configuration file by this value.
According to said method and summary of the invention, with reference to accompanying drawing, the present invention will be further described.
A kind of method of batch setting whole machine cabinet linux system static IP:
Utilize RMC remote supervision module to be set to the IP that OS wants setting to BMC, after the filled system of PXE, allow linux system automatically read BMCIP and write OSIP configuration file, its specific implementation process is:
One, build test platform, setup test environment, make RMC and can intercom mutually with each node, utilize RMC to be connected with the node backboard of some nodes by plate in node, indirectly communicate with Node B MC, and the setting of IP is carried out to it;
Two, write the script being arranged BMCIP under Xshell environment by RMC, this place IP is the OSIP numerical value needing setting;
Three, log in RMC by Xshell, run BMCIP and script is set;
Four, by PXE server to the filling LinuxOS of whole machine cabinet, in OS first time start-up course, add self-starting load ipmitool order, read the BMCIP preset, and this numerical value is write the IP configuration file of OS.
Wherein write the detailed mistake arranging BMCIP script to be called:
1) newly-built txt document under Windows system.
2) in document, input the instruction of the amendment Node B MCIP that RMC supports, notice that each node will cover;
3) current script is preserved;
It is as follows that specific service device end performs command content form:
setchassis/node01A/Ethernet=Dedicate
setchassis/node01A/ipmode=staticip=192.168.1.1netMask=255.255.255.0gateWay=0.0.0.0
setchassis/node02A/Ethernet=Dedicate
setchassis/node02A/ipmode=staticip=192.168.1.2netMask=255.255.255.0gateWay=0.0.0.0
…
…
Self-starting file/etc/rc.local is made for filling OS mirror image and makes corresponding amendment, make it perform instruction as follows:
#!/bin/bash
IP=`ipmitoollanprint1|grep"IPAddress"|awk-F"."'{print$2}'|tail-n1`
cat>/etc/sysconfig/network-scripts/ifcfg-xgbe0<<EOF
DEVICE=xgbe0
ONBOOT=yes
BOOTPROTO=static
TYPE=Ethernet
IPADDR=$IP
NETMASK=255.255.255.0
EOF
The present invention navigates to each BMC of whole rack, it is made normally to perform setting command to BMCIP, finally by the system that PXE server is filling, make its automatic capturing Node B MCIP numerical value of starting shooting, and write OS static IP configuration file, achieve automatically configuration OS static IP, eliminate loaded down with trivial details separately to each node OSIP configuration of test and service engineer, substantially increase test and maintenance efficiency, shorten R&D cycle and maintenance time.
Claims (3)
1. a method for batch setting whole machine cabinet linux system static IP, is characterized in that
Utilize RMC remote supervision module to be set to the IP that OS wants setting to BMC, after the filled system of PXE, allow linux system automatically read BMCIP and write OSIP configuration file, its specific implementation process is:
One, build test platform, setup test environment, make RMC and can intercom mutually with each node;
Two, write the script being arranged BMCIP under Xshell environment by RMC, this place IP is the OSIP numerical value needing setting;
Three, log in RMC by Xshell, run BMCIP and script is set;
Four, by PXE server to the filling LinuxOS of whole machine cabinet, in OS first time start-up course, add self-starting instruction fetch BMCIP, give OSIP configuration file by this value.
2. the method for a kind of batch setting whole machine cabinet linux system static IP according to claim 1, it is characterized in that described RMC is utilize RMC to be connected with the node backboard of some nodes by plate in node with intercoming mutually with each node, indirectly communicate with Node B MC, and the setting of IP is carried out to it.
3. the method for a kind of batch setting whole machine cabinet linux system static IP according to claim 1 and 2, it is characterized in that by PXE server to the filling LinuxOS of all nodes of whole machine cabinet, and add self-starting instruction load ipmitool order in OS first time start-up course, read the BMCIP preset, and by the IP configuration file of this numerical value write OS.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510772359.5A CN105426184A (en) | 2015-11-12 | 2015-11-12 | Method for setting static IP of Linux system of whole cabinet in batch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510772359.5A CN105426184A (en) | 2015-11-12 | 2015-11-12 | Method for setting static IP of Linux system of whole cabinet in batch |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105426184A true CN105426184A (en) | 2016-03-23 |
Family
ID=55504414
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510772359.5A Pending CN105426184A (en) | 2015-11-12 | 2015-11-12 | Method for setting static IP of Linux system of whole cabinet in batch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105426184A (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106302864A (en) * | 2016-10-21 | 2017-01-04 | 用友网络科技股份有限公司 | A kind of IP in order arranges system |
CN106534401A (en) * | 2016-11-28 | 2017-03-22 | 国云科技股份有限公司 | Method for transforming host storage network IP from dynamic state to static state |
CN106572200A (en) * | 2016-11-10 | 2017-04-19 | 郑州云海信息技术有限公司 | IP address configuration method and IP address configuration device for baseboard management controller BMC |
CN106657444A (en) * | 2017-02-24 | 2017-05-10 | 郑州云海信息技术有限公司 | Method and device for configuring IP address of BMC |
CN107291499A (en) * | 2017-06-20 | 2017-10-24 | 郑州云海信息技术有限公司 | A kind of method by BMC automatic batch bulking systems |
CN107491338A (en) * | 2017-09-29 | 2017-12-19 | 郑州云海信息技术有限公司 | A kind of whole machine cabinet batch automatic configuration RAID card level method for distinguishing |
CN107566548A (en) * | 2017-09-29 | 2018-01-09 | 郑州云海信息技术有限公司 | A kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses |
CN107800802A (en) * | 2017-11-10 | 2018-03-13 | 郑州云海信息技术有限公司 | A kind of Rack whole machine cabinets write-in and the method for reading UUID |
CN108810184A (en) * | 2018-05-22 | 2018-11-13 | 郑州云海信息技术有限公司 | A kind of detection of whole machine cabinet server node IP address and remapping method and system |
CN109101247A (en) * | 2018-07-25 | 2018-12-28 | 紫光华山信息技术有限公司 | The method, apparatus and server of driver are installed |
CN109587282A (en) * | 2018-11-12 | 2019-04-05 | 郑州云海信息技术有限公司 | A kind of method and system towards SR whole machine cabinet automatic configuration node IP |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8819280B1 (en) * | 2004-10-29 | 2014-08-26 | Akamai Technologies, Inc. | Network traffic load balancing system using IPV6 mobility headers |
CN104333617A (en) * | 2014-11-18 | 2015-02-04 | 浪潮电子信息产业股份有限公司 | Method for automatically setting static state IP for rack cabinet in Linux system |
CN104375860A (en) * | 2014-10-30 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Method for refreshing high-density cabinet nodes BMC in batch |
CN105024849A (en) * | 2015-06-02 | 2015-11-04 | 浪潮电子信息产业股份有限公司 | Method for batch operation of high-density cabinet server on each node BMC |
-
2015
- 2015-11-12 CN CN201510772359.5A patent/CN105426184A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8819280B1 (en) * | 2004-10-29 | 2014-08-26 | Akamai Technologies, Inc. | Network traffic load balancing system using IPV6 mobility headers |
CN104375860A (en) * | 2014-10-30 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Method for refreshing high-density cabinet nodes BMC in batch |
CN104333617A (en) * | 2014-11-18 | 2015-02-04 | 浪潮电子信息产业股份有限公司 | Method for automatically setting static state IP for rack cabinet in Linux system |
CN105024849A (en) * | 2015-06-02 | 2015-11-04 | 浪潮电子信息产业股份有限公司 | Method for batch operation of high-density cabinet server on each node BMC |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106302864A (en) * | 2016-10-21 | 2017-01-04 | 用友网络科技股份有限公司 | A kind of IP in order arranges system |
CN106572200A (en) * | 2016-11-10 | 2017-04-19 | 郑州云海信息技术有限公司 | IP address configuration method and IP address configuration device for baseboard management controller BMC |
CN106534401A (en) * | 2016-11-28 | 2017-03-22 | 国云科技股份有限公司 | Method for transforming host storage network IP from dynamic state to static state |
CN106534401B (en) * | 2016-11-28 | 2019-11-15 | 国云科技股份有限公司 | A kind of host storage network IP dynamic conversion is at static method |
CN106657444B (en) * | 2017-02-24 | 2019-09-24 | 郑州云海信息技术有限公司 | A kind of method and device for the IP address configuring BMC |
CN106657444A (en) * | 2017-02-24 | 2017-05-10 | 郑州云海信息技术有限公司 | Method and device for configuring IP address of BMC |
CN107291499A (en) * | 2017-06-20 | 2017-10-24 | 郑州云海信息技术有限公司 | A kind of method by BMC automatic batch bulking systems |
CN107566548A (en) * | 2017-09-29 | 2018-01-09 | 郑州云海信息技术有限公司 | A kind of method that whole machine cabinet batch automatically updates network interface card Mac addresses |
CN107491338A (en) * | 2017-09-29 | 2017-12-19 | 郑州云海信息技术有限公司 | A kind of whole machine cabinet batch automatic configuration RAID card level method for distinguishing |
CN107800802A (en) * | 2017-11-10 | 2018-03-13 | 郑州云海信息技术有限公司 | A kind of Rack whole machine cabinets write-in and the method for reading UUID |
CN108810184A (en) * | 2018-05-22 | 2018-11-13 | 郑州云海信息技术有限公司 | A kind of detection of whole machine cabinet server node IP address and remapping method and system |
CN108810184B (en) * | 2018-05-22 | 2021-09-28 | 郑州云海信息技术有限公司 | Method and system for detecting and resetting IP address of server node of whole cabinet |
CN109101247A (en) * | 2018-07-25 | 2018-12-28 | 紫光华山信息技术有限公司 | The method, apparatus and server of driver are installed |
CN109101247B (en) * | 2018-07-25 | 2022-02-11 | 新华三信息技术有限公司 | Method and device for installing driver and server |
CN109587282A (en) * | 2018-11-12 | 2019-04-05 | 郑州云海信息技术有限公司 | A kind of method and system towards SR whole machine cabinet automatic configuration node IP |
CN109587282B (en) * | 2018-11-12 | 2022-02-18 | 郑州云海信息技术有限公司 | Method and system for SR (scheduling request) oriented automatic node IP (Internet protocol) configuration of complete equipment cabinet |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105426184A (en) | Method for setting static IP of Linux system of whole cabinet in batch | |
CN108600029B (en) | Configuration file updating method and device, terminal equipment and storage medium | |
EP3182678B1 (en) | Method for upgrading network function virtualization application, and related system | |
CN103297504B (en) | The method of physics bare machine rapid deployment operating system in a kind of cloud data center | |
US10284418B2 (en) | Network switch management via embedded management controller using management information base (MIB) to JSON parser | |
CN103167041B (en) | A kind ofly support the system and method that the automation of cloud environment application cluster is disposed | |
CN107800565B (en) | Inspection method, inspection device, inspection system, computer equipment and storage medium | |
CN105099739A (en) | Plug-in type software deployment method and apparatus, and application server | |
CN102455915A (en) | Method for automatically configuring distributed system, and server | |
EP2728487B1 (en) | Methods and structure for serial attached scsi expanders that self-configure routing attributes of their ports | |
US8719390B2 (en) | Server management apparatus and server management method | |
CN109587005B (en) | Connection detection method and device, computer equipment and readable storage medium | |
US10833914B2 (en) | Device or vendor independent network switch management via embedded management controller stack | |
US10664551B2 (en) | Intuitive user interface (UI) for device or vendor independent network switch management via embedded management controller | |
CN101616031B (en) | Method for setting single-plate parameters of advanced telecommunication computing structure | |
CN105787117A (en) | Automatic deployment method and device for big data nodes under cloud computing environment | |
CN106020804A (en) | Method for automatically updating DMI power supply information | |
CN105591778A (en) | Method and system for updating configuration file in distributed system | |
CN105373398A (en) | Whole cabinet server BMC IP batch setting method based on Xshell script | |
CN103077034A (en) | JAVA application migration method and system for hybrid virtualization platform | |
CN108234172B (en) | Physical resource automatic deployment system for cloud computing | |
JP6448012B2 (en) | Method, apparatus, and system for displaying virtual machine names | |
CN110708193B (en) | Ethernet service board card starting method and system | |
JP2015099547A (en) | Software update method, software update apparatus, software update program, and software update system | |
CN105204876A (en) | System starting method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160323 |
|
RJ01 | Rejection of invention patent application after publication |