CN104579844A - Server testing method and device - Google Patents

Server testing method and device Download PDF

Info

Publication number
CN104579844A
CN104579844A CN201510019481.5A CN201510019481A CN104579844A CN 104579844 A CN104579844 A CN 104579844A CN 201510019481 A CN201510019481 A CN 201510019481A CN 104579844 A CN104579844 A CN 104579844A
Authority
CN
China
Prior art keywords
server
testing
tested server
described tested
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.)
Granted
Application number
CN201510019481.5A
Other languages
Chinese (zh)
Other versions
CN104579844B (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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a server testing method and device. The method includes the steps that a testing server determines the current state of a tested server through a first network interface of the tested server, and then the testing server sends remote testing control information to a second network interface of the tested server according to the current state of the tested server so that remote testing control can be conducted on the tested server. Remote testing control is conducted on the tested server while the current state of the tested server is obtained, and therefore efficiency of remote testing control over the tested server is improved.

Description

Server test method and device
Technical field
The present invention relates to computer realm, particularly relate to a kind of server test method and device.
Background technology
Along with the development of information technology, under server is used in increasing scene.
Usually, server admin personnel need remote testing to control the server be arranged in machine room, for example, server admin personnel are by the first portal address of server, remote access arranges administration module in the server, in order to check the state of this server, then, after server admin personnel obtain the state information of server, again by same portal address, namely the first portal address of server indicates this administration module to carry out remote testing control, and wherein, this remote testing controls can be the operation to server switching on and shutting down etc.
But prior art is by the inquiry to administration module, obtain the information of tested server current state, thus cause the efficiency of tested server being carried out to remote testing control lower.
Summary of the invention
The invention provides a kind of server test method and device, in order to solve, the lower problem of the efficiency of remote testing control is carried out to server.
First aspect of the present invention is to provide a kind of server test method, comprising:
Testing server determines the current state of described tested server by the first network interface of tested server;
Described testing server is according to the current state of described tested server, and the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server.
Optionally, described testing server determines the current state of described tested server by the first network interface of tested server, comprising:
Described testing server sends link information to the first network interface of described tested server, and described link information connects in order to indicate between described tested server and described testing server;
Described testing server obtains the connection response information that described tested server sends, and described connection response information comprises the information whether connected between described testing server and described tested server;
If described connection response information comprises the information and/or connection duration that connect between described testing server and described tested server, then described testing server determines that the current state of described tested server is open state;
If described connection response information comprises the information and/or connection duration that do not connect between described testing server and described tested server, then described testing server determines that the current state of described tested server is off-mode;
Optionally, described testing server is according to the current state of described tested server, and the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server, comprising:
Described testing server is open state according to the current state of described tested server, and the second network interface to described tested server sends shutdown command; Or,
Described testing server is off-mode according to the current state of described tested server, and the second network interface to described tested server sends start-up command.
Optionally, described first portal address comprises the described tested server portal address of an IP address instruction, and a described IP address is switch is the IP address for determining described tested server current state that described testing server distributes;
Described second portal address comprises the described tested server portal address of the 2nd IP address instruction, and described 2nd IP address is switch is the IP address controlling described tested server for remote testing that described testing server distributes.
Optionally, described testing server is according to the current state of described tested server, and the second network interface to described tested server sends remote testing control information, after carrying out remote testing control to described server, also comprises:
The each remote testing of described testing server to described tested server controls to carry out record, obtains remote testing and controls record;
Described testing server controls record according to remote testing, has determined whether to control the remote testing of described tested server;
If so, then terminate to control the remote testing of described tested server;
If not, then described testing server determines described tested server current state by described first network interface of described tested server is performed; And according to the current state of described tested server, the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server.
Second aspect of the present invention is to provide a kind of server test device, comprising:
Determination module, for determining the current state of described tested server by the first network interface of tested server;
Sending module, for the current state according to described tested server, the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server.
Optionally, also comprise: acquisition module;
Described sending module, also send link information for the first network interface to described tested server, described link information connects in order to indicate between described tested server and described testing server;
Described acquisition module, for obtaining the connection response information that described tested server sends, described connection response information comprises the information whether connected between described testing server and described tested server;
Described determination module, if comprise the information and/or connection duration that connect between described testing server and described tested server specifically for described connection response information, then determines that the current state of described tested server is open state; If described connection response information comprises the information and/or connection duration that do not connect between described testing server and described tested server, then determine that the current state of described tested server is off-mode;
Optionally, described sending module, specifically for being open state according to the current state of described tested server, the second network interface to described tested server sends shutdown command; Or be off-mode according to the current state of described tested server, the second network interface to described tested server sends start-up command.
Optionally, described first portal address comprises the described tested server portal address of an IP address instruction, and a described IP address is switch is the IP address for determining described tested server current state that described testing server distributes;
Described second portal address comprises the described tested server portal address of the 2nd IP address instruction, and described 2nd IP address is switch is the IP address controlling described tested server for remote testing that described testing server distributes.
Optionally, also comprise: logging modle;
Described logging modle, for controlling to carry out record to each remote testing of described tested server, obtaining remote testing and controlling record; Control record according to remote testing, determined whether to control the remote testing of described tested server; If so, then terminate to control the remote testing of described tested server; If not, then the current state being determined described tested server by described first network interface of described tested server is performed; And according to the current state of described tested server, the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server.
Server test method provided by the invention and device.Testing server determines the current state of described tested server by the first network interface of tested server, then, described testing server is according to the current state of described tested server, the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server.Achieve while the tested server current state of acquisition, remote testing control is carried out to tested server, thus improves the efficiency of tested server being carried out to remote testing control.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of server test method one embodiment of the present invention;
Fig. 2 is the structural representation of server test device one embodiment of the present invention;
Fig. 3 is the structural representation of another embodiment of server test device of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is 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.
When the server test method that the embodiment of the present invention provides can be applied to and carry out remote testing to server.The server test device that the present embodiment provides can adopt the mode of software and/or hardware to realize.The server test method provided the present embodiment below and device are described in detail.
Fig. 1 is the schematic flow sheet of server test method one embodiment of the present invention, and the executive agent of the present embodiment is server test device, and as shown in Figure 1, this server test method, comprising:
Step 101, testing server determine the current state of described tested server by the first network interface of tested server.
In the present embodiment, testing server is that administrative staff can the server of direct control, and tested server is the server being arranged on machine room, and namely testing server can the server of Long-distance Control.
Needs illustrate, the current state of this tested server can comprise: this tested server is current is open state, or this tested server is current is off-mode.Not limiting the specifying information of tested server current state in the present embodiment, can be the determined any state informations of those skilled in the art.
For example, described testing server sends link information to the first network interface of described tested server, and described link information connects in order to indicate between described tested server and described testing server;
Described testing server obtains the connection response information that described tested server sends, and described connection response information comprises the information whether connected between described testing server and described tested server;
If described connection response information comprises the information and/or connection duration that connect between described testing server and described tested server, then described testing server determines that the current state of described tested server is open state; Preferably, this connection response information can comprise the information connected between testing server and described tested server, and the duration connected, and testing server, according to connection duration, determines that current tested server is in stable start process.
If described connection response information comprises the information and/or connection duration that do not connect between described testing server and described tested server, then described testing server determines that the current state of described tested server is off-mode.
Step 102, testing server are according to the current state of described tested server, and the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server.
For example, described testing server is open state according to the current state of described tested server, and the second network interface to described tested server sends shutdown command; Or,
Described testing server is off-mode according to the current state of described tested server, and the second network interface to described tested server sends start-up command.
In the present embodiment, testing server determines the current state of described tested server by the first network interface of tested server, then, described testing server is according to the current state of described tested server, the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server.Achieve while the tested server current state of acquisition, remote testing control is carried out to tested server, thus improves the efficiency of tested server being carried out to remote testing control.
It should be noted that, described first portal address comprises the described tested server portal address of an IP address instruction, and a described IP address is switch is the IP address for determining described tested server current state that described testing server distributes;
Described second portal address comprises the described tested server portal address of the 2nd IP address instruction, and described 2nd IP address is switch is the IP address controlling described tested server for remote testing that described testing server distributes.
On the basis of above-described embodiment, described testing server is according to the current state of described tested server, the second network interface to described tested server sends remote testing control information, after carrying out remote testing control to described server, can also comprise:
The each remote testing of described testing server to described tested server controls to carry out record, obtains remote testing and controls record;
Described testing server controls record according to remote testing, has determined whether to control the remote testing of described tested server;
If so, then terminate to control the remote testing of described tested server;
If not, then described testing server determines described tested server current state by described first network interface of described tested server is performed; And according to the current state of described tested server, the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server.
Fig. 2 is the structural representation of server test device one embodiment of the present invention, and as shown in Figure 2, this server test device, comprising: determination module 21 and sending module 22.Wherein,
Determination module 21, for determining the current state of described tested server by the first network interface of tested server;
Sending module 22, for the current state according to described tested server, the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server.
In the present embodiment, testing server determines the current state of described tested server by the first network interface of tested server, then, described testing server is according to the current state of described tested server, the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server.Achieve while the tested server current state of acquisition, remote testing control is carried out to tested server, thus improves the efficiency of tested server being carried out to remote testing control.
Fig. 3 is the structural representation of another embodiment of server test device of the present invention, and as shown in Figure 3, on the basis of above-described embodiment, this device, can also comprise: acquisition module 23;
Described sending module 22, also send link information for the first network interface to described tested server, described link information connects in order to indicate between described tested server and described testing server;
Described acquisition module 23, for obtaining the connection response information that described tested server sends, described connection response information comprises the information whether connected between described testing server and described tested server;
Described determination module 21, if comprise the information and/or connection duration that connect between described testing server and described tested server specifically for described connection response information, then determines that the current state of described tested server is open state; If described connection response information comprises the information and/or connection duration that do not connect between described testing server and described tested server, then determine that the current state of described tested server is off-mode;
Further, on the basis of above-described embodiment, sending module 22, specifically for being open state according to the current state of described tested server, the second network interface to described tested server sends shutdown command; Or be off-mode according to the current state of described tested server, the second network interface to described tested server sends start-up command.
It should be noted that, described first portal address comprises the described tested server portal address of an IP address instruction, and a described IP address is switch is the IP address for determining described tested server current state that described testing server distributes;
Described second portal address comprises the described tested server portal address of the 2nd IP address instruction, and described 2nd IP address is switch is the IP address controlling described tested server for remote testing that described testing server distributes.
Optionally, on the basis of above-described embodiment, this device, can also comprise: logging modle 24;
Described logging modle 24, for controlling to carry out record to each remote testing of described tested server, obtaining remote testing and controlling record; Control record according to remote testing, determined whether to control the remote testing of described tested server; If so, then terminate to control the remote testing of described tested server; If not, then the current state being determined described tested server by described first network interface of described tested server is performed; And according to the current state of described tested server, the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server.
In the present embodiment, achieve while the tested server current state of acquisition, remote testing control is carried out to tested server, thus improves the efficiency of tested server being carried out to remote testing control.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a server test method, is characterized in that, comprising:
Testing server determines the current state of described tested server by the first network interface of tested server;
Described testing server is according to the current state of described tested server, and the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server.
2. method according to claim 1, is characterized in that, described testing server determines the current state of described tested server by the first network interface of tested server, comprising:
Described testing server sends link information to the first network interface of described tested server, and described link information connects in order to indicate between described tested server and described testing server;
Described testing server obtains the connection response information that described tested server sends, and described connection response information comprises the information whether connected between described testing server and described tested server;
If described connection response information comprises the information and/or connection duration that connect between described testing server and described tested server, then described testing server determines that the current state of described tested server is open state;
If described connection response information comprises the information and/or connection duration that do not connect between described testing server and described tested server, then described testing server determines that the current state of described tested server is off-mode.
3. method according to claim 2, it is characterized in that, described testing server is according to the current state of described tested server, and the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server, comprising:
Described testing server is open state according to the current state of described tested server, and the second network interface to described tested server sends shutdown command; Or,
Described testing server is off-mode according to the current state of described tested server, and the second network interface to described tested server sends start-up command.
4. the method according to any one of claim 1-3, it is characterized in that, described first portal address comprises the described tested server portal address of an IP address instruction, and a described IP address is switch is the IP address for determining described tested server current state that described testing server distributes;
Described second portal address comprises the described tested server portal address of the 2nd IP address instruction, and described 2nd IP address is switch is the IP address controlling described tested server for remote testing that described testing server distributes.
5. method according to claim 4, it is characterized in that, described testing server is according to the current state of described tested server, and the second network interface to described tested server sends remote testing control information, after remote testing control is carried out to described server, also comprise:
The each remote testing of described testing server to described tested server controls to carry out record, obtains remote testing and controls record;
Described testing server controls record according to remote testing, has determined whether to control the remote testing of described tested server;
If so, then terminate to control the remote testing of described tested server;
If not, then described testing server determines described tested server current state by described first network interface of described tested server is performed; And according to the current state of described tested server, the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server.
6. a server test device, is characterized in that, comprising:
Determination module, for determining the current state of described tested server by the first network interface of tested server;
Sending module, for the current state according to described tested server, the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described server.
7. device according to claim 6, is characterized in that, also comprises: acquisition module;
Described sending module, also send link information for the first network interface to described tested server, described link information connects in order to indicate between described tested server and described testing server;
Described acquisition module, for obtaining the connection response information that described tested server sends, described connection response information comprises the information whether connected between described testing server and described tested server;
Described determination module, if comprise the information and/or connection duration that connect between described testing server and described tested server specifically for described connection response information, then determines that the current state of described tested server is open state; If described connection response information comprises the information and/or connection duration that do not connect between described testing server and described tested server, then determine that the current state of described tested server is off-mode.
8. device according to claim 7, is characterized in that, described sending module, and specifically for being open state according to the current state of described tested server, the second network interface to described tested server sends shutdown command; Or be off-mode according to the current state of described tested server, the second network interface to described tested server sends start-up command.
9. the device according to any one of claim 6-8, it is characterized in that, described first portal address comprises the described tested server portal address of an IP address instruction, and a described IP address is switch is the IP address for determining described tested server current state that described testing server distributes;
Described second portal address comprises the described tested server portal address of the 2nd IP address instruction, and described 2nd IP address is switch is the IP address controlling described tested server for remote testing that described testing server distributes.
10. device according to claim 9, is characterized in that, also comprises: logging modle;
Described logging modle, for controlling to carry out record to each remote testing of described tested server, obtaining remote testing and controlling record; Control record according to remote testing, determined whether to control the remote testing of described tested server; If so, then terminate to control the remote testing of described tested server; If not, then the current state being determined described tested server by described first network interface of described tested server is performed; And according to the current state of described tested server, the second network interface to described tested server sends remote testing control information, in order to carry out remote testing control to described 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 true CN104579844A (en) 2015-04-29
CN104579844B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181641A (en) * 2017-05-11 2017-09-19 郑州云海信息技术有限公司 A kind of Citrix system authentications method of testing and system for server

Citations (3)

* 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
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

Patent Citations (3)

* 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
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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107181641A (en) * 2017-05-11 2017-09-19 郑州云海信息技术有限公司 A kind of Citrix system authentications method of testing and system for server
CN107181641B (en) * 2017-05-11 2020-05-26 苏州浪潮智能科技有限公司 Citrix system authentication test method and system for server

Also Published As

Publication number Publication date
CN104579844B (en) 2018-05-08

Similar Documents

Publication Publication Date Title
CN104658611A (en) Method and system for testing abnormal power failure of solid-state hard disk
CN103064717B (en) A kind of apparatus and method of parallel installation of software for cluster system
CN102413233B (en) Contact information expansion processing method and device of mobile terminal
CN105338391A (en) Intelligent television control method and mobile terminal
CN104063284B (en) The method and apparatus running application program
CN105718284A (en) Application starting method and apparatus for communication terminal
CN108920250A (en) The method and device of Application Container
US20120311385A1 (en) Control server and method for switching running of test programs stored in multiple storage mediums of test server
CN110868763A (en) Method, device and system for establishing Bluetooth connection
CN105657781A (en) Method and device for accessing WiFi network
CN103116545B (en) The upgrade detection method of intelligent terminal and system
CN109195157A (en) application management method, device and terminal
CN111324480A (en) Large host transaction fault positioning system and method
CN102256244B (en) Mobile terminal management method, management server, mobile terminal and management system
CN104579844A (en) Server testing method and device
CN104598243A (en) Multi-user application program management method and device applied to intelligent terminal
CN111399972B (en) Method and device for capturing packets by virtual machine and computer readable storage medium
CN104616682B (en) Blu-ray player method of testing and smart machine, Blu-ray player
CN105848133A (en) Method and device for configuring access point name
CN109412856B (en) Network equipment brand non-difference management method and system
CN108363375B (en) Method and system for realizing automatic test of motor controller
CN103458030B (en) welding machine control program upgrading system and upgrading method
CN101971562B (en) Method, device and system for controlling automatic running process performance
CN115617589A (en) Chip debugging method
CN104601679A (en) Equipment software testing method, mobile terminal and server

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