CN105302682A - Server test method, device and system - Google Patents
Server test method, device and system Download PDFInfo
- Publication number
- CN105302682A CN105302682A CN201510848985.8A CN201510848985A CN105302682A CN 105302682 A CN105302682 A CN 105302682A CN 201510848985 A CN201510848985 A CN 201510848985A CN 105302682 A CN105302682 A CN 105302682A
- Authority
- CN
- China
- Prior art keywords
- sas switch
- server
- test
- control inerface
- test instruction
- 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
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a server test method, device and system. The server testing method comprises the steps of receiving setting information for setting test parameters; calling an expect library, and setting the IP address and test instruction of each SAS switch according to the set information; determining the target SAS switch, and logging in the control interface of a Command Line Interface (CLI) of the target SAS switch according to the IP address; judging whether the control interface of the CLI has a test instruction prompt; if so, adding the test instruction in the control interface of the CLI, informing the target SAS switch to test the server according to the test instruction, and after the current test is finished, adding the test instruction prompt in the control interface of the CLI; otherwise, continuing judging whether the control interface of the CLI has the test instruction prompt. According to the scheme, the server test efficiency can be improved.
Description
Technical field
The present invention relates to field of computer technology, the method for particularly a kind of server test, Apparatus and system.
Background technology
Along with development and the progress of computer technology, server is widely used in industry-by-industry, in order to meet the demand of big data quantity and complicated calculations, usual server comprises multiple computing node and hard disk, in order to realize freely distributing storage resources, each computing node is all connected with system for serial small computer interface switching equipment SAS switch with hard disk, by being configured SAS switch, for each computing node memory allocated space, and realize the communication between each computing node.
Storage server, as the server of a kind of high security and high reliability, stores critical data and the data of user usually, in order to ensure the safety of user data and data, generally needs to test the stability of hard disk linking status in storage server.
At present, to when in storage server, the stability of hard disk linking status is tested, user operates SAS switch by the web administration page of SAS switch, or, be connected to SAS switch by universal asynchronous receiving-transmitting transmitter UART and then SAS switch is operated, by the method that manual control operates, progressively complete the test to hard disk linking status stability in server.
Be directed to the method for testing of prior art to server stability, when testing server, need to carry out step-by-step operation by artificial method to SAS switch, but the stability of testing server needs to carry out operation that is a large amount of, that repeat, now by the method for artificial step-by-step operation SAS switch, need technician on duty for a long time, the at substantial time carries out repetitive operation, and the testing efficiency of server is lower.
Summary of the invention
The invention provides a kind of method of server test, Apparatus and system, the efficiency of server test can be improved.
Embodiments provide a kind of method of server test, comprising:
Receive test parameter is set message is set;
Call expect storehouse, message is set according to described, the IP address of each SAS switch in server and test instruction are arranged;
Determine target SAS switch, and according to described IP address, log in the Command Line Interface CLI control inerface of described target SAS switch;
Described in real-time judge, whether CLI control inerface there is test instruction prompt;
If, described test instruction is added in described CLI control inerface, notify that described target SAS switch is tested described server according to described test instruction, and in described CLI control inerface, add described test instruction prompt after current test terminates;
If not, continuation execution is described judges whether described CLI control inerface occurs test instruction prompt.
Preferably, describedly notify that described target SAS switch carries out test according to described test instruction to described server and comprises:
Notify that described target SAS switch is according to described test instruction, by the link interruption in described server between computing node and hard disk, and after interruption duration reaches default interval time, restart linking in described server between computing node with hard disk.
Preferably, the Command Line Interface CLI control inerface of the described target SAS switch of described login comprises:
Receive the user name input instruction that described target SAS switch sends, send corresponding login username by Telnet agreement to described target SAS switch;
Receive the password input instruction that described target SAS switch sends, send corresponding login password by Telnet agreement to described target SAS switch, complete the login to described target SAS switch CLI control inerface.
Preferably, described message is set according to described, setting is carried out to the IP address of SAS switch and comprises: according to the described multiple secondary ip address arranging message and comprise, respectively the IP address of each SAS switch is arranged;
Describedly determine target SAS switch, and according to described IP address, the Command Line Interface CLI control inerface logging in described target SAS switch comprises: from SAS switch described in each, determine at least one target SAS switch, according to the IP address of each target SAS switch, log in the Command Line Interface CLI control inerface of each target SAS switch successively;
Further, be directed to target SAS switch described in each, perform CLI control inerface described in described real-time judge and whether occur test instruction prompt.
The embodiment of the present invention additionally provides a kind of device of server test, comprising: receiving element, setting unit, login unit, judging unit and performance element;
Described receiving element, for receive test parameter is set message is set;
Described setting unit, for calling expect storehouse, what receive according to described receiving element arranges message, arranges the IP address of each SAS switch in server and test instruction;
Described login unit, for determining target SAS switch, and according to the IP address that described setting unit is arranged, logs in the Command Line Interface CLI control inerface of described target SAS switch;
Described judging unit, for judging whether the CLI control inerface that described login unit logs in occurs test instruction prompt;
Described performance element, for the judged result according to described judging unit, if, test instruction is added in described CLI control inerface, notify that described target SAS switch is tested described server according to described test instruction, and in described CLI control inerface, described test instruction prompt is added after current test terminates, if not, then notify that described judging unit continues to judge whether described CLI control inerface occurs test instruction prompt.
Preferably,
Described performance element, for notifying that described target SAS switch is according to described test instruction, by the link interruption in described server between computing node and hard disk, and after interruption duration reaches default interval time, restart linking in described server between computing node with hard disk.
Preferably,
Described login unit, for receiving the user name input instruction that described target SAS switch sends, sends corresponding login username by Telnet agreement to described target SAS switch;
Described login unit, is further used for the password input instruction receiving the transmission of described target SAS switch, sends corresponding login password, complete the login to described target SAS switch CLI control inerface by Telnet agreement to described target SAS switch.
Preferably,
Described setting unit, for according to the described multiple secondary ip address arranging message and comprise, is arranged the IP address of each SAS switch respectively;
Described login unit, for determining at least one target SAS switch from SAS switch described in each, according to the IP address of each SAS switch, logs in the Command Line Interface CLI control inerface of each target SAS switch successively;
Described judging unit, for being directed to target SAS switch described in each, whether the CLI control inerface of this target SAS switch of real-time judge there is test instruction prompt.
Embodiments provide a kind of system of server test, comprising: the device of any one server test that above-described embodiment provides and comprise the server to be measured of at least one SAS switch;
The device of described server test is connected with each SAS switch in described server to be measured;
In described server to be measured, each described SAS switch is up to be connected with at least one computing node, is descendingly connected with at least one hard disk;
The device of described server test is tested described server to be measured by the CLI control inerface signing in SAS switch in described server to be measured.
Preferably, the device of described server test is arranged on a computer node of described server to be measured, or, be arranged on other servers.
Embodiments provide a kind of method of server test, Apparatus and system, according to the IP address and the test instruction that arrange message and arrange SAS switch in server, after determining target SAS switch, according to the CLI control inerface of IP address registration to this target SAS switch, test instruction prompt whether is there is in real-time judge CLI control inerface, if, test instruction is added in CLI control inerface, notification target SAS switch is tested server according to test instruction, after current test completes, test instruction prompt is added in CLI control inerface, like this, by repeating to add test instruction prompt in CLI control inerface, SAS switch is made automatically to repeat instruction to server test, without the need to artificial Repetitive controller operation SAS switch to test server, improve the efficiency of server test.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of a kind of server test that one embodiment of the invention provides;
Fig. 2 is the device schematic diagram of a kind of server test that one embodiment of the invention provides;
Fig. 3 is the system schematic of a kind of server test that one embodiment of the invention provides;
Fig. 4 is the method flow diagram of a kind of server test that another embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.Obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, one embodiment of the invention provides a kind of method of server test, comprising:
Step 101: receive test parameter is set message is set;
Step 102: call expect storehouse, arranges message according to described, arranges the IP address of each SAS switch in server and test instruction;
Step 103: determine target SAS switch, and according to described IP address, log in the Command Line Interface CLI control inerface of described target SAS switch;
Step 104: described in real-time judge, whether CLI control inerface occurs test execution prompt, if so, performs step 105, otherwise continues to perform step 104;
Step 105: add described test instruction in described CLI control inerface, notifies that described target SAS switch is tested described server according to described test instruction;
Step 106: add described test instruction prompt after current test terminates in described CLI control inerface.
Embodiments provide a kind of method of server test, according to the IP address and the test instruction that arrange message and arrange SAS switch in server, after determining target SAS switch, according to the CLI control inerface of IP address registration to this target SAS switch, test instruction prompt whether is there is in real-time judge CLI control inerface, if, test instruction is added in CLI control inerface, notification target SAS switch is tested server according to test instruction, after current test completes, test instruction prompt is added in CLI control inerface, like this, by repeating to add test instruction prompt in CLI control inerface, SAS switch is made automatically to repeat instruction to server test, without the need to artificial Repetitive controller operation SAS switch to test server, improve the efficiency of server test.
In an embodiment of the invention, target SAS switch is after receiving the notice of testing server, according to test instruction, by the link interruption in server between computing node and hard disk, after interruption duration reaches default interval time, restart linking between computing node with hard disk, by repeatedly interrupting and starting linking in server between computing node with hard disk, the stability realized storing linking status in server is tested.
In an embodiment of the invention, when after the user name input instruction receiving the transmission of target SAS switch, corresponding login username is sent to target SAS switch by Telnet agreement, when after the login password input instruction receiving the transmission of target SAS switch, corresponding login password is sent to target SAS switch by Telnet agreement, to complete the login to target SAS switch CLI control inerface, by signing in the CLI control inerface of SAS switch, SAS switch is controlled, thus realizes being tested server by SAS switch.
In an embodiment of the invention, arrange in message and can comprise multiple secondary ip address, according to arranging the secondary ip address carried in message, to each SAS switch configuration IP address in server, according to the equipment that will test and project, at least one target SAS switch is determined from each SAS switch, according to the IP address arranged, sign in each target SAS switch successively, be directed to each target SAS switch, judge whether the CLI control inerface of this target SAS switch occurs test instruction prompt, and then computing node corresponding to this target SAS switch and hard disk are tested, by performing test instruction by different target SAS switches, realize the test to server different hardware equipment and project, improve the versatility of this server test method.
As shown in Figure 2, one embodiment of the invention provides a kind of device of server test, comprising: receiving element 201, setting unit 202, login unit 203, judging unit 204 and performance element 205;
Described receiving element 201, for receive test parameter is set message is set;
Described setting unit 202, for calling expect storehouse, what receive according to described receiving element 201 arranges message, arranges the IP address of each SAS switch in server and test instruction;
Described login unit 203, for determining target SAS switch, and according to the IP address that described setting unit 202 is arranged, logs in the Command Line Interface SLI control inerface of described target SAS switch;
Described judging unit 204, for judging whether the CLI control inerface that described login unit 203 logs in occurs test instruction prompt;
Described performance element 205, for the judged result according to described judging unit 204, if, test instruction is added in described CLI control inerface, notify that described target SAS switch is tested described server according to described test instruction, and in described CLI control inerface, described test instruction prompt is added after current test terminates, if not, then notify that described judging unit 204 continues to judge whether described CLI control inerface occurs test instruction prompt.
In an embodiment of the invention, receiving element receive outside send message is set after, setting unit arranges message arrange the IP address of each SAS switch in server and test instruction according to this, log in unit and determine target SAS switch from each SAS switch, and sign in the CLI control inerface of this target SAS switch, whether the CLI control inerface of judging unit real-time judge target SAS switch there is test instruction prompt, if, the test instruction that setting unit is arranged is added in CLI control inerface, after target SAS switch detects and occurs test instruction in CLI control inerface, according to this test instruction, server is tested, after current test completes, performance element adds test instruction designator in CLI control inerface, like this, control objectives SAS switch is repeated to test server according to test instruction, without the need to manually carrying out many operations to test server to SAS switch in test process, avoid handling time long, slow-footed shortcoming, improve the efficiency of server test.
In an embodiment of the invention, the test instruction that setting unit is arranged is added in the CLI control inerface of target SAS switch by performance element, target SAS switch is according to this test instruction, by the link interruption between the computing node that is connected with this target SAS switch in server and hard disk, and after interruption duration reaches default interval time, restart linking between these computing node with hard disks, corresponding performance element is after target SAS switch restarts linking between computing node with hard disk, test instruction designator is added in the CLI control inerface of target SAS switch, like this, target SAS switch restarts after again linking between computing node with hard disk being disconnected, by such cyclic process, the stability storing linking status in server is tested.
In an embodiment of the invention, log in unit to be communicated by Telnet agreement with between target SAS switch, when logging in unit and receiving the user name input instruction of target SAS switch transmission, corresponding login username is sent to target SAS switch by Telnet agreement, after login unit receives the password input instruction of target SAS switch transmission, corresponding login password is sent to target SAS switch by Telnet agreement, to sign in the CLI control inerface of target SAS switch, and then control SAS switch is tested server.
In an embodiment of the invention, arrange in message and can comprise multiple secondary ip address, setting unit is according to the secondary ip address arranging message and comprise, to each SAS switch configuration IP address in server to be measured, according to Devices to test and the project to be measured of server to be measured, at least one target SAS switch is determined from each SAS switch, log in the CLI control inerface that unit signs in each target SAS switch successively, be directed to the target SAS switch that each is determined, by judging unit and performance element, control this target SAS switch and complete corresponding test instruction, like this, by determining target SAS switch, can control multiple SAS switch one by one, to realize distinct device or the project of testing server, improve the applicability of this device.
As shown in Figure 3, one embodiment of the invention provides a kind of system of server test, comprising: the device 301 of any one server test that above-described embodiment provides and comprise the server to be measured 302 of at least one SAS switch;
The device 301 of described server test is connected with each SAS switch in described server 302 to be measured;
In described server to be measured 302, each described SAS switch is up to be connected with at least one computing node, is descendingly connected with at least one hard disk;
The device 301 of described server test is tested described server 302 to be measured by the CLI control inerface signing in SAS switch in described server to be measured 302.
In an embodiment of the invention, the device of server test can be arranged with on the computing node of in server to be measured, or is arranged on other servers.
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with the system of the server test shown in Fig. 3, the method for server test is described in further detail.
As shown in Figure 4, one embodiment of the invention provides a kind of method of server test, comprising:
Step 401: determine the device of testing and control machine as server test.
In an embodiment of the invention, when needing testing server, first determine the device of a testing and control machine as server test, using the computing node of in server to be measured as testing and control machine, also testing and control machine can be set on other servers.Such as, first need to test server A, server A comprises 10 computing nodes, is respectively computing node 1 to computing node 10, using computing node 1 as testing and control machine, by the device of the computing node 1 in server A as server test.
Step 402: the IP address of each SAS switch in server to be measured is arranged.
In an embodiment of the invention, user is at testing and control hands-operation, transmission arranges message, according to the IP address of testing and control machine, to each SAS switch configuration IP address in server to be measured, wherein the IP address of each SAS switch and the IP address of testing and control machine are at the same network segment, to realize can communicating between testing and control machine with each SAS switch.Such as, server A comprises 3 SAS switches, be respectively SAS switch 1, SAS switch 2 and SAS switch 3, in server A, the IP address of computing node 1 is 192.168.1.1, namely the IP address of testing and control machine is 192.168.1.1, then the IP address of SAS switch 1 is set to 192.168.1.2, the IP address of SAS switch 2 is set to 192.168.1.3, the IP address of SAS switch 3 is set to 192.168.1.4, can communicates with each SAS switch to realize testing and control machine.
Step 403: determine target SAS switch and test instruction.
In an embodiment of the invention, need the equipment that carries out testing and test event according to server to be measured, from each SAS switch of server to be measured, determine target SAS switch, and send according to user message is set, determine test instruction.Such as, server A comprises 20 hard disks, be respectively hard disk 1 to hard disk 20, wherein SAS switch 1 is up is connected with computing node 1 and computing node 2, descendingly to be connected with hard disk 1 to hard disk 5, SAS switch 2 is up to be connected with computing node 3 to computing node 5, descendingly to be connected with hard disk 6 to hard disk 10, SAS switch 3 is up to be connected with computing node 6 and computing node 7, descendingly to be connected with hard disk 11 to hard disk 15, SAS switch 4 is up to be connected with computing node 8 to computing node 10, descendingly to be connected with hard disk 16 to hard disk 20, the linking status in testing server A between computing node 3 to computing node 5 and hard disk is now wanted whether to stablize, then by instruction setsub_ip [lindex $ argv0], SAS switch 2 is set to target SAS switch, sub_ip is the IP address of SAS switch 2 herein, and test instruction is set by instruction setop_cmd [lindex $ argv1], op_cmd is that circulation performs and interrupts and link 1000 times again between start-up simulation node with hard disk herein.
Step 404: the CLI control inerface logging in target SAS switch.
In an embodiment of the invention, testing and control machine carries out links and accesses by Telnet agreement to target SAS switch, when target SAS switch feedback needs to input user name, testing and control machine sends corresponding login username to target SAS switch, when target SAS switch feedback needs input login password, testing and control machine sends corresponding login password to target SAS switch, by inputting corresponding login username and login password to log in the CLI control inerface to target SAS switch.Such as, testing and control machine carries out links and accesses by instruction spawntelnet $ sub_ip to SAS switch 2, when SAS switch 2 feeds back expect " * user* ", the login username that testing and control machine inputs according to user, by instruction send " username r ", login username username is sent to SAS switch 2, when SAS switch 2 feeds back expect " * password* ", the login password that testing and control machine inputs according to user, by instruction send " password r ", login password password is sent to SAS switch 2, login username and login password are by after checking, log in the CLI control inerface to SAS switch.
Step 405: whether the CLI control inerface of real-time judge target SAS switch occurs test instruction prompt, if so, performs step 406, otherwise continues to perform step 405.
In an embodiment of the invention, after signing in the CLI control inerface of target SAS switch, test instruction prompt whether is there is in the CLI control inerface of real-time judge target SAS switch, in the event of, need the test instruction that input is corresponding, corresponding execution step 406, if do not occurred, monitor the CLI control inerface of target SAS switch in continuation, corresponding continuation performs step 405.Such as, after testing and control machine signs in SAS switch 2, implement to monitor the CLI control inerface of SAS switch 2, judge in the CLI control inerface of SAS switch 2, whether to occur test instruction prompt expect " * 0x00000000:0000>* ", in the event of, be directed to this test instruction prompt and perform step 406, often there is once this test instruction prompt, corresponding execution step 406, if do not occurred, then continue to monitor the CLI control inerface of SAS switch 2, corresponding continuation performs step 405.
Step 406: add test instruction in the CLI control inerface of target SAS switch.
In an embodiment of the invention, after there is test instruction prompt in the CLI control inerface judging target SAS switch, the test instruction determined is added in the CLI control inerface of range estimation SAS switch in step 403.Such as, after there is test instruction prompt expect " * 0x00000000:0000>* " in the CLI control inerface judging SAS switch 2, by instruction send " $ op_cmd r ", test instruction op_cmd is added in the CLI control inerface of SAS switch 2.
Step 407: target SAS switch, according to the test instruction in its CLI control inerface, is tested server to be measured.
In an embodiment of the invention, after target SAS switch receives test instruction, carry out corresponding test according to this test instruction to server to be measured, target SAS switch often receives a test instruction, and corresponding execution is once tested.Such as, the CLI control inerface of SAS switch 2 often receives a test instruction op_cmd, according to this test instruction, by the link interruption between computing node 3 to computing node 5 and hard disk 6 to hard disk 10, after interruption duration reaches 1s, restart linking between computing node 3 to computing node 5 with hard disk 6 to hard disk 10.
Step 408: judge whether test process completes, if so, performs step 410, otherwise performs step 409.
In an embodiment of the invention, according to the test instruction arranged, judge whether the number of times test server to be measured or time reach setting value, if, corresponding execution step 410, to terminate the test to server to be measured, if not, then perform step 409, to continue to test server to be measured.Such as, judge that SAS switch 2 circulates to the link interruption between computing node 3 to computing node 5 and hard disk 6 to hard disk 10 and whether the number of times restarted reaches 1000 times, if so, perform step 410, otherwise perform step 409.
Step 409: again add test instruction prompt in the CLI control inerface of target SAS switch, and perform step 405.
In an embodiment of the invention, if do not reach default time or number of times to the test of server to be measured, testing and control machine again adds test instruction indications in the CLI control inerface of target SAS switch, and perform step 405, repeat to enable target SAS switch to test server to be measured.Such as, judging that SAS switch 2 is not by the link interruption between computing node 3 to computing node 5 and hard disk 6 to hard disk 10 and after the number of times restarted reaches 1000 times, testing and control machine adds test instruction prompt again by instruction expect " * 0x00000000:0000>* " in the CLI control inerface of SAS switch 2, and performs step 405.
Step 410: the CLI interface exiting target SAS switch, terminates the test to server to be measured.In an embodiment of the invention, when judging to reach preset value to the testing time of server to be measured or time, testing and control exit instruction corresponding to machine input, exits the CLI interface of target SAS switch, terminates the test assignment to server to be measured.Such as, when SAS switch 2 is by the link interruption between computing node 3 to computing node 5 and hard disk 6 to hard disk 10 and after the number of times restarted reaches 1000 times, testing and control machine adds instruction expect " * 0x00000000:0000>* ", send " exit r " sleep1 and expecteof respectively in the CLI control inerface of SAS switch 2, exit the CLI control inerface of SAS switch, after waiting for 1s, exit expect environment, terminate the test to server A.
It should be noted that, in an embodiment of the invention, a test assignment can be comprised in test instruction, be directed to the distinct device in server to be measured and performance index, in test process, be directed to the test instruction comprising multiple test assignment, be directed to each test assignment successively and perform the step shown in Fig. 4 server to be measured is tested, thus realize carrying out multinomial test to server to be measured.
According to such scheme, method, the Apparatus and system of a kind of server test that embodiments of the invention provide, at least have following beneficial effect:
1, in the embodiment of the present invention, according to the IP address and the test instruction that arrange message and arrange SAS switch in server, after determining target SAS switch, according to the CLI control inerface of IP address registration to this target SAS switch, test instruction prompt whether is there is in real-time judge CLI control inerface, if, test instruction is added in CLI control inerface, notification target SAS switch is tested server according to test instruction, after current test completes, test instruction prompt is added in CLI control inerface, like this, by repeating to add test instruction prompt in CLI control inerface, SAS switch is made automatically to repeat instruction to server test, without the need to artificial Repetitive controller operation SAS switch to test server, improve the efficiency of server test.
2, in the embodiment of the present invention, can using the computing node of on server to be measured as testing and control machine, also testing and control machine can be arranged on other server, select flexibly according to actual test case, improve the applicability of the method for this server test.
3, in the embodiment of the present invention, multiple test assignment can be comprised in a test instruction, by once arranging test instruction, multiple SAS switches in server can be operated, to realize testing the different performance index of the distinct device in server and server, after a test assignment completes, perform other test assignments, or perform multiple test assignment simultaneously, under realizing unbroken situation, continuance test is carried out to server, improve the efficiency of server test.
4, in the embodiment of the present invention, the test instruction prompt occurred in the CLI control inerface of SAS switch, input user name instruction and input login password instruction is all realized by expect " * * " statement, the content between two * be only concerned about in expect " * * " statement, corresponding operation is performed there is corresponding key word between two * after, will not be concerned about for the content outside two *, the treatment capacity of character can be reduced like this, improve computing velocity, thus improve the testing efficiency of server.
It should be noted that, in this article, the relational terms of such as first and second and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element " being comprised a 〃 〃 〃 〃 〃 〃 " limited by statement, and be not precluded within process, method, article or the equipment comprising described key element and also there is other same factor.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in the storage medium of embodied on computer readable, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium in.
Finally it should be noted that: the foregoing is only preferred embodiment of the present invention, only for illustration of technical scheme of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.
Claims (10)
1. a method for server test, is characterized in that, comprising:
Receive test parameter is set message is set;
Call expect storehouse, message is set according to described, the IP address of each SAS switch in server and test instruction are arranged;
Determine target SAS switch, and according to described IP address, log in the Command Line Interface CLI control inerface of described target SAS switch;
Described in real-time judge, whether CLI control inerface there is test instruction prompt;
If, described test instruction is added in described CLI control inerface, notify that described target SAS switch is tested described server according to described test instruction, and in described CLI control inerface, add described test instruction prompt after current test terminates;
If not, continuation execution is described judges whether described CLI control inerface occurs test instruction prompt.
2. method according to claim 1, is characterized in that, describedly notifies that described target SAS switch carries out test according to described test instruction to described server and comprises:
Notify that described target SAS switch is according to described test instruction, by the link interruption in described server between computing node and hard disk, and after interruption duration reaches default interval time, restart linking in described server between computing node with hard disk.
3. method according to claim 1, is characterized in that, the Command Line Interface CLI control inerface of the described target SAS switch of described login comprises:
Receive the user name input instruction that described target SAS switch sends, send corresponding login username by Telnet agreement to described target SAS switch;
Receive the password input instruction that described target SAS switch sends, send corresponding login password by Telnet agreement to described target SAS switch, complete the login to described target SAS switch CLI control inerface.
4., according to described method arbitrary in claims 1 to 3, it is characterized in that,
Described message is set according to described, setting is carried out to the IP address of SAS switch and comprises: according to the described multiple secondary ip address arranging message and comprise, respectively the IP address of each SAS switch is arranged;
Describedly determine target SAS switch, and according to described IP address, the Command Line Interface CLI control inerface logging in described target SAS switch comprises: from SAS switch described in each, determine at least one target SAS switch, according to the IP address of each target SAS switch, log in the Command Line Interface CLI control inerface of each target SAS switch successively;
Further, be directed to target SAS switch described in each, perform CLI control inerface described in described real-time judge and whether occur test instruction prompt.
5. a device for server test, is characterized in that, comprising: receiving element, setting unit, login unit, judging unit and performance element;
Described receiving element, for receive test parameter is set message is set;
Described setting unit, for calling expect storehouse, what receive according to described receiving element arranges message, arranges the IP address of each SAS switch in server and test instruction;
Described login unit, for determining target SAS switch, and according to the IP address that described setting unit is arranged, logs in the Command Line Interface CLI control inerface of described target SAS switch;
Described judging unit, for judging whether the CLI control inerface that described login unit logs in occurs test instruction prompt;
Described performance element, for the judged result according to described judging unit, if, test instruction is added in described CLI control inerface, notify that described target SAS switch is tested described server according to described test instruction, and in described CLI control inerface, described test instruction prompt is added after current test terminates, if not, then notify that described judging unit continues to judge whether described CLI control inerface occurs test instruction prompt.
6. device according to claim 5, is characterized in that,
Described performance element, for notifying that described target SAS switch is according to described test instruction, by the link interruption in described server between computing node and hard disk, and after interruption duration reaches default interval time, restart linking in described server between computing node with hard disk.
7. device according to claim 5, is characterized in that,
Described login unit, for receiving the user name input instruction that described target SAS switch sends, sends corresponding login username by Telnet agreement to described target SAS switch;
Described login unit, is further used for the password input instruction receiving the transmission of described target SAS switch, sends corresponding login password, complete the login to described target SAS switch CLI control inerface by Telnet agreement to described target SAS switch.
8., according to described device arbitrary in claim 5 to 7, it is characterized in that,
Described setting unit, for according to the described multiple secondary ip address arranging message and comprise, is arranged the IP address of each SAS switch respectively;
Described login unit, for determining at least one target SAS switch from SAS switch described in each, according to the IP address of each SAS switch, logs in the Command Line Interface CLI control inerface of each target SAS switch successively;
Described judging unit, for being directed to target SAS switch described in each, whether the CLI control inerface of this target SAS switch of real-time judge there is test instruction prompt.
9. a system for server test, is characterized in that, comprising: the device of arbitrary described server test in claim 5 to 8 and comprise the server to be measured of at least one SAS switch;
The device of described server test is connected with each SAS switch in described server to be measured;
In described server to be measured, each described SAS switch is up to be connected with at least one computing node, is descendingly connected with at least one hard disk;
The device of described server test is tested described server to be measured by the CLI control inerface signing in SAS switch in described server to be measured.
10. system according to claim 9, is characterized in that,
The device of described server test is arranged on a computer node of described server to be measured, or, be arranged on other servers.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510848985.8A CN105302682A (en) | 2015-11-26 | 2015-11-26 | Server test method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510848985.8A CN105302682A (en) | 2015-11-26 | 2015-11-26 | Server test method, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105302682A true CN105302682A (en) | 2016-02-03 |
Family
ID=55199973
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510848985.8A Pending CN105302682A (en) | 2015-11-26 | 2015-11-26 | Server test method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105302682A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106445791A (en) * | 2016-10-25 | 2017-02-22 | 广东浪潮大数据研究有限公司 | Method for grabbing SAS Switch register data on SAS Switch whole cabinet |
CN109189344A (en) * | 2018-09-17 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of logical volume management method, system, equipment and computer readable storage medium |
CN109634791A (en) * | 2018-12-03 | 2019-04-16 | 郑州云海信息技术有限公司 | A kind of automated testing method of GPU server |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090307763A1 (en) * | 2008-06-05 | 2009-12-10 | Fiberlink Communications Corporation | Automated Test Management System and Method |
CN103092754A (en) * | 2013-01-07 | 2013-05-08 | 上海斐讯数据通信技术有限公司 | Automatic test method of long distance multi-device condition |
CN103186439A (en) * | 2011-12-27 | 2013-07-03 | 鸿富锦精密工业(深圳)有限公司 | Server test system and server stability test method |
CN104317714A (en) * | 2014-10-29 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Method for automatically testing stability of rack based on expect |
CN105022648A (en) * | 2015-07-23 | 2015-11-04 | 浪潮电子信息产业股份有限公司 | Test method for HCA card performance and pressure test based on expect command |
-
2015
- 2015-11-26 CN CN201510848985.8A patent/CN105302682A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090307763A1 (en) * | 2008-06-05 | 2009-12-10 | Fiberlink Communications Corporation | Automated Test Management System and Method |
CN103186439A (en) * | 2011-12-27 | 2013-07-03 | 鸿富锦精密工业(深圳)有限公司 | Server test system and server stability test method |
CN103092754A (en) * | 2013-01-07 | 2013-05-08 | 上海斐讯数据通信技术有限公司 | Automatic test method of long distance multi-device condition |
CN104317714A (en) * | 2014-10-29 | 2015-01-28 | 浪潮电子信息产业股份有限公司 | Method for automatically testing stability of rack based on expect |
CN105022648A (en) * | 2015-07-23 | 2015-11-04 | 浪潮电子信息产业股份有限公司 | Test method for HCA card performance and pressure test based on expect command |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106445791A (en) * | 2016-10-25 | 2017-02-22 | 广东浪潮大数据研究有限公司 | Method for grabbing SAS Switch register data on SAS Switch whole cabinet |
CN109189344A (en) * | 2018-09-17 | 2019-01-11 | 郑州云海信息技术有限公司 | A kind of logical volume management method, system, equipment and computer readable storage medium |
CN109634791A (en) * | 2018-12-03 | 2019-04-16 | 郑州云海信息技术有限公司 | A kind of automated testing method of GPU server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108600029B (en) | Configuration file updating method and device, terminal equipment and storage medium | |
CN109634728B (en) | Job scheduling method and device, terminal equipment and readable storage medium | |
CN105512029B (en) | A kind of method, server and system for testing intelligent terminal | |
CN105205003A (en) | Automated testing method and device based on clustering system | |
CN109617759A (en) | Block catenary system stability test method, apparatus, equipment and storage medium | |
US9929969B1 (en) | Tenant-based management system and method for distributed computing environments | |
CN112653577A (en) | Network element management method, device and storage medium | |
CN105302682A (en) | Server test method, device and system | |
CN108989153A (en) | A kind of performance test methods and device | |
CN113037545A (en) | Network simulation method, device, equipment and storage medium | |
CN111181800A (en) | Test data processing method and device, electronic equipment and storage medium | |
CN108040117A (en) | Information-pushing method and device | |
CN113986478A (en) | Resource migration strategy determination method and device | |
CN111130917B (en) | Line testing method, device and system | |
CN109697117B (en) | Terminal control method, terminal control device and computer-readable storage medium | |
CN103902429A (en) | Early warning method, sever and system in automated test | |
CN109582666A (en) | Data major key generation method, device, electronic equipment and storage medium | |
CN110708177A (en) | Exception handling method, system and device in distributed system | |
CN109995554A (en) | The control method and cloud dispatch control device of multi-stage data center active-standby switch | |
CN116886490A (en) | Server inspection method and device and computer readable storage medium | |
CN116319492A (en) | Switch testing method and device, storage medium and electronic equipment | |
CN109814911A (en) | Method, apparatus, computer equipment and storage medium for Manage Scripts program | |
CN111669290B (en) | Network element management method, management server and storage medium | |
CN114546779A (en) | Method, device, equipment and medium for acquiring server system logs | |
CN114385498A (en) | Performance test method, system, computer equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160203 |