CN109587284A - A kind of method and system of remote auto configuration computer room server B MC network interface IP - Google Patents

A kind of method and system of remote auto configuration computer room server B MC network interface IP Download PDF

Info

Publication number
CN109587284A
CN109587284A CN201811400372.8A CN201811400372A CN109587284A CN 109587284 A CN109587284 A CN 109587284A CN 201811400372 A CN201811400372 A CN 201811400372A CN 109587284 A CN109587284 A CN 109587284A
Authority
CN
China
Prior art keywords
network interface
address
server
bmc
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.)
Withdrawn
Application number
CN201811400372.8A
Other languages
Chinese (zh)
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 CN201811400372.8A priority Critical patent/CN109587284A/en
Publication of CN109587284A publication Critical patent/CN109587284A/en
Withdrawn legal-status Critical Current

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • 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/5046Resolving address allocation conflicts; Testing of addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention provides the method and systems of remote auto configuration computer room server B MC network interface IP a kind of, comprising: S1, is operated by bright light, finds corresponding server location, static IP is arranged according to location information;S2, IP network section is set, and stores last code of IP address in IP text file, and batch processing script and IP text file are stored to Terminal Server Client;After S3, Run Script, last yard of IP network section is the IP address of the number stored in current IP text file as current server, and last code adds up automatically in IP text file;S4, it is operated according to bright light, static IP setting is carried out to leave from office server.The present invention realizes that BMC IP address is arranged in remote batch by batch processing script, is configured by the setting BMC network interface being simple and efficient, avoid manual setting IP address repeated collisions, working efficiency is effectively raised, is saved labour turnover, the accuracy and reliability of work is improved.

Description

