CN106326051A - Method for realizing automatic OS switching in PXE test environment - Google Patents

Method for realizing automatic OS switching in PXE test environment Download PDF

Info

Publication number
CN106326051A
CN106326051A CN201610699777.0A CN201610699777A CN106326051A CN 106326051 A CN106326051 A CN 106326051A CN 201610699777 A CN201610699777 A CN 201610699777A CN 106326051 A CN106326051 A CN 106326051A
Authority
CN
China
Prior art keywords
pxe
file
client
test
exclusive
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
CN201610699777.0A
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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201610699777.0A priority Critical patent/CN106326051A/en
Publication of CN106326051A publication Critical patent/CN106326051A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2294Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4416Network booting; Remote initial program loading [RIPL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention particularly relates to a method for realizing automatic OS switching in a PXE test environment. The method for realizing automatic OS switching in the PXE test environment comprises the steps of firstly installing a PXE server and building a PXE test network; writing a PXE starting file, and setting an OS (operating system) which is to be entered by a PXE client firstly as a default starting item; starting the PXE client from the PXE test network, entering a default OS, and starting testing; after the test is finished, compiling an exclusive starting file by taking the MAC address of the network card as a prototype, and setting an OS (operating system) to be entered after the restart as a default starting item; and after the PXE client is restarted, starting to call the boot files, calling the corresponding exclusive boot files according to the priority relation, and booting to enter the expected OS. The method for realizing automatic OS switching in the PXE test environment not only realizes automatic OS switching in the PXE test process, but also does not change starting default files of a PXE server, does not influence the tests of other PXE client sides, does not influence each PXE client side OS switching, and greatly improves the PXE test efficiency.

Description

A kind of PXE test environment realizes the method that OS automatically switches
Technical field
The present invention relates to PXE technical field of measurement and test, realize, particularly to a kind of PXE test environment, the side that OS automatically switches Method.
Background technology
In current server field tests, a lot of tests are to set up PXE server, build PXE test network, and PXE tests Network can be to test machine distribution IP, fill OS, guiding testing results program etc..The startup guiding catalogue of PXE server is Pxelinux.cfg, the inside generally puts a default file, it is intended that startup mirror image and kernel file position etc., is all The startup that PXE client shares guides file.
Due to test system and test program varied, the startup of a lot of PXE server guides file to be provided with many Individual OS startupoptions, wherein has a default option.At test machine after PXE network startup, show startup interface, tester Manually selecting OS to be entered, if do not manually selected at the appointed time, can start from acquiescence OS.But when a set of flow process Test program needs run on two or more OS, when relating to OS switching, need to manually select OS and start, it is impossible to realize certainly Dynamic switching.Pxelinux.cfg catalogue can be arranged to the read-write pattern of PXE client by some testers, when at first OS When build-in test completes, on amendment PXE server, the default file in pxelinux.cfg catalogue, to be entered after restarting OS is arranged to default value, after so can be implemented in first OS build-in test, restarts, and PXE Server leads into automatically Test is continued, it is achieved that automatization in second OS.
But when batch testing, amendment default file can make the startup of whole PXE test environment change, because All PXE clients share this default and guide file, and default guides the amendment of file can survey other PXE clients Examination all produces impact, and the most under the current model, there are the following problems:
(1), in PXE test network, the switching of PXE client OS is related to, mostly by manually selecting switching;
(2) by revising the guiding file on PXE Server in first OS of PXE client, it is possible to achieve PXE client Start from amended OS after restarting, but so whole test network can be produced impact, it is impossible to PXE when meeting batch testing Client tests the principle being independent of each other.
In a word, do not have one to be capable of PXE test network PXE client OS and automatically switch, and between PXE client The method being independent of each other.
Based on above-mentioned situation, the present invention proposes a kind of PXE test environment and realizes the method that OS automatically switches.
Summary of the invention
The present invention is in order to make up the defect of prior art, it is provided that a kind of simple efficient PXE test environment realizes OS certainly The method of dynamic switching.
The present invention is achieved through the following technical solutions:
A kind of PXE test environment realizes the method that OS automatically switches, it is characterised in that comprise the following steps:
(1) installing PXE server, build PXE test network, pxelinux.cfg catalogue is the read-write pattern of PXE client;
(2) write PXE startup file, named default, be placed on pxelinux.cfg catalogue, PXE client is first had to into The OS entered is set to give tacit consent to startup item;
(3) PXE client being started shooting, PXE client starts from PXE test network, enters the OS of acquiescence, starts test;
(4) after having tested, writing exclusive startup file with MAC Address of Network Card for prototype, OS to be entered after restarting is arranged Become acquiescence startup item, and exclusive startup file is put under the pxelinux.cfg catalogue of PXE server;
(5) after PXE client restarts, start to call guiding file, call the exclusive guiding of correspondence according to priority relationship File, leads into desired OS.
In described step (1), PXE test network includes PXE server and PXE client, described PXE server and PXE Client is connected by switch.
After described step (5) terminates, it is completed in second OS, if desired enters the 3rd OS, then continue logical The exclusive guiding file crossing amendment corresponding realizes;If desired return in first OS, then only need to exclusive guiding file from Deleting in pxelinux.cfg catalogue, PXE client can be called default and guide file after restarting, enter first OS.
The invention has the beneficial effects as follows: this PXE test environment realizes the method that OS automatically switches, both achieved PXE test During the automatic switchover of OS, the most do not change PXE server and start default file, do not affect the test of other PXE clients, It is independent of each other during the switching of each PXE client OS, drastically increases PXE testing efficiency.
Accompanying drawing explanation
Accompanying drawing 1 is the method schematic diagram that PXE test environment of the present invention realizes that OS automatically switches.
Accompanying drawing 2 is PXE test network framework schematic diagram of the present invention.
Detailed description of the invention
In order to make the technical problem to be solved, technical scheme and beneficial effect clearer, below tie Closing drawings and Examples, the present invention will be described in detail.It should be noted that, specific embodiment described herein is only used To explain the present invention, it is not intended to limit the present invention.
This PXE test environment realizes the method that OS automatically switches, and comprises the following steps:
(1) installing PXE server, build PXE test network, pxelinux.cfg catalogue is the read-write pattern of PXE client;
(2) write PXE startup file, named default, be placed on pxelinux.cfg catalogue, PXE client is first had to into The OS entered is set to give tacit consent to startup item;
Such as having two startupoptions: CentOS6.8 and RHEL6.5, acquiescence OS is CentOS6.8
(3) PXE client being started shooting, PXE client starts from PXE test network, enters the OS of acquiescence, starts test;
(4) after having tested, MAC Address of Network Card is caught, and ": " in MAC is replaced to "-", and above adding " 01-", as filename, writes a startup file.Network interface MAC Address corresponding for such as RHEL6.5 is 6c:92:bf: 23:75:00, the then entitled 01-6c-92-bf-23-75-00 of file, OS to be entered after restarting is arranged to give tacit consent to startup item, and Exclusive startup file is put under the pxelinux.cfg catalogue of PXE server;
(5) after PXE client restarts, start to call guiding file, according to priority relationship, call and name with " 01-MAC " Exclusive guiding file, lead into desired OS, according to as set above, i.e. start after enter RHEL6.5.
In described step (1), PXE test network includes PXE server and PXE client, described PXE server and PXE Client is connected by switch.
After described step (5) terminates, it is completed in second OS, if desired enters the 3rd OS, then continue logical Cross the exclusive guiding file that amendment " 01-MAC " names to realize;If desired return in first OS, the most only need " 01-MAC " The exclusive guiding file of name deletes from pxelinux.cfg catalogue, and PXE client can be called default after restarting and draw Lead file, enter first OS.

Claims (3)

1. a PXE test environment realizes the method that OS automatically switches, it is characterised in that comprise the following steps:
(1) installing PXE server, build PXE test network, pxelinux.cfg catalogue is the read-write pattern of PXE client;
(2) write PXE startup file, named default, be placed on pxelinux.cfg catalogue, PXE client is first had to into The OS entered is set to give tacit consent to startup item;
(3) PXE client being started shooting, PXE client starts from PXE test network, enters the OS of acquiescence, starts test;
(4) after having tested, writing exclusive startup file with MAC Address of Network Card for prototype, OS to be entered after restarting is arranged Become acquiescence startup item, and exclusive startup file is put under the pxelinux.cfg catalogue of PXE server;
(5) after PXE client restarts, start to call guiding file, call the exclusive guiding of correspondence according to priority relationship File, leads into desired OS.
PXE test environment the most according to claim 1 realizes the method that OS automatically switches, it is characterised in that: described step (1), in, PXE test network includes that PXE server and PXE client, described PXE server and PXE client pass through switch It is connected.
PXE test environment the most according to claim 1 realizes the method that OS automatically switches, it is characterised in that: when described step Suddenly after (5) terminate, it is completed in second OS, if desired enters the 3rd OS, then continue through the exclusive of amendment correspondence File is guided to realize;If desired return in first OS, then only need to be exclusive guiding file from pxelinux.cfg catalogue Deleting, PXE client can be called default and guide file after restarting, enter first OS.
CN201610699777.0A 2016-08-22 2016-08-22 Method for realizing automatic OS switching in PXE test environment Pending CN106326051A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610699777.0A CN106326051A (en) 2016-08-22 2016-08-22 Method for realizing automatic OS switching in PXE test environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610699777.0A CN106326051A (en) 2016-08-22 2016-08-22 Method for realizing automatic OS switching in PXE test environment

Publications (1)

Publication Number Publication Date
CN106326051A true CN106326051A (en) 2017-01-11

Family

ID=57741715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610699777.0A Pending CN106326051A (en) 2016-08-22 2016-08-22 Method for realizing automatic OS switching in PXE test environment

Country Status (1)

Country Link
CN (1) CN106326051A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193614A (en) * 2017-06-23 2017-09-22 郑州云海信息技术有限公司 A kind of automatic prompting, automatic record, the method for automatic pre-assembled operational system
CN107688532A (en) * 2017-07-12 2018-02-13 郑州云海信息技术有限公司 Realize method, system and secondary server that Linux to Dos test platforms automatically switch
CN108763098A (en) * 2018-06-08 2018-11-06 郑州云海信息技术有限公司 A kind of internal storage data processing test system
CN109698772A (en) * 2018-12-14 2019-04-30 郑州云海信息技术有限公司 A kind of method and system for verifying network interface card PXE functional stabilization

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1504880A (en) * 2002-11-29 2004-06-16 联想(北京)有限公司 Operating system automatically installing method applying Linux
CN1567198A (en) * 2003-06-30 2005-01-19 联想(北京)有限公司 Method for mirror backup of cluster platform cross parallel system
US20110107074A1 (en) * 2009-11-02 2011-05-05 Chun-Chieh Chan Electronic Device Capable of Automatically Setting up Operating Systems and Related Method and System
CN102257475A (en) * 2008-12-18 2011-11-23 惠普开发有限公司 System and method for booting a computer system using preboot data
CN103744695A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 Method and system for operating system remote installation on basis of PXE
CN104639378A (en) * 2015-03-10 2015-05-20 浪潮集团有限公司 Automatic server deployment method based on PXE (pre-boot execution environment)
CN104753708A (en) * 2013-12-30 2015-07-01 鸿富锦精密工业(深圳)有限公司 Client-side startup configuration system and method
TW201622378A (en) * 2014-12-11 2016-06-16 英業達股份有限公司 Management system for thin client with mode switch and method thereof

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1504880A (en) * 2002-11-29 2004-06-16 联想(北京)有限公司 Operating system automatically installing method applying Linux
CN1567198A (en) * 2003-06-30 2005-01-19 联想(北京)有限公司 Method for mirror backup of cluster platform cross parallel system
CN102257475A (en) * 2008-12-18 2011-11-23 惠普开发有限公司 System and method for booting a computer system using preboot data
US20110107074A1 (en) * 2009-11-02 2011-05-05 Chun-Chieh Chan Electronic Device Capable of Automatically Setting up Operating Systems and Related Method and System
CN103744695A (en) * 2013-12-25 2014-04-23 新浪网技术(中国)有限公司 Method and system for operating system remote installation on basis of PXE
CN104753708A (en) * 2013-12-30 2015-07-01 鸿富锦精密工业(深圳)有限公司 Client-side startup configuration system and method
TW201622378A (en) * 2014-12-11 2016-06-16 英業達股份有限公司 Management system for thin client with mode switch and method thereof
CN104639378A (en) * 2015-03-10 2015-05-20 浪潮集团有限公司 Automatic server deployment method based on PXE (pre-boot execution environment)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107193614A (en) * 2017-06-23 2017-09-22 郑州云海信息技术有限公司 A kind of automatic prompting, automatic record, the method for automatic pre-assembled operational system
CN107688532A (en) * 2017-07-12 2018-02-13 郑州云海信息技术有限公司 Realize method, system and secondary server that Linux to Dos test platforms automatically switch
CN108763098A (en) * 2018-06-08 2018-11-06 郑州云海信息技术有限公司 A kind of internal storage data processing test system
CN108763098B (en) * 2018-06-08 2021-09-17 郑州云海信息技术有限公司 Memory data processing test system
CN109698772A (en) * 2018-12-14 2019-04-30 郑州云海信息技术有限公司 A kind of method and system for verifying network interface card PXE functional stabilization

Similar Documents

Publication Publication Date Title
CN106326051A (en) Method for realizing automatic OS switching in PXE test environment
US9513889B2 (en) System and method of automating installation of applications
CN109815141B (en) Test method and device
CN112486459B (en) Method, device, computer equipment and readable storage medium for generating active page
CN109933466A (en) Solid-state hard disk controller test method and device based on Python
US20190303172A1 (en) Information processing apparatus, device assignment method, and computer readable medium
US11663113B2 (en) Real time fault localization using combinatorial test design techniques and test case priority selection
CN105260275A (en) Startup and shutdown testing method suitable for automatic configuration partition of high-end host
CN108628733B (en) Method and device for testing batch service processing operation
CN104484176B (en) A kind of Android system window object acquisition methods and device
CN116166525A (en) Method and device for generating test script
US9218273B2 (en) Automatic generation of a resource reconfiguring test
JP6643407B2 (en) Method, apparatus, server and program for inspecting defect function
CN114064503A (en) UI automation test method and device, electronic equipment and storage medium
CN110928787B (en) Automatic test script recording and playback method, device, equipment and storage medium
WO2019019454A1 (en) Layered testing method and device, computer equipment and storage medium
CN105893233A (en) Method and system used for automatically testing firmware
CN116702668A (en) Regression testing method and device, electronic equipment and storage medium
CN111382016A (en) Method and device for connecting test terminal and computer
CN108600042B (en) WiFi test method and device for electronic equipment, storage medium and test equipment
CN110471828B (en) Operating system testing method, device and equipment thereof
CN110750579A (en) Efficient memory distribution method and system for cloud database Redis
CN109446105A (en) Web application test method, device, readable medium and electronic equipment
US10255155B2 (en) Scheduler
CN106598687B (en) Script preheating method and device

Legal Events

Date Code Title Description
PB01 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: 20170111

RJ01 Rejection of invention patent application after publication