CN107526663A - A kind of method for testing open/close machine cooperateed with based on outband management with operating system and system - Google Patents

A kind of method for testing open/close machine cooperateed with based on outband management with operating system and system Download PDF

Info

Publication number
CN107526663A
CN107526663A CN201710774441.0A CN201710774441A CN107526663A CN 107526663 A CN107526663 A CN 107526663A CN 201710774441 A CN201710774441 A CN 201710774441A CN 107526663 A CN107526663 A CN 107526663A
Authority
CN
China
Prior art keywords
server
outband management
running state
state data
operating system
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
CN201710774441.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.)
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 CN201710774441.0A priority Critical patent/CN107526663A/en
Publication of CN107526663A publication Critical patent/CN107526663A/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/2273Test methods
    • 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

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)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a kind of method for testing open/close machine cooperateed with based on outband management with operating system and system, test platform is built, communication is established between outband management system and the operating system of server;Outband management system sends status inquiry command to server;When judging that server is in off-mode, then the server is started shooting, outband management system obtains the start running state data of server and carries out contrast verification with the start reference data of setting, then stops test when mistake occurs in server start running state data;When server start running state data it is without exception, then enter in next step;Server enters automatic shutdown script startup after operating system, and outband management system is sent to for server to be shut down, while by cut-off operation status data.This method cooperates in firmware aspect and operating system aspect and realizes automatic test, and then improves server performance testing efficiency, is advantageous to failure problems solution, strengthens the comprehensive of test.

Description

