CN108280003A - A kind of method and system of automatic Boot Server batch testing - Google Patents
A kind of method and system of automatic Boot Server batch testing Download PDFInfo
- Publication number
- CN108280003A CN108280003A CN201810053432.7A CN201810053432A CN108280003A CN 108280003 A CN108280003 A CN 108280003A CN 201810053432 A CN201810053432 A CN 201810053432A CN 108280003 A CN108280003 A CN 108280003A
- Authority
- CN
- China
- Prior art keywords
- mac address
- order number
- mainboard
- bmc mac
- mainboard bmc
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention provides a kind of method and system of automatic Boot Server batch testing, the described method comprises the following steps:Scan mainboard BMC MAC Address, SN and order number;Establish the binding relationship between mainboard BMC mac address informations and SN and order number information;When booting test, the mainboard BMC MAC Address of current server is read;It is established in binding relationship with SN and order number information according to the mainboard BMC MAC Address of current server and mainboard BMC mac address informations, determines the SN and order number of the machine;Current server type is determined according to SN and order number, downloads test program.By establishing the binding relationship between mainboard BMC mac address informations and SN and order number information, obtain the test program of corresponding type automatically according to mainboard BMC mac address informations in booting is tested, realize server batch testing, when solving server booting test, the problem of needing operating personnel to manually enter SN and order information, can not achieve automation.
Description
Technical field
The present invention relates to server testing field, especially a kind of method of automatic Boot Server batch testing be
System.
Background technology
It in current server manufacturing works, will be tested after being assembled into complete machine, to ensure to wait for shipment complete machine configuration symbol
Conjunction requires, function is good and performance is stablized.
The method of system test is mostly to use PXE test networks at present, after test machine accesses PXE test networks, under
Test system is carried, starts test program automatically, pops up register interface, operator is prompted to input the information such as SN, order number, further according to
The information of input determines the PN of the machine, type, downloads the corresponding test suite of the type and starts to test.
It is intended to pop-up register interface after machine booting operation, operator input SN, order number information is waited for, just can determine that this
The test machine test program to be run can not achieve automation, and since test man would generally be responsible for several station, according to carrying
It when showing the information such as SN, the order number on scanning process card, often causes test to report an error because sweeping wrong traveler, needs to nullify weight
New test.
Invention content
The object of the present invention is to provide a kind of method and systems of automatic Boot Server batch testing, it is intended to solve current
It is real the problem of needing operating personnel to manually enter SN and order information, can not achieve automation when testing server booting
Existing automatic test, avoids operation error caused by being manually entered, and improves testing efficiency and accuracy.
To reach above-mentioned technical purpose, the present invention provides a kind of methods of automatic Boot Server batch testing, including
Following steps:
S101, scanning mainboard BMC MAC Address, SN and order number;
S102, binding relationship between mainboard BMC mac address informations and SN and order number information is established;
When S103, booting test, the mainboard BMC MAC Address of current server is read;
S104, mainboard BMC MAC Address and mainboard BMC mac address informations and SN and order according to current server
Number information is established in binding relationship, determines the SN and order number of the machine;
S105, current server type is determined according to SN and order number, download test program.
Preferably, the binding relationship between the mainboard BMC mac address informations and SN and order number information is with text text
The mode of part is stored into database.
Preferably, the mainboard BMC MAC Address for reading current server is specially to be read using tool ipmitool
It takes.
Preferably, include model information in the order number information.
Preferably, described test includes:
CPU executes speed ability test, carries out compression/de-compression operation using CPU, tests single or multiple core operation
Energy;
Disk read-write performance test, testing hard disk processing I/O read-write operation numbers per second;
Memory bandwidth performance test, the message transmission rate between test memory and CPU;
Switching on and shutting down are tested, and are restarted to server and switching on and shutting down, measuring stability.
The present invention also provides a kind of systems of automatic Boot Server batch testing, including:
Scan module, for scanning mainboard BMC MAC Address, SN and order number;
Binding relationship establishes module, for establishing tying up between mainboard BMC mac address informations and SN and order number information
Determine relationship;
Mainboard address read module reads the mainboard BMC MAC Address of current server when being tested for being switched on;
Order number information determination module, for the mainboard BMC MAC Address and mainboard BMC MAC according to current server
Address information is established with SN and order number information in binding relationship, determines the SN and order number of the machine;
Model information determining module downloads test program for determining current server type according to SN and order number.
Preferably, the binding relationship between the mainboard BMC mac address informations and SN and order number information is with text text
The mode of part is stored into database.
Preferably, the mainboard BMC MAC Address for reading current server is specially to be read using tool ipmitool
It takes.
Preferably, include model information in the order number information.
The effect provided in invention content is only the effect of embodiment, rather than invents all whole effects, above-mentioned
A technical solution in technical solution has the following advantages that or advantageous effect:
Compared with prior art, the present invention is by establishing between mainboard BMC mac address informations and SN and order number information
Binding relationship, obtain according to mainboard BMC mac address informations the test program of corresponding type automatically in booting is tested, realize
Server batch testing needs operating personnel to manually enter SN and order information when solving server booting test, cannot
The problem of realizing automation.
In test process, operator input is waited for without being parked in register interface, automatically begins to test, improves test effect
Rate reduces testing time and cost of labor;BMC MAC Address, SN and order number are scanned to database in assembling, established
Correspondence, because the operating type of the uniqueness of BMC MAC Address and assembling separate unit operation, ensure that the correctness of information,
It avoids in test section because an operator tests the risk that multiple station easily cause scanning mistake, ensure that the correct of test
Property.
Description of the drawings
Fig. 1 is a kind of method flow diagram of automatic Boot Server batch testing provided in the embodiment of the present invention;
Fig. 2 is a kind of system structure diagram of automatic Boot Server batch testing provided in the embodiment of the present invention.
Specific implementation mode
In order to clearly illustrate the technical characterstic of this programme, below by specific implementation mode, and its attached drawing is combined, to this
Invention is described in detail.Following disclosure provides many different embodiments or example is used for realizing the different knots of the present 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.
Be provided for the embodiments of the invention below in conjunction with the accompanying drawings a kind of method of automatic Boot Server batch testing with
System is described in detail.
As shown in Figure 1, the embodiment of the invention discloses a kind of method of automatic Boot Server batch testing, including it is following
Step:
S101, scanning mainboard BMC MAC Address, SN and order number;
S102, binding relationship between mainboard BMC mac address informations and SN and order number information is established;
When S103, booting test, the mainboard BMC MAC Address of current server is read;
S104, mainboard BMC MAC Address and mainboard BMC mac address informations and SN and order according to current server
Number information is established in binding relationship, determines the SN and order number of the machine;
S105, current server type is determined according to SN and order number, download test program.
Stage, scanning mainboard BMC MAC Address, SN and order number, by the mainboard BMC after scanning are assembled in server
It is each since only there are one BMC MAC Address on every mainboard in MAC Address, SN and order number information deposit database
The mainboard BMC MAC Address of platform machine is unique.Mainboard BMC mac address informations and SN and order number information are established and bound
Relationship, i.e., each mainboard BMC mac address informations have corresponding SN and order number information.There are one on every mainboard only
BMC MAC Address, operating personnel can avoid the occurrence of the risk of scanning mistake, and in group when scanning BMC mac address informations
The dress stage inherently needs to scan each component information, can't increase extra work.
When server boots up test, mainboard BMC MAC Address is read:
system(“ipmitool lan print 1|grep-1‘MAC Address’|awk‘{print$4}’|sed–e
‘s/://g’|tr[a-z][A-Z]>bmcmac.txt”);
Ipmitool is one and checks that ipmi (Intelligent Platform Management Interface) is assisted
View can check that the option of BIOS is arranged by the tool, and check the SEL daily records (System Event Log) of BMC.It utilizes
Ipmitool reads mainboard BMC mac address informations, and is stored into text bmcmac.txt files.
The database that storage mainboard BMC mac address informations establish binding relationship with SN and order number information is opened, according to
Mainboard BMC MAC Address is established with SN and order number information in binding relationship from the mainboard BMC mac address informations in database,
Determine the SN and order number of the machine:
QString bmcmac=readFile (" bmcmac.txt ", 1);// read mainboard BMC mac address informations
QStringList snlist=sqlCmd (QString (" select snNumber from MacToSN
Where ipmiMac=' %1 ' ") .arg (bmcmac));
Sn=snlist.at (snlist.size () -1);// obtain SN information
QStringList skulist=sqlCmd (QString (" select listId from MacToSN where
IpmiMac=' %1 ' ") .arg (bmcmac));
Sku=skulist.at (skulist.size () -1);// obtain order number information
And by information such as the PN of the PN and order number acquisition of information machine and types, include in the order number information
Model information:
QStringList PNlist=sqlCmd (QString (" select productName from List
Where listId=' %1 ' ") .arg (sku));
ProductName=PNlist.at (0) .lest (8);// obtain model information
After getting type, the test program of the machine type is downloaded in networking.
Above-mentioned automation bootstrap is added in test system, when being switched on self-starting, test program is executed, to real
Guiding test carries out automatically after now test booting.
The test includes:
CPU executes speed ability test, carries out compression/de-compression operation using CPU, tests single or multiple core operation
Energy;
Disk read-write performance test, testing hard disk processing I/O read-write operation numbers per second;
Memory bandwidth performance test, the message transmission rate between test memory and CPU;
Switching on and shutting down are tested, and are restarted to server and switching on and shutting down, measuring stability.
The embodiment of the present invention is closed by establishing the binding between mainboard BMC mac address informations and SN and order number information
System obtains the test program of corresponding type in booting is tested according to mainboard BMC mac address informations, realizes server batch automatically
Examination is measured, when solving server booting test, operating personnel is needed to manually enter SN and order information, can not achieve automatic
The problem of change.
In test process, operator input is waited for without being parked in register interface, automatically begins to test, improves test effect
Rate reduces testing time and cost of labor;BMC MAC Address, SN and order number are scanned to database in assembling, established
Correspondence, because the operating type of the uniqueness of BMC MAC Address and assembling separate unit operation, ensure that the correctness of information,
It avoids in test section because an operator tests the risk that multiple station easily cause scanning mistake, ensure that the correct of test
Property.
As shown in Fig. 2, the embodiment of the invention also discloses a kind of systems of automatic Boot Server batch testing, including:
Scan module, for scanning mainboard BMC MAC Address, SN and order number;
Binding relationship establishes module, for establishing tying up between mainboard BMC mac address informations and SN and order number information
Determine relationship;Binding relationship between the mainboard BMC mac address informations and SN and order number information is in a manner of text file
In storage to database;
Mainboard address read module reads the mainboard BMC MAC Address of current server when being tested for being switched on;It is described
The mainboard BMC MAC Address for reading current server is specially to be read using tool ipmitool;
Order number information determination module, for the mainboard BMC MAC Address and mainboard BMC MAC according to current server
Address information is established with SN and order number information in binding relationship, determines the SN and order number of the machine;
Model information determining module downloads test program for determining current server type according to SN and order number;Institute
State in order number information includes model information.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement etc., should all be included in the protection scope of the present invention made by within refreshing and principle.
Claims (9)
1. a kind of method of automatic Boot Server batch testing, which is characterized in that include the following steps:
S101, scanning mainboard BMC MAC Address, SN and order number;
S102, binding relationship between mainboard BMC mac address informations and SN and order number information is established;
When S103, booting, the mainboard BMC MAC Address of current server is read;
S104, believed according to the mainboard BMC MAC Address and mainboard BMC mac address informations and SN and order number of current server
Breath is established in binding relationship, determines the SN and order number of the machine;
S105, current server type is determined according to SN and order number, download test program, and surveyed using test program
Examination.
2. a kind of method of automatic Boot Server batch testing according to claim 1, which is characterized in that the mainboard
Binding relationship between BMC mac address informations and SN and order number information is stored in a manner of text file into database.
3. a kind of method of automatic Boot Server batch testing according to claim 2, which is characterized in that the reading
The mainboard BMC MAC Address of current server is specially to be read using tool ipmitool.
4. a kind of method of automatic Boot Server batch testing according to claim 1, which is characterized in that the order
It include model information in number information.
5. a kind of method of automatic Boot Server batch testing according to claim 1, which is characterized in that the utilization
The content that test program is tested includes:
CPU executes speed ability test, carries out compression/de-compression operation using CPU, tests single or multiple core operational performance;
Disk read-write performance test, testing hard disk processing I/O read-write operation numbers per second;
Memory bandwidth performance test, the message transmission rate between test memory and CPU;
Switching on and shutting down are tested, and are restarted to server and switching on and shutting down, measuring stability.
6. a kind of system of automatic Boot Server batch testing, which is characterized in that including:
Scan module, for scanning mainboard BMC MAC Address, SN and order number;
Binding relationship establishes module, is closed for establishing the binding between mainboard BMC mac address informations and SN and order number information
System;
Mainboard address read module reads the mainboard BMC MAC Address of current server when being tested for being switched on;
Order number information determination module, for the mainboard BMC MAC Address and mainboard BMC MAC Address according to current server
Information is established with SN and order number information in binding relationship, determines the SN and order number of the machine;
Model information determining module downloads test program for determining current server type according to SN and order number.
7. a kind of system of automatic Boot Server batch testing according to claim 6, which is characterized in that the mainboard
Binding relationship between BMC mac address informations and SN and order number information is stored in a manner of text file into database.
8. a kind of system of automatic Boot Server batch testing according to claim 6, which is characterized in that the reading
The mainboard BMC MAC Address of current server is specially to be read using tool ipmitool.
9. a kind of system of automatic Boot Server batch testing according to claim 6, which is characterized in that the order
It include model information in number information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810053432.7A CN108280003A (en) | 2018-01-19 | 2018-01-19 | A kind of method and system of automatic Boot Server batch testing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810053432.7A CN108280003A (en) | 2018-01-19 | 2018-01-19 | A kind of method and system of automatic Boot Server batch testing |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108280003A true CN108280003A (en) | 2018-07-13 |
Family
ID=62804152
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810053432.7A Pending CN108280003A (en) | 2018-01-19 | 2018-01-19 | A kind of method and system of automatic Boot Server batch testing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108280003A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111813617A (en) * | 2020-08-31 | 2020-10-23 | 成都申威科技有限责任公司 | Method and device for testing and scheduling functions of main board device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102222282A (en) * | 2011-06-23 | 2011-10-19 | 成都新易盛通信技术有限公司 | Automatic tracing method suitable for optical module production |
CN105404567A (en) * | 2015-10-30 | 2016-03-16 | 浪潮电子信息产业股份有限公司 | Method for automatically controlling server aging time in Linux system |
CN105425065A (en) * | 2015-11-12 | 2016-03-23 | 四川长虹电器股份有限公司 | Intelligent household electrical appliance automatic production test system and method |
CN106776182A (en) * | 2016-12-21 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of automatic identification station and the method for performing correspondence script |
CN106919420A (en) * | 2017-02-13 | 2017-07-04 | 彤诺电子鄂州有限公司 | A kind of PC auto-fillings method and system |
CN107103426A (en) * | 2017-04-26 | 2017-08-29 | 郑州云海信息技术有限公司 | Batch deletes the method and device of sequence number and multiple order number binding relationships |
-
2018
- 2018-01-19 CN CN201810053432.7A patent/CN108280003A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102222282A (en) * | 2011-06-23 | 2011-10-19 | 成都新易盛通信技术有限公司 | Automatic tracing method suitable for optical module production |
CN105404567A (en) * | 2015-10-30 | 2016-03-16 | 浪潮电子信息产业股份有限公司 | Method for automatically controlling server aging time in Linux system |
CN105425065A (en) * | 2015-11-12 | 2016-03-23 | 四川长虹电器股份有限公司 | Intelligent household electrical appliance automatic production test system and method |
CN106776182A (en) * | 2016-12-21 | 2017-05-31 | 郑州云海信息技术有限公司 | A kind of automatic identification station and the method for performing correspondence script |
CN106919420A (en) * | 2017-02-13 | 2017-07-04 | 彤诺电子鄂州有限公司 | A kind of PC auto-fillings method and system |
CN107103426A (en) * | 2017-04-26 | 2017-08-29 | 郑州云海信息技术有限公司 | Batch deletes the method and device of sequence number and multiple order number binding relationships |
Non-Patent Citations (1)
Title |
---|
郎炯 等: "基于SOA软件架构的数据集成方法", 《计算机应用》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111813617A (en) * | 2020-08-31 | 2020-10-23 | 成都申威科技有限责任公司 | Method and device for testing and scheduling functions of main board device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110162435B (en) | Method, system, terminal and storage medium for starting and testing PXE of server | |
CN108549606A (en) | interface test method and device | |
US7930600B2 (en) | Logical to physical connectivity verification in a predefined networking environment | |
CN106445591A (en) | Automatic and batched RAID card FW refreshing method of servers | |
US20180357143A1 (en) | Testing computing devices | |
CN110764980A (en) | Log processing method and device | |
CN109491889A (en) | The method and apparatus of automatic test in NFV | |
CN107329914A (en) | It is a kind of that the out of order method and device of hard disk is detected based on linux system | |
CN109800022A (en) | A kind of method, system, terminal and the storage medium of automation comparison BIOS information difference | |
CN108572895A (en) | Automatically the stability test method of software and hardware configuration is checked under a kind of Linux | |
CN108153635B (en) | System memory edge testing method, system device and computer readable storage medium | |
US20100251029A1 (en) | Implementing self-optimizing ipl diagnostic mode | |
CN108280003A (en) | A kind of method and system of automatic Boot Server batch testing | |
CN101510172B (en) | Test system and method | |
CN109783288A (en) | It is a kind of to automate the method and system for restarting reset test server stability | |
CN109783292A (en) | A kind of inspection method and system of server info | |
CN112231159B (en) | Memory installation position testing method, system, terminal and storage medium | |
CN109144669A (en) | The method for testing pressure and system of NAS virtual machine system under a kind of MCS system | |
CN114064510A (en) | Function testing method and device, electronic equipment and storage medium | |
CN114416596A (en) | Application testing method and device, computer equipment and storage medium | |
CN113452533B (en) | Charging self-inspection and self-healing method and device, computer equipment and storage medium | |
CN109783031B (en) | Method, device, terminal and storage medium for checking drive letter and slot number of RAID card | |
CN111597101A (en) | SDK access state detection method, computer device and computer readable storage medium | |
CN109408307A (en) | A method of automation concurrent testing BMC retains configuration upgrade function | |
CN107870839A (en) | A kind of storage device method of testing, system and computer-readable recording medium |
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: 20180713 |