CN102981949A - Method for on-line automatic tests of server - Google Patents
Method for on-line automatic tests of server Download PDFInfo
- Publication number
- CN102981949A CN102981949A CN2012104199956A CN201210419995A CN102981949A CN 102981949 A CN102981949 A CN 102981949A CN 2012104199956 A CN2012104199956 A CN 2012104199956A CN 201210419995 A CN201210419995 A CN 201210419995A CN 102981949 A CN102981949 A CN 102981949A
- Authority
- CN
- China
- Prior art keywords
- test
- bmc
- server
- script
- bat
- 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
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method for on-line automatic tests of a server. The method comprises the steps of writing a bat batching script (bat) according to all tested function items and corresponding intelligent platform management interface (IPMI) protocol data package format of each test, calling an ipmitool in the script to send a data package to a block multiplexer channel (BMC) item by item, and storing a returned data package from the BMC to a txt document; writing a test program, judging and analyzing the data package returned from the BMC and stored in the txt document in the test program, printing a final analyzing result, and compiling the written test program to generate an executive program. By means of the method for the on-line automatic tests of the server, functions of a main board of the server can be tested quickly and accurately, and a straightforward test result is provided for testing staff as a reference. The testing staff can obtain the test result quickly and accurately at one time, testing time of the testing staff is greatly saved, and test accuracy is improved.
Description
Technical field
The invention belongs to field of computer technology, relate to a kind of method of on-line automatic testing server.
Background technology
Continuous progress and raising along with science and technology, the function of processor is more and more stronger, correspondingly, the function of server master board also becomes increasingly complex, the component number that consists of server master board is also more and more, increased difficulty with regard to the test of giving server master board like this, it is various and complicated that test step also becomes.Therefore, seek a kind ofly can test fast the method for obtaining test result to the server master board partial function fast, become and alleviate server master board tester workload, improve very exigence of test accuracy.
For server master board LED lamp, hummer, temperature, voltage, the fan speed-regulating function, and the test of the function such as network function, classic method is to use the ipmitool instrument, the tester is for every functional test, use respectively the ipmitool instrument to send one by one data according to the data packet format of IPMI agreement regulation to BMC, BMC returns data, the data that the tester returns according to BMC again judge whether this test is passed through, this kind method of testing all need to use the ipmitool instrument to send a secondary data to BMC by the tester for every functional test, then the data of returning according to BMC are judged this functional test results, test function Xiang Yue is many, tester's workload is larger, simultaneously, because the data that BMC returns are manually to be judged by the tester, be easy to cause erroneous judgement, so just greatly reduce testing efficiency and test accuracy rate.
Therefore, this traditional method of testing can't satisfy the needs of computer technology high speed development, for this reason, be necessary to study in fact, so that a kind of scheme to be provided, can to test the server master board function fast and exactly, and provide clear and definite test result for tester's reference.
Summary of the invention
For addressing the above problem, the object of the present invention is to provide a kind of method of on-line automatic testing server.
For achieving the above object, technical scheme of the present invention is:
A kind of method of on-line automatic testing server comprises the steps:
All functions item and every IPMI protocol data packet format corresponding to test according to test are write bat batch processing script, call the ipmitool instrument and send one by one packet to BMC in script, and the packet that BMC returns is saved in the txt document;
Write test procedure, in program, the BMC return data bag of preserving in the txt document is carried out discriminatory analysis, the final analysis result is printed, and the test procedure compiling that writes is generated executable program.
Further, also comprise the steps:
Make the DOS boot disk, with described bat batch processing script with can carry out test procedure and be placed under the DOS boot disk in the same catalogue, revise and enter the DOS startup when server bios setting makes the server start, carry out the above-mentioned bat script that writes during test under DOS, the test result that is finished will be shown to the tester automatically.
Further, also comprise the steps:
Send the order data form of request to BMC according to the ipmitool instrument under the windows, all single command data unified organizational systems that when test need to be sent to BMC and are saved in the data that BMC returns in the txt document in bat batch processing test script bmctest.bat.
Further, also comprise the steps:
Write test procedure test.c, in program, the BMC return data of preserving in the bmc.txt is carried out discriminatory analysis; Wherein, in the bmctest.bat test script, order data is sent to after the BMC at every turn, call immediately test procedure test.exe, test parameter is passed to test procedure.
Further, in the test.c test procedure, respectively test result is analyzed judgement, to test crash, judge item that provides concrete test crash, and the test result of all test items is printed respectively confession tester reference.
Clear and definite test result be tested and be provided to the method for the on-line automatic testing server of the present invention can for tester's reference to the server master board function fast and exactly when the server master board test item is more.The tester can disposablely get access to test result rapidly and accurately, has greatly saved staff's test duration, has improved the accuracy of test.
Description of drawings
Fig. 1 is the method diagram of the on-line automatic testing server of the present invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
The method of the on-line automatic testing server of the present invention uses bat batch processing script automatically to test, at first, all functions item and every IPMI protocol data packet format corresponding to test according to test are write bat batch processing script, in script, call the ipmitool instrument and send one by one packet to BMC, and the packet that BMC returns is saved in the txt document; Secondly, write test procedure, in program, the BMC return data bag of preserving in the txt document is carried out discriminatory analysis, and the final analysis result is printed the reference for the tester, the test procedure compiling that writes is generated executable program.
In addition, in another embodiment of the present invention, make the DOS boot disk, with described bat batch processing script with can carry out test procedure and be placed under the DOS boot disk in the same catalogue, revise and enter the DOS startup when server bios setting makes the server start, carry out the above-mentioned bat script that writes during test under DOS, the test result that is finished will be shown to the tester automatically.
Please refer to shown in Figure 1ly, the method for the on-line automatic testing server of the present invention is specific as follows:
According to the ipmitool instrument under the windows to the BMC(baseboard management controller: Baseboard Management Controller) send the order data form of request, as: this order of ipmitool 20 30 02 01 03 00 00(is the IP address of Acquisition channel 01), need to send to all single command data unified organizational systems of BMC in bat batch processing test script bmctest.bat during with test, and the data that BMC returns are saved in the txt document, as: be saved in bmc.txt:@ipmitool 20 30 02 01 03 00 00〉bmc.txt.Write test procedure test.c, in program, the BMC return data of preserving in the bmc.txt is carried out discriminatory analysis, and the final analysis result is printed the reference for the tester.Wherein, in the bmctest.bat test script, order data is sent to after the BMC at every turn, call immediately test procedure test.exe, test parameter is passed to test procedure, such as@test bmc.txt " PHY0 IP address: " 00, first this test of 0 expression is that the relevant test of network is (and if 1, then be expressed as the relevant test such as temperature, voltage, fan), second 0 this test of expression is the IP that obtains 4 bytes and subnet mask (if 1, then representing to obtain the MAC Address of 6 bytes).By above method with all projects that need to test, as: LED lamp, hummer, temperature, voltage, fan speed-regulating function, network function etc. all add among the bat batch processing test script bmctest.bat, and respectively test result are analyzed judgement in the test.c test procedure, to test crash, judge the item (such as which temperature, which fan test failure) that provides concrete test crash, and the test result of all test items is printed respectively the reference for the tester.Like this, during test, the tester only need carry out test script bmctest.bat once, just all test items once all can be completed, the result of every test can be presented on the screen, thereby has greatly improved the accuracy of testing efficiency and test result, has accelerated the judgement speed of tester to test result, can save the plenty of time, be fit to a large amount of server master board of batch testing.Compare with traditional server test method, the method for the on-line automatic test of server has testing efficiency height, fast, the test accuracy advantages of higher of judgement speed among the present invention.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.
Claims (5)
1. the method for an on-line automatic testing server is characterized in that, comprises the steps:
All functions item and every IPMI protocol data packet format corresponding to test according to test are write bat batch processing script, call the ipmitool instrument and send one by one packet to BMC in script, and the packet that BMC returns is saved in the txt document;
Write test procedure, in program, the BMC return data bag of preserving in the txt document is carried out discriminatory analysis, the final analysis result is printed, and the test procedure compiling that writes is generated executable program.
2. the method for on-line automatic testing server as claimed in claim 1 is characterized in that, also comprises the steps:
Make the DOS boot disk, with described bat batch processing script with can carry out test procedure and be placed under the DOS boot disk in the same catalogue, revise and enter the DOS startup when server bios setting makes the server start, carry out the above-mentioned bat script that writes during test under DOS, the test result that is finished will be shown to the tester automatically.
3. the method for on-line automatic testing server as claimed in claim 1 is characterized in that: also comprise the steps:
Send the order data form of request to BMC according to the ipmitool instrument under the windows, all single command data unified organizational systems that when test need to be sent to BMC and are saved in the data that BMC returns in the txt document in bat batch processing test script bmctest.bat.
4. such as the method for claim 1-3 on-line automatic testing server as described in any one, it is characterized in that: also comprise the steps:
Write test procedure test.c, in program, the BMC return data of preserving in the bmc.txt is carried out discriminatory analysis; Wherein, in the bmctest.bat test script, order data is sent to after the BMC at every turn, call immediately test procedure test.exe, test parameter is passed to test procedure.
5. the method for on-line automatic testing server as claimed in claim 4, it is characterized in that: in the test.c test procedure, respectively test result is analyzed judgement, to test crash, judge the item that provides concrete test crash, and the test result of all test items is printed respectively the reference for the tester.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012104199956A CN102981949A (en) | 2012-10-29 | 2012-10-29 | Method for on-line automatic tests of server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012104199956A CN102981949A (en) | 2012-10-29 | 2012-10-29 | Method for on-line automatic tests of server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102981949A true CN102981949A (en) | 2013-03-20 |
Family
ID=47856003
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012104199956A Pending CN102981949A (en) | 2012-10-29 | 2012-10-29 | Method for on-line automatic tests of server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102981949A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106227633A (en) * | 2016-08-02 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | Server diagnosis test method capable of automatically configuring test items |
CN106407054A (en) * | 2016-08-30 | 2017-02-15 | 浪潮(北京)电子信息产业有限公司 | BMC automatic testing system and method |
CN106445760A (en) * | 2016-10-26 | 2017-02-22 | 广东浪潮大数据研究有限公司 | Testing method and terminal equipment |
CN106484639A (en) * | 2016-10-10 | 2017-03-08 | 郑州云海信息技术有限公司 | A kind of method that CPU register information is obtained by ipmi agreement |
CN106603343A (en) * | 2017-01-11 | 2017-04-26 | 郑州云海信息技术有限公司 | A method for testing stability of servers in batch |
CN106649005A (en) * | 2016-09-30 | 2017-05-10 | 郑州云海信息技术有限公司 | Automatic pressure testing method of memory ras (Reliability, Availability and Serviceability) characteristics on the basis of shell |
CN106776340A (en) * | 2016-12-30 | 2017-05-31 | 广东浪潮大数据研究有限公司 | A kind of general server S ensor automatic test approach |
CN107645424A (en) * | 2017-08-24 | 2018-01-30 | 郑州云海信息技术有限公司 | A kind of method and system of BMC Sensor pressure test scripts |
CN110441713A (en) * | 2019-07-12 | 2019-11-12 | 苏州浪潮智能科技有限公司 | A method of passing through the automatic testing service device LED light stability of BMC |
CN111813617A (en) * | 2020-08-31 | 2020-10-23 | 成都申威科技有限责任公司 | Method and device for testing and scheduling functions of main board device |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0642683B1 (en) * | 1992-05-27 | 1997-12-03 | STMicroelectronics S.A. | Method and test platforms for the development of an integrated circuit (asic) |
CN101187876A (en) * | 2007-12-11 | 2008-05-28 | 铁道第三勘测设计院集团有限公司 | Parasitic DOS operation system manufacture and its usage method |
-
2012
- 2012-10-29 CN CN2012104199956A patent/CN102981949A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0642683B1 (en) * | 1992-05-27 | 1997-12-03 | STMicroelectronics S.A. | Method and test platforms for the development of an integrated circuit (asic) |
CN101187876A (en) * | 2007-12-11 | 2008-05-28 | 铁道第三勘测设计院集团有限公司 | Parasitic DOS operation system manufacture and its usage method |
Non-Patent Citations (2)
Title |
---|
杨灵芝: "基于机群技术的中尺度数值气象预报监控管理系统的研究与实现", 《中国优秀硕士学位论文全文数据》 * |
杨灵芝: "基于机群技术的中尺度数值气象预报监控管理系统的研究与实现", 《中国优秀硕士学位论文全文数据》, 15 December 2011 (2011-12-15), pages 50 - 51 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106227633A (en) * | 2016-08-02 | 2016-12-14 | 浪潮电子信息产业股份有限公司 | Server diagnosis test method capable of automatically configuring test items |
CN106407054A (en) * | 2016-08-30 | 2017-02-15 | 浪潮(北京)电子信息产业有限公司 | BMC automatic testing system and method |
CN106407054B (en) * | 2016-08-30 | 2020-02-04 | 苏州浪潮智能科技有限公司 | BMC automatic test system and method |
CN106649005A (en) * | 2016-09-30 | 2017-05-10 | 郑州云海信息技术有限公司 | Automatic pressure testing method of memory ras (Reliability, Availability and Serviceability) characteristics on the basis of shell |
CN106484639A (en) * | 2016-10-10 | 2017-03-08 | 郑州云海信息技术有限公司 | A kind of method that CPU register information is obtained by ipmi agreement |
CN106445760A (en) * | 2016-10-26 | 2017-02-22 | 广东浪潮大数据研究有限公司 | Testing method and terminal equipment |
CN106776340A (en) * | 2016-12-30 | 2017-05-31 | 广东浪潮大数据研究有限公司 | A kind of general server S ensor automatic test approach |
CN106603343A (en) * | 2017-01-11 | 2017-04-26 | 郑州云海信息技术有限公司 | A method for testing stability of servers in batch |
CN107645424A (en) * | 2017-08-24 | 2018-01-30 | 郑州云海信息技术有限公司 | A kind of method and system of BMC Sensor pressure test scripts |
CN107645424B (en) * | 2017-08-24 | 2021-02-02 | 苏州浪潮智能科技有限公司 | Method and system for BMC Sensor pressure test script |
CN110441713A (en) * | 2019-07-12 | 2019-11-12 | 苏州浪潮智能科技有限公司 | A method of passing through the automatic testing service device LED light stability of BMC |
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 |
---|---|---|
CN102981949A (en) | Method for on-line automatic tests of server | |
CN106649084B (en) | The acquisition methods and device of function call information, test equipment | |
KR101027971B1 (en) | Mobile communication terminal capable of testing application and method thereof | |
CN109960642B (en) | Automatic test method and device | |
CN107659455B (en) | Method, storage medium, device and system for Mock data of iOS (internet operating system) end | |
CN110830234B (en) | User traffic distribution method and device | |
US8984486B2 (en) | System, method, and computer program product for automated stability testing of device firmware | |
CN107832217A (en) | A kind of automated testing method and device | |
WO2018201615A1 (en) | Testing method and system for use with battery management unit | |
CN116681013B (en) | Simulation verification method, platform, device, equipment and medium of network chip | |
CN110287696A (en) | A kind of detection method, device and the equipment of the shell process that rebounds | |
WO2024046362A1 (en) | Verification system, verification method, electronic device, and storage medium | |
CN113722020A (en) | Interface calling method, device and computer readable storage medium | |
CN106528415A (en) | Software compatibility test method, business platform and system | |
CN106708727B (en) | Distributed virus characteristic sample verification method and system | |
CN110750446A (en) | System testing method and related device | |
CN110210220B (en) | Information leakage detection method and device and storage medium | |
CN104809054A (en) | Method and system for realizing program testing | |
CN103645935B (en) | Device and method for adjusting JVM (java virtual machine) parameters in domestic environment | |
CN111694604A (en) | Method, device and equipment for installing drivers in batches and machine-readable storage medium | |
CN115168130A (en) | Chip testing method and device, electronic equipment and storage medium | |
CN115203054A (en) | Virtual chip test system | |
WO2024067348A2 (en) | Memory allocator determination method and apparatus, and electronic device and storage medium | |
US7945418B2 (en) | Stream based stimulus definition and delivery via interworking | |
CN112380800A (en) | Automatic evaluation online FPGA (field programmable Gate array) experiment platform and related method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20130320 |