A kind of method for testing open/close machine cooperateed with based on outband management with operating system and system
Technical field
The present invention relates to server test method, belongs to computing power detection technique field, more particularly to one kind is based on The method for testing open/close machine and system that outband management cooperates with operating system.
Background technology
X86-based server gradually substitutes conventional small machine at present, runs and carry core application, therefore, right In X86-based server reliability and stability requirement with regard to more and more higher and important.In order to which X86 framves will be influenceed in development The problem of structure server reliability and stability, finds in time, and in order to carry out positioning problems, analysis and improvement, therefore, having must The characteristics of being directed to X86-based server, use is more efficient, easily automated testing method.
As Chinese patent (application publication number CN105260275A) discloses a kind of " automatically configuring suitable for high end main frame The method for testing open/close machine of subregion ", script start automatic start under (1) system, if noting abnormalities, stops test.If it is no different Often, poweroff orders are performed, make system closedown;(2) script reads buffer status in real time under BMC, at the system of detecting In off-mode, then zone configuration action is carried out, partitioned nodes number is set;(3) after zone configuration, script is carried out under BMC System boot instructs, and makes system boot;(4) start process, script detects each buffer status under BMC, if noting abnormalities, stops Only test.If without exception, normal boot-strap enters operating system.Both complete machine stability is covered, demonstrates flexible subregion again Function.The test process of this method is complex, and can not effectively obtain server switching on and shutting down running state data, is unfavorable for Server runnability is analyzed and managed.
The content of the invention
The present invention provides a kind of method for testing open/close machine cooperateed with based on outband management with operating system and system, passes through band Outer management system and operating system can operate in firmware aspect and operating system aspect respectively, cooperate to reach automation Test, and then the efficiency of server performance test can be improved, be advantageous to case study and positioning, avoid problem from omitting enhancing test It is comprehensive.
The present invention is achieved by the following technical programs:
A kind of method for testing open/close machine cooperateed with based on outband management with operating system, is comprised the following steps:
S1. test platform is built, communication is established between outband management system and server;
S2. outband management system sends status inquiry command, the running status current for judging server to server;
S3. when judging that server is in off-mode, then the server is started shooting, outband management system obtains service The start running state data of device, and contrast verification is carried out with the start reference data of setting, when server start running status There is mistake in data, then stop test;When server start running state data it is without exception, then enter in next step;
S4. server enters automatic shutdown script startup after operating system, is transported for server to be shut down, while by shutdown Row status data is sent to outband management system;
S5. outband management system receives cut-off operation status data, and is contrasted with the shutdown reference data of setting Verification, when mistake occurs in server cut-off operation status data, then stopping is tested;Server cut-off operation status data verifies nothing Abnormal, then test terminates.
In step S3, S5, will start shooting running state data or cut-off operation status data of server is stored respectively in In running status daily record.
Loop start program is set with the step server, start running state data, shutdown fortune when server Row status data successively by comparison test it is without exception when, the server can be more than 2 times with loop start.
The server start running state data that the step S3 is obtained includes sensor, register or potential state information In one or more combinations.
The server cut-off operation status data that the step S5 is obtained includes central processing unit, internal memory, hard disk or network interface card One or more combinations in lamp status information.
A kind of on-off testing system cooperateed with based on outband management with operating system, including outband management module, service Device, running state data correction verification module and running state data memory module;
The outband management module, will clothes when server is in off-mode for the state by detecting server Business device start;Automatic shutdown module is set in the server, and the automatic shutdown module, which is used to start shooting in server, enters behaviour After making system, control server shutdown;The running state data correction verification module, for the start running status number to server According to or cut-off operation status data carry out automatic Verification detection;The running state data memory module, for operation will to be passed through Wrong operation condition of server data are preserved after the verification of status data correction verification module.
Loop start module is set in the server, for controlling server to realize multiple circular flow.
Central processing unit, internal memory, hard disk, network card lamp, sensor and register are provided with the server.
The running state data correction verification module includes start detection sub-module and shutdown detection sub-module, start detection Module is used to carry out server start running state data wrong identification, and the shutdown detection sub-module is used to close server Machine running state data carries out wrong identification.
Compared with prior art, it is an advantage of the invention that:
1st, the present invention can be separately implemented at firmware aspect and operating system layer by outband management system and operating system Face operates, and cooperates to reach automatic test, outband management system and operating system are in firmware aspect and operation respectively System level operates, and cooperates to reach the purpose of automatic test.Also, due to the high availability machine of server in itself Make, the failure on some hardware will not cause equipment downtime, be verified respectively in firmware aspect and system level, and then can carry The efficiency of high server performance test, is advantageous to case study and positioning, avoids problem from omitting the comprehensive of enhancing test.
2nd, the server open state data and off-mode data of generation, it is complete to include server internal element, system The scanning in face and monitoring information, after noting abnormalities, test can be automatically stopped, and stopped under an operating system, so as to service The analysis and lookup of device failure cause.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described.
Fig. 1 is the flow chart of the present invention
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.
As shown in figure 1, a kind of method for testing open/close machine cooperateed with based on outband management with operating system of the present embodiment, including Following steps:
Test platform is built first, by the Auto Power On script bmc_autopoweron.sh for controlling server, automatic pass This Linux_autopoweroff.sh of under-chassis is respectively written into outband management system and the operating system of server;Auto Power On Script bmc_autopoweron.sh realizes that outband management system starts server start, and Linux_autopoweroff.sh is real Show server OS automatic shutdown after powering.
Then by the current running status of outband management systems scan server, wherein outband management system is a kind of use In the client that server OS is monitored and controlled or the external computer system communicated is established, is closed when server is in During machine state, then server is started shooting, by the server start running state data of acquisition and the start reference data pair of setting Than being verified;When server is in open state, then outband management system does not operate;Auto Power On script bmc_ Autopoweron.sh includes the function of the monitoring of a series of service system and log collection, including all sensors information, posts Storage information and each sensor potential states information etc., the state of real-time monitoring server start process simultaneously generate log, Therefore, when test goes wrong, directly perceived, efficient accident analysis and positioning can be carried out according to daily record.
Automatic shutdown script is run after server start enters operating system, and operating system passes through Linux_ Autopoweroff.sh scripts realize server shut down, while by the server cut-off operation status data of acquisition and setting Shutdown reference data contrast is verified;
When the verification of server cut-off operation status data is without exception, represent that server performance is normal, test is completed and tied Beam.
Further, can as shown in figure 1, the present embodiment has loop start order in server automatic shutdown script setting When running state data verification is without exception, to realize that server realizes multiple loop start, increase open state and shutdown The detection number of state, to improve the accuracy of server performance detection.
Invention also provides a kind of on-off testing system cooperateed with based on outband management with operating system, specific bag Include outband management module, server, running state data correction verification module and running state data memory module;Outband management mould Block, for the state by detecting server, server is started shooting when server is in off-mode;Set certainly in server Dynamic shutdown module, automatic shutdown module are used for after server start enters operating system, control server shutdown;Running status Data check module, automatic Verification inspection is carried out for the start running state data to server or cut-off operation status data Survey;Running state data memory module, for wrong server after the verification of running state data correction verification module to be run Status data is preserved.
Further, loop start module is set in server, for controlling server to realize multiple circular flow. Running state data correction verification module includes start detection sub-module and shutdown detection sub-module, and start detection sub-module is used for clothes Device start running state data of being engaged in carries out wrong identification, and shutdown detection sub-module is used to enter server cut-off operation status data Row wrong identification.
The system of the present invention passes through outband management module, server, running state data correction verification module and running status number According to memory module, the automatic performance detection of server shutdown and start can be separately implemented at, in firmware aspect and operating system Aspect cooperates, and realizes automatic test, and then can improve the efficiency of server performance test, is advantageous to case study and determines Position, problem is avoided to omit the comprehensive of enhancing test.
The technology contents of the not detailed description of the present invention are known technology.

