CN112131195B - Cluster type management method for aging test - Google Patents

Cluster type management method for aging test Download PDF

Info

Publication number
CN112131195B
CN112131195B CN202010828885.XA CN202010828885A CN112131195B CN 112131195 B CN112131195 B CN 112131195B CN 202010828885 A CN202010828885 A CN 202010828885A CN 112131195 B CN112131195 B CN 112131195B
Authority
CN
China
Prior art keywords
test
equipment
aging
log
cluster
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
CN202010828885.XA
Other languages
Chinese (zh)
Other versions
CN112131195A (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.)
Shenzhen Forward Industrial Co Ltd
Original Assignee
Shenzhen Forward Industrial 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 Shenzhen Forward Industrial Co Ltd filed Critical Shenzhen Forward Industrial Co Ltd
Priority to CN202010828885.XA priority Critical patent/CN112131195B/en
Publication of CN112131195A publication Critical patent/CN112131195A/en
Application granted granted Critical
Publication of CN112131195B publication Critical patent/CN112131195B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Abstract

The invention discloses a cluster type management method for aging test, which comprises the steps of executing a test script and obtaining cluster equipment information; detecting an address of equipment to be detected according to cluster equipment information, and sending an aging script to the equipment to be detected; automatically executing an aging script to perform aging test on equipment to be detected, generating a test log and packaging the test log; and automatically executing the aging script to send the packaged test log to a preset log collecting server. According to the invention, the equipment cluster management is used for uniformly executing the aging test, after the test is finished, the result analysis is used for forming the summary description, the log result is packed and exported, the IP addresses of the equipment are in the file names, the distinction is convenient, only the management equipment in the file names is required to be operated in the whole process, the efficiency of the production and test personnel is greatly improved, and the error probability is reduced.

Description