A kind of method and system of remote auto configuration computer room server B MC network interface IP
Technical field
The present invention relates to network interface configuration technology field, especially a kind of remote auto configures computer room server B MC network interface IP Method and system.
Background technique
The IPMI of BMC (Baseboard Management Controller, baseboard management controller) support professional standard Specification.The specification describes the management function being built on mainboard.These functions include: local and remote diagnosis, control Platform support, configuration management, hardware management and troubleshooting.And these functions are substantially by BMC network interface and access and realize, And this BMC network interface channel can cannot be shown by remotely logining under system.It, can be with after setting up this network interface card IP Remote access;But it local network cannot show in systems.
The IP of BMC network interface cannot IP be arranged in the modes such as figure in local OS operating system as other physical internet ports, The configuration and IP address of BMC network interface can only be set at the interface BIOS as follows, or be set one by one in systems by IPMI order It sets, and runs IPMITOOL order in the machine, need that one linux system is first installed in the machine, and ipmi driving is installed, deposit The shortcomings that it is as follows:
BMC network interface is arranged at BIOS to configure, it is necessary first to which booting enters BIOS set interface, this needs nearly to expend 3- 5 minutes.BMC network interface is set up at BIOS with postponing, cannot be come into force at once, is needed to save BIOS and is arranged and restarts machine It can just come into force after device.One machine sets up the configuration of BMC network interface, 10 minutes will be expended in total or more.
BMC network interface is arranged by IPMI order under system to configure, needs manually input order step by step, needs every master Machine all installs linux system, and in installation IPMI service.And local system is if it is Windows, local IPMI order Network can not be set.
As above setting or the input order setting under system either at BIOS, requires one machine of a machine Manual setting, need to take a substantial amount of time.If it is client's building environment, server has several hundred even up to ten thousand machines Device will expend a large amount of manpower and time if be arranged one by one.
If it is the method for obtaining IP automatically using DHCP, later maintenance is alarmed, it would be desirable to machine one by one It looks for, is that machine goes wrong on earth.So we have been preferably configured static IP, IP is continuous and is attached on cabinet, out Existing problem directly passes through IP onsite lookup machine.
Summary of the invention
The object of the present invention is to provide the method and system of remote auto configuration computer room server B MC network interface IP a kind of, purports Solve in the prior art by manually setting BMC network interface configure brought by high labor cost and error rate is high asks Topic is realized and improves working efficiency, saves human cost, improves the accuracy and reliability of work.
To reach above-mentioned technical purpose, the present invention provides a kind of remote auto configuration computer room server B MC network interface IP's Method the described method comprises the following steps:
S1, it is operated by bright light, finds corresponding server location, static IP is arranged according to location information;
S2, setting IP network section, and store in IP text file last code of IP address, and by batch processing script and IP text file is stored to Terminal Server Client;
After S3, Run Script, last yard of IP network section is that the number stored in current IP text file takes as current The IP address of business device, and last code adds up automatically in IP text file;
S4, it is operated according to bright light, static IP setting is carried out to leave from office server.
Preferably, the method also includes:
After Run Script, gateway information setting is carried out to the BMC of current server.
Preferably, the BMC progress gateway information to current server, which is arranged, includes:
Calling IP type setting instruction setting BMC network interface IP is static IP;
The IP address of the BMC network interface is switched into the specified address;
The subnet mask of the BMC network interface is adjusted to the default subnet mask;
The gateway address of the BMC network interface is adjusted to the default gateway address.
Preferably, the bright light operation is completed by IPMI tool.
The present invention also provides a kind of remote auto configuration computer room server B MC network interface IP system, the system comprises:
Server location determining module finds corresponding server location, for operating by bright light to believe according to position Breath setting static IP;
File storage module, for IP network section to be arranged, and in IP text file store IP address last code, and will Batch processing script and IP text file are stored to Terminal Server Client;
Current IP setup module, for after Run Script, last code of IP network section to be to store in current IP text file IP address of the number as current server, and last code adds up automatically in IP text file;
Batch processing setup module carries out static IP setting to leave from office server for operating according to bright light.
Preferably, the system also includes:
Gateway setup module carries out gateway information setting for the BMC to current server.
Preferably, the gateway setup module includes:
IP type setting unit is static IP for calling IP type setting instruction setting BMC network interface IP;
IP address switch unit, for the IP address of the BMC network interface to be switched to the specified address;
Subnet mask setting unit, for the subnet mask of the BMC network interface to be adjusted to the default subnet mask;
Gateway address setting unit, for the gateway address of the BMC network interface to be adjusted to the default gateway address.
Preferably, the bright light operation is completed by IPMI tool.
The effect provided in summary of the invention is only the effect of embodiment, rather than invents all whole effects, above-mentioned A technical solution in technical solution have the following advantages that or the utility model has the advantages that
Compared with prior art, the present invention is realized that the address BMCIP is arranged in remote batch, is avoided by batch processing script Setting BMC network interface configures step by step manually, is configured by the setting BMC network interface being simple and efficient, avoids manual setting IP address Repeated collisions, and avoid every machine and require that one linux system first is installed in the machine, the installation system time is saved, is had Improving work efficiency for effect, saves labour turnover, improves the accuracy and reliability of work.In addition, can effectively avoid manually Setting IP address malfunctions and leads to IP address conflict, and the time that every server setting BMC network interface configures was controlled in more than ten seconds It is automatically performed, and can be completed by a laptop, greatly improve computer room hundreds machine configuration BMC network interface The time it takes.
Detailed description of the invention
Fig. 1 is a kind of method that remote auto configures computer room server B MC network interface IP provided in the embodiment of the present invention Flow chart;
Fig. 2 is a kind of system that remote auto configures computer room server B MC network interface IP provided in the embodiment of the present invention Structural block diagram.
Specific embodiment
In order to clearly illustrate the technical characterstic of this programme, below by specific embodiment, and its attached drawing is combined, to this Invention is described in detail.Following disclosure provides many different embodiments or example is used to realize different knots of the invention Structure.In order to simplify disclosure of the invention, hereinafter the component of specific examples and setting are described.In addition, the present invention can be with Repeat reference numerals and/or letter in different examples.This repetition is that for purposes of simplicity and clarity, itself is not indicated Relationship between various embodiments and/or setting is discussed.It should be noted that illustrated component is not necessarily to scale in the accompanying drawings It draws.Present invention omits the descriptions to known assemblies and treatment technology and process to avoid the present invention is unnecessarily limiting.
It is provided for the embodiments of the invention a kind of remote auto configuration computer room server B MC network interface IP with reference to the accompanying drawing Method and system be described in detail.
As shown in Figure 1, the embodiment of the invention discloses the sides of remote auto configuration computer room server B MC network interface IP a kind of Method, the method includes following operations:
S1, it is operated by bright light, finds corresponding server location, static IP is arranged according to location information;
S2, setting IP network section, and store in IP text file last code of IP address, and by batch processing script and IP text file is stored to Terminal Server Client;
After S3, Run Script, last yard of IP network section is that the number stored in current IP text file takes as current The IP address of business device, and last code adds up automatically in IP text file;
S4, it is operated according to bright light, static IP setting is carried out to leave from office server.
The automatic IP address for obtaining server all in computer room, by opening DHCP mode, the special mouth of BMC and shared mouth one Setting dynamic acquisition IP is played, the IP address of every machine is recorded.
The UID lamp (blue) of the host of each IP address is lighted and extinguished by IPMI order, to know each IP clothes The position of business device, the static IP being arranged required for being arranged according to these location informations.
The lighting operation order are as follows:
ipmitool-I lanplus-H 192.168.11.100-U admin-Padmin raw 0x3a 0xe7 0x00
The extinguishing operational order are as follows:
ipmitool-I lanplus-H 192.168.11.100-U admin-P admin raw 0x3a 0xe7 0x00
The text file of the starting ip of the IP address of batch processing script, Ipmitool.exe and required setting is placed on remotely In C disk file in client, batch processing is then run.
Batch processing content for script is as follows:
First setting completed in batch processing script for the IP address network segment that will be arranged.
Check current directory with the presence or absence of IP text file ip.txt, if there is then call the number in ip.txt be IP most Later group number;Ip.txt is created in current directory if not, and is defaulted as 1 and is output to newly-generated ip.txt.
Our IP network sections to be arranged, such as 192.168.0.x are set, and x is the number in ip.txt above, can default tune With.
Calling IP type setting instruction setting BMC network interface IP is static IP;
The IP address of the BMC network interface is switched into the specified address;
The subnet mask of the BMC network interface is adjusted to the default subnet mask;
The gateway address of the BMC network interface is adjusted to the default gateway address;
After being provided with, BMC is restarted.
If x is less than the number cumulative 1 inside 255, ip.txt, i.e. x+1;If x is greater than inside 255, ip.txt Number become 1 beginning again.
The network segment of IP address, such as 192.168.0 are set in batch processing script, and starting is set in IP text file IP address last code, such as the start ip address to be arranged starts for 192.168.0.5, in batch processing script Set 192.168.0;5 are arranged in IP text.
Before Run Script, the BMC IP configuration of current server is first checked, such as IP address is 192.168.0.1, son Net mask is 255.255.255.0, gateway 0.After Run Script, the BMC IP after checking Run Script again is configured, such as The fruit IP address to be arranged is 198.168.0.5, then enters into force.
By the IP of batch processing script modification leave from office machine, the server to be arranged of leaving office is found according to lighting, is modified at criticizing The IP of the special mouth of original BMC in script is managed, Run Script, IP address will be automatically set as 192.168.0.6 again.So always Circulation is gone down, and the BMC network interface IP of each machine will be arranged automatically, and IP address will not repeated collisions.
The embodiment of the present invention is realized that the address BMCIP is arranged in remote batch, is avoided hand and moved a step by batch processing script Step setting BMC network interface configures, and is configured by the setting BMC network interface being simple and efficient, avoids manual setting IP address repeated collisions, and It avoids every machine to require that one linux system first is installed in the machine, saves the installation system time, effectively raise work Make efficiency, save labour turnover, improves the accuracy and reliability of work.Go out in addition, can effectively avoid manual setting IP address Mistake leads to IP address conflict, and the time that every server setting BMC network interface configures is controlled and is automatically performed in more than ten seconds, and It can be completed by a laptop, greatly improve computer room hundreds machine configuration BMC network interface the time it takes.
As shown in Fig. 2, being the embodiment of the invention also discloses a kind of remote auto configuration computer room server B MC network interface IP System, the system comprises:
Server location determining module finds corresponding server location, for operating by bright light to believe according to position Breath setting static IP;
File storage module, for IP network section to be arranged, and in IP text file store IP address last code, and will Batch processing script and IP text file are stored to Terminal Server Client;
Current IP setup module, for after Run Script, last code of IP network section to be to store in current IP text file IP address of the number as current server, and last code adds up automatically in IP text file;
Batch processing setup module carries out static IP setting to leave from office server for operating according to bright light.
The network segment of IP address, such as 192.168.0 are set in batch processing script, and starting is set in IP text file IP address last code, such as the start ip address to be arranged starts for 192.168.0.5, in batch processing script Set 192.168.0;5 are arranged in IP text.
Before Run Script, the BMC IP configuration of current server is first checked, such as IP address is 192.168.0.1, son Net mask is 255.255.255.0, gateway 0.After Run Script, the BMC IP after checking Run Script again is configured, such as The fruit IP address to be arranged is 198.168.0.5, then enters into force.
By the IP of batch processing script modification leave from office machine, the server to be arranged of leaving office is found according to lighting, is modified at criticizing The IP of the special mouth of original BMC in script is managed, Run Script, IP address will be automatically set as 192.168.0.6 again.So always Circulation is gone down, and the BMC network interface IP of each machine will be arranged automatically, and IP address will not repeated collisions.
The system also includes:
Gateway setup module carries out gateway information setting for the BMC to current server, comprising:
IP type setting unit is static IP for calling IP type setting instruction setting BMC network interface IP;
IP address switch unit, for the IP address of the BMC network interface to be switched to the specified address;
Subnet mask setting unit, for the subnet mask of the BMC network interface to be adjusted to the default subnet mask;
Gateway address setting unit, for the gateway address of the BMC network interface to be adjusted to the default gateway address.
The bright light operation is completed by IPMI tool.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (8)