Claims (9)

1. a kind of method for testing open/close machine cooperateed with based on outband management with operating system, it is characterised in that comprise the following steps:
S1. test platform is built, communication is established between outband management system and server;
S2. outband management system sends status inquiry command, the running status current for judging server to server;
S3. when judging that server is in off-mode, then the server is started shooting, outband management system obtains server Start running state data, and contrast verification is carried out with the start reference data of setting, when server start running state data There is mistake, then stop test;When server start running state data it is without exception, then enter in next step;
S4. server enters automatic shutdown script startup after operating system, for server to be shut down, while by cut-off operation shape State data are sent to outband management system;
S5. outband management system receives cut-off operation status data, and carries out contrast verification with the shutdown reference data of setting, When mistake occurs in server cut-off operation status data, then stopping is tested;The verification of server cut-off operation status data is without exception, Then test terminates.
2. a kind of method for testing open/close machine cooperateed with based on outband management with operating system according to claim 1, it is special Sign is, in step S3, S5, will start shooting running state data or cut-off operation status data of server is stored respectively in fortune In row status log.
3. a kind of method for testing open/close machine cooperateed with based on outband management with operating system according to claim 1, it is special Sign is, loop start program is set with the step server, start running state data, cut-off operation when server Status data successively by comparison test it is without exception when, the server can be more than 2 times with loop start.
4. a kind of method for testing open/close machine cooperateed with based on outband management with operating system according to claim 1, it is special Sign is that the server start running state data that the step S3 is obtained includes sensor, register or potential state information In one or more combinations.
5. a kind of method for testing open/close machine cooperateed with based on outband management with operating system according to claim 1, it is special Sign is that the server cut-off operation status data that the step S5 is obtained includes central processing unit, internal memory, hard disk or network card lamp One or more combinations in status information.
6. a kind of on-off testing system cooperateed with based on outband management with operating system, it is characterised in that including outband management Module, server, running state data correction verification module and running state data memory module;
The outband management module, for the state by detecting server, when server is in off-mode by server Start;
Automatic shutdown module is set in the server, and the automatic shutdown module is used to enter operating system in server start Afterwards, server shutdown is controlled;
The running state data correction verification module, for the start running state data or cut-off operation status data to server Carry out automatic Verification detection;
The running state data memory module, for by the wrong server after the verification of running state data correction verification module Running state data is preserved.
7. a kind of on-off testing system cooperateed with based on outband management with operating system according to claim 6, it is special Sign is, loop start module is set in the server, for controlling server to realize multiple circular flow.
8. a kind of on-off testing system cooperateed with based on outband management with operating system according to claim 6, it is special Sign is, central processing unit, internal memory, hard disk, network card lamp, sensor and register are provided with the server.
9. a kind of on-off testing system cooperateed with based on outband management with operating system according to claim 6, it is special Sign is that the running state data correction verification module includes start detection sub-module and shutdown detection sub-module, start detection Module is used to carry out server start running state data wrong identification, and the shutdown detection sub-module is used to close server Machine running state data carries out wrong identification.
CN201710774441.0A 2017-08-31 2017-08-31 A kind of method for testing open/close machine cooperateed with based on outband management with operating system and system Pending CN107526663A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710774441.0A CN107526663A (en) 2017-08-31 2017-08-31 A kind of method for testing open/close machine cooperateed with based on outband management with operating system and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710774441.0A CN107526663A (en) 2017-08-31 2017-08-31 A kind of method for testing open/close machine cooperateed with based on outband management with operating system and system

