CN108845901B - Method and device for realizing remote monitoring of system rebot test state - Google Patents

Method and device for realizing remote monitoring of system rebot test state Download PDF

Info

Publication number
CN108845901B
CN108845901B CN201810598962.XA CN201810598962A CN108845901B CN 108845901 B CN108845901 B CN 108845901B CN 201810598962 A CN201810598962 A CN 201810598962A CN 108845901 B CN108845901 B CN 108845901B
Authority
CN
China
Prior art keywords
test
log
socket
uuid
monitoring
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
CN201810598962.XA
Other languages
Chinese (zh)
Other versions
CN108845901A (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 CN201810598962.XA priority Critical patent/CN108845901B/en
Publication of CN108845901A publication Critical patent/CN108845901A/en
Application granted granted Critical
Publication of CN108845901B publication Critical patent/CN108845901B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2284Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]

Abstract

The invention provides a method and a device for realizing remote monitoring of a system rebot test state, wherein the method comprises the following steps: s1: the test end uploads the log to the HOST through the network after starting up to capture the log each time; s2: processing the captured log by the HOST end and generating an ini file; s3: HOST establishes SOCKET connection with a monitoring end under a windows system, and transmits an ini file; s4: and the GUI interface of the Windows monitoring terminal displays the current test state progress. The device comprises: the test end uploads the log to the HOST end through a network after capturing the log after starting up each time; the HOST end processes the captured log to generate an ini file and uploads the ini file to the monitoring end; and the monitoring terminal establishes SOCKET connection with the HOST terminal, acquires the ini file and displays the current test state progress on a GUI interface. The invention realizes the remote monitoring of the test state in the reboot test process.

Description

Method and device for realizing remote monitoring of system rebot test state
Technical Field
The invention relates to the field of server testing, in particular to a method and a device for remotely monitoring a reboot testing state of a system.
Background
An important test item in the server system stability test is a reboot test, which can be specifically classified into an AC reboot test, a DC reboot test, and an OS reboot test.
In order to achieve automatic testing, the test program needs to be started to automatically capture system information. However, in the testing process, the booting time of part of the system is long, and the system cannot be operated when entering the OS, so that the testing progress and state cannot be monitored.
Disclosure of Invention
In view of the above disadvantages, the present invention provides a method and an apparatus for remotely monitoring a reboot test state of a system, so as to remotely monitor the test state during the reboot test process.
The embodiment of the invention provides a method for realizing remote monitoring of a reboot test state of a system, which comprises the following steps:
s1: the test end uploads the log to the HOST through the network after starting up to capture the log each time;
s2: processing the captured log by the HOST end and generating an ini file;
s3: HOST establishes SOCKET connection with a monitoring end under a windows system, and transmits an ini file;
s4: and the GUI interface of the Windows monitoring terminal displays the current test state progress.
Further, the specific implementation process of step S2 is as follows: firstly, opening a test log, then slicing the character string, extracting required information and writing the information into an ini file, and finally closing the test log.
Further, in step S2, the information extracted from the test log includes: and testing the IP address, S/N, tester, test type, BIOS version, BMC version, LOG position, test progress and test state of the equipment.
Further, in step S3, the concrete implementation process of establishing SOCKET connection is as follows: the method comprises the steps that a HOST end and a windows monitoring end respectively load SOCKET, zip file, os, os.path, time, subpacess, re and service, wherein the SOCKET provides a SOCKET communication function, the zip file realizes compressed log transmission, and the os, os.path, the time is used for calling system parameters, the subpacess is used for a subprocess, the re realizes regular matching, and the service is part of functions in a multiplexing module.
Further, the specific implementation process of step S4 is as follows:
s41: establishing 736 × 300 GUI base in the master module;
s42: creating a progress bar, a button and a list on the base;
s43: clicking a designated button control, and sending a designated instruction to an HOST end through SOCKT;
s44: and the HOST end returns the execution result, and the GUI displays the execution result.
The embodiment of the invention also provides a device for realizing remote monitoring of the reboot test state of the system, which comprises:
the test end uploads the log to the HOST end through a network after capturing the log after starting up each time;
the HOST end processes the captured log to generate an ini file and uploads the ini file to the monitoring end;
and the monitoring terminal establishes SOCKET connection with the HOST terminal, acquires the ini file and displays the current test state progress on a GUI interface.
Further, the information in the ini file comprises an IP address, an S/N, a tester, a test type, a BIOS version, a BMC version, a LOG position, a test progress and a test state of the test equipment.
Further, the monitoring end is provided with a net _ socket module to realize communication with the GUI interface.
Further, the net _ socket module is also used for calling a function module.
The effect provided in the summary of the invention is only the effect of the embodiment, not all the effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
in the invention, the captured log is processed, so that the test state information can be stored in the ini file, the information transmission is convenient, and meanwhile, the SOCKT communication connection is utilized to realize the information transmission, thereby not only ensuring the transmission efficiency, but also realizing the calling of the function module. Moreover, through setting up operations such as progress bar, button, list, can be with the quick convenient transmission for the HOST end of GUI's instruction, promoted the efficiency that information acquisition and show.
Drawings
FIG. 1 is a flow chart of a method of an embodiment of the present invention;
fig. 2 is a schematic diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
Examples
As shown in fig. 1, a method for implementing remote monitoring of a rebot test state of a system in an embodiment of the present invention includes:
s1: and the test terminal uploads the log to the HOST terminal through the network after the log is captured after the test terminal is started each time.
S2: the HOST end processes the captured log and generates an ini file, and the specific implementation process comprises the following steps: firstly, opening a test log, then slicing the character string, extracting required information and writing the information into an ini file, and finally closing the test log.
In step S2, the information extracted from the test log includes: and testing the IP address, S/N, tester, test type, BIOS version, BMC version, LOG position, test progress and test state of the equipment.
S3: and (3) establishing SOCKET connection between the HOST and a monitoring end under the windows system, and transmitting the ini file.
In step S3, the concrete implementation process of establishing SOCKET connection is as follows: the method comprises the steps that a HOST end and a windows monitoring end respectively load SOCKET, zip file, os, os.path, time, subpacess, re and service, wherein the SOCKET provides a SOCKET communication function, the zip file realizes compressed log transmission, and the os, os.path, the time is used for calling system parameters, the subpacess is used for a subprocess, the re realizes regular matching, and the service is part of functions in a multiplexing module.
After SOCKET connection is established, 7 functional modules, namely stop, connection, zip _ file, uuid _ on, uuid _ off, delete _ completed _ log and net _ SOCKET, can be realized through python. The net _ socket module realizes communication with a windows end GUI, and calls the other 6 modules to realize functions.
For example, the windows GUI monitoring software sends a test stopping option, and the net _ socket module calls the stop module after receiving the remote signal to stop the test of the test device. Similarly, the continue module realizes the continuous testing function, the zip _ file realizes the compression testing LOG, the zip _ file is called by the net _ socket and is used for transmitting data to the windows monitoring end, the UUID _ on and UUID _ off modules are used for controlling the on and off of the UUID LED of the testing equipment, and the delete _ completed _ LOG module is used for deleting the LOG of the testing equipment.
S4: and the GUI interface of the Windows monitoring terminal displays the current test state progress. The specific implementation process is as follows: establishing 736 × 300 GUI base in the master module; creating a progress bar, a button and a list on the base; clicking a designated button control, and sending a designated instruction to an HOST end through SOCKT; and the HOST end returns the execution result, and the GUI displays the execution result.
The progress bar is used for displaying the progress of refresh.
The button functions include: the method comprises the steps of refreshing a monitoring interface manually, downloading a test log, stopping the test of specified test equipment by using a Stop, continuing the test of the specified equipment by using a Continue, displaying the test equipment of the Stop by using a Blacklist, lighting a UUID LED of the test equipment by using a UUID on, closing the UUID LED by using the UUID off, deleting the log of the specified test equipment by using a Delet, and calling Putty to open the SSH connection of the specified test equipment by using an SSH.
The list realizes the display of the test states of all the test devices. And loading the ini file generated by the HOST terminal through the socket, processing and displaying information such as S/N, IP, testers, BIOS version, BMC version and the like of all the devices to be tested, providing the selected function, and copying the S/N and IP address function of the device to be tested through the right-click menu.
As shown in fig. 2, an embodiment of the present invention further provides a device for remotely monitoring a reboot test state of a system, where the device includes a test end, a HOST end, and a monitoring end.
And the test terminal uploads the log to the HOST terminal through the network after the log is captured after each boot.
And after receiving the log, the HOST end performs slicing processing on the character string, extracts required information, writes the information into an ini file, and uploads the ini file to the monitoring end. The information in the ini file comprises an IP address, an S/N, a tester, a test type, a BIOS version, a BMC version, a LOG position, a test progress and a test state of the test equipment.
The monitoring terminal establishes SOCKET connection with the HOST terminal by loading SOCKET, zipfile, os, os.path, subwcess, time, re and service. The SOCKET provides a SOCKET communication function, zip file realizes compressed log transmission, os and os.path, time is used for system parameter calling, subpacess is used for a fork subprocess, re realizes regular matching, and service is a partial function in the multiplexing module 1.
And finally, the monitoring end acquires the ini file and displays the current test state progress on a GUI interface.
In order to realize the communication of the GUI interface, the monitoring end is provided with a net _ socket module.
In addition, the net _ socket module is also used for calling the function module. For example, modules stop, continue, zip _ file, uuid _ on, uuid _ off, delete _ completed _ log, etc.
The calling principle is as follows: and the windows GUI monitoring software sends a test stopping option, and the net _ socket module calls the stop module to stop testing the testing equipment after receiving the remote signal. Similarly, the continue module realizes the continuous testing function, the zip _ file realizes the compression testing LOG, the zip _ file is called by the net _ socket and is used for transmitting data to the windows monitoring end, the UUID _ on and UUID _ off modules are used for controlling the on and off of the UUID LED of the testing equipment, and the delete _ completed _ LOG module is used for deleting the LOG of the testing equipment.
The GUI interface is arranged at the monitoring end, and in the process of implementing communication with the HOST end, the following settings need to be performed: establishing 736 × 300 GUI base in the master module; a progress bar, button, list is created on the base.
The progress bar is used for displaying the progress of refresh.
The button functions are as follows: the method comprises the steps of refreshing a monitoring interface manually, downloading a test log, stopping the test of specified test equipment by using a Stop, continuing the test of the specified equipment by using a Continue, displaying the test equipment of the Stop by using a Blacklist, lighting a UUID LED of the test equipment by using a UUID on, closing the UUID LED by using the UUID off, deleting the log of the specified test equipment by using a Delet, and calling Putty to open the SSH connection of the specified test equipment by using an SSH.
The list realizes the display of the test states of all the test devices. And loading the ini file generated by the HOST terminal through the socket, processing and displaying information such as S/N, IP, testers, BIOS version, BMC version and the like of all the devices to be tested, providing the selected function, and copying the S/N and IP address function of the device to be tested through the right-click menu.
The principle of displaying the state information by the GUI interface is as follows: and clicking the appointed button control, sending an appointed instruction to the HOST end by the program through SOCKT, returning an execution result by the HOST end, and displaying the execution result by the GUI monitoring popup window.
While the invention has been described in detail in the specification and drawings and with reference to specific embodiments thereof, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted; all technical solutions and modifications thereof which do not depart from the spirit and scope of the present invention are intended to be covered by the scope of the present invention.