1. a kind of method of remote auto configuration computer room server B MC network interface IP, which is characterized in that the method includes following steps It is rapid:
S1, it is operated by bright light, finds corresponding server location, static IP is arranged according to location information;
S2, IP network section is set, and stores last code of IP address in IP text file, and batch processing script and IP is literary This document is stored to Terminal Server Client;
After S3, Run Script, last yard of IP network section is the number stored in current IP text file as current server IP address, and last code adds up automatically in IP text file;
S4, it is operated according to bright light, static IP setting is carried out to leave from office server.
2. the method for remote auto configuration computer room server B MC network interface IP according to claim 1 a kind of, feature exist In, the method also includes:
After Run Script, gateway information setting is carried out to the BMC of current server.
3. the method for remote auto configuration computer room server B MC network interface IP according to claim 2 a kind of, feature exist In the BMC to current server carries out gateway information setting and includes:
Calling IP type setting instruction setting BMC network interface IP is static IP;
The IP address of the BMC network interface is switched into the specified address;
The subnet mask of the BMC network interface is adjusted to the default subnet mask;
The gateway address of the BMC network interface is adjusted to the default gateway address.
4. the method for remote auto configuration computer room server B MC network interface IP according to claim 1 to 3 a kind of, It is characterized in that, the bright light operation is completed by IPMI tool.
5. a kind of system of remote auto configuration computer room server B MC network interface IP, which is characterized in that the system comprises:
Server location determining module finds corresponding server location, for operating by bright light to set according to location information Set static IP;
File storage module, for IP network section to be arranged, and in IP text file store IP address last code, and will batch at Reason script and IP text file are stored to Terminal Server Client;
Current IP setup module, for after Run Script, last yard of IP network section to be the number stored in current IP text file IP address of the word as current server, and last code adds up automatically in IP text file;
Batch processing setup module carries out static IP setting to leave from office server for operating according to bright light.
6. the system of remote auto configuration computer room server B MC network interface IP according to claim 5 a kind of, feature exist In, the system also includes:
Gateway setup module carries out gateway information setting for the BMC to current server.
7. the system of remote auto configuration computer room server B MC network interface IP according to claim 6 a kind of, feature exist In the gateway setup module includes:
IP type setting unit is static IP for calling IP type setting instruction setting BMC network interface IP;
IP address switch unit, for the IP address of the BMC network interface to be switched to the specified address;
Subnet mask setting unit, for the subnet mask of the BMC network interface to be adjusted to the default subnet mask;
Gateway address setting unit, for the gateway address of the BMC network interface to be adjusted to the default gateway address.
8. a kind of system of remote auto configuration computer room server B MC network interface IP according to claim 5-7 any one, It is characterized in that, the bright light operation is completed by IPMI tool.
CN201811400372.8A 2018-11-22 2018-11-22 A kind of method and system of remote auto configuration computer room server B MC network interface IP Withdrawn CN109587284A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811400372.8A CN109587284A (en) 2018-11-22 2018-11-22 A kind of method and system of remote auto configuration computer room server B MC network interface IP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811400372.8A CN109587284A (en) 2018-11-22 2018-11-22 A kind of method and system of remote auto configuration computer room server B MC network interface IP