Publications (1)

Publication Number Publication Date
CN107526663A true CN107526663A (en) 2017-12-29

Family

ID=60683176

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710774441.0A Pending CN107526663A (en) 2017-08-31 2017-08-31 A kind of method for testing open/close machine cooperateed with based on outband management with operating system and system

Country Status (1)

Country Link
CN (1) CN107526663A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874420A (en) * 2018-06-12 2018-11-23 郑州云海信息技术有限公司 A kind of remote reflash system and method for bulk service device FRU
CN109800117A (en) * 2019-01-25 2019-05-24 郑州云海信息技术有限公司 A kind of DC automated testing method and system based on IPMI
CN111752776A (en) * 2020-05-29 2020-10-09 苏州浪潮智能科技有限公司 Cyclic power-on and power-off test method and system for server
WO2021169476A1 (en) * 2020-02-29 2021-09-02 苏州浪潮智能科技有限公司 Server expansion system, and power control method for same

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051490A (en) * 2012-11-26 2013-04-17 浪潮电子信息产业股份有限公司 Method for carrying out startup and shutdown testing on blade server
CN103593269A (en) * 2013-11-01 2014-02-19 浪潮电子信息产业股份有限公司 Automatic cyclic test method of restart pressure of multiple PCIe devices
CN103970630A (en) * 2014-05-23 2014-08-06 浪潮电子信息产业股份有限公司 Method for testing overall stability of server
CN104375910A (en) * 2014-11-24 2015-02-25 浪潮电子信息产业股份有限公司 Automated startup and shutdown testing method
CN104572422A (en) * 2015-02-03 2015-04-29 浪潮电子信息产业股份有限公司 Memory monitoring achievement method based on startup and shutdown of Linux system
CN104639370A (en) * 2015-02-02 2015-05-20 浪潮电子信息产业股份有限公司 Method for obtaining PCI-E equipment information of system by out-of-band management
CN105260275A (en) * 2015-10-27 2016-01-20 浪潮电子信息产业股份有限公司 Power on/off testing method applicable to automatic configuration partition of high-end host computer
CN105868059A (en) * 2015-12-14 2016-08-17 乐视致新电子科技(天津)有限公司 Startup-shutdown testing method and system
CN105897471A (en) * 2016-04-05 2016-08-24 浪潮电子信息产业股份有限公司 Out-of-band management system and out-of-band management method

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051490A (en) * 2012-11-26 2013-04-17 浪潮电子信息产业股份有限公司 Method for carrying out startup and shutdown testing on blade server
CN103593269A (en) * 2013-11-01 2014-02-19 浪潮电子信息产业股份有限公司 Automatic cyclic test method of restart pressure of multiple PCIe devices
CN103970630A (en) * 2014-05-23 2014-08-06 浪潮电子信息产业股份有限公司 Method for testing overall stability of server
CN104375910A (en) * 2014-11-24 2015-02-25 浪潮电子信息产业股份有限公司 Automated startup and shutdown testing method
CN104639370A (en) * 2015-02-02 2015-05-20 浪潮电子信息产业股份有限公司 Method for obtaining PCI-E equipment information of system by out-of-band management
CN104572422A (en) * 2015-02-03 2015-04-29 浪潮电子信息产业股份有限公司 Memory monitoring achievement method based on startup and shutdown of Linux system
CN105260275A (en) * 2015-10-27 2016-01-20 浪潮电子信息产业股份有限公司 Power on/off testing method applicable to automatic configuration partition of high-end host computer
CN105868059A (en) * 2015-12-14 2016-08-17 乐视致新电子科技(天津)有限公司 Startup-shutdown testing method and system
CN105897471A (en) * 2016-04-05 2016-08-24 浪潮电子信息产业股份有限公司 Out-of-band management system and out-of-band management method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108874420A (en) * 2018-06-12 2018-11-23 郑州云海信息技术有限公司 A kind of remote reflash system and method for bulk service device FRU
CN108874420B (en) * 2018-06-12 2021-07-23 郑州云海信息技术有限公司 Remote refreshing system and method for batch server FRUs
CN109800117A (en) * 2019-01-25 2019-05-24 郑州云海信息技术有限公司 A kind of DC automated testing method and system based on IPMI
WO2021169476A1 (en) * 2020-02-29 2021-09-02 苏州浪潮智能科技有限公司 Server expansion system, and power control method for same
CN111752776A (en) * 2020-05-29 2020-10-09 苏州浪潮智能科技有限公司 Cyclic power-on and power-off test method and system for server
CN111752776B (en) * 2020-05-29 2022-10-25 苏州浪潮智能科技有限公司 Cyclic power-on and power-off test method and system for server

Similar Documents

Publication Publication Date Title
CN107526663A (en) A kind of method for testing open/close machine cooperateed with based on outband management with operating system and system
CN112948157B (en) Server fault positioning method, device and system and computer readable storage medium
CN109510742B (en) Server network card remote test method, device, terminal and storage medium
CN106776320A (en) Android intelligent terminal automatization test system and method
CN102244591B (en) Client server and method for full process monitoring on function text of client server
CN110928743B (en) Computing system, automatic diagnosis method and medium storing instructions thereof
US20140114613A1 (en) Method and apparatus for diagnosis and recovery of system problems
CN104850485A (en) BMC based method and system for remote diagnosis of server startup failure
CN104375910A (en) Automated startup and shutdown testing method
CN110750396B (en) Server operating system compatibility testing method and device and storage medium
CN103631685A (en) Fault self-inspection system and method
CN104125504B (en) Deployment method, device and system based on continuous integration
CN110691009A (en) Network equipment inspection method and device
CN105260275A (en) Power on/off testing method applicable to automatic configuration partition of high-end host computer
CN111294652A (en) Intelligent television fault online diagnosis method and device and controller
CN107070747A (en) A kind of method of the automatic test network interface card network connection stability under network card binding pattern
CN111858201A (en) BMC (baseboard management controller) comprehensive test method, system, terminal and storage medium
CN111782372A (en) Java process starting method and device, computer equipment and storage medium
US20160147636A1 (en) Enhanced resiliency testing by enabling state level control for request
CN114510381A (en) Fault injection method, device, equipment and storage medium
CN116737471B (en) BIOS automatic switching method and device, electronic equipment and storage medium
CN111309388B (en) Automatic rollback system and method for system software version of equipment
CN103150223A (en) Method for preventing epon terminal equipment from being damaged and epon terminal equipment
CN110134558B (en) Method and device for detecting server
CN116302738A (en) Method, system, equipment and storage medium for testing chip

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: 20171229