[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105404569A - Method for testing remote Power Reset of server - Google Patents

Method for testing remote Power Reset of server Download PDF

Info

Publication number
CN105404569A
CN105404569A CN201510906445.0A CN201510906445A CN105404569A CN 105404569 A CN105404569 A CN 105404569A CN 201510906445 A CN201510906445 A CN 201510906445A CN 105404569 A CN105404569 A CN 105404569A
Authority
CN
China
Prior art keywords
tested machine
test
controller
machine
tested
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
CN201510906445.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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510906445.0A priority Critical patent/CN105404569A/en
Publication of CN105404569A publication Critical patent/CN105404569A/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/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)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a remote Power to a server? The invention relates to a Reset test method, belonging to the field of server test, aiming at solving the problems of lack of automation and waste of manpower in server test, and adopting the technical scheme that the Reset test method comprises a control machine and at least two test machines, wherein the test machines are connected with the control machine, and the steps are as follows: (1) setting a network system of a tested machine, wherein a service network port IP, a BMC port IP and a controller IP of the tested machine are arranged in the same network segment, and the service network port IP, the BMC port IP and the controller IP of the tested machine are mutually connected; (2) setting software of a tested machine, and installing rhel or centros in a control machine; (3) and running the test script.

Description

A kind of method that Server remote Power Reset is tested
Technical field
The present invention relates to one, specifically a kind of method that Server remote PowerReset is tested.
Background technology
Along with the development of IT field technology, conventional informationization service and increasingly powerful cloud computing service are more and more higher to the safe and reliable requirement of server.As server product provider, a server all needs to carry out stability test to product in development or production phase; And the stability of server not only will show on single parts, more to show on whole server system.And can server keep long-time reboot operation repeatedly in extreme circumstances, can become Client application the prerequisite of stable operation.The outer PowerReset of remote band has higher requirement to system, and local PowerReset test is normal, but may go wrong in the outer PowerReset test of remote band.
At present, in most cases carry out server start, restart stability test all mainly through manual operation, for a large amount of server node, configuration is carried out starting shooting, restarting test one by one, and workload is huge, operates heavy, at substantial human resources.
Summary of the invention
Technical assignment of the present invention is for above deficiency, provides a kind of method of testing Server remote PowerReset, solves the problem lacking robotization, waste of manpower of server test.
Technical assignment of the present invention realizes in the following manner:
To the method that Server remote PowerReset tests, it is characterized in that comprising a controller and at least two test machines, described test machine is connected with controller, and step is:
(1) arrange the network system of tested machine, service network port IP, BMC mouth IP of tested machine, controller IP are arranged on the same network segment, and service network port IP, BMC mouth IP, the controller IP of tested machine are interconnected;
(2) tested machine software is arranged, in controller, rhel or centos is installed;
(3) run survey and establish script.
Described test script comprises the test of service network port IP, BMC mouth IP to tested machine, testing time.
The operation method of described test script is:
./pr.sh< tested machine functional area ip>< tested machine BMCip>< testing time >.
In described test script, operational scheme is:
(1) test parameter is obtained;
(2) open state of tested machine is detected;
(3) if the start of tested machine, PowerReset instruction is sent to tested machine;
(4) tested machine whether normal boot-strap is detected;
(5) if tested machine normal boot-strap, record the number of times of successfully start, if reach testing time, test end, if do not reach testing time, start to test next time;
(6) if test occurs abnormal, then send exception reporting to controller, and wait for artificial treatment.
A kind of method to Server remote PowerReset test of the present invention has the following advantages: the present invention utilizes script command achieve the test of robotization unmanned and run, this method of testing is simple to operate, automaticity is high, practicality is stronger, can manpower be saved, effectively ensure that the stability of server.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is further described.
Accompanying drawing 1 is a kind of FB(flow block) to the method that Server remote PowerReset tests.
Embodiment
With reference to Figure of description and specific embodiment, a kind of method to Server remote PowerReset test of the present invention is described in detail below.
Embodiment:
A kind of method that Server remote PowerReset is tested of the present invention, comprise a controller and two test machines, two test machines are all connected with controller, and step is:
(1) network system of tested machine is arranged, service network port IP, BMC mouth IP of tested machine, controller IP are arranged on the same network segment, and service network port IP, BMC mouth IP, the controller IP of tested machine are interconnected, the service network port IP of tested machine is set to static state, and the service network port IP of tested machine starts unlatching automatically with system;
(2) arrange tested machine software, install rhel system or centos system in controller, preferred centos system in the present embodiment, the operating system of tested machine is unrestricted, but in tested machine, network interface card energy load driver is also opened automatically;
(3) run survey and establish script.
Test script comprises the test of service network port IP, BMC mouth IP to tested machine, testing time.
The operation method of test script is:
./pr.sh< tested machine functional area ip>< tested machine BMCip>< testing time >
The operational scheme of test script is:
(1) test parameter is obtained;
(2) open state of tested machine is detected;
(3) if the start of tested machine, PowerReset instruction is sent to tested machine;
(4) tested machine whether normal boot-strap is detected;
(5) if tested machine normal boot-strap, record the number of times of successfully start, if reach testing time, test end, if do not reach testing time, start to test next time;
(6) if test occurs abnormal, then send exception reporting to controller, and wait for artificial treatment.
Test script is:
#!/bin/bash
if[$1=""];then
echo"Ussage:./pr.sh<ip><BMCip><times>"
exit
fi
if[$2=""];then
echo"Ussage:./pr.sh<ip><BMCip><times>"
exit
fi
if[$3=""];then
echo"Ussage:./pr.sh<ip><BMCip><times>"
exit
fi
bmcip=$2
ip=$1
times=$3
echo"bmcip=$bmcip"
echo"ip=$ip"
echo"Totaltesttimes=$times"
ipmitool-H$bmcip-Uadmin-Padminchassispoweron
p=`ping-c1$ip|greppackets|awk'{print$4}'`
while[$p="0"]
do
sleep1
p=`ping-c1$ip|greppackets|awk'{print$4}'`
done
for((i=0;i<$times;i++))
do
ipmitool-H$bmcip-Uadmin-Padminchassispowerreset
sleep10
p=`ping-c1$ip|greppackets|awk'{print$4}'`
while[$p="0"]
do
sleep1
p=`ping-c1$ip|greppackets|awk'{print$4}'`
done
echo"Testtimes:$((i+1))testresult:OK"
done
By embodiment above, described those skilled in the art can be easy to realize the present invention.But should be appreciated that the present invention is not limited to above-mentioned embodiment.On the basis of disclosed embodiment, described those skilled in the art can the different technical characteristic of combination in any, thus realizes different technical schemes.Except the technical characteristic described in instructions, be the known technology of those skilled in the art.

Claims (4)

1., to the method that Server remote PowerReset tests, it is characterized in that comprising a controller and at least two test machines, described test machine is connected with controller, and step is:
(1) arrange the network system of tested machine, service network port IP, BMC mouth IP of tested machine, controller IP are arranged on the same network segment, and service network port IP, BMC mouth IP, the controller IP of tested machine are interconnected;
(2) tested machine software is arranged, in controller, rhel or centos is installed;
(3) run survey and establish script.
2. a kind of method of testing Server remote PowerReset according to claim 1, is characterized in that described test script comprises the test of service network port IP, BMC mouth IP to tested machine, testing time.
3. a kind of method of testing Server remote PowerReset according to claim 2, is characterized in that the operation method of described test script is:
./pr.sh< tested machine functional area ip>< tested machine BMCip>< testing time >.
4. a kind of method of testing Server remote PowerReset according to claim 1, is characterized in that in described test script, operational scheme is:
(1) test parameter is obtained;
(2) open state of tested machine is detected;
(3) if the start of tested machine, PowerReset instruction is sent to tested machine;
(4) tested machine whether normal boot-strap is detected;
(5) if tested machine normal boot-strap, record the number of times of successfully start, if reach testing time, test end, if do not reach testing time, start to test next time;
(6) if test occurs abnormal, then send exception reporting to controller, and wait for artificial treatment.
CN201510906445.0A 2015-12-09 2015-12-09 Method for testing remote Power Reset of server Pending CN105404569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510906445.0A CN105404569A (en) 2015-12-09 2015-12-09 Method for testing remote Power Reset of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510906445.0A CN105404569A (en) 2015-12-09 2015-12-09 Method for testing remote Power Reset of server

Publications (1)

Publication Number Publication Date
CN105404569A true CN105404569A (en) 2016-03-16

Family

ID=55470067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510906445.0A Pending CN105404569A (en) 2015-12-09 2015-12-09 Method for testing remote Power Reset of server

Country Status (1)

Country Link
CN (1) CN105404569A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055440A (en) * 2016-05-31 2016-10-26 深圳市国鑫恒宇科技有限公司 Testing method and system for realizing abnormal power failure of server through BMC
CN107168877A (en) * 2017-05-19 2017-09-15 郑州云海信息技术有限公司 A kind of method for carrying out remote testing to server based on Python
CN107645424A (en) * 2017-08-24 2018-01-30 郑州云海信息技术有限公司 A kind of method and system of BMC Sensor pressure test scripts
CN107870840A (en) * 2016-09-27 2018-04-03 佛山市顺德区顺达电脑厂有限公司 The multiple test instruction automatic execution methods of server based on IPMI
CN111538518A (en) * 2020-04-27 2020-08-14 深圳忆联信息系统有限公司 Method and device for realizing automatic batch test of tester and computer equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536875A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 IPMI-based method for carrying out automatic restart test on server
CN105068900A (en) * 2015-07-27 2015-11-18 浪潮电子信息产业股份有限公司 Testing method for remote control server cold reboot

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104536875A (en) * 2015-01-16 2015-04-22 浪潮电子信息产业股份有限公司 IPMI-based method for carrying out automatic restart test on server
CN105068900A (en) * 2015-07-27 2015-11-18 浪潮电子信息产业股份有限公司 Testing method for remote control server cold reboot

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106055440A (en) * 2016-05-31 2016-10-26 深圳市国鑫恒宇科技有限公司 Testing method and system for realizing abnormal power failure of server through BMC
CN106055440B (en) * 2016-05-31 2019-08-20 深圳市同泰怡信息技术有限公司 A kind of test method and system for realizing server exception power-off by BMC
CN107870840A (en) * 2016-09-27 2018-04-03 佛山市顺德区顺达电脑厂有限公司 The multiple test instruction automatic execution methods of server based on IPMI
CN107870840B (en) * 2016-09-27 2020-09-22 佛山市顺德区顺达电脑厂有限公司 IPMI-based server multi-test instruction automatic execution method
CN107168877A (en) * 2017-05-19 2017-09-15 郑州云海信息技术有限公司 A kind of method for carrying out remote testing to server based on Python
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
CN111538518A (en) * 2020-04-27 2020-08-14 深圳忆联信息系统有限公司 Method and device for realizing automatic batch test of tester and computer equipment

Similar Documents

Publication Publication Date Title
CN105404569A (en) Method for testing remote Power Reset of server
CN102437938B (en) Large-scale network monitoring oriented virtual deployment system and method
US9146837B2 (en) Automated build, deploy, and testing environment for firmware
CN110213121B (en) Test platform, test method and test device for virtual communication product
CN103970650B (en) Distributed testing method and device
CN105068900A (en) Testing method for remote control server cold reboot
WO2015007069A1 (en) Method for automatically deploying zookeeper cluster based on script program
CN104199694A (en) Automatic operating system installation and recovery method based on PXE
CN103812726A (en) Automated testing method and device for data communication equipment
US20180060051A1 (en) Bare metal provisioning of software defined infrastructure
CN104615466A (en) Cloud platform deployment method and system
CN107071030B (en) Ceph distributed storage system deployment method and system
CN103457761B (en) Cross-platform command line configuration interface implementation method
CN103544096A (en) Method and system for feeding back information in case of operational failure of Android terminal
CN106201799A (en) Test method for DC restart of server based on ipmi service
CN105022648A (en) Test method for HCA card performance and pressure test based on expect command
CN105306225A (en) Openstack-based physical machine remote shutdown method
CN105512026A (en) Automatic batch testing method
CN104503802A (en) Server-side configuration method for unattended and remote installation operation system
CN108234172B (en) Physical resource automatic deployment system for cloud computing
CN104270430A (en) Server remote dispatching method suitable for cloud computing
CN105959363A (en) Big data cluster deployment method capable of adapting to hardware configuration
CN105653408A (en) Test method for POWER CYCLE startup and shutdown based on BMC IPMITOOL command single-node batch control
CN104965741A (en) Method and apparatus for installing real-time application clusters
CN106161107B (en) Multimachine intelligent Service deployment system and method

Legal Events

Date Code Title Description
C06 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: 20160316