Publications (1)

Publication Number Publication Date
CN109587284A true CN109587284A (en) 2019-04-05

Family

ID=65923440

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811400372.8A Withdrawn CN109587284A (en) 2018-11-22 2018-11-22 A kind of method and system of remote auto configuration computer room server B MC network interface IP

Country Status (1)

Country Link
CN (1) CN109587284A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677509A (en) * 2019-09-09 2020-01-10 无锡江南计算技术研究所 Automatic address configuration system suitable for high-performance computer
CN111416882A (en) * 2020-02-28 2020-07-14 浪潮电子信息产业股份有限公司 BMC IP setting method and device, electronic equipment and system
CN113645325A (en) * 2021-08-11 2021-11-12 山东中创软件商用中间件股份有限公司 Out-of-band management method and system for server

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110677509A (en) * 2019-09-09 2020-01-10 无锡江南计算技术研究所 Automatic address configuration system suitable for high-performance computer
CN110677509B (en) * 2019-09-09 2022-04-12 无锡江南计算技术研究所 Automatic address configuration system suitable for high-performance computer
CN111416882A (en) * 2020-02-28 2020-07-14 浪潮电子信息产业股份有限公司 BMC IP setting method and device, electronic equipment and system
CN113645325A (en) * 2021-08-11 2021-11-12 山东中创软件商用中间件股份有限公司 Out-of-band management method and system for server