Cluster type management method for aging test
Technical Field
The invention relates to the technical field of equipment aging test, in particular to an aging test cluster type management method.
Background
When the production personnel execute the aging test on the equipment, because the equipment is numerous, if each input command is executed, the efficiency is low, the error probability is increased, and the unified management is not available, so that the information collection is difficult and messy after the aging test is executed.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a cluster type management method for aging test.
In order to achieve the aim of the invention, the invention adopts the following technical scheme:
a cluster management method for aging test comprises the following steps:
s1, executing a test script to obtain cluster equipment information;
s2, detecting an address of the equipment to be detected according to the cluster equipment information, and sending an aging script to the equipment to be detected;
s3, automatically executing an aging script to perform aging test on the equipment to be detected, generating a test log and packaging the test log;
and S4, automatically executing the aging script to send the packaged test log to a preset log collection server.
Preferably, the cluster equipment and the management equipment are commonly accessed into the same network, and the cluster equipment is configured with the same user name and password.
Preferably, the acquiring cluster equipment information in step S1 specifically includes:
acquiring an IP address range, a user name and a password of the cluster equipment and an IP address of a log collecting server;
and/or burn-in test time.
Preferably, the step S2 specifically includes:
detecting whether equipment to be detected exists in the IP address range by using the test script according to the IP address range of the cluster equipment acquired in the step S1; when a plurality of devices to be detected exist, the aging script is respectively sent to each device to be detected in a multithreading parallel mode.
Preferably, the step S3 specifically includes:
and automatically executing an aging script on the equipment to be detected for aging test, automatically analyzing the generated test log after the aging test is stopped, and marking the analysis result at the tail end of the test log.
Preferably, automatically analyzing the generated test log after the burn-in test is stopped, and labeling the analysis result at the tail end of the test log specifically includes:
retrieving the number of correctness and mistakes in the test log by using the regular expression; when errors occur in the test log are retrieved, marking the number and information of the retrieved errors at the tail end of the test log; when no error occurs in the test log, all labels at the tail end of the test log are normal.
Preferably, the step S3 further includes:
and (3) automatically stopping the aging test of the cluster equipment according to the aging test time obtained in the step (S1).
Preferably, the step S3 further includes:
after the analysis of the test logs is completed, the automatic execution aging script counts the analysis results of all the generated test logs, packages all the test logs, and the packaged file name contains log statistics results and equipment IP addresses.
The invention has the following beneficial effects:
according to the invention, the equipment cluster management is used for uniformly executing the aging test, after the test is finished, the result analysis is used for forming the summary description, the log result is packed and exported, the IP addresses of the equipment are in the file names, the distinction is convenient, only the management equipment in the file names is required to be operated in the whole process, the efficiency of the production and test personnel is greatly improved, and the error probability is reduced.
Drawings
FIG. 1 is a flow chart of a cluster management method for burn-in testing according to the present invention.
Fig. 2 is a schematic diagram of a networking structure of a cluster device in an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention is provided to facilitate understanding of the present invention by those skilled in the art, but it should be understood that the present invention is not limited to the scope of the embodiments, and all the inventions which make use of the inventive concept are protected by the spirit and scope of the present invention as defined and defined in the appended claims to those skilled in the art.
As shown in fig. 1, an embodiment of the present invention provides a method for clustered management of burn-in testing, including the following steps:
s1, executing a test script to obtain cluster equipment information;
in this embodiment, in order to solve the problems of multiple devices, low one-to-one execution efficiency and high error probability when a production and test person executes an aging test, the cluster device and the management device are commonly connected into the same network, and the same user name and password are configured for the cluster device, so that script operation is performed by using one management device, as shown in fig. 2.
After the management equipment executes the test script, the invention prompts the input of the IP address range, the user name and the password of the cluster equipment, the IP address of the log collecting server and/or the aging test time, thereby obtaining the information of the cluster equipment.
S2, detecting an address of the equipment to be detected according to the cluster equipment information, and sending an aging script to the equipment to be detected;
in this embodiment, the present invention detects whether a device to be detected exists in the IP address range by using the test script according to the IP address range of the cluster device acquired in step S1.
When the script is transmitted, because the quantity of the cluster devices is large, the time is long because the cluster devices are transmitted one by one, and therefore, when a plurality of devices to be detected exist, the aging script is respectively transmitted to each device to be detected in a multithreaded parallel mode. The process of each transmission script runs in the background and is not displayed at the front end, so that the process is ensured not to be queued during transmission. The number of cluster devices does not influence the transmission time, and in the transmission process, the integrity of the file is ensured through the breakpoint continuous transmission function.
The invention adopts a cluster management mode, and can operate all equipment needing to be tested only by executing a script once; meanwhile, the aging script is sent by adopting multithreading, so that the problem of queuing caused by excessive cluster equipment is avoided.
S3, automatically executing an aging script to perform aging test on the equipment to be detected, generating a test log and packaging the test log;
in this embodiment, after the aging script is sent to the device to be detected, the device to be detected automatically executes the aging script to perform the aging test, wherein the aging test process adopts a conventional test flow, the aging test is stopped on the management device or the aging test is automatically stopped after the time arrives, the generated test log is automatically analyzed, and the analysis result is marked at the tail end of the test log.
Specifically, after the aging test is finished, because the log content is numerous, the producers can hardly find out the problematic place in the log, and the tiny problems can be easily ignored, and after the log is collected, the log is checked one by one, which is labor-consuming and labor-consuming, and affects the progress; the invention uses regular expressions to search the number of correctness and mistakes in the test log; when errors occur in the test log are retrieved, marking the number and information of the retrieved errors at the tail end of the test log; when no error occurs in the test log, the tail end of the test log is marked as normal, so that the aging test result is convenient for the production and testing personnel to watch.
In addition, because the types of the generated logs are large, the generating and testing personnel need to input commands to operate when collecting the logs, so that the log collecting time is too long; therefore, after the analysis of the test logs is completed, the aging script is automatically executed to count the analysis results of all the generated test logs, all the test logs are packaged, and the packaged file name contains the log statistics results and the equipment IP address.
Specifically, the invention packs all test logs generated in a device to be detected, and in the packing process, firstly automatically analyzes log content, and if error information exists in the log content, the packed file name contains an error reminder; the packaged file names contain the IP addresses of the devices no matter what is wrong, so that the device with the errors can be quickly found by the production and testing personnel.
According to the invention, through analyzing the log result, analyzing the log file, counting the result, and displaying the correct errors on the packed file name, the packed file name also contains the equipment IP address, so that the production and testing personnel can conveniently and rapidly screen the equipment with errors.
And S4, automatically executing the aging script to send the packaged test log to a preset log collection server.
In this embodiment, the present invention uses an aging script to send the packaged test log to the IP address of the log collection server obtained in step S1 through tftp.
According to the method, the unified log collection is adopted, the information of the equipment is distinguished through the IP address, and the phenomenon of coverage caused by repeated file names is prevented; and the test logs are uniformly collected to a preset log collection server, so that a production and test person can conveniently find the required equipment aging detection record.
Those of ordinary skill in the art will recognize that the embodiments described herein are for the purpose of aiding the reader in understanding the principles of the present invention and should be understood that the scope of the invention is not limited to such specific statements and embodiments. Those of ordinary skill in the art can make various other specific modifications and combinations from the teachings of the present disclosure without departing from the spirit thereof, and such modifications and combinations remain within the scope of the present disclosure.

