CN109257186A - A kind of method and system making server automatically from PXE network startup - Google Patents

A kind of method and system making server automatically from PXE network startup Download PDF

Info

Publication number
CN109257186A
CN109257186A CN201810967280.1A CN201810967280A CN109257186A CN 109257186 A CN109257186 A CN 109257186A CN 201810967280 A CN201810967280 A CN 201810967280A CN 109257186 A CN109257186 A CN 109257186A
Authority
CN
China
Prior art keywords
bmc
server
launched
control instruction
network startup
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
Application number
CN201810967280.1A
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 CN201810967280.1A priority Critical patent/CN109257186A/en
Publication of CN109257186A publication Critical patent/CN109257186A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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/28Restricting access to network management systems or functions, e.g. using authorisation function to access network configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention provides a kind of method and system for making server automatically from PXE network startup, and method includes: S1. starting link module;S2. link module sends control instruction to the BMC of server to be launched;S3.BMC obtains control instruction, controls Server Restart to be launched, and enter PXE network startup.System includes link module start unit, for starting link module;BMC control instruction transmission unit, for sending control instruction to the BMC of server to be launched by link module;Server Restart and PXE start unit control Server Restart to be launched, and enter PXE network startup for obtaining control instruction by BMC.The present invention realizes that server automatically into PXE network startup interface, can carry out system installation with a large amount of server of batch operation, provide convenience in testing, managing and maintaining for system administration, operation maintenance personnel, can save the plenty of time, improve working efficiency.

Description

