CN104598337A - Method and system for startup and shutdown test of server - Google Patents
Method and system for startup and shutdown test of server Download PDFInfo
- Publication number
- CN104598337A CN104598337A CN201310528370.8A CN201310528370A CN104598337A CN 104598337 A CN104598337 A CN 104598337A CN 201310528370 A CN201310528370 A CN 201310528370A CN 104598337 A CN104598337 A CN 104598337A
- Authority
- CN
- China
- Prior art keywords
- blade server
- server
- blade
- test
- switching
- 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
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a method and a system for a startup and shutdown test of a server. The method comprises the following steps: when the startup and shutdown test is carried out each time, converting a component inventory of each blade server into a text file, and comparing the text file with the component inventory, which is generated during the previous startup, of the blade server; when the component inventory, which is generated during the current startup, of each blade server is consistent with the component inventory, which is generated during the previous startup, of the blade server, recording a system log of the blade server; and when the component inventory, which is generated during the current startup, of each blade server is inconsistent with the component inventory, which is generated during the previous startup, of the blade server, controlling all blade servers to exit from the startup and shutdown test, and recording the current startup and shutdown test state into a test log in a memory. The method and the system automatically compare the component inventories of the server in the startup and shutdown test, timely detect situations that a component to be detected is lost or fails, and improve the quality reliability of a server product.
Description
Technical field
The present invention relates to a kind of server method for testing open/close machine and system.
Background technology
Server manufacturer is in the quality proof procedure of server, and traditional switching on and shutting down test adopts starts shooting manually, consuming time and effort.In addition, in switching on and shutting down test process, there will be and lose or detect less than such as CPU, storer, the situation of the UUT such as external PCI-E card, causes UUT to be lost or lost efficacy failing to be found, affect switching on and shutting down test quality, the fiduciary level of server product quality is reduced.
Summary of the invention
In view of above content, be necessary to provide a kind of server method for testing open/close machine and system.
Described server method for testing open/close machine comprises: during each switching on and shutting down test, controls power supply device and powers to blade server, sends start-up command and controls blade server start; Detect and judge whether all blade servers all start shooting successfully; If a blade server boot failure, control all blade servers and exit switching on and shutting down test, record current switch machine test mode is in the test log in storer; When all blade servers are started shooting successfully, every platform blade server components inventory is changed into word shelves, the component list contrast of this blade server when starting shooting with last time; When the component list of this blade server is all consistent when component list when this start of every platform blade server was started shooting with last time, record the system journal of this blade server; Component list when a blade server this start, with when the component list of this blade server is inconsistent when starting shooting last time, controls all blade servers and exits switching on and shutting down test, record current switch machine test mode in the test log in storer; Send shutdown command and control blade server execution shutdown action; Detect and judge whether all blade servers all shut down successfully; If all blade servers shut down successfully, send cut-offing instruction and stop powering to blade server to power supply device control power supply device; If a blade server shuts down unsuccessfully, control all blade servers and exit switching on and shutting down test, record current switch machine test mode is in the test log in storer; Cumulative record switching on and shutting down testing time, and when the switching on and shutting down testing time of cumulative record equals preset times, the test of prompting end switch machine, when the switching on and shutting down number of times of cumulative record is less than preset times, repeats switching on and shutting down test.
Described server on-off testing system comprises: control module, during for each switching on and shutting down test, controls power supply device and powers to blade server, sends start-up command and controls blade server start; Detecting module, for detecting and judging whether all blade servers all start shooting successfully; Preserve module, if for a blade server boot failure, control all blade servers and exit switching on and shutting down test, record current switch machine test mode is in the test log in storer; Contrast module, for starting shooting successfully when all blade servers, changes into word shelves by every platform blade server components inventory, the component list contrast of this blade server when starting shooting with last time; When the component list of this blade server is all consistent when described preservation module was also started shooting with last time for the component list when this time of every platform blade server is started shooting, record the system journal of this blade server; Described preservation module also for when a blade server this time start time component list and when starting shooting last time, the component list of this blade server is inconsistent time, control all blade servers and exit switching on and shutting down test, record current switch machine test mode is in the test log in storer; Described control module also controls blade server execution shutdown action for sending shutdown command; Described detecting module is also for detecting and judging whether all blade servers all shut down successfully; If described control module is also shut down successfully for all blade servers, send cut-offing instruction and stop powering to blade server to power supply device control power supply device; If described preservation module is also shut down unsuccessfully for a blade server, control all blade servers and exit switching on and shutting down test, record current switch machine test mode is in the test log in storer; Accumulator module, for cumulative record switching on and shutting down testing time, and when the start testing time of cumulative record equals preset times, the test of prompting end switch machine, when the switching on and shutting down testing time of cumulative record is less than preset times, repeats switching on and shutting down test.
The present invention is automatic comparison server component inventory in server switching on and shutting down test, and the situation such as the loss of detecting UUT or inefficacy, promotes the fiduciary level of server product quality in time.
Accompanying drawing explanation
Fig. 1 is the running environment figure of the better embodiment of server on-off testing system of the present invention.
Fig. 2 is the functional block diagram of the better embodiment of server on-off testing system of the present invention.
Fig. 3 is the process flow diagram of the better embodiment of server method for testing open/close machine of the present invention.
Main element symbol description
Main frame | 1 |
Blade server | 2 |
Power supply device | 3 |
Server on-off testing system | 10 |
Storer | 12 |
Processor | 14 |
Control module | 100 |
Detecting module | 102 |
Preserve module | 104 |
Contrast module | 106 |
Accumulator module | 108 |
Following embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
As shown in Figure 1, be the running environment figure of better embodiment of server on-off testing system 10 of the present invention.This server on-off testing system 10 operates on main frame 1, and main frame 1 connects multiple stage blade server 2 and a power supply device 3 by wired or wireless network.Main frame 1 comprises storer 12 further, processor 14.
Described power supply device 3 provides three-phase supply to start shooting for multiple stage blade server 2.
Described storer 12 is for the data such as source program code of storage server on-off testing system 10.
In the present embodiment, described server on-off testing system 10 can be divided into one or more module, and described one or more module is configured to be performed by one or more processor (the present embodiment is processor 14), to complete the present invention.Such as, consult shown in Fig. 2, described server on-off testing system 10 is divided into control module 100, detecting module 102, preserves module 104, contrast module 106, and accumulator module 108.Module alleged by the present invention has been the program segment of a specific function, and be more suitable for describing the implementation of software in main frame 1 than program, the function about each module consults the description of Fig. 3.
As shown in Figure 3, be the process flow diagram of better embodiment of server method for testing open/close machine of the present invention.
Step S10, during switching on and shutting down test, control module 100 controls power supply device 3 conducting and powers to blade server 2, and sends start-up command to blade server 2 and make it enter boot program to perform boot action, accumulator module 108 cumulative record blade server 2 switching on and shutting down testing time.
Step S11, detecting module 102 sends packet to blade server 2 by network and judges whether that all blade servers 2 are all started shooting successfully.If detect all blade servers 2 all to start shooting successfully, perform step S13; If detect blade server 2 boot failure, then perform step S12.
Step S12, preservation module 104 controls all blade servers 2 and exits switching on and shutting down test, and records current switch machine test mode in the test log in storer 12.Described test log records the abnormal information that every platform blade server 2 detects when starting shooting test, as lost or detecting less than CPU, storer, the information of parts such as external PCI-E card and so on, tester can make improvement and correction with reference to this test log to every platform blade server 2.。
Step S13, the component list of every platform blade server 2 is changed into word shelves by contrast module 106.
Step S14, whether the component list of component list when starting shooting with last time when contrast module 106 judges this start of every platform blade server 2 be consistent.
Step S15, when the component list when component list when this start of every platform blade server 2 was started shooting with last time is all consistent, preserves module 104 and records the system journal of every platform blade server 2 to storer 12, otherwise enter step S12.In present embodiment, preserve the system journal that module 104 can be every platform blade server 2 according to the network address of every platform blade server 2 and name and preserve in memory 12, and the system journal of record during this start is covered the system journal of start last time record.
Step S16, control module 100 sends shutdown command to each blade server 2 makes it enter shutdown programm to perform shutdown action.
Step S17, detecting module 102 sends packet to blade server 2 by network and detects and judge whether that all blade servers 2 all shut down successfully.If detecting all blade servers 2 shuts down successfully, perform step S18; If detect a blade server 2 to shut down failure, then perform step S12.
Step S18, control module 100 sending controling instruction to power supply device 3 controls power supply device 3 to be stopped powering to described blade server 2.Power supply device 3 is Preset Time reciprocal (such as, 5 seconds) power-off afterwards after receiving steering order, and described Preset Time is set by tester.
Step S19, described accumulator module 108 judges whether cumulative switching on and shutting down testing time equals preset times (as 3 times), and when accumulative switching on and shutting down testing time equals preset times, accumulator module 108 points out end switch machine to test.When cumulative switching on and shutting down testing time is less than preset times, return step S10.
Finally, tester can check the test log and blade server system daily record preserved in above-mentioned test process, judges whether above-mentioned server start test is passed through.
Above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not depart from the spirit and scope of technical solution of the present invention.
Claims (6)
1. a server method for testing open/close machine, be applied on a main frame, it is characterized in that, the method comprises the steps:
During each switching on and shutting down test, control power supply device and blade server is powered, send start-up command and control blade server start;
Detect and judge whether all blade servers all start shooting successfully;
If a blade server boot failure, control all blade servers and exit switching on and shutting down test, record current switch machine test mode is in the test log in storer;
When all blade servers are started shooting successfully, every platform blade server components inventory is changed into word shelves, the component list contrast of this blade server when starting shooting with last time;
When the component list of this blade server is all consistent when component list when this start of every platform blade server was started shooting with last time, record the system journal of this blade server;
Component list when a blade server this start, with when the component list of this blade server is inconsistent when starting shooting last time, controls all blade servers and exits switching on and shutting down test, record current switch machine test mode in the test log in storer;
Send shutdown command and control blade server execution shutdown action;
Detect and judge whether all blade servers all shut down successfully;
If all blade servers shut down successfully, send cut-offing instruction and stop powering to blade server to power supply device control power supply device;
If a blade server shuts down unsuccessfully, control all blade servers and exit switching on and shutting down test, record current switch machine test mode is in the test log in storer;
Cumulative record switching on and shutting down testing time, and when the switching on and shutting down testing time of cumulative record equals preset times, the test of prompting end switch machine, when the switching on and shutting down number of times of cumulative record is less than preset times, repeats switching on and shutting down test.
2. server method for testing open/close machine according to claim 1, it is characterized in that, described method also comprises: the network address according to every platform blade server is that the daily record of every platform blade server system is named and is kept in the storer of main frame, and covers the system journal of this blade server preserved when starting shooting last time.
3. server method for testing open/close machine according to claim 1, it is characterized in that, the method also comprises: described power supply device is power-off after Preset Time reciprocal after receiving shutdown command.
4. a server on-off testing system, operates on a main frame, it is characterized in that, this system comprises:
Control module, during for each switching on and shutting down test, controls power supply device and powers to blade server, sends start-up command and controls blade server start;
Detecting module, for detecting and judging whether all blade servers all start shooting successfully;
Preserve module, if for a blade server boot failure, control all blade servers and exit switching on and shutting down test, record current switch machine test mode is in the test log in storer;
Contrast module, for starting shooting successfully when all blade servers, changes into word shelves by every platform blade server components inventory, the component list contrast of this blade server when starting shooting with last time;
When the component list of this blade server is all consistent when described preservation module was also started shooting with last time for the component list when this time of every platform blade server is started shooting, record the system journal of this blade server;
Described preservation module also for when a blade server this time start time component list and when starting shooting last time, the component list of this blade server is inconsistent time, control all blade servers and exit switching on and shutting down test, record current switch machine test mode is in the test log in storer;
Described control module also controls blade server execution shutdown action for sending shutdown command;
Described detecting module is also for detecting and judging whether all blade servers all shut down successfully;
If described control module is also shut down successfully for all blade servers, send cut-offing instruction and stop powering to blade server to power supply device control power supply device;
If described preservation module is also shut down unsuccessfully for a blade server, control all blade servers and exit switching on and shutting down test, record current switch machine test mode is in the test log in storer;
Accumulator module, for cumulative record switching on and shutting down testing time, and when the start testing time of cumulative record equals preset times, the test of prompting end switch machine, when the switching on and shutting down testing time of cumulative record is less than preset times, repeats switching on and shutting down test.
5. server on-off testing system according to claim 4, it is characterized in that, described preservation module also for being that the daily record of every platform blade server system is named and is kept in the storer of main frame according to the network address of every platform blade server, and covers the system journal of this blade server preserved when starting shooting last time.
6. server on-off testing system according to claim 4, is characterized in that, described power supply device is power-off after Preset Time reciprocal after receiving shutdown command.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310528370.8A CN104598337A (en) | 2013-10-31 | 2013-10-31 | Method and system for startup and shutdown test of server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310528370.8A CN104598337A (en) | 2013-10-31 | 2013-10-31 | Method and system for startup and shutdown test of server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104598337A true CN104598337A (en) | 2015-05-06 |
Family
ID=53124151
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310528370.8A Pending CN104598337A (en) | 2013-10-31 | 2013-10-31 | Method and system for startup and shutdown test of server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104598337A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109324935A (en) * | 2018-09-13 | 2019-02-12 | 郑州云海信息技术有限公司 | A kind of system cold start-up test method, device, terminal and storage medium |
CN110456183A (en) * | 2019-07-15 | 2019-11-15 | 深圳康佳电子科技有限公司 | A kind of method and system detecting electric equipment products exception |
CN113821390A (en) * | 2021-08-30 | 2021-12-21 | 曙光信息产业股份有限公司 | Switch debugging method and device, server and computer readable storage medium |
-
2013
- 2013-10-31 CN CN201310528370.8A patent/CN104598337A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109324935A (en) * | 2018-09-13 | 2019-02-12 | 郑州云海信息技术有限公司 | A kind of system cold start-up test method, device, terminal and storage medium |
CN110456183A (en) * | 2019-07-15 | 2019-11-15 | 深圳康佳电子科技有限公司 | A kind of method and system detecting electric equipment products exception |
CN113821390A (en) * | 2021-08-30 | 2021-12-21 | 曙光信息产业股份有限公司 | Switch debugging method and device, server and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106843957B (en) | System firmware upgrading method and device | |
US20150154092A1 (en) | Bios maintenance method | |
CN106897166B (en) | Mobile terminal and repairing method thereof | |
US20160132420A1 (en) | Backup method, pre-testing method for environment updating and system thereof | |
CN105302711B (en) | Application restoration method and device and terminal | |
CN104424084A (en) | System error information detection system and method for server | |
CN101882085A (en) | System starting method and embedded equipment | |
CN104217137A (en) | Method and device for identifying whether intelligent terminal system is changed | |
CN104598337A (en) | Method and system for startup and shutdown test of server | |
CN104049999A (en) | Automatic storage device repair system based on network and method thereof | |
CN104809044A (en) | Method and system for detecting starting state of baseplate management controller | |
CN103179551A (en) | Over-the-air upgrading method and over-the-air upgrading system | |
CN111352779A (en) | On-off test method of AC power supply of MOC card and related assembly | |
CN111176897A (en) | Closed BIOS self-repairing method, system, terminal and storage medium | |
CN103150223A (en) | Method for preventing epon terminal equipment from being damaged and epon terminal equipment | |
CN103731301A (en) | Dual backup achieving method of remote network system | |
US9218260B2 (en) | Host device and method for testing booting of servers | |
CN113687867B (en) | Shutdown method, system, equipment and storage medium of cloud platform cluster | |
CN107870840B (en) | IPMI-based server multi-test instruction automatic execution method | |
CN105915686A (en) | Device detection method and device of mobile terminal | |
CN116257397A (en) | Pressure testing method, pressure testing device, storage medium and pressure testing equipment | |
CN114576810B (en) | Air conditioner control method and device, air conditioner and storage medium | |
CN105546717A (en) | Method and device for controlling air conditioner and air conditioner | |
CN112000380A (en) | Network card configuration method, system, electronic equipment and storage medium | |
CN112162880A (en) | Method and device for acquiring module correction coefficient applied to LED screen |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150506 |