Claims (5)

1. The cluster management method for the aging test is characterized by comprising the following steps of:
s1, executing a test script to obtain cluster equipment information; the cluster equipment and the management equipment are accessed into the same network together, and the same user name and password are configured for the cluster equipment;
the method for acquiring the cluster equipment information specifically comprises the following steps:
acquiring an IP address range, a user name and a password of the cluster equipment and an IP address of a log collecting server;
and/or burn-in test time;
s2, detecting an address of the equipment to be detected according to the cluster equipment information, and sending an aging script to the equipment to be detected; the method specifically comprises the following steps:
detecting whether equipment to be detected exists in the IP address range by using the test script according to the IP address range of the cluster equipment acquired in the step S1; when a plurality of devices to be detected exist, the aging script is respectively sent to each device to be detected in a multithreading parallel mode;
s3, automatically executing an aging script to perform aging test on the equipment to be detected, generating a test log and packaging the test log;
and S4, automatically executing the aging script to send the packaged test log to a preset log collection server.
2. The burn-in test cluster management method according to claim 1, wherein the step S3 specifically includes:
and automatically executing an aging script on the equipment to be detected for aging test, automatically analyzing the generated test log after the aging test is stopped, and marking the analysis result at the tail end of the test log.
3. The method for clustered management of burn-in testing according to claim 2, wherein automatically analyzing the generated test log after the burn-in testing is stopped and labeling the analysis result at the tail end of the test log specifically comprises:
retrieving the number of correctness and mistakes in the test log by using the regular expression; when errors occur in the test log are retrieved, marking the number and information of the retrieved errors at the tail end of the test log; when no error occurs in the test log, all labels at the tail end of the test log are normal.
4. The burn-in test cluster management method of claim 2, wherein the step S3 further comprises:
and (3) automatically stopping the aging test of the cluster equipment according to the aging test time obtained in the step (S1).
5. The burn-in test cluster management method of claim 2, wherein the step S3 further comprises:
after the analysis of the test logs is completed, the automatic execution aging script counts the analysis results of all the generated test logs, packages all the test logs, and the packaged file name contains log statistics results and equipment IP addresses.
CN202010828885.XA 2020-08-18 2020-08-18 Cluster type management method for aging test Active CN112131195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010828885.XA CN112131195B (en) 2020-08-18 2020-08-18 Cluster type management method for aging test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010828885.XA CN112131195B (en) 2020-08-18 2020-08-18 Cluster type management method for aging test

Publications (2)

Publication Number Publication Date
CN112131195A CN112131195A (en) 2020-12-25
CN112131195B true CN112131195B (en) 2024-04-16

Family

ID=73850961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010828885.XA Active CN112131195B (en) 2020-08-18 2020-08-18 Cluster type management method for aging test

Country Status (1)

