CN108900372B - Test system and construction method of remote operation server system - Google Patents

Test system and construction method of remote operation server system Download PDF

Info

Publication number
CN108900372B
CN108900372B CN201810616544.9A CN201810616544A CN108900372B CN 108900372 B CN108900372 B CN 108900372B CN 201810616544 A CN201810616544 A CN 201810616544A CN 108900372 B CN108900372 B CN 108900372B
Authority
CN
China
Prior art keywords
control end
server
test
end server
module
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
CN201810616544.9A
Other languages
Chinese (zh)
Other versions
CN108900372A (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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810616544.9A priority Critical patent/CN108900372B/en
Publication of CN108900372A publication Critical patent/CN108900372A/en
Application granted granted Critical
Publication of CN108900372B publication Critical patent/CN108900372B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a test system and a construction method of a remote operation server system, which comprises the following steps: the control end is in communication connection with the testing machine through a network cable; the control end comprises a remote operation setting unit, and the remote operation setting unit is used for setting the control end; XShell software is installed at the control end, and is linked with the IP address of the tester to remotely control the tester. The remote operation setting unit comprises a detection module, a network port configuration module and a file configuration module; the detection module is used for detecting the state of the network port of the control end server; the server is ensured to be matched with the network card and can normally identify the network port; the network port configuration module is used for configuring configuration information of a network port of the control end server; and the file configuration module is used for configuring the access control file.

Description

Test system and construction method of remote operation server system
Technical Field
The invention belongs to the technical field of server testing, and particularly relates to a testing system and a building method for a remote operation server system.
Background
With the rise of big data and internet application, the application range of the server is wider and wider, the server has high requirements on performance and stability, the compatibility of parts of the server needs to be tested no matter in the research and development stage or the production stage, the management cost for carrying out maintenance operation is very high, related personnel are increased, and accordingly all aspects are increased.
In the server performance testing work, although the performance tests involved have different directions, the possibility that the same test needs to be done repeatedly for one performance testing laboratory is very high. In the equipment test or verification, the used test time is different according to the equipment to be tested and different test items, and in the long-time test, if the test fault such as downtime or abnormal test parameters occurs in the test process, the equipment needs to be powered on again or the parameters need to be set. In the prior art, manual operation is usually performed, which not only wastes testing time, but also may cause more serious consequences because long-time faults are not repaired. However, because of limited manpower of engineers, the testing problem and the business processing cannot be performed in time due to the limitation of regions.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a test system and a construction method of a remote operation server system, so as to solve the technical problems.
The technical scheme of the invention is as follows:
a test system for remotely operating a server system, comprising: the system comprises a control end server, a remote setting server, a network connection module and a testing machine, wherein the control end server and the remote setting server testing machine are respectively in communication connection with the network connection module; the control end server and the testing machine form a network through the network connection module;
the remote setting server is used for carrying out remote operation setting on the control end server;
and an XShell module is arranged in the control end server and used for linking the IP address of the test machine and remotely controlling the test machine.
Furthermore, the remote setting server is provided with a detection module, a network port configuration module and a file configuration module;
the detection module is used for detecting the state of the network port of the control end server; the control end server is ensured to be matched with the network card and can normally identify the network port;
the network port configuration module is used for configuring configuration information of a network port of the control end server; the control end server can automatically acquire the IP address only by entering the OS after being restarted or powered off every time. The IP address does not need to be manually acquired after the computer is started up every time artificially;
the file configuration module is used for configuring the access control file; the linux system that the tester can normally access the server is avoided.
The remote setting server further comprises a positioning module, wherein the positioning module is used for positioning a network port connected with a network cable, and the network port configuration module is used for configuring information for the positioned network port so as to further ensure whether the network port state is normal; and the network port configuration module configures the information for the positioned network port.
Furthermore, the remote setting server is also provided with a firewall control module, and the firewall control module is used for controlling the control end server to close the firewall, so that the network of a tester during remote testing can be further ensured to be normal and stable.
Furthermore, the remote setting server is also provided with a restarting control module, and the restarting control module is used for restarting the control terminal server.
Further, the testing machine is also used for sending a test file information writing instruction to the control end server and marking the IP address of the testing machine;
further, the control end server is also used for receiving a test file information writing instruction which is sent by the test machine and has the test machine IP address, and receiving a test code sent by the test machine; and after the control end server receives the test code within the set time, feeding back test code receiving confirmation information to the client to be tested.
Furthermore, the system comprises a plurality of testing machines, and each testing machine is in communication connection with the control end server through a network connection module; an XShell module in a control end server is linked with an IP address of a testing machine, and the IP address of the testing machine is marked for remotely controlling the testing machine;
and attaching the IP address of the tester to the test result of the remote control tester, and configuring the remote test result with the IP address of the tester into a test table.
The technical scheme of the invention also provides a method for constructing the test system of the remote operation server system, which comprises the following steps:
the control end server is in communication connection with the testing machine;
the remote setting server carries out remote operation setting on the control end server;
and an XShell module of the control end server is linked with the IP address of the tester to remotely control the tester.
Further, the step of remotely setting the server to remotely operate and set the control end server includes the following steps:
detecting the state of a network port of a server at a control end; the server is ensured to be matched with the network card and can normally identify the network port;
positioning a network port connected with a network cable, and configuring information for the positioned network port;
the configuration of the access control file is performed.
Further, before the step of configuring the access control file, the method further comprises the steps of:
and controlling to close the firewall of the control end server.
Further, the step of configuring the access control file further comprises the following steps:
restarting a control end server, and after entering a system, sending a test file information writing instruction to the control end server by a test machine and marking an IP address of the test machine;
the control end server receives a test file information writing instruction which is sent by a test machine and has a test machine IP address, and receives a test code sent by the test machine; and after the control end server receives the test code within the set time, feeding back test code receiving confirmation information to the testing machine to determine that the network connection is normal.
According to the technical scheme, the invention has the following advantages: the invention can establish the environment of the remote control test machine system based on the Linux system, thereby realizing the remote operation of the test machine system. The system can enable engineers not to be affected by regional factors to timely process the problems, tests and business processing of clients, and further improve the working efficiency.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
FIG. 1 is a flow chart of the setup of a test system for remotely operating a server system;
fig. 2 is a schematic diagram of a process for setting a control server.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings by way of specific examples, which are illustrative of the present invention and are not limited to the following embodiments.
Example one
A test system for remotely operating a server system, comprising: the system comprises a control end server, a remote setting server, a network connection module and a testing machine, wherein the control end server and the remote setting server testing machine are respectively in communication connection with the network connection module; the control end server and the testing machine form a network through the network connection module;
the remote setting server is used for carrying out remote operation setting on the control end server;
and an XShell module is arranged in the control end server and used for linking the IP address of the test machine and remotely controlling the test machine.
The remote setting server is provided with a detection module, a network port configuration module and a file configuration module;
the detection module is used for detecting the state of the network port of the control end server; the control end server is ensured to be matched with the network card and can normally identify the network port;
the network port configuration module is used for configuring configuration information of a network port of the control end server; the control end server can automatically acquire the IP address only by entering the OS after being restarted or powered off every time. The IP address does not need to be manually acquired after the computer is started up every time artificially;
the file configuration module is used for configuring the access control file; the linux system that the tester can normally access the server is avoided.
The remote setting server also comprises a positioning module, wherein the positioning module is used for positioning a network port connected with a network cable, and the network port configuration module is used for configuring information for the positioned network port so as to further ensure whether the network port state is normal; and the network port configuration module configures the information for the positioned network port.
The remote setting server is further provided with a firewall control module, and the firewall control module is used for controlling the control end server to close the firewall, so that the network of a tester during remote testing can be further ensured to be normal and stable.
The remote setting server is also provided with a restarting control module, and the restarting control module is used for restarting the control terminal server.
The testing machine is also used for sending a test file information writing instruction to the control end server and marking the IP address of the testing machine;
the control end server is also used for receiving a test file information writing instruction which is sent by the tester and has the tester IP address, and receiving a test code sent by the tester; and after the control end server receives the test code within the set time, feeding back test code receiving confirmation information to the client to be tested.
The system comprises a plurality of testing machines, wherein each testing machine is in communication connection with a control end server through a network connection module; an XShell module in a control end server is linked with an IP address of a testing machine, and the IP address of the testing machine is marked for remotely controlling the testing machine;
and attaching the IP address of the tester to the test result of the remote control tester, and configuring the remote test result with the IP address of the tester into a test table.
The technical scheme of the invention also provides an embodiment II
As shown in fig. 1-2, a method for building a test system of a remote operation server system includes the following steps:
s1: the control end is in communication connection with the test machine through a network cable;
s2: setting a control end;
s3: and after the detection network can be normally connected, installing XShell software at the control end, linking the IP address of the tester and remotely controlling the tester.
Step S2 includes the following steps:
s21: detecting the state of a network port of a server at a control end; the server is ensured to be matched with the network card and can normally identify the network port;
s22: positioning a network port connected with a network cable, and configuring information for the positioned network port;
s23: controlling to close the firewall;
s24: the configuration of the access control file is performed.
S25: and restarting the control end server, checking whether the internet access can normally acquire the IP address after entering the system, and commanding whether the network can be normally connected by using ping.
Based on the above embodiment, the specific implementation process is as follows:
step 1: and a network card is matched on the server to ensure that the network port can be normally identified under linux. The view portal command is: ifconfig-a | more
Step 2: and finding out the network port with the network cable through the self-carried command of the linux, and positioning the network port. Further ensuring whether the state of the network port is normal. And a command for checking the state of the internet access: ethtolol eth 0. (herein eth0 refers to the name of the portal viewed under the linux system, e.g.: eth0/eth 1.)
And step 3: after finding out the needed network port, the network port of the server needs to be configured with information. Enter under linux system: etc/sysconfig/network-scripts folder. Finding out a file of ifcfg-eth0 in the folder, modifying ONBOOT = no in the ifcfg-eth0 file into ONBOOT = yes, storing and exiting, and performing corresponding parameter configuration. Therefore, the server can automatically acquire the IP address only by entering the OS after being restarted or powered off every time. The IP address does not need to be manually acquired after the computer is started up manually.
And 4, step 4: and closing the firewall under linux, wherein the purpose of closing the firewall is to better enable the network to be normally connected. Furthermore, the network can be ensured to be normal and stable when a tester conducts remote testing. The command for closing the firewall is as follows:
#systemctl stop firewalld.service
#systemctl disable firewalld.service
#iptables -F
and 5: and configuring the SELinux file under linux, and forbidding SELinux. Since SELinux mainly functions to minimize the resources accessible to service processes in the system (minimum privilege rule). Therefore, the situation that the SELinux function needs to be closed when a tester can normally access the linux system of the self server is avoided. The method comprises the following steps: # vim/etc/selinux/config
SELINUX = encorcing to SELINUX = disabled
Step 6: after the above actions are completed, the server needs to be restarted. Thereby further enabling all of the above operations. After the server enters the system again, the server can check the internet access to normally acquire the IP address, and the network can be normally connected by using a ping command.
And 7: and linking a network on the control end of the tester, wherein the network is required to belong to the same network segment with the network used by the tester.
And 8: and installing XShell software on the control end, and linking the IP address of the test machine table through an SSH command after the software is opened. And after the user name and the password of the test machine OS are input, the OS of the test machine can be remotely controlled.
The invention can establish the environment of the remote control test machine system based on the Linux system, thereby realizing the remote operation of the test machine system. The system can enable engineers not to be affected by regional factors to timely process the problems, tests and business processing of clients, and further improve the working efficiency.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (4)

1. A test system for remotely operating a server system, comprising: the system comprises a control end server, a remote setting server, a network connection module and a testing machine, wherein the control end server, the remote setting server and the testing machine are respectively in communication connection with the network connection module; the control end server and the testing machine form a network through the network connection module;
the remote setting server is used for carrying out remote operation setting on the control end server;
an XShell module is arranged in the control end server and used for linking the IP address of the test machine and carrying out remote control on the test machine;
the remote setting server is provided with a detection module, a network port configuration module and a file configuration module;
the detection module is used for detecting the state of the network port of the control end server; the control end server is ensured to be matched with the network card and can normally identify the network port;
the network port configuration module is used for configuring configuration information of a network port of the control end server;
the file configuration module is used for configuring the access control file;
the remote setting server also comprises a positioning module, wherein the positioning module is used for positioning a network port connected with a network cable, and the network port configuration module is used for configuring information for the positioned network port;
the remote setting server is also provided with a firewall control module, and the firewall control module is used for controlling the control end server to close the firewall;
the remote setting server is also provided with a restarting control module, and the restarting control module is used for restarting the control terminal server.
2. The system of claim 1, wherein the tester is further configured to send a test file information write command to the control server and mark an IP address of the tester;
the control end server is also used for receiving a test file information writing instruction which is sent by the tester and has the tester IP address, and receiving a test code sent by the tester; and after receiving the test code within the set time, the control end server feeds back test code receiving confirmation information to the test machine.
3. The system of claim 2, comprising a plurality of testing machines, each testing machine being communicatively connected to the control-side server via the network connection module; an XShell module in a control end server is linked with an IP address of a testing machine, and the IP address of the testing machine is marked for remotely controlling the testing machine;
and attaching the IP address of the tester to the test result of the remote control tester, and configuring the remote test result with the IP address of the tester into a test table.
4. A method for building a test system of a remote operation server system is characterized by comprising the following steps:
the control end server is in communication connection with the testing machine;
the remote setting server carries out remote operation setting on the control end server;
an XShell module of the control end server is linked with an IP address of the testing machine to remotely control the testing machine;
the remote operation setting of the control end server by the remote setting server comprises the following steps:
detecting the state of a network port of a server at a control end; the control end server is ensured to be matched with the network card and can normally identify the network port;
positioning a network port connected with a network cable, and configuring information for the positioned network port;
controlling to close a firewall of the control end server;
configuring an access control file;
the method also comprises the following steps after the step of configuring the access control file:
restarting a control end server, and after entering a system, sending a test file information writing instruction to the control end server by a test machine and marking an IP address of the test machine;
the control end server receives a test file information writing instruction which is sent by a test machine and has a test machine IP address, and receives a test code sent by the test machine; and after the control end server receives the test code within the set time, feeding back test code receiving confirmation information to the testing machine to determine that the network connection is normal.
CN201810616544.9A 2018-06-15 2018-06-15 Test system and construction method of remote operation server system Active CN108900372B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810616544.9A CN108900372B (en) 2018-06-15 2018-06-15 Test system and construction method of remote operation server system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810616544.9A CN108900372B (en) 2018-06-15 2018-06-15 Test system and construction method of remote operation server system

Publications (2)

Publication Number Publication Date
CN108900372A CN108900372A (en) 2018-11-27
CN108900372B true CN108900372B (en) 2021-10-22

Family

ID=64345188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810616544.9A Active CN108900372B (en) 2018-06-15 2018-06-15 Test system and construction method of remote operation server system

Country Status (1)

Country Link
CN (1) CN108900372B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581809A (en) * 2003-08-04 2005-02-16 索尼国际(欧洲)股份有限公司 Method and system for remote diagnosis device
CN101325625A (en) * 2008-07-25 2008-12-17 余纯龙 System, apparatus and method for testing remote handset
CN103533085A (en) * 2013-10-31 2014-01-22 上海斐讯数据通信技术有限公司 Method and system for remotely controlling computer
CN104268045A (en) * 2014-09-29 2015-01-07 浪潮电子信息产业股份有限公司 Testing method for startup and shutdown in remote control system
CN105116879A (en) * 2015-08-27 2015-12-02 株洲南车时代电气股份有限公司 Electrical control cabinet remote test method for railway carriage
CN105373398A (en) * 2015-10-10 2016-03-02 浪潮电子信息产业股份有限公司 Method for setting server BMC IP of whole cabinet in bulk on basis of Xshell script
CN206712838U (en) * 2017-05-18 2017-12-05 湖北鑫英泰系统技术股份有限公司 A kind of safety operation managing and control system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581809A (en) * 2003-08-04 2005-02-16 索尼国际(欧洲)股份有限公司 Method and system for remote diagnosis device
CN101325625A (en) * 2008-07-25 2008-12-17 余纯龙 System, apparatus and method for testing remote handset
CN103533085A (en) * 2013-10-31 2014-01-22 上海斐讯数据通信技术有限公司 Method and system for remotely controlling computer
CN104268045A (en) * 2014-09-29 2015-01-07 浪潮电子信息产业股份有限公司 Testing method for startup and shutdown in remote control system
CN105116879A (en) * 2015-08-27 2015-12-02 株洲南车时代电气股份有限公司 Electrical control cabinet remote test method for railway carriage
CN105373398A (en) * 2015-10-10 2016-03-02 浪潮电子信息产业股份有限公司 Method for setting server BMC IP of whole cabinet in bulk on basis of Xshell script
CN206712838U (en) * 2017-05-18 2017-12-05 湖北鑫英泰系统技术股份有限公司 A kind of safety operation managing and control system

Also Published As

Publication number Publication date
CN108900372A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
EP3297214B1 (en) Systems and methods for automated determination of network device transiting data attributes
CN109361562B (en) Automatic testing method based on associated network equipment access
CN110471831B (en) Automatic method and device for compatibility test
CN103200021B (en) Network management system, client, service end and the method for realizing batch configuration data
EP3518441B1 (en) Test troubleshooting system and method
CN103138988B (en) Positioning treatment method and positioning treatment device of network faults
CN102571498A (en) Fault injection control method and device
CN102325036A (en) Fault diagnosis method for network system, system and device
CN105743707A (en) Method for testing BMC log analyzing function based on Redhat system
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
CN103475526A (en) IP setting and detecting method supporting multi-VLAN virtual machine
CN103746879A (en) Testing system and method for consistency of IPv6 (Internet Protocol Version 6) protocol
CN105630647A (en) Equipment detection method and detection equipment
CN105404569A (en) Method for testing remote Power Reset of server
CN112636960B (en) Intranet collaborative maintenance method, system, device, server and storage medium of edge computing equipment
CN105849699B (en) Method for controlling data center architecture equipment
CN108900372B (en) Test system and construction method of remote operation server system
CN105653408A (en) Test method for carrying out POWER CYCLE startup and shutdown on the basis of BMC (Baseboard Management Controller) IPMITOOL (Intelligent Platform Management Interface) command single-node batch control
CN105389254A (en) System and method for verifying compatibility of server and Oracle Linux system
CN104898070A (en) Power supply test method and device
CN110174565B (en) Multi-protocol management system for accessing power quality monitoring device to master station
CN112039708A (en) Network equipment operation and maintenance method
CN103684814A (en) Method and device for comparing data of communication system
CN102420710A (en) Method for positioning fault of server cluster system
CN107635247A (en) Terminal log store method in a kind of LTE automatic tests

Legal Events

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