Claims (2)

1. A method for realizing remote monitoring of a system rebot test state is characterized in that: the method comprises the following steps:
s1: the test end uploads the log to the HOST end through the network after the log is captured after each startup;
s2: processing the captured log by the HOST end and generating an ini file;
the specific implementation process of step S2 is as follows: firstly, opening a test log, then carrying out slicing processing on a character string, extracting required information and writing the information into an ini file, and finally closing the test log;
in step S2, the information extracted from the test log includes: testing the IP address, S/N, tester, test type, BIOS version, BMC version, LOG position, test progress and test state of the equipment;
s3: HOST establishes SOCKET connection with a monitoring end under a windows system, and transmits an ini file;
in step S3, the concrete implementation process of establishing SOCKET connection is as follows: the method comprises the following steps that a HOST end and a windows monitoring end respectively load SOCKET, zip file, os, os.path, time, subpacess, re and service, wherein the SOCKET provides a SOCKET communication function, the zip file realizes compressed log transmission, os, os.path, the time is used for system parameter calling, the subpacess is used for a sub-process for fork, the re realizes regular matching, and the service is a partial function in a multiplexing module;
after SOCKET connection is established, 7 functional modules, namely stop, continue, zip _ file, uuid _ on, uuid _ off, delete _ completed _ log and net _ SOCKET, are realized through python; the network _ socket realizes communication with a windows GUI (graphical user interface) and calls the other 6 modules to realize functions, the windows GUI monitoring software sends a test stopping option, the network _ socket module calls a stop module after receiving the remote signal to stop testing equipment, the continue module realizes a continuous testing function, the zip _ file realizes a compression test LOG (level of load), the net _ socket calls the stop module to transmit data to the windows monitoring end, the UUID _ on and UUID _ off modules are used for controlling the UUID LED of the testing equipment to be turned on and off, and the delete _ completed _ LOG module is used for deleting the LOG of the tested equipment;
s4: the GUI interface of the Windows monitoring end displays the current testing state progress;
the specific implementation process of step S4 is as follows:
s41: establishing 736 × 300 GUI base in the master module;
s42: creating a progress bar, a button and a list on the base;
the progress bar is used for displaying the progress of refresh;
the button functions include: refresh: manually refreshing a monitoring interface; downloading: realizing downloading of a test log; stop: stopping the test of the specified test equipment; continue: realizing the continuous specified equipment test; blacklist: realizing the display of the test equipment of the current stop; UUID on: the UUID LED of the test equipment is lightened; UUID off: the UUID LED is turned off; and (3) a Delet: log of deleting appointed test equipment is deleted; SSH: the SSH connection of the specified test equipment is opened by calling Putty;
the list realizes displaying the test states of all the test equipment, provides the selected function, and copies the S/N and IP address function of the test equipment by the right-click menu;
s43: clicking a designated button control, and sending a designated instruction to an HOST end through SOCKT;
s44: and the HOST end returns the execution result, and the GUI displays the execution result.
2. The utility model provides a realize device of system rebot test state remote monitoring which characterized by: the device comprises:
the test end uploads the log to the HOST end through a network after capturing the log after starting up each time;
the HOST end processes the captured log to generate an ini file and uploads the ini file to the monitoring end;
the monitoring terminal establishes SOCKET connection with the HOST terminal, acquires the ini file and displays the current test state progress on a GUI interface;
the concrete implementation process for establishing the SOCKET connection comprises the following steps:
the method comprises the following steps that a HOST end and a windows monitoring end respectively load SOCKET, zip file, os, os.path, time, subpacess, re and service, wherein the SOCKET provides a SOCKET communication function, the zip file realizes compressed log transmission, os, os.path, the time is used for system parameter calling, the subpacess is used for a sub-process for fork, the re realizes regular matching, and the service is a partial function in a multiplexing module;
the GUI interface is arranged at the monitoring end, and in the process of implementing communication with the HOST end, the following settings need to be performed: establishing 736 × 300 GUI base in the master module; creating a progress bar, a button and a list on the base;
the progress bar is used for displaying the progress of refresh;
the button functions include: refresh: manually refreshing a monitoring interface; downloading: realizing downloading of a test log; stop: stopping the test of the specified test equipment; continue: realizing the continuous specified equipment test; blacklist: realizing the display of the test equipment of the current stop; UUID on: the UUID LED of the test equipment is lightened; UUID off: the UUID LED is turned off; and (3) a Delet: log of deleting appointed test equipment is deleted; SSH: the SSH connection of the specified test equipment is opened by calling Putty;
the list realizes displaying the test states of all the test equipment, provides the selected function, and copies the S/N and IP address function of the test equipment by the right-click menu;
the information in the ini file comprises an IP address, S/N, tester, test type, BIOS version, BMC version, LOG position, test progress and test state of the test equipment;
the monitoring end is provided with a net _ socket module to realize communication with a GUI interface;
the net _ socket module is also used for calling the function module, and the specific implementation process is as follows:
after SOCKET connection is established, 7 functional modules, namely stop, continue, zip _ file, uuid _ on, uuid _ off, delete _ completed _ log and net _ SOCKET, can be realized through python; the network _ socket realizes communication with a windows GUI (graphical user interface) and calls the other 6 modules to realize functions, the windows GUI monitoring software sends a test stopping option, the network _ socket module calls a stop module after receiving the remote signal to stop testing of the testing equipment, the continuance module realizes a continuous testing function, the zip _ file realizes a compression test LOG (level of load), the net _ socket calls the stop module to transmit data to the windows monitoring end, the UUID _ on and UUID _ off modules are used for controlling the UUID LED of the testing equipment to be turned on and off, and the delete _ completed _ LOG module is used for deleting the LOG of the testing equipment.
CN201810598962.XA 2018-06-12 2018-06-12 Method and device for realizing remote monitoring of system rebot test state Active CN108845901B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810598962.XA CN108845901B (en) 2018-06-12 2018-06-12 Method and device for realizing remote monitoring of system rebot test state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810598962.XA CN108845901B (en) 2018-06-12 2018-06-12 Method and device for realizing remote monitoring of system rebot test state

Publications (2)

Publication Number Publication Date
CN108845901A CN108845901A (en) 2018-11-20
CN108845901B true CN108845901B (en) 2021-10-08

Family

ID=64211639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810598962.XA Active CN108845901B (en) 2018-06-12 2018-06-12 Method and device for realizing remote monitoring of system rebot test state

Country Status (1)

Country Link
CN (1) CN108845901B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014021822A1 (en) * 2012-07-30 2014-02-06 Hewlett-Packard Development Company L.P. Detecting defects in a processor socket
CN104467187A (en) * 2014-12-16 2015-03-25 重庆邮电大学 Intelligent power grid remote monitoring system based on IOS
CN105068900A (en) * 2015-07-27 2015-11-18 浪潮电子信息产业股份有限公司 Test method for remote control server cold reboot
CN106598796A (en) * 2016-12-16 2017-04-26 郑州云海信息技术有限公司 Method for testing hardware information stability in reboot
CN107168838A (en) * 2017-05-16 2017-09-15 郑州云海信息技术有限公司 A kind of RAID card Auto-Test System

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014021822A1 (en) * 2012-07-30 2014-02-06 Hewlett-Packard Development Company L.P. Detecting defects in a processor socket
CN104467187A (en) * 2014-12-16 2015-03-25 重庆邮电大学 Intelligent power grid remote monitoring system based on IOS
CN105068900A (en) * 2015-07-27 2015-11-18 浪潮电子信息产业股份有限公司 Test method for remote control server cold reboot
CN106598796A (en) * 2016-12-16 2017-04-26 郑州云海信息技术有限公司 Method for testing hardware information stability in reboot
CN107168838A (en) * 2017-05-16 2017-09-15 郑州云海信息技术有限公司 A kind of RAID card Auto-Test System

