CN104579844B - Server test method and device - Google Patents

Server test method and device Download PDF

Info

Publication number
CN104579844B
CN104579844B CN201510019481.5A CN201510019481A CN104579844B CN 104579844 B CN104579844 B CN 104579844B CN 201510019481 A CN201510019481 A CN 201510019481A CN 104579844 B CN104579844 B CN 104579844B
Authority
CN
China
Prior art keywords
server
tested
test
tested server
current state
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.)
Active
Application number
CN201510019481.5A
Other languages
Chinese (zh)
Other versions
CN104579844A (en
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 Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing 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 Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510019481.5A priority Critical patent/CN104579844B/en
Publication of CN104579844A publication Critical patent/CN104579844A/en
Application granted granted Critical
Publication of CN104579844B publication Critical patent/CN104579844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The present invention provides a kind of server test method and device.This method, including:Test server determines the current state of the tested server by being tested the first network interface of server, then, the test server is according to the current state of the tested server, remote testing control information is sent to the second network interface of the tested server, to carry out remote testing control to the server.Realize while tested server current state is obtained, remote testing control is carried out to tested server, so as to improve the efficiency that remote testing control is carried out to being tested server.

Description

Server test method and device
Technical field
The present invention relates to computer realm, more particularly to a kind of server test method and device.
Background technology
With the development of information technology, server is used under more and more scenes.
In general, server admin personnel need remote testing control to be arranged on the server in computer room, for example, service Device administrative staff are by the first portal address of server, and remote access sets management module in the server, to check The state of the server, then, server admin personnel obtain the status information and then of server by same network interface First portal address of location, i.e. server indicates that the management module carries out remote testing control, wherein, remote testing control can To be the operation to server switching on and shutting down etc..
However, the prior art is by the inquiry to management module, the information of tested server current state is obtained, so that Cause to carry out the less efficient of remote testing control to being tested server.
The content of the invention
The present invention provides a kind of server test method and device, to solve to carry out remote testing control to server The problem of less efficient.
The first aspect of the invention is to provide a kind of server test method, including:
Test server determines the current state of the tested server by being tested the first network interface of server;
The test server is according to the current state of the tested server, to the second network interface of the tested server Remote testing control information is sent, to carry out remote testing control to the server.
Optionally, the test server determines the current of the tested server by being tested the first network interface of server State, including:
The first network interface from the test server to the tested server send link information, the link information to Indicate to establish connection between the tested server and the test server;
The test server obtains the connection response information that the tested server is sent, the connection response packet Include the information that connection whether is established between the test server and the tested server;
If the connection response information includes establishing the letter of connection between the test server and the tested server Cease and/or connect duration, then the test server determines that the current state of the tested server is open state;
If the connection response information is included between the test server and the tested server without foundation connection Information and/or connection duration, then the test server determine that the current state of the tested server is off-mode;
Optionally, the test server is according to the current state of the tested server, to the tested server Second network interface sends remote testing control information, to carry out remote testing control to the server, including:
The test server is open state according to the current state of the tested server, to the tested server The second network interface send shutdown command;Or
The test server is off-mode according to the current state of the tested server, to the tested server The second network interface send power-on instruction.
Optionally, first portal address includes the tested server network port address of the first IP address instruction, First IP address be interchanger be test server distribution be used for determine the tested server current state IP address;
The tested server network port address that second portal address is indicated including the second IP address, described second IP address is the IP address for being used for remote testing and controlling the tested server that interchanger is the test server distribution.
Optionally, the test server is according to the current state of the tested server, to the tested server Second network interface sends remote testing control information, after carrying out remote testing control to the server, further includes:
Each remote testing control of the test server to the tested server records, and obtains remote testing Control record;
The test server is controlled according to remote testing and recorded, it is determined whether is completed to the long-range of the tested server Testing and control;
If so, then terminate the remote testing control to the tested server;
If it is not, then perform the test server determines described be tested by first network interface of the tested server The current state of server;And according to the current state of the tested server, sent out to the second network interface of the tested server Remote testing control information is sent, to carry out remote testing control to the server.
The second aspect of the invention is to provide a kind of server test device, including:
Determining module, for determining the current state of the tested server by being tested the first network interface of server;
Sending module, for the current state according to the tested server, to the second network interface of the tested server Remote testing control information is sent, to carry out remote testing control to the server.
Optionally, further include:Acquisition module;
The sending module, is additionally operable to send link information, the connection letter to the first network interface of the tested server Breath connects to indicate to establish between the tested server and the test server;
The acquisition module, the connection response information sent for obtaining the tested server, the connection response letter Breath includes whether establishing the information of connection between the test server and the tested server;
The determining module, if including the test server and the tested clothes specifically for the connection response information The information and/or connection duration of connection are established between business device, it is determined that the current state of the tested server is open state; If the connection response information include do not have between the test server and the tested server establish connect information and/ Or connection duration, it is determined that the current state of the tested server is off-mode;
Optionally, the sending module, specifically for being open state according to the current state of the tested server, to Second network interface of the tested server sends shutdown command;Alternatively, it is shutdown according to the current state of the tested server State, power-on instruction is sent to the second network interface of the tested server.
Optionally, first portal address includes the tested server network port address of the first IP address instruction, First IP address be interchanger be test server distribution be used for determine the tested server current state IP address;
The tested server network port address that second portal address is indicated including the second IP address, described second IP address is the IP address for being used for remote testing and controlling the tested server that interchanger is the test server distribution.
Optionally, further include:Logging modle;
The logging modle, records for each remote testing control to the tested server, obtains long-range Testing and control records;Controlled and recorded according to remote testing, it is determined whether complete the remote testing control to the tested server; If so, then terminate the remote testing control to the tested server;If it is not, then perform by the described of the tested server First network interface determines the current state of the tested server;And according to the current state of the tested server, to the quilt The second network interface for surveying server sends remote testing control information, to carry out remote testing control to the server.
Server test method and device provided by the invention.Test server is true by the first network interface for being tested server The current state of the fixed tested server, then, the test server according to the current state of the tested server, to Second network interface of the tested server sends remote testing control information, to carry out remote testing control to the server System.Realize while tested server current state is obtained, remote testing control is carried out to tested server, so as to improve The efficiency of remote testing control is carried out to being tested server.
Brief description of the drawings
Fig. 1 is the flow diagram of one embodiment of server test method of the present invention;
Fig. 2 is the structure diagram of one embodiment of server test device of the present invention;
Fig. 3 is the structure diagram of another embodiment of server test device of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art All other embodiments obtained without making creative work, belong to the scope of protection of the invention.
When server test method provided in an embodiment of the present invention can be applied to carry out remote testing to server.This reality Applying the server test device of example offer can be realized by the way of software and/or hardware.Below to the present embodiment provides Server test method and device be described in detail.
Fig. 1 is the flow diagram of one embodiment of server test method of the present invention, and the executive agent of the present embodiment is clothes Business device test device, as shown in Figure 1, the server test method, including:
Step 101, test server determine the current shape of the tested server by being tested the first network interface of server State.
In the present embodiment, test server is the server that administrative staff can directly operate, and tested server is to set The server in computer room is put, i.e. test server can be with the server of remote control.
Need what is illustrated, the current state of the tested server can include:The tested server is currently open state, Alternatively, the tested server is currently off-mode.The specific letter of tested server current state is not limited in the present embodiment Breath, can be any status information determined by those skilled in the art.
For example, the test server sends link information, the company to the first network interface of the tested server Information is connect to indicate to establish connection between the tested server and the test server;
The test server obtains the connection response information that the tested server is sent, the connection response packet Include the information that connection whether is established between the test server and the tested server;
If the connection response information includes establishing the letter of connection between the test server and the tested server Cease and/or connect duration, then the test server determines that the current state of the tested server is open state;It is preferred that , which can include the information that connection is established between test server and the tested server, Yi Jilian The duration connect, test server determine that currently tested server is in stable start process according to connection duration.
If the connection response information is included between the test server and the tested server without foundation connection Information and/or connection duration, then the test server determine that the current state of the tested server is off-mode.
Step 102, test server are according to the current state of the tested server, to the second of the tested server Network interface sends remote testing control information, to carry out remote testing control to the server.
For example, the test server is open state according to the current state of the tested server, to described Second network interface of tested server sends shutdown command;Alternatively,
The test server is off-mode according to the current state of the tested server, to the tested server The second network interface send power-on instruction.
In the present embodiment, test server determines working as the tested server by being tested the first network interface of server Preceding state, then, the test server is according to the current state of the tested server, to the second of the tested server Network interface sends remote testing control information, to carry out remote testing control to the server.Realize and obtaining tested clothes While device current state of being engaged in, remote testing control is carried out to tested server, so as to improve remote to tested server progress The efficiency of journey testing and control.
It should be noted that first portal address includes the tested server network interface of the first IP address instruction Address, first IP address be interchanger be test server distribution be used for determine that the tested server is current The IP address of state;
The tested server network port address that second portal address is indicated including the second IP address, described second IP address is the IP address for being used for remote testing and controlling the tested server that interchanger is the test server distribution.
On the basis of above-described embodiment, the test server is according to the current state of the tested server, to institute The second network interface for stating tested server sends remote testing control information, it is controlled to carry out remote testing to the server Afterwards, can also include:
Each remote testing control of the test server to the tested server records, and obtains remote testing Control record;
The test server is controlled according to remote testing and recorded, it is determined whether is completed to the long-range of the tested server Testing and control;
If so, then terminate the remote testing control to the tested server;
If it is not, then perform the test server determines described be tested by first network interface of the tested server The current state of server;And according to the current state of the tested server, sent out to the second network interface of the tested server Remote testing control information is sent, to carry out remote testing control to the server.
Fig. 2 is the structure diagram of one embodiment of server test device of the present invention, as shown in Fig. 2, the server test Device, including:Determining module 21 and sending module 22.Wherein,
Determining module 21, for determining the current state of the tested server by being tested the first network interface of server;
Sending module 22, for the current state according to the tested server, to the second net of the tested server Mouth sends remote testing control information, to carry out remote testing control to the server.
In the present embodiment, test server determines working as the tested server by being tested the first network interface of server Preceding state, then, the test server is according to the current state of the tested server, to the second of the tested server Network interface sends remote testing control information, to carry out remote testing control to the server.Realize and obtaining tested clothes While device current state of being engaged in, remote testing control is carried out to tested server, so as to improve remote to tested server progress The efficiency of journey testing and control.
Fig. 3 is the structure diagram of another embodiment of server test device of the present invention, as shown in figure 3, in above-mentioned implementation On the basis of example, the device, can also include:Acquisition module 23;
The sending module 22, is additionally operable to send link information, the connection to the first network interface of the tested server Information connects to indicate to establish between the tested server and the test server;
The acquisition module 23, the connection response information sent for obtaining the tested server, the connection response Information includes the information that connection whether is established between the test server and the tested server;
The determining module 21, if including the test server and described tested specifically for the connection response information The information and/or connection duration of connection are established between server, it is determined that the current state of the tested server is start shape State;If the connection response information includes not having to establish the information connected between the test server and the tested server And/or connection duration, it is determined that the current state of the tested server is off-mode;
Further, on the basis of above-described embodiment, sending module 22, specifically for according to the tested server Current state is open state, and shutdown command is sent to the second network interface of the tested server;Alternatively, according to the tested clothes The current state of business device is off-mode, and power-on instruction is sent to the second network interface of the tested server.
It should be noted that first portal address includes the tested server network interface of the first IP address instruction Address, first IP address be interchanger be test server distribution be used for determine that the tested server is current The IP address of state;
The tested server network port address that second portal address is indicated including the second IP address, described second IP address is the IP address for being used for remote testing and controlling the tested server that interchanger is the test server distribution.
Optionally, on the basis of above-described embodiment, the device, can also include:Logging modle 24;
The logging modle 24, records for each remote testing control to the tested server, obtains remote Journey testing and control records;Controlled and recorded according to remote testing, it is determined whether complete the remote testing control to the tested server System;If so, then terminate the remote testing control to the tested server;If it is not, then perform by the tested server First network interface determines the current state of the tested server;And according to the current state of the tested server, to institute The second network interface for stating tested server sends remote testing control information, to carry out remote testing control to the server.
In the present embodiment, realize while tested server current state is obtained, tested server is carried out remote Journey testing and control, so as to improve the efficiency that remote testing control is carried out to being tested server.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of programmed instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:ROM, RAM, magnetic disc or Person's CD etc. is various can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to Can so modify to the technical solution described in foregoing embodiments, either to which part or all technical characteristic into Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from various embodiments of the present invention technology The scope of scheme.

Claims (8)

  1. A kind of 1. server test method, it is characterised in that including:
    Test server determines the current state of the tested server by being tested the first network interface of server;
    The test server is sent according to the current state of the tested server to the second network interface of the tested server Remote testing control information, to carry out remote testing control to the server;
    The test server is sent according to the current state of the tested server to the second network interface of the tested server Remote testing control information, to carry out remote testing control to the server, including:
    The test server is open state according to the current state of the tested server, to the of the tested server Two network interfaces send shutdown command;Alternatively,
    The test server is off-mode according to the current state of the tested server, to the of the tested server Two network interfaces send power-on instruction.
  2. 2. according to the method described in claim 1, it is characterized in that, the first net that the test server passes through tested server Mouth determines the current state of the tested server, including:
    The test server sends link information to the first network interface of the tested server, and the link information is indicating Connection is established between the tested server and the test server;
    The test server obtains the connection response information that the tested server is sent, and the connection response information includes institute State the information that connection whether is established between test server and the tested server;
    If the connection response information include established between the test server and the tested server connection information and/ Or connecting duration, then the test server determines that the current state of the tested server is open state;
    If the connection response information includes not having to establish the letter connected between the test server and the tested server Cease and/or connect duration, then the test server determines that the current state of the tested server is off-mode.
  3. 3. method according to claim 1 or 2, it is characterised in that first portal address refers to including the first IP address The tested server network port address shown, first IP address are that interchanger is being used for for the test server distribution Determine the IP address of the tested server current state;
    The tested server network port address that second portal address is indicated including the second IP address, the 2nd IP Location is the IP address for being used for remote testing and controlling the tested server that interchanger is the test server distribution.
  4. 4. the according to the method described in claim 3, it is characterized in that, test server working as according to the tested server Preceding state, remote testing control information is sent to the second network interface of the tested server, remote to be carried out to the server After journey testing and control, further include:
    Each remote testing control of the test server to the tested server records, and obtains remote testing control Record;
    The test server is controlled according to remote testing and recorded, it is determined whether completes the remote testing to the tested server Control;
    If so, then terminate the remote testing control to the tested server;
    If it is not, then perform the test server determines the tested service by first network interface of the tested server The current state of device;And according to the current state of the tested server, sent to the second network interface of the tested server remote Journey testing and control information, to carry out remote testing control to the server.
  5. A kind of 5. server test device, it is characterised in that including:
    Determining module, for determining the current state of the tested server by being tested the first network interface of server;
    Sending module, for the current state according to the tested server, sends to the second network interface of the tested server Remote testing control information, to carry out remote testing control to the server;
    The sending module, specifically for being open state according to the current state of the tested server, to the tested clothes Second network interface of business device sends shutdown command;Alternatively, be off-mode according to the current state of the tested server, to described Second network interface of tested server sends power-on instruction.
  6. 6. device according to claim 5, it is characterised in that further include:Acquisition module;
    The sending module, is additionally operable to send link information to the first network interface of the tested server, the link information is used To indicate to establish connection between the tested server and the test server;
    The acquisition module, the connection response information sent for obtaining the tested server, the connection response packet Include the information that connection whether is established between the test server and the tested server;
    The determining module, if including the test server and the tested server specifically for the connection response information Between establish connection information and/or connection duration, it is determined that the current state of the tested server is open state;If institute Stating connection response information includes not having to establish the information connected and/or company between the test server and the tested server Connect duration, it is determined that the current state of the tested server is off-mode.
  7. 7. the device according to claim 5 or 6, it is characterised in that first portal address refers to including the first IP address The tested server network port address shown, first IP address are that interchanger is being used for for the test server distribution Determine the IP address of the tested server current state;
    The tested server network port address that second portal address is indicated including the second IP address, the 2nd IP Location is the IP address for being used for remote testing and controlling the tested server that interchanger is the test server distribution.
  8. 8. device according to claim 7, it is characterised in that further include:Logging modle;
    The logging modle, records for each remote testing control to the tested server, obtains remote testing Control record;Controlled and recorded according to remote testing, it is determined whether complete the remote testing control to the tested server;If It is the remote testing control then terminated to the tested server;If it is not, then perform described the by the tested server One network interface determines the current state of the tested server;And according to the current state of the tested server, it is tested to described Second network interface of server sends remote testing control information, to carry out remote testing control to the server.
CN201510019481.5A 2015-01-14 2015-01-14 Server test method and device Active CN104579844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510019481.5A CN104579844B (en) 2015-01-14 2015-01-14 Server test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510019481.5A CN104579844B (en) 2015-01-14 2015-01-14 Server test method and device

Publications (2)

Publication Number Publication Date
CN104579844A CN104579844A (en) 2015-04-29
CN104579844B true CN104579844B (en) 2018-05-08

Family

ID=53095108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510019481.5A Active CN104579844B (en) 2015-01-14 2015-01-14 Server test method and device

Country Status (1)

Country Link
CN (1) CN104579844B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181641B (en) * 2017-05-11 2020-05-26 苏州浪潮智能科技有限公司 Citrix system authentication test method and system for server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800669A (en) * 2009-02-06 2010-08-11 英业达股份有限公司 Network port test system and method
CN102314388A (en) * 2010-07-07 2012-01-11 英业达股份有限公司 Method for testing server supporting intelligent platform management interface

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040206818A1 (en) * 2001-12-03 2004-10-21 Loda David C. Engine-mounted microserver

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101800669A (en) * 2009-02-06 2010-08-11 英业达股份有限公司 Network port test system and method
CN102314388A (en) * 2010-07-07 2012-01-11 英业达股份有限公司 Method for testing server supporting intelligent platform management interface

Also Published As

Publication number Publication date
CN104579844A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN103455413B (en) A kind of communicating terminal interaction scenarios test data processing method, device and system
CN102497427A (en) Method and device for realizing data acquisition services of renewable energy source monitoring system
CN107507649A (en) A kind of full-automatic test system and its method suitable for solid state hard disc
CN107066377A (en) Page elements acquisition methods and terminal device based on android system
CN105607902A (en) Component model based system visualization design and code generation system and method
CN101459927A (en) Method for service test by analogue mobile phone terminal
CN108650501A (en) A kind of method, apparatus and electronic equipment of test stability of set-top box
CN105786693A (en) Self-testing execution system and method as well as mobile terminal
CN112738230A (en) Automatic network gate testing system and working method thereof
CN104579844B (en) Server test method and device
CN109992504A (en) A kind of server Redfish test method, system, terminal and storage medium
CN106094601A (en) The control method of a kind of building intelligent system and building intelligent system
CN107885850A (en) A kind of localization method and device of banking class problem
CN109783026A (en) A kind of method and device of automatic configuration server RAID
CN204392274U (en) A kind of intelligent substation test system
CN109828826A (en) A kind of polling method of Task Progress, apparatus and system
CN109600278A (en) A kind of data communications method, device, equipment and medium
CN106021046A (en) Hard disk performance comparison method, device and server
CN102854861B (en) Method and device for collecting and analyzing data of wind generating set
CN106940648A (en) A kind of method, equipment and the test system of automatic loading test item
CN108696713A (en) Safety detecting method, device and the test equipment of code stream
CN109817273B (en) NAND performance test method and system
CN108805512A (en) A kind of attendance information recording method and its equipment, system
CN108768807A (en) A kind of method and device of cloud platform actual situation interconnection
CN109558327A (en) A kind of wiring method, system and the associated component of BMC log

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant