CN112269733A - Automatic aging test method for server and storage medium - Google Patents

Automatic aging test method for server and storage medium Download PDF

Info

Publication number
CN112269733A
CN112269733A CN202011100684.4A CN202011100684A CN112269733A CN 112269733 A CN112269733 A CN 112269733A CN 202011100684 A CN202011100684 A CN 202011100684A CN 112269733 A CN112269733 A CN 112269733A
Authority
CN
China
Prior art keywords
server
test
aging
test program
program
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
CN202011100684.4A
Other languages
Chinese (zh)
Other versions
CN112269733B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202011100684.4A priority Critical patent/CN112269733B/en
Publication of CN112269733A publication Critical patent/CN112269733A/en
Application granted granted Critical
Publication of CN112269733B publication Critical patent/CN112269733B/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/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention provides an automatic aging test method and a storage medium for a server, which solve the problem that the aging test of the server can not be automatically executed, and comprise the following steps: receiving a server aging degree test program, wherein the server aging degree test program comprises a server aging degree auxiliary test program and a test execution program; storing the server aging degree test program into a directory placed by additional installation software of a server host; and running the server aging degree test program to obtain the server automatic aging test result.

Description

Automatic aging test method for server and storage medium
Technical Field
The invention relates to the technical field of server maintenance, in particular to an automatic aging test method for a server and a storage medium.
Background
Whether the server is a general server, a high-end server or other various types of servers needs to be subjected to aging test before mass production and shipment, so that each device of the server can work normally in a relatively long-time and high-pressure environment, and on one hand, the server can be used as a standard for server stability and energy production; on the other hand, if there is a problem, it can be detected in advance to facilitate the subsequent correction of the problem.
The currently used aging test tool can only be used in local tests, and the aging test has more projects, the test time of each project is longer, and some projects need human intervention to ensure the correct test, for example, when a PTU specified by Intel is used for testing a CPU, a stage of Accept License is provided by using the PTU tool for the first time, and the stage generally needs a worker to manually input yes. Due to uncertainty of testing time, the above links can seriously affect testing efficiency.
At present, the aging test can only be carried out by local manual operation, the automation degree is low, the manpower consumption and the test time are more, and certain interactive operation cannot be automatically processed. Therefore, a method which has high automation degree and can carry out remote test is needed, and the test efficiency is improved.
Disclosure of Invention
The invention aims to provide an automatic aging test method and a storage medium for a server, which solve the technical problems that test items in the prior art are dispersed, are limited by interactive operation, can only be tested locally and cannot support remote.
In a first aspect, the present invention provides an automated aging test method for a server, including:
receiving a server aging degree test program, wherein the server aging degree test program comprises a server aging degree auxiliary test program and a test execution program; storing the server aging degree test program into a directory placed by additional installation software of a server host;
and running the server aging degree test program to obtain the server automatic aging test result.
Further, the step of operating the server aging degree test program to obtain the server automated aging test result specifically includes:
when the server aging degree test program runs, whether the type of the test process is a local test or a remote test is judged, and when the type is the remote test, the remote test is carried out on the server to be tested based on the automatic interactive program Expect.
Further, when the server to be tested is a remote server, the method further includes: :
detecting whether an IP rule list file of a server to be tested is contained in a main server, if the server does not contain the IP rule list file, determining the service environment of the server to be tested to be a local environment, and carrying out local test;
if the server contains an IP rule list file, detecting whether the IP rule list file is empty, and if the IP rule list file is empty, determining that the service environment of the server is a local environment, and performing local test;
and if the server to be tested contains the IP rule list file and the IP rule list file is not empty, remotely testing the server indicated by the IP rule list file through the server.
Further, the test execution program is a one-key sh script, and when the local test is run, the parameters of the one-key sh script are built-in parameters.
Further, the server aging degree auxiliary test program includes an input/output pressure test program, the input/output pressure test program is used for detecting the aging degree of the hard disk, the server aging degree test program is operated, and a server automatic aging test result is obtained, which specifically includes:
and detecting the local hard disk, searching and removing the disk where the operating system is located, and testing by taking other disks except the disk where the operating system is located as test objects of the input/output pressure test program.
Further, the server aging degree auxiliary test program includes a main processor test program, and the step of operating the server aging degree test program to obtain the server automatic aging test result specifically includes:
and collecting the main processor information of the server to be tested, and testing the main processor according to the obtained main processor information.
Further, the server aging degree auxiliary test program includes a memory test program, and the step of operating the server aging degree test program to obtain the server automated aging test result specifically includes: and collecting the memory information of the server to be tested, and testing the memory.
Further, the server aging degree auxiliary test program includes a mixed channel distribution card and a cable test program, and the step of operating the server aging degree test program to obtain the server automated aging test result specifically includes:
detecting whether the server to be detected is provided with a mixed channel distribution card and checking whether a cable is connected, and if the server to be detected is not connected with the cable, ending the test;
and if the server to be detected has cable connection, writing the configuration information of the mixed channel distribution card into a setting file by using a tool for processing interaction, performing restart operation of the conversion cable server, and checking whether the configuration is successful and effective.
Further, the step of remotely testing the server to be tested based on the automatic interactive program Expect specifically includes:
checking whether the network is smooth according to the content in the IP rule list file, and if the network is not smooth, recording a log and printing the log to a screen;
and if the network is smooth, logging in a remote server to be tested by using an EXPECT command, and sending the server aging degree test program to a directory placed by additional installation software of a host of the remote server to be tested.
In another aspect, a computer readable storage medium stores machine executable instructions that, when invoked and executed by a processor, cause the processor to perform the above method.
The invention provides an automatic aging test method for a server, which comprises the steps of receiving an aging test program of the server, wherein the aging test program of the server comprises an auxiliary test program of the aging of the server and a test execution program; storing the server aging degree test program into a directory placed by additional installation software of a server host; the server aging degree test program is operated to obtain the automatic aging test result of the server, so that the technical problems that test items are dispersed, are limited by interactive operation, can only carry out local test and cannot support remote in the prior art are solved, one-key operation is realized, the test time is saved, and the test efficiency is improved; the method is not limited by distance, and simultaneously supports local test and remote test; batch operation is not affected by the number of servers.
Accordingly, the computer-readable storage medium provided by the embodiment of the invention also has the technical effects described above.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of an automated aging test method for a server according to an embodiment of the present invention;
fig. 2 is a specific flowchart of an automated aging test method for a server according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "comprising" and "having," and any variations thereof, as referred to in embodiments of the present invention, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The automatic aging test method for the server provided by the embodiment of the invention, as shown in fig. 1, comprises the following steps:
s110: receiving a server aging degree test program, wherein the server aging degree test program comprises a server aging degree auxiliary test program and a test execution program;
s120: storing the server aging degree test program into a directory placed by additional installation software of a server host;
s130: and running the server aging degree test program to obtain the server automatic aging test result.
Further, the step of operating the server aging degree test program to obtain the server automated aging test result specifically includes:
when the server aging degree test program runs, whether the type of the test process is a local test or a remote test is judged, and when the type is the remote test, the remote test is carried out on the server to be tested based on the automatic interactive program Expect.
Further, when the server to be tested is a remote server, the method further includes:
detecting whether an IP rule list file of a server to be tested is contained in a main server, if the server does not contain the IP rule list file, determining the service environment of the server to be tested to be a local environment, and carrying out local test;
if the server contains an IP rule list file, detecting whether the IP rule list file is empty, and if the IP rule list file is empty, determining that the service environment of the server is a local environment, and performing local test;
and if the server to be tested contains the IP rule list file and the IP rule list file is not empty, remotely testing the server indicated by the IP rule list file through the server.
Further, the test execution program is a one-key sh script, and when the local test is run, the parameters of the one-key sh script are built-in parameters.
Further, the server aging degree auxiliary test program includes an input/output pressure test program, the input/output pressure test program is used for detecting the aging degree of the hard disk, the server aging degree test program is operated, and a server automatic aging test result is obtained, which specifically includes:
and detecting the local hard disk, searching and removing the disk where the operating system is located, and testing by taking other disks except the disk where the operating system is located as test objects of the input/output pressure test program.
Further, the server aging degree auxiliary test program includes a main processor test program, and the step of operating the server aging degree test program to obtain the server automatic aging test result specifically includes:
and collecting the main processor information of the server to be tested, and testing the main processor according to the obtained main processor information.
Further, the server aging degree auxiliary test program includes a memory test program, and the step of operating the server aging degree test program to obtain the server automated aging test result specifically includes: and collecting the memory information of the server to be tested, and testing the memory.
Further, the server aging degree auxiliary test program includes a mixed channel distribution card and a cable test program, and the step of operating the server aging degree test program to obtain the server automated aging test result specifically includes:
detecting whether the server to be detected is provided with a mixed channel distribution card and checking whether a cable is connected, and if the server to be detected is not connected with the cable, ending the test;
and if the server to be detected has cable connection, writing the configuration information of the mixed channel distribution card into a setting file by using a tool for processing interaction, performing restart operation of the conversion cable server, and checking whether the configuration is successful and effective.
Further, the step of remotely testing the server to be tested based on the automatic interactive program Expect specifically includes:
before searching and removing a disk where an operating system is located, checking whether the network is smooth according to the content in the IP rule list file, and if the network is not smooth, recording a log and printing the log to a screen;
and if the network is smooth, logging in a remote server to be tested by using an EXPECT command, and sending the server aging degree test program to a directory placed by additional installation software of a host of the remote server to be tested.
Further, in the testing process of the local testing and the remote testing, when the testing tool needs to perform interactive operation, an EXPECT tool is used for processing.
According to some embodiments, the automatic server aging test method may be specifically implemented as shown in fig. 2:
judging whether the testing process is a local test or a remote test;
when the service environment of the server to be tested is a local test:
powering on a server to be tested, starting up the server, and copying a test tool and a script to/opt;
directly executing onekey.sh (one-key.sh script);
when the service environment of the server to be tested is remote testing: if a single test is carried out;
copying the test tool and the script to the/opt/lower part of a Master Server;
and (3) arranging the IP of the server to be tested into a list and storing the list in ip.list (IP rule list), and then executing the ip.list as the parameter of the tool onekey.sh.
When the service environment of the server to be tested is remote testing: if multiple tests are carried out;
copying the test tool and the script to/opt/lower of a plurality of Master servers; and if the other steps are not changed, the Master Server (Master Server) controls the test operation of other servers.
According to the automatic aging test method for the server based on Expect, the server aging test program is received, and the server aging test program comprises a server aging auxiliary test program and a test execution program; storing the server aging degree test program into a directory placed by additional installation software of a server host; the server aging degree test program is operated to obtain the automatic aging test result of the server, so that the technical problems that test items are dispersed, are limited by interactive operation, can only carry out local test and cannot support remote in the prior art are solved, one-key operation is realized, the test time is saved, and the test efficiency is improved; the method is not limited by distance, and simultaneously supports local test and remote test; batch operation is not affected by the number of servers.
In accordance with the above method, embodiments of the present invention also provide a computer readable storage medium storing machine executable instructions, which when invoked and executed by a processor, cause the processor to perform the steps of the above method.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
For another example, the division of the unit is only one division of logical functions, and there may be other divisions in actual implementation, and for another example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments provided by the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus once an item is defined in one figure, it need not be further defined and explained in subsequent figures, and moreover, the terms "first", "second", "third", etc. are used merely to distinguish one description from another and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; and the modifications, changes or substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention. Are intended to be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. An automated aging test method for a server is characterized by comprising the following steps:
receiving a server aging degree test program, wherein the server aging degree test program comprises a server aging degree auxiliary test program and a test execution program;
storing the server aging degree test program into a directory placed by additional installation software of a server host;
and running the server aging degree test program to obtain the server automatic aging test result.
2. The method according to claim 1, wherein the step of running a server aging test program to obtain a server automated aging test result specifically comprises:
when the server aging degree test program runs, whether the type of the test process is a local test or a remote test is judged, and when the type is the remote test, the remote test is carried out on the server to be tested based on the automatic interactive program Expect.
3. The method of claim 2, wherein when the server under test is a remote server, the method further comprises:
detecting whether an IP rule list file of a server to be tested is contained in a main server, if the server does not contain the IP rule list file, determining the service environment of the server to be tested to be a local environment, and carrying out local test;
if the server contains an IP rule list file, detecting whether the IP rule list file is empty, and if the IP rule list file is empty, determining that the service environment of the server is a local environment, and performing local test;
and if the server to be tested contains the IP rule list file and the IP rule list file is not empty, remotely testing the server indicated by the IP rule list file through the server.
4. The automated server burn-in test method according to claim 1, wherein the test execution program is a one-key sh script, and parameters of the one-key sh script are built-in parameters when a local test is run.
5. The method according to claim 1, wherein the auxiliary server aging test program includes an input/output pressure test program, the input/output pressure test program is used for detecting the aging degree of the hard disk, and the step of operating the auxiliary server aging test program to obtain the automatic server aging test result includes:
and detecting the local hard disk, searching and removing the disk where the operating system is located, and testing by taking other disks except the disk where the operating system is located as test objects of the input/output pressure test program.
6. The method according to claim 1, wherein the auxiliary server aging test program includes a main processor test program, and the step of operating the auxiliary server aging test program to obtain the automatic server aging test result specifically includes:
and collecting the main processor information of the server to be tested, and testing the main processor according to the obtained main processor information.
7. The method according to claim 1, wherein the server aging degree auxiliary test program includes a memory test program, and the step of operating the server aging degree test program to obtain the server automated aging test result specifically includes: and collecting the memory information of the server to be tested, and testing the memory.
8. The method according to claim 1, wherein the server aging degree auxiliary test program includes a hybrid channel distribution card and a cable test program, and the step of operating the server aging degree test program to obtain the server automated aging test result specifically includes:
detecting whether the server to be detected is provided with a mixed channel distribution card and checking whether a cable is connected, and if the server to be detected is not connected with the cable, ending the test;
and if the server to be detected has cable connection, writing the configuration information of the mixed channel distribution card into a setting file by using a tool for processing interaction, performing restart operation of the conversion cable server, and checking whether the configuration is successful and effective.
9. The automated server aging testing method according to claim 3, wherein the step of remotely testing the server to be tested based on the automated interactive program Expect specifically comprises:
checking whether the network is smooth according to the content in the IP rule list file, and if the network is not smooth, recording a log and printing the log to a screen;
and if the network is smooth, logging in a remote server to be tested by using an EXPECT command, and sending the server aging degree test program to a directory placed by additional installation software of a host of the remote server to be tested.
10. A computer readable storage medium having stored thereon machine executable instructions which, when invoked and executed by a processor, cause the processor to execute the method of any of claims 1 to 9.
CN202011100684.4A 2020-10-15 2020-10-15 Automatic aging test method for server and storage medium Active CN112269733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011100684.4A CN112269733B (en) 2020-10-15 2020-10-15 Automatic aging test method for server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011100684.4A CN112269733B (en) 2020-10-15 2020-10-15 Automatic aging test method for server and storage medium

Publications (2)

Publication Number Publication Date
CN112269733A true CN112269733A (en) 2021-01-26
CN112269733B CN112269733B (en) 2022-08-16

Family

ID=74338113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011100684.4A Active CN112269733B (en) 2020-10-15 2020-10-15 Automatic aging test method for server and storage medium

Country Status (1)

Country Link
CN (1) CN112269733B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114003448A (en) * 2021-09-30 2022-02-01 苏州浪潮智能科技有限公司 Circulating aging test method, device, equipment and medium for server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970655A (en) * 2014-05-08 2014-08-06 浪潮电子信息产业股份有限公司 Expect-based automatic server cluster testing method
CN109901982A (en) * 2019-02-28 2019-06-18 苏州浪潮智能科技有限公司 Method, equipment and the medium of automatic running performance test based on linux

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970655A (en) * 2014-05-08 2014-08-06 浪潮电子信息产业股份有限公司 Expect-based automatic server cluster testing method
CN109901982A (en) * 2019-02-28 2019-06-18 苏州浪潮智能科技有限公司 Method, equipment and the medium of automatic running performance test based on linux

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114003448A (en) * 2021-09-30 2022-02-01 苏州浪潮智能科技有限公司 Circulating aging test method, device, equipment and medium for server
CN114003448B (en) * 2021-09-30 2023-08-22 苏州浪潮智能科技有限公司 Method, device, equipment and medium for testing cyclic aging of server

Also Published As

Publication number Publication date
CN112269733B (en) 2022-08-16

Similar Documents

Publication Publication Date Title
CN110764945A (en) Crash log processing method, device, equipment and storage medium
CN111143150A (en) Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit
CN102736978A (en) Method and device for detecting installation status of application program
CN112269697B (en) Equipment storage performance testing method, system and related device
CN108376110B (en) Automatic detection method, system and terminal equipment
CN112269733B (en) Automatic aging test method for server and storage medium
CN107894935B (en) OPS computer module detection processing method and device and electronic equipment
CN107621963B (en) Software deployment method, software deployment system and electronic equipment
CN106201787A (en) Terminal control method and device
CN112084108A (en) Test script generation method and device and related components
CN112596750B (en) Application testing method and device, electronic equipment and computer readable storage medium
CN107168819B (en) Method and device for restarting operating system
CN114911656A (en) Automatic IPMI instruction testing method, single chip microcomputer and related device
CN110866492B (en) Baseline branch identification method and device and computer system
CN113449308A (en) Vulnerability processing method and device, computer equipment and readable storage medium
CN110362464B (en) Software analysis method and equipment
CN111124841A (en) Abnormal page alarming method and device and computer system
CN114816876A (en) Automatic test system for server Redfish interface specification
CN116913361B (en) Automatic hard disk testing method, system and medium
CN114584762A (en) Set top box testing method and device, set top box and storage medium
CN117762444A (en) Software package updating method and device, electronic equipment and storage medium
CN106156991B (en) Operation problem processing method and device
CN114064511A (en) Custom monitoring index development method and device
CN112650679A (en) Test verification method and device and computer system
CN114647574A (en) Problem positioning method, device and storage medium

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