Also Published As

Publication number Publication date
CN108845901A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
JP2020030811A (en) Method and device for determining response time
CN109120481B (en) Method for monitoring DCOS container and internal middleware based on Zabbix open source component
CN108282767B (en) Pairing method, device and system
CN107678949B (en) Automatic testing method for realizing different communication modes of embedded equipment
CN111667160A (en) Method, device, equipment and system for evaluating state of electronic equipment
CN107967207B (en) Method and device for testing user interface interaction function
CN111913884A (en) Distributed test method, device, equipment, system and readable storage medium
CN111554219A (en) Display equipment testing method and device, electronic product and storage medium
CN111444882A (en) Instrument state monitoring method, device and system
CN105487978A (en) Method and system for automatically testing application software based on UFT
CN108845901B (en) Method and device for realizing remote monitoring of system rebot test state
CN113821433A (en) Method, device, equipment, medium and product for testing cloud mobile phone application program
CN113377664A (en) Model testing method and device, electronic device and storage medium
CN110134558B (en) Method and device for detecting server
CN110865920B (en) Startup exception processing method and device, electronic equipment and storage medium
CN107197088A (en) Screenshot method and device based on Android mobile device
CN106371858B (en) Android starting windows program method and device
CN107193728A (en) Mobile terminal automation testing method and device
CN103139036A (en) Electronic equipment and information processing method thereof
CN115033469A (en) Website system performance test method and device, equipment and storage medium
CN113961504A (en) Mobile terminal group control method, device, system, server and storage medium
CN113821428A (en) Cloud testing method and device, electronic equipment and computer storage medium
CN109032948A (en) It is a kind of by USB interface to the method and detection system of mobile phone application safety detection
CN111597984B (en) Label paper testing method, device, electronic equipment and computer readable storage medium
CN111258890A (en) Program test method, storage medium, and system

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