Country Link
CN (1) CN112131195B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105205003A (en) * 2015-10-28 2015-12-30 努比亚技术有限公司 Automated testing method and device based on clustering system
CN105577799A (en) * 2015-12-25 2016-05-11 北京奇虎科技有限公司 Method and device for detecting fault of database cluster
CN107302475A (en) * 2017-07-06 2017-10-27 郑州云海信息技术有限公司 The method of testing and device of a kind of Based on Distributed storage cluster
WO2018058941A1 (en) * 2016-09-29 2018-04-05 华为技术有限公司 Method for detecting communication status of cluster system, and gateway cluster
CN109901871A (en) * 2019-02-28 2019-06-18 苏州浪潮智能科技有限公司 The environment configurations of burn-in test and the method for operation are realized automatically under a kind of Linux
CN110262964A (en) * 2019-05-21 2019-09-20 深圳壹账通智能科技有限公司 Test method, device, equipment and computer readable storage medium
CN111367739A (en) * 2020-02-29 2020-07-03 苏州浪潮智能科技有限公司 USB port testing method and system based on server cluster

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105205003A (en) * 2015-10-28 2015-12-30 努比亚技术有限公司 Automated testing method and device based on clustering system
CN105577799A (en) * 2015-12-25 2016-05-11 北京奇虎科技有限公司 Method and device for detecting fault of database cluster
WO2018058941A1 (en) * 2016-09-29 2018-04-05 华为技术有限公司 Method for detecting communication status of cluster system, and gateway cluster
CN107302475A (en) * 2017-07-06 2017-10-27 郑州云海信息技术有限公司 The method of testing and device of a kind of Based on Distributed storage cluster
CN109901871A (en) * 2019-02-28 2019-06-18 苏州浪潮智能科技有限公司 The environment configurations of burn-in test and the method for operation are realized automatically under a kind of Linux
CN110262964A (en) * 2019-05-21 2019-09-20 深圳壹账通智能科技有限公司 Test method, device, equipment and computer readable storage medium
CN111367739A (en) * 2020-02-29 2020-07-03 苏州浪潮智能科技有限公司 USB port testing method and system based on server cluster

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于集群化架构的云服务平台的设计;朱夏锋;《中国优秀硕士学位论文全文数据库信息科技辑》(第03期);I139-226 *

Also Published As

Publication number Publication date
CN112131195A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
CN104050075B (en) The method of testing and device of Andriod application programs
CN101944059A (en) Automatic analysis method and device of crash information of computer software
CN101997925A (en) Server monitoring method with early warning function and system thereof
US8996928B2 (en) Devices for indicating a physical layer error
CN107223257B (en) Test method, test server and test system
CN102999417B (en) Automatic test management system and method
CN107193730A (en) A kind of interface test method of automation
CN111949545A (en) Automatic testing method, system, server and storage medium
CN108614742B (en) Report data verification method, system and device
CN108984363A (en) A kind of method and system of concurrent testing
CN110674034A (en) Health examination method and device, electronic equipment and storage medium
CN112131195B (en) Cluster type management method for aging test
CN114414255A (en) Automatic driving test method and system based on CAN message period monitoring
KR101472584B1 (en) Method of testing can communication by analysis of test result log
CN104123397A (en) Automatic test device and method for Web page
CN106294109B (en) Method and device for acquiring defect code
CN109086185B (en) Fault detection method, device and equipment of storage cluster and storage medium
CN104678292B (en) A kind of complex programmable logic device (CPLD) test method and device
CN105573874B (en) A kind of real-time Data Transmission bus test method based on multithreading
CN115437961A (en) Data processing method and device, electronic equipment and storage medium
CN114020580A (en) Method, system, device and storage medium for monitoring performance index of application system
US20210129324A1 (en) Diagnosis method and apparatus
CN114239866A (en) Power grid dispatching information flow abnormity and fault discrimination method
CN110990246B (en) Tracking processing method and device for large-scale cluster deployment delivery log
CN107666416B (en) Iperf test result judgment 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