CN107273258A - Method of testing and system are restarted in the automation of interchanger built in a kind of blade server - Google Patents
Method of testing and system are restarted in the automation of interchanger built in a kind of blade server Download PDFInfo
- Publication number
- CN107273258A CN107273258A CN201710606340.2A CN201710606340A CN107273258A CN 107273258 A CN107273258 A CN 107273258A CN 201710606340 A CN201710606340 A CN 201710606340A CN 107273258 A CN107273258 A CN 107273258A
- Authority
- CN
- China
- Prior art keywords
- interchanger
- test
- restarted
- blade server
- automation
- 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/2247—Verification or detection of system hardware configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Cardiology (AREA)
- Debugging And Monitoring (AREA)
Abstract
Restart method of testing and system the invention discloses a kind of automation of interchanger built in blade server, belong to the technical field of measurement and test of interchanger.Method of testing is restarted in the automation of interchanger built in the blade server of the present invention, based on shell scripts, is realized by ipmitool orders;Shell scripts are copied on test machine, test machine is connected with blade server, shell scripts are performed automatically, the state for detecting interchanger and test is restarted in progress, interchanger reaches that restarting for setting completes to test after number of times.Method of testing is restarted in the automation of interchanger built in the blade server of the invention can improve testing efficiency, the time be saved, with good application value.
Description
Technical field
The present invention relates to the technical field of measurement and test of interchanger, a kind of the automatic of interchanger built in blade server is specifically provided
Method of testing and system are restarted in change.
Background technology
Computer has information memory capacity big, and user obtains the advantages of information is convenient and swift, is widely applied.With
Society and it is economical continue to develop, the computer of general performance can not meet use demand, the knife with higher performance
Chip server grows up.Blade server has become the main flow of HPCC, in order to realize blade node
Between, the communication between blade node and external equipment, blade server all can built-in interchanger.Interchanger is network and communication
In nucleus equipment, data forwarding and transmission in network all be unable to do without the participation of interchanger.Interchanger built in blade server,
10,000,000,000 or gigabit network interface are externally provided, are internally connected by server backplane with all blade nodes.Therefore exchange opportunity is made
Dependence test is carried out for a part of blade server, wherein just including restarting test, to find interchanger and blade section
Between point the problems such as the compatibility for the optical module that the stability of connection status, external interface are used.But, the management system of interchanger
System is different with linux, it is impossible to control the automatic of interchanger to restart using script, restarts behaviour using manual progress in the prior art
Test, but it is less efficient, lose time.
The content of the invention
The technical assignment of the present invention is can to improve testing efficiency there is provided one kind for above-mentioned problem, during saving
Between blade server built in the automation of interchanger restart method of testing.
Further technical assignment of the invention is to provide a kind of automation for realizing interchanger built in insert server
Test system is restarted in the automation for restarting interchanger built in the blade server of method of testing.
To achieve the above object, the invention provides following technical scheme:
Method of testing is restarted in the automation of interchanger built in a kind of blade server, and method of testing base is restarted in the automation
In shell scripts, realized by ipmitool orders;Shell scripts are copied on test machine, by test machine and blade service
Device is connected, and shell scripts are performed automatically, detects the state of interchanger and test is restarted in progress, interchanger reaches the weight of setting
Open and test is completed after number of times.
By perform shell scripts to blade server send order realize that the automation of interchanger is restarted, a key perform,
The manually operated time of tester is saved, testing efficiency is greatly improved.
Preferably, method of testing is restarted in the automation specifically includes following steps:
S1:Test machine is connected with blade server, it is ensured that both mutual ping lead to;
S2:Shell scripts are copied on test machine, perform script ./switch_reboot.sh num;
S3:Shell scripts are performed automatically, detection interchanger whether can ping lead to, if can, perform step S4, otherwise
Perform step S7;
S4:Shell scripts are performed to carry out restarting test;
S5:The number of times restarted is exported in shell script implementation procedures, and record restarts time started and end every time
Time;
S6:Judge whether to reach setting restarts number of times, if so, performing step S8, otherwise performs step S3;
S7:Prompting checks switch status;
S8:Terminate.
In step S2, num is device numbering of the interchanger on blade server, such as 0/1/2/3.
In step S3, if interchanger can not ping lead to, can send prompting remind tester check interchanger shape
State, then sends ipmitool orders to blade server and controls restarting for interchanger.
In step S5, record every time restarts the time started and the end time is stored in the switch_ of current directory
In reboot.txt.
Shell scripts detect the state of interchanger, it is ensured that the management interface of interchanger normally ping can lead to, if can not
Ping general rules can send prompting tester and check switch status and terminate, and then sending ipmitool orders to SMC controls
Interchanger is restarted, and interchanger restarts rear script constantly to confirm whether interchanger restarts completion, it is ensured that after restarting completion
Record to restart the end time and then wait for a period of time and carry out reboot operation next time again.This process is constantly circulated, when up to
Terminate to restarting for setting after number of times, script can record interchanger reboot time, and tester can pass through the registration confirmed
With the presence or absence of reboot time it is long the problem of.
Preferably, in step S1, the test machine is connected by netting twine with the SMC of blade server.
SMC (System Management Controller) System Management Controller, is mainly used in blade server etc.
The machine system management of cluster server, can realize the information inspection of all parts and switching on and shutting down, the control such as restart.
Preferably, the test machine is the server of Linux system.
Preferably, the test machine is PC, PC (Personal Computer) is PC.
Test system is restarted in the automation of interchanger built in a kind of blade server, including with lower module:
Test module:For with blade server being connected, interchanger is carried out to restart test;
Test script module:It is located in test module, for detecting the state of interchanger and test is restarted in progress;
Logging modle:Time started and end time are restarted every time for recording interchanger;
Judge module:Restart whether number of times reaches setting value for judge interchanger.
Preferably, the test module is the server of Linux system, test script module is located at Linux system
In server.
Preferably, the test module is PC, test script module is located in PC.
Compared with prior art, the automation of interchanger built in blade server of the invention restart method of testing have with
The beneficial effect of lower protrusion:The automation of interchanger built in the blade server restarts method of testing and utilizes shell scripts one
Key is performed, and reducing can be between screen exports test process and preservation is restarted at the beginning of test in artificial operation, test process
And the end time, facilitate tester to search problem, it is simple to operate, the operating time is saved in actual use, is carried significantly
High testing efficiency.
Brief description of the drawings
Fig. 1 is that the schematic flow sheet of method of testing is restarted in the automation of interchanger built in blade server of the present invention.
Embodiment
Below in conjunction with drawings and examples, test is restarted in the automation to interchanger built in the blade server of the present invention
Method and system are described in further detail.
Embodiment
The automation of interchanger built in the blade server of the present invention restarts method of testing and is based on shell scripts, passes through
Ipmitool orders are realized.
Use the server or PC of Linux system as test machine in the present invention, copy shell scripts to test
On machine, pass through netting twine connecting test machine and the SMC of blade server.Shell scripts are performed automatically, detect the state of interchanger simultaneously
Test is restarted in progress, when completion test after restarting number of times for reaching setting.
As shown in figure 1, method of testing is restarted in the automation specifically includes following steps:
S1:The server or PC of Linux system are connected with blade server, it is ensured that both mutual ping lead to.
S2:Shell scripts are copied on the server or PC of Linux system, perform script ./switch_
Reboot.sh num, num are device numbering of the interchanger on blade server, such as 0/1/2/3.
S3:Shell scripts are performed automatically, detection interchanger whether can ping lead to, if can, perform step S4, otherwise
Perform step S7.
If interchanger can not ping lead to, can send prompting remind tester check switch status, Ran Houxiang
Blade server sends restarting for ipmitool orders control interchanger.
S4:Shell scripts are performed to carry out restarting test.
S5:The number of times restarted is exported in shell script implementation procedures, and record restarts time started and end every time
Time, record every time restarts the time started and the end time is stored in the switch_reboot.txt of current directory.
S6:Judge whether to reach setting restarts number of times, if so, performing step S8, otherwise performs step S3.
S7:Prompting checks switch status.
S8:Terminate.
The automation of interchanger built in the blade server is restarted the correlative code of method of testing and is explained in detail below:
#!/bin/sh
Num=$ (($ 1+1)) # sets interchanger numbering to be restarted
IP=192.168.0.20 $ num
The IP# of ping-c 3 confirm whether interchanger can be logical with ping
if[$- ne 0] if # is unable to ping and led to, point out to check ip and interchanger and terminate
then
echo"cannot connect switch ip:$IP,please check ip and switch"
exit
fi
For ((i=1;i<501;I++)) # acquiescences are restarted 500 times
do
echo"$i">>Switch_reboot.txt# records restart number of times and time started
date>>switch_reboot.txt
ipmitool-I lanplus-H 192.168.0.160-U admin-P admin raw 0x3a 0x09
0x0$1 0x02
echo"waiting for the switch$IP reboot"
while true
do
ping-c 3$IP>null 2>&1# confirms whether interchanger restarts completion
if[$-eq 0]
then
break
fi
done
date>>Switch_reboot.txt# records restart the end time
echo"**************">>switch_reboot.txt
echo"reboot num:$i"
Echo " please wait 60s " # starts to restart next time after waiting 60s
sleep 60
done
echo"The test Finished!!!"
Test system is restarted in the automation of interchanger built in the blade server of the present invention, including with lower module:
Test module:It is connected for the SMC with blade server, interchanger is carried out to restart test.In the present invention
Test module is the server or PC of Linux system.
Test script module:It is located in test module, the state and progress for detecting interchanger restart test, the present invention
Using shell scripts.
Logging modle:Restart every time time started and end time for recording interchanger, and be stored in current directory
In switch_reboot.txt.
Judge module:Restart whether number of times reaches setting value for judge interchanger.
Embodiment described above, is the present invention more preferably embodiment, those skilled in the art is at this
The usual variations and alternatives carried out in the range of inventive technique scheme all should be comprising within the scope of the present invention.
Claims (8)
1. method of testing is restarted in the automation of interchanger built in a kind of blade server, it is characterised in that:The automation is restarted
Method of testing is based on shell scripts, is realized by ipmitool orders;Shell scripts are copied on test machine, by test machine
It is connected with blade server, shell scripts are performed automatically, detects the state of interchanger and test is restarted in progress, interchanger reaches
Test is completed after number of times to restarting for setting.
2. method of testing is restarted in the automation of interchanger built in blade server according to claim 1, it is characterised in that:
The automation restarts method of testing and specifically includes following steps:
S1:Test machine is connected with blade server, it is ensured that both mutual ping lead to;
S2:Shell scripts are copied on test machine, perform script ./switch_reboot.sh num;
S3:Shell scripts are performed automatically, detection interchanger whether can ping lead to, if can, perform step S4, otherwise perform
Step S7;
S4:Shell scripts are performed to carry out restarting test;
S5:The number of times restarted is exported in shell script implementation procedures, and record restarts the time started with the end of every time
Between;
S6:Judge whether to reach setting restarts number of times, if so, performing step S8, otherwise performs step S3;
S7:Prompting checks switch status;
S8:Terminate.
3. method of testing is restarted in the automation of interchanger according to built in the blade server that claim 2 is stated, it is characterised in that:Step
In rapid S1, the test machine is connected by netting twine with the SMC of blade server.
4. method of testing is restarted in the automation of interchanger built in the blade server according to claim 1,2 or 3, its feature
It is:The test machine is the server of Linux system.
5. method of testing is restarted in the automation of interchanger built in the blade server according to claim 1,2 or 3, its feature
It is:The test machine is PC.
6. test system is restarted in the automation of interchanger built in a kind of blade server, it is characterised in that:Including with lower module:
Test module:For with blade server being connected, interchanger is carried out to restart test;
Test script module:It is located in test module, for detecting the state of interchanger and test is restarted in progress;
Logging modle:Time started and end time are restarted every time for recording interchanger;
Judge module:Restart whether number of times reaches setting value for judge interchanger.
7. test system is restarted in the automation of interchanger built in blade server according to claim 6, it is characterised in that:
The test module is the server of Linux system, and test script module is located in the server of Linux system.
8. test system is restarted in the automation of interchanger built in blade server according to claim 6, it is characterised in that:
The test module is PC, and test script module is located in PC.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710606340.2A CN107273258A (en) | 2017-07-24 | 2017-07-24 | Method of testing and system are restarted in the automation of interchanger built in a kind of blade server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710606340.2A CN107273258A (en) | 2017-07-24 | 2017-07-24 | Method of testing and system are restarted in the automation of interchanger built in a kind of blade server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107273258A true CN107273258A (en) | 2017-10-20 |
Family
ID=60078501
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710606340.2A Pending CN107273258A (en) | 2017-07-24 | 2017-07-24 | Method of testing and system are restarted in the automation of interchanger built in a kind of blade server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107273258A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108089961A (en) * | 2017-11-28 | 2018-05-29 | 郑州云海信息技术有限公司 | One kind is based on MOC boards hardware reboot test methods and system |
CN108984380A (en) * | 2018-07-12 | 2018-12-11 | 郑州云海信息技术有限公司 | A kind of server test method, device and medium based on linux system |
CN109324834A (en) * | 2018-09-19 | 2019-02-12 | 郑州云海信息技术有限公司 | A kind of system and method that distributed storage server is restarted automatically |
CN109446101A (en) * | 2018-11-13 | 2019-03-08 | 郑州云海信息技术有限公司 | The automated testing method and device of BMC are restarted based on ipmi instruction |
CN111782280A (en) * | 2020-06-19 | 2020-10-16 | 麒麟软件有限公司 | Automatic test method and system for startup and shutdown of operating system based on server BMC |
Citations (4)
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 |
CN104536875A (en) * | 2015-01-16 | 2015-04-22 | 浪潮电子信息产业股份有限公司 | Automatic server restart testing method based on IPMI |
CN106155784A (en) * | 2016-01-22 | 2016-11-23 | 浪潮电子信息产业股份有限公司 | A kind of method of IPMI network interface mode of operation that automatically switches and device thereof |
CN106201799A (en) * | 2016-07-14 | 2016-12-07 | 浪潮电子信息产业股份有限公司 | A kind of service based on ipmi carries out, to server, the method for testing that DC is restarted |
-
2017
- 2017-07-24 CN CN201710606340.2A patent/CN107273258A/en active Pending
Patent Citations (4)
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 |
CN104536875A (en) * | 2015-01-16 | 2015-04-22 | 浪潮电子信息产业股份有限公司 | Automatic server restart testing method based on IPMI |
CN106155784A (en) * | 2016-01-22 | 2016-11-23 | 浪潮电子信息产业股份有限公司 | A kind of method of IPMI network interface mode of operation that automatically switches and device thereof |
CN106201799A (en) * | 2016-07-14 | 2016-12-07 | 浪潮电子信息产业股份有限公司 | A kind of service based on ipmi carries out, to server, the method for testing that DC is restarted |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108089961A (en) * | 2017-11-28 | 2018-05-29 | 郑州云海信息技术有限公司 | One kind is based on MOC boards hardware reboot test methods and system |
CN108984380A (en) * | 2018-07-12 | 2018-12-11 | 郑州云海信息技术有限公司 | A kind of server test method, device and medium based on linux system |
CN109324834A (en) * | 2018-09-19 | 2019-02-12 | 郑州云海信息技术有限公司 | A kind of system and method that distributed storage server is restarted automatically |
CN109446101A (en) * | 2018-11-13 | 2019-03-08 | 郑州云海信息技术有限公司 | The automated testing method and device of BMC are restarted based on ipmi instruction |
CN109446101B (en) * | 2018-11-13 | 2021-10-29 | 郑州云海信息技术有限公司 | Automatic testing method and device for restarting BMC based on ipmi instruction |
CN111782280A (en) * | 2020-06-19 | 2020-10-16 | 麒麟软件有限公司 | Automatic test method and system for startup and shutdown of operating system based on server BMC |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107273258A (en) | Method of testing and system are restarted in the automation of interchanger built in a kind of blade server | |
CN109144531A (en) | The approaches to IM and device of programming system and its server | |
CN101583054A (en) | Method for realizing that optical interface supports multiple rate patterns by adopting optical module and device | |
CN104951421B (en) | A kind of automatic numbering of serial bus communication equipment and kind identification method and device | |
WO2013107144A1 (en) | Switch chip port management method, main control board, switch board, and system | |
CN109189409A (en) | Programming system, programming system server and its parallel programming management method and device | |
CN102801563B (en) | gateway uplink mode switching method, gateway device and communication system | |
CN109189421A (en) | Burning management method, device and programming system based on programming system server | |
CN109587005A (en) | Connecting detection method, apparatus, computer equipment and readable storage medium storing program for executing | |
CN103164309A (en) | SOL functional test method and system | |
CN109062587A (en) | The burning management method and device of programming system and its server | |
CN111009110A (en) | Method and hardware equipment for collecting load identification data of user electric meter | |
CN112333022B (en) | Intelligent electric energy meter remote upgrading system and method based on multilayer transparent transmission | |
CN101751265A (en) | Updating system of basic input/output system of server and method thereof | |
CN104898070B (en) | Power supply test method and device | |
CN109062586A (en) | The burning management method and device of programming system and its client | |
CN110568946B (en) | Port control method, device and medium | |
CN103152198A (en) | Micro-server-based automatic asset management method and device | |
CN210781189U (en) | Hardware equipment for collecting load identification data of user electric meter | |
CN101873228A (en) | Management system and method for material information of network equipment | |
CN116137603A (en) | Link fault detection method and device, storage medium and electronic device | |
CN107239300A (en) | A kind of intelligent cabinet RMC and MP batch refreshing methods | |
CN104348756B (en) | Switch system | |
CN109032624A (en) | A kind of test method and its device based on programming system | |
CN106648983A (en) | Testing method and system for Wi-Fi equipment factory reset success rate |
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 |
Application publication date: 20171020 |
|
RJ01 | Rejection of invention patent application after publication |