Similar Documents

Publication Publication Date Title
CN109587284A (en) A kind of method and system of remote auto configuration computer room server B MC network interface IP
CN110879712B (en) Cloud data center physical host installation method and related device
EP3495938A1 (en) Raid configuration
CN107483243A (en) A kind of automatic deployment method and equipment of OpenStack platforms
CN109254783A (en) A kind of server system installation method, device, equipment and readable storage medium storing program for executing
CN113849228A (en) Operating system batch deployment method, system, terminal and storage medium
US11693731B2 (en) System and methods for diagnosing and repairing a smart mobile device by disabling components
CN106201773A (en) The upgrading of instance system, cloud system and instance system or restoration methods
JP2007082078A (en) Data relay device
CN107562622A (en) A kind of method of testing and system of checking MCS system firmware automatically updating functions
US20030120827A1 (en) Method and apparatus for automatically detecting machine states during an operating system installation through a network
CN109254782B (en) Operating system installation method and device
CN115220974A (en) Dynamic checking system, method, device and medium for network information of operating system
CN111459507B (en) Linux OS filling method and device based on hard disk drive name
CN104571437A (en) Computer control system and method
CN110413353B (en) Data processing method, device and storage medium
CN113657702A (en) Automatic operation and maintenance method and device for internet data center and readable storage medium
CN102810067A (en) Virtual machine template updating system and method
CN112416805A (en) Test management cloud platform and method
CN108958995A (en) A kind of method and system of whole machine cabinet server stability test
CN111240907B (en) ITS-based DC stability test method, system, test equipment and readable storage medium
CN117931550A (en) Automatic installation test method, device, equipment and medium for hard disk system
CN109144535B (en) Remote batch upgrading method for CORS (coordinated rotation system) station with supervision
CN116166483A (en) Method, device, equipment and medium for testing on-off cycle of rapid verification system
CN111341434A (en) Remote fault diagnosis and maintenance system for medical equipment and construction method thereof

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190405