A kind of method and system making server automatically from PXE network startup
Technical field
The invention belongs to servers to start field, and in particular to a method of make server automatically from PXE network startup And system.
Background technique
With the fast development of internet+and cloud service, server tends to concentrating type, the number of servers of Internet service It is more and more huger.So the task of server system administrator and operation maintenance personnel is very arduous, the working time is of great value, and is badly in need of improving The method of working efficiency.Server test, manage and maintain when need from PXE start installation system, current method is all It is to restart server manually and select at the interface POST from network startup, this method expense when there is a large amount of servers to need to safeguard When it is laborious.
This is the deficiencies in the prior art, and therefore, in view of the above-mentioned drawbacks in the prior art, providing one kind keeps server automatic From the method and system of PXE network startup, it is necessary.
Summary of the invention
It is an object of the present invention to restart server manually for above-mentioned and need to select at the interface POST from network startup, The defect for having a large amount of servers time-consuming and laborious when needing to safeguard provides a kind of method for making server automatically from PXE network startup And system, to solve the above technical problems.
To achieve the above object, the present invention provides following technical scheme:
A method of including the following steps: server from PXE network startup, automatically
S1. start link module;
S2. link module sends control instruction to the BMC of server to be launched;
S3.BMC obtains control instruction, controls Server Restart to be launched, and enter PXE network startup.
Further, the link module uses Linux shell script.Linux shell script replaces manually Automated execution is realized in operation.
Further, further include following steps before step S1:
SA1., BMC information storage module is set;
Specific step is as follows by step S2:
S21. link module obtains the BMC information of server to be launched from BMC information storage module;
S22. link module sends control instruction to the BMC of server to be launched according to the BMC information of acquisition.In Linux The same catalogue of shell script is put into the message file of BMC, when Linux shell script is run, obtains from the message file of BMC The information of BMC.
Further, the BMC information includes BMC IP address, BMC user name and BMC password;
Link module obtains the BMC IP address of server to be launched from BMC information storage module in S21, logs in BMC and uses Name in an account book and BMC password;
Further include following steps before step S1:
Whether SAA1. detect server B MC IP address to be launched can be logical with ping;
If it is not, checking network problem, terminate;
If so, entering step S1;
Further include following steps after step S3:
SB3. server to be launched is exported from PXE network startup implementing result.Check that script exports, and has etc. pending completion Prompt is had when problem please check the address bmcip, and whether username and password is correct.
Further, link module is controlled by impitool order to the BMC of server to be launched transmission in step S2 Instruction.Ipmitool is a kind of ipmi platform management tool that can be used in the command line mode under Linux system.
Further, further include following steps before step S2:
SA2. judge whether impitool installs;
If it is not, installation impitool, enters step S2;
If so, entering step S2.
Further, further include following steps after step S3:
SBB3. judge all nodes of server to be launched whether all from PXE network startup;
If so, terminating;
If it is not, return step S2.Guarantee that all nodes have been turned on.
The present invention gives following technical solution:
A kind of system making server automatically from PXE network startup, including
Link module start unit, for starting link module;
BMC control instruction transmission unit, for sending control instruction to the BMC of server to be launched by link module;
Server Restart and PXE start unit, for controlling Server Restart to be launched by BMC acquisition control instruction, And enter PXE network startup.
It further, further include BMC information storage module setting unit, for BMC information storing module to be arranged;
BMC control instruction transmission unit, for obtaining server to be launched from BMC information storage module by link module BMC information, and to the BMC of server to be launched send control instruction.
It further, further include impitool installation judging unit, for judging whether impitool installs;
In BMC control instruction transmission unit, link module is sent by impitool order to the BMC of server to be launched Control instruction;
Node starts judging unit, for judging whether all nodes of server to be launched have all opened from PXE network It is dynamic.
The beneficial effects of the present invention are:
The present invention realizes that server, can be a large amount of with batch operation automatically into PXE network startup interface by shell script Server, carry out system installation, the present invention is that system administration, operation maintenance personnel provide convenience in testing, managing and maintaining, can To save the plenty of time, working efficiency is improved.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention implementing with substantive distinguishing features outstanding and significant progress Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is flow chart of the method for the present invention;
Fig. 2 is system schematic of the invention;
Wherein, 1- link module start unit;2-BMC control instruction transmission unit;3- Server Restart and PXE starting are single Member;4-BMC information storage module setting unit;5-impitool installs judging unit;6- node starts judging unit.
Specific embodiment:
To enable the purpose of the present invention, feature, advantage more obvious and understandable, below in conjunction with of the invention specific The technical solution in the present invention is clearly and completely described in attached drawing in embodiment.
Embodiment 1:
As shown in Figure 1, the present invention provides a kind of method for making server automatically from PXE network startup, include the following steps:
Whether SAA1. detect server B MC IP address to be launched can be logical with ping;
If it is not, checking network problem, terminate;
If so, entering step SA1;
SA1., BMC information storage module is set;
S1. start link module;Link module uses Linux shell script;
SA2. judge whether impitool installs;
If it is not, installation impitool, enters step S2;
If so, entering step S2;
S2. link module sends control instruction to the BMC of server to be launched;Link module by impitool order to The BMC of server to be launched sends control instruction;Specific step is as follows:
S21. link module obtains the BMC information of server to be launched from BMC information storage module;
The BMC information includes BMC IP address, BMC user name and BMC password;Link module stores mould from BMC information Block obtains the BMC IP address of server to be launched, logs in BMC user name and BMC password;
S22. link module sends control instruction to the BMC of server to be launched according to the BMC information of acquisition;
S3.BMC obtains control instruction, controls Server Restart to be launched, and enter PXE network startup;
SBB3. judge all nodes of server to be launched whether all from PXE network startup;
If so, terminating;
If it is not, return step S2;
SB3. server to be launched is exported from PXE network startup implementing result.
In above-described embodiment 1, SA2. judges whether impitool installs, and is realized by following code:
#!/bin/sh
rpm-qa|grep ipmitool>/dev/null
# checks whether to have installed ipmitool
If [$?-eq 0];
then
echo"*******************************"
echo"BEGIN"
echo"*******************************"
else
echo"plese install ipmitool"
exit
fi
In above-described embodiment 1, S21. link module obtains the BMC IP of server to be launched from BMC information storage module Location logs in BMC user name and BMC password,
S22. link module sends control instruction to the BMC of server to be launched according to the BMC information of acquisition;
S3.BMC obtains control instruction, controls Server Restart to be launched, and enter PXE network startup;
It is realized by following code:
In above-described embodiment 1, BMC information storage module is arranged in SA1, by creating under the catalogue where shell script BMC_ip.txt file inputs bmcip, bmc user name and bmc password in this document;
Such as: 192.168.0.1 admin admin
192.168.0.3 root root
Embodiment 2:
As shown in Fig. 2, the present invention provides a kind of system for making server automatically from PXE network startup, including
Link module start unit 1, for starting link module;
BMC control instruction transmission unit 2, for obtaining service to be launched from BMC information storage module by link module The BMC information of device, and control instruction is sent to the BMC of server to be launched;Wherein, link module by impitool order to The BMC of server to be launched sends control instruction;
Server Restart and PXE start unit 3 control service to be launched and think highly of for obtaining control instruction by BMC It opens, and enters PXE network startup.
BMC information storage module setting unit 4, for BMC information storing module to be arranged;
Impitool installs judging unit 5, for judging whether impitool installs;
Node starts judging unit 6, for judging whether all nodes of server to be launched have all opened from PXE network It is dynamic.
The embodiment of the present invention be it is illustrative and not restrictive, above-described embodiment be only to aid in understanding the present invention, because The present invention is not limited to the embodiments described in specific embodiment for this, all by those skilled in the art's technology according to the present invention Other specific embodiments that scheme obtains, also belong to the scope of protection of the invention.

Claims (10)

1. a kind of method for making server automatically from PXE network startup, which comprises the steps of:
S1. start link module;
S2. link module sends control instruction to the BMC of server to be launched;
S3.BMC obtains control instruction, controls Server Restart to be launched, and enter PXE network startup.
2. a kind of method for making server automatically from PXE network startup as described in claim 1, which is characterized in that the chain Connection module uses Linux shell script.
3. a kind of method for making server automatically from PXE network startup as described in claim 1, which is characterized in that
Further include following steps before step S1:
SA1., BMC information storage module is set;
Specific step is as follows by step S2:
S21. link module obtains the BMC information of server to be launched from BMC information storage module;
S22. link module sends control instruction to the BMC of server to be launched according to the BMC information of acquisition.
4. a kind of method for making server automatically from PXE network startup as claimed in claim 3, which is characterized in that
The BMC information includes BMC IP address, BMC user name and BMC password;
Link module obtains the BMC IP address of server to be launched from BMC information storage module in S21, logs in BMC user name With BMC password;
Further include following steps before step S1:
Whether SAA1. detect server B MC IP address to be launched can be logical with ping;
If it is not, checking network problem, terminate;
If so, entering step S1;
Further include following steps after step S3:
SB3. server to be launched is exported from PXE network startup implementing result.
5. a kind of method for making server automatically from PXE network startup as described in claim 1, which is characterized in that
Link module sends control instruction to the BMC of server to be launched by impitool order in step S2.
6. a kind of method for making server automatically from PXE network startup as claimed in claim 5, which is characterized in that step S2 Before further include following steps:
SA2. judge whether impitool installs;
If it is not, installation impitool, enters step S2;
If so, entering step S2.
7. a kind of method for making the automatic PXE network startup of server as described in claim 1, which is characterized in that
Further include following steps after step S3:
SBB3. judge all nodes of server to be launched whether all from PXE network startup;
If so, terminating;
If it is not, return step S2.
8. a kind of system for making server automatically from PXE network startup, which is characterized in that including
Link module start unit (1), for starting link module;
BMC control instruction transmission unit (2), for sending control instruction to the BMC of server to be launched by link module;
Server Restart and PXE start unit (3), for controlling Server Restart to be launched by BMC acquisition control instruction, And enter PXE network startup.
9. a kind of system for making server automatically from PXE network startup as claimed in claim 8, which is characterized in that
It further include BMC information storage module setting unit (4), for BMC information storing module to be arranged;
BMC control instruction transmission unit (2), for obtaining server to be launched from BMC information storage module by link module BMC information, and to the BMC of server to be launched send control instruction.
10. a kind of system for making server automatically from PXE network startup as claimed in claim 8, which is characterized in that further include Impitool installs judging unit (5), for judging whether impitool installs;
In BMC control instruction transmission unit (2), link module is sent by impitool order to the BMC of server to be launched Control instruction;
Node starts judging unit (6), for judging whether all nodes of server to be launched have all opened from PXE network It is dynamic.
CN201810967280.1A 2018-08-23 2018-08-23 A kind of method and system making server automatically from PXE network startup Pending CN109257186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810967280.1A CN109257186A (en) 2018-08-23 2018-08-23 A kind of method and system making server automatically from PXE network startup

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810967280.1A CN109257186A (en) 2018-08-23 2018-08-23 A kind of method and system making server automatically from PXE network startup

Publications (1)

Publication Number Publication Date
CN109257186A true CN109257186A (en) 2019-01-22

Family

ID=65049584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810967280.1A Pending CN109257186A (en) 2018-08-23 2018-08-23 A kind of method and system making server automatically from PXE network startup

Country Status (1)

Country Link
CN (1) CN109257186A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162435A (en) * 2019-04-24 2019-08-23 苏州浪潮智能科技有限公司 A kind of server PXE starting test method, system, terminal and storage medium
CN117215642A (en) * 2023-11-07 2023-12-12 四川华鲲振宇智能科技有限责任公司 Complete machine server software batch customization method and system based on PXE and IPMI

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902526A (en) * 2012-08-31 2013-01-30 浪潮电子信息产业股份有限公司 Automatic setting method for realizing BMC (Baseboard Management Controller) and IP (Internet Protocol) information through time delay
CN102937927A (en) * 2011-08-15 2013-02-20 鸿富锦精密工业(深圳)有限公司 Method and system for testing stability of server
CN103746833A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 PXE-based RAID automatic configuration method and system
CN104219099A (en) * 2014-09-25 2014-12-17 浪潮(北京)电子信息产业有限公司 Automatic server cluster deploying method and device
CN104317617A (en) * 2014-10-23 2015-01-28 浪潮电子信息产业股份有限公司 Method for refreshing BMC Firmware in batch
CN105468488A (en) * 2015-11-30 2016-04-06 浪潮电子信息产业股份有限公司 Method, device and system of diskless CPU (Central Processing Unit) on the basis of IB (InfiniBand) network
CN105743707A (en) * 2016-04-01 2016-07-06 浪潮电子信息产业股份有限公司 Method for testing BMC log analysis function based on Redhat system
US20160203000A1 (en) * 2015-01-09 2016-07-14 Avago Technologies General Ip (Singapore) Pte. Ltd Operating system software install and boot up from a storage area network device
CN106572200A (en) * 2016-11-10 2017-04-19 郑州云海信息技术有限公司 IP address configuration method and IP address configuration device for baseboard management controller BMC
CN107276844A (en) * 2017-06-01 2017-10-20 郑州云海信息技术有限公司 It is a kind of that the automatic setting method for logining server system is oriented based on linux operating systems
CN107895107A (en) * 2017-12-21 2018-04-10 郑州云海信息技术有限公司 A kind of method and system of batch setting BMC username and passwords

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102937927A (en) * 2011-08-15 2013-02-20 鸿富锦精密工业(深圳)有限公司 Method and system for testing stability of server
CN102902526A (en) * 2012-08-31 2013-01-30 浪潮电子信息产业股份有限公司 Automatic setting method for realizing BMC (Baseboard Management Controller) and IP (Internet Protocol) information through time delay
CN103746833A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 PXE-based RAID automatic configuration method and system
CN104219099A (en) * 2014-09-25 2014-12-17 浪潮(北京)电子信息产业有限公司 Automatic server cluster deploying method and device
CN104317617A (en) * 2014-10-23 2015-01-28 浪潮电子信息产业股份有限公司 Method for refreshing BMC Firmware in batch
US20160203000A1 (en) * 2015-01-09 2016-07-14 Avago Technologies General Ip (Singapore) Pte. Ltd Operating system software install and boot up from a storage area network device
CN105468488A (en) * 2015-11-30 2016-04-06 浪潮电子信息产业股份有限公司 Method, device and system of diskless CPU (Central Processing Unit) on the basis of IB (InfiniBand) network
CN105743707A (en) * 2016-04-01 2016-07-06 浪潮电子信息产业股份有限公司 Method for testing BMC log analysis function based on Redhat system
CN106572200A (en) * 2016-11-10 2017-04-19 郑州云海信息技术有限公司 IP address configuration method and IP address configuration device for baseboard management controller BMC
CN107276844A (en) * 2017-06-01 2017-10-20 郑州云海信息技术有限公司 It is a kind of that the automatic setting method for logining server system is oriented based on linux operating systems
CN107895107A (en) * 2017-12-21 2018-04-10 郑州云海信息技术有限公司 A kind of method and system of batch setting BMC username and passwords

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
薛为民: "《网络系统管理与维护》", 31 August 2007 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110162435A (en) * 2019-04-24 2019-08-23 苏州浪潮智能科技有限公司 A kind of server PXE starting test method, system, terminal and storage medium
CN110162435B (en) * 2019-04-24 2022-08-12 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for starting and testing PXE of server
CN117215642A (en) * 2023-11-07 2023-12-12 四川华鲲振宇智能科技有限责任公司 Complete machine server software batch customization method and system based on PXE and IPMI

Similar Documents

Publication Publication Date Title
CN102437938B (en) Large-scale network monitoring oriented virtual deployment system and method
CN109802867B (en) Method and system for testing connection stability of network card NCSI
CN102722420B (en) Self-diagnosis terminal, detection method and remote maintenance system
CN110913024B (en) Cloud platform information synchronization method, system, control device and storage medium
CN109634626B (en) Method and system for remotely installing server system driver based on BMC
CN112769922B (en) Device and method for self-starting micro service cluster
CN101950253A (en) Method for upgrading optical module firmware in optical network unit by utilizing WEB webpage interface
CN109639803A (en) A kind of method and system by BMC Long-range Automatic Deployment server OS
CN109257186A (en) A kind of method and system making server automatically from PXE network startup
CN106656927A (en) Method and device for enabling Linux account to be added to AD domain
CN108768785B (en) Method and device for building intelligent network card test environment
CN108833168B (en) Server cluster environment network system and stability detection method
CN104932977A (en) Automatic restart testing method for Solaris system
CN106649019A (en) Test method for overall automatic PCIE communication quality based on serial port
CN105607606A (en) Data acquisition device and data acquisition method based on double-mainboard framework
CN104898070B (en) Power supply test method and device
CN107733717B (en) Network configuration method for mobile operation and maintenance of cloud platform
CN111181808B (en) Method and system for testing BMC IP access control
CN112256289A (en) Automatic deployment method, device and equipment
CN111787067A (en) Multi-bank-enterprise direct connection remote service calling and managing method
CN110737444A (en) Remote self-adaptive dynamic deployment method and system for operating system based on firmware
CN108804265A (en) A kind of PowerCycle test methods and system based on server DC
CN107066880A (en) The management method and system of desktop terminal
CN109639525B (en) Network interface detection method based on homemade operating system
CN113378393A (en) Server product reliability test method and device

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190122