CN112787889B - Switch cold start testing method, system and medium - Google Patents

Switch cold start testing method, system and medium Download PDF

Info

Publication number
CN112787889B
CN112787889B CN202110063543.8A CN202110063543A CN112787889B CN 112787889 B CN112787889 B CN 112787889B CN 202110063543 A CN202110063543 A CN 202110063543A CN 112787889 B CN112787889 B CN 112787889B
Authority
CN
China
Prior art keywords
test
temperature
switch
power
time
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
CN202110063543.8A
Other languages
Chinese (zh)
Other versions
CN112787889A (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 CN202110063543.8A priority Critical patent/CN112787889B/en
Publication of CN112787889A publication Critical patent/CN112787889A/en
Application granted granted Critical
Publication of CN112787889B publication Critical patent/CN112787889B/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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01KMEASURING TEMPERATURE; MEASURING QUANTITY OF HEAT; THERMALLY-SENSITIVE ELEMENTS NOT OTHERWISE PROVIDED FOR
    • G01K13/00Thermometers specially adapted for specific purposes

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a cold start testing method of an exchanger, which comprises the following steps: initializing test information and testing steps; executing the testing step according to the testing information; the testing step comprises: executing a temperature test measure on the switch according to the test information to obtain a temperature test result; starting timing according to the temperature test result to generate first time; executing a power-on test measure on the switch according to the first time and the test information to obtain a power-on test result; modifying the test information according to the power-on test result, and executing a cycle measure and a recovery test measure on the switch according to the modified test information; the invention can fully automatically carry out cold start tests on the switch at different temperatures, greatly improves the test efficiency, saves the test time, increases the test diversity and further improves the stability of the switch.

Description

Switch cold start test method, system and medium
Technical Field
The invention relates to the technical field of switch testing, in particular to a method, a system and a medium for testing cold start of a switch.
Background
With the wider and wider application range of networks, the environments applied by the networks are various, so that the applicability of some network devices in different environments is required to be very strong, and a switch is one of the network devices; because the examination of the network equipment by the change of the environment is heavily reflected on the temperature, the cold start test of the switch at different temperatures can be carried out in the production process of the switch, and the applicability of the switch in different environments is further ensured;
the existing testing method is to set time and temperature to test the switch, and to perform cycle testing at different temperatures, and to start script to perform pressurization testing on the switch during the testing process; the test duration of the pressurization test and the cycle test is long, the cycle times of the whole test are more, the total time consumption of the whole test is extremely long, and the whole test needs to be manually controlled; due to the uncertainty of human control, the testing efficiency of the whole testing process is extremely low, and the switch retest caused by some wrong operations is inevitable.
Disclosure of Invention
The invention mainly solves the problem of low testing efficiency of the existing cold start testing method of the exchanger.
In order to solve the technical problems, the invention adopts a technical scheme that: the switch cold start testing method comprises the following steps:
initializing test information and testing steps; executing the testing step according to the testing information;
the testing step comprises:
executing a temperature test measure on the switch according to the test information to obtain a temperature test result; starting timing according to the temperature test result to generate first time; executing a power-on test measure on the switch according to the first time and the test information to obtain a power-on test result;
and modifying the test information according to the power-on test result, and executing a circulating measure and recovering a test measure on the switch according to the modified test information.
Further, the test information comprises communication data, test items and test scripts; the power-on test result comprises success of the power-on test and failure of the power-on test;
the testing step further comprises:
establishing communication with the switch according to the communication data, detecting the communication condition of the switch, adjusting the temperature of the environment where the switch is located according to the communication condition and the test item, and executing the temperature test measure after adjusting the temperature of the environment where the switch is located to obtain a temperature test result corresponding to the test item;
when the power-on test result is that the power-on test is successful, modifying the test item; and executing the circulation measure and the recovery test measure on the switch according to the modified test item.
Further, the test items include: the method comprises the following steps of testing times, a testing time threshold value, a temperature threshold value, no-power-supply testing time, a power-supply testing time threshold value, power-off testing time, recovery temperature time, a network threshold value and testing temperature, wherein the testing temperature comprises a first temperature and a second temperature;
the test script includes: starting a script, clearing a network test information script, pressurizing the script, stopping the script and checking the script by the network test information.
Further, the testing step further comprises: the communication condition comprises normal communication and abnormal communication, and when the communication condition is normal communication, the temperature of the environment where the switch is located is adjusted to the first temperature;
the temperature test measures are as follows: detecting the temperature of the environment where the switch is located, calculating the absolute value of the difference between the temperature of the environment where the switch is located and the first temperature, comparing whether the absolute value is smaller than the temperature threshold value, and if so, judging that the environment temperature is normal according to the temperature test result;
when the temperature test result is that the environmental temperature is normal, timing is started to generate first time;
when the first time is the same as the unpowered test time, executing a power-on test measure on the switch;
when the power-on test result is that the power-on test is successful, modifying the test times, and detecting whether the test times reach the test time threshold value; if yes, executing the recovery test measure according to the test temperature; if not, executing the circulation measure.
Further, the power-on test measures are as follows:
powering up the switch; clearing the first time, starting timing again to generate a second time, and detecting the power-on condition of the switch; the power-on condition comprises power-on normal and power-on abnormal;
if the power-on condition is that the power-on is normal, executing a starting confirmation measure on the switch to obtain a confirmation result; the confirmation result comprises the completion of the startup of the switch and the incomplete startup of the switch;
if the confirmation result is that the switch is started, calling the starting script;
after the starting script is called, detecting the running condition of the switch; the operation condition comprises normal operation and abnormal operation;
if the running condition is that the running is normal, network test initialization operation is executed on the switch;
after the network test initialization operation is executed, calling the network test information clearing script;
after the script for clearing the network test information is called, the running condition of the switch is detected again, if the running condition is that the running is normal, the network test measure is executed on the switch to generate the network test information, and meanwhile, the pressurizing script is called to carry out pressurizing test on the switch;
detecting whether the network test information is the same as the network threshold, if so, detecting whether the absolute value of the difference between the second time and the power supply test time is the same as the power supply test time threshold, and if so, finishing the execution of the network test measures;
when the network test measures are executed, calling the stop script to stop the pressurization test, calling the network test information check script to acquire the network test information, and recording the current time point;
naming and storing the network test information according to the first temperature and the current time point;
and detecting whether the second time is the same as the power supply test time, if so, powering down the switch, marking the first temperature as the tested temperature, and judging that the power-up test is successful.
Further, the circulation measures are as follows: clearing the second time, and starting timing again to generate a third time; and detecting whether the third time is equal to the power-off test time, and if so, executing the power-on test measure on the switch.
Further, the step of executing the recovery test measure according to the test temperature further includes:
detecting whether a test temperature which is not marked as the tested temperature exists in the test temperatures, if so, adjusting the temperature of the environment where the switch is located to the second temperature, and executing the temperature test measure on the switch; if not, executing the recovery test measure;
the first temperature is any one of the test temperatures; the second temperature is a test temperature of the test temperatures other than the marked as the tested temperature.
Further, the recovery test measures are as follows: setting a recovery temperature, and adjusting the temperature of the environment where the switch is located to the recovery temperature; clearing the third time, and starting timing again to generate a fourth time; and detecting whether the fourth time is the same as the temperature recovery time, if so, completing the execution of the recovery test measures.
The invention also provides a switch cold start test system, which comprises:
the device comprises an initialization module and a main test module;
the initialization module is used for initializing test information and testing steps;
the main test module is used for executing the test step according to the test information; the main test module executes a temperature test measure on the switch through the test step to obtain a temperature test result; the main test module executes a power-on test measure on the switch through the temperature test result to obtain a power-on test result; the main test module modifies the test information according to the power-on test result to generate new test information; and the main test module executes a circulation measure and a recovery test measure through the new test information.
The invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the switch cold start testing method.
The invention has the beneficial effects that:
1. the cold start testing method of the switch can realize full automation of cold start testing of the switch at different temperatures, greatly improve testing efficiency, save testing time, increase testing diversity and further improve stability of the switch.
2. The switch cold start test system can realize cold start tests at different temperatures on the switch through the mutual cooperation of the initialization module and the main test module, greatly improves the test efficiency, saves the test time, increases the test diversity and further improves the stability of the switch.
3. The computer readable storage medium can realize the cooperation of the guide initialization module and the main test module, further realize the cold start test of the switch at different temperatures, greatly improve the test efficiency, save the test time, increase the test diversity, further improve the stability of the switch, and effectively improve the operability of the switch cold start test method.
Drawings
Fig. 1 is a flowchart of a switch cold start test method according to embodiment 1 of the present invention;
fig. 2 is a logic diagram of a switch cold start test method according to embodiment 1 of the present invention;
fig. 3 is a topology diagram of a switch cold start test system according to embodiment 2 of the present invention;
fig. 4 is an architecture diagram of a switch cold start test system according to embodiment 2 of the present invention.
Detailed Description
The following detailed description of the preferred embodiments of the present invention, taken in conjunction with the accompanying drawings, will make the advantages and features of the present invention more comprehensible to those skilled in the art, and will thus provide a clear and concise definition of the scope of the present invention.
In the description of the present invention, it should be noted that the terms "first", "second", "third", and "fourth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that LabView is a program development environment, mac (media Access control) is an ethernet or lan, and ip (internet protocol) is an internet protocol.
Example 1
The embodiment provides a switch cold start testing method, as shown in fig. 1 and fig. 2, including the following steps:
in the embodiment, an automatic test software can be developed based on LabView to realize the method;
s100, initializing test information, and storing the test information, wherein the test information can be modified according to a test condition, and specifically comprises the following steps:
s110, setting communication data; wherein, the communication data includes: port number, communication protocol and baud rate; setting configuration data so that the switch can receive correct requests or instructions; multiple switches may be tested simultaneously according to multiple port numbers.
S120, setting a test item; the test items include: the system comprises the following components of test times, a test time threshold, a temperature threshold upper limit, no-power-supply test time, a power-supply test time threshold, power-off test time, recovery temperature time, a network threshold, and a plurality of different test temperatures, wherein the test temperatures comprise a first temperature, a second temperature and the like.
S130, setting a test script; the test script includes: starting a script, clearing a network test information script, pressurizing the script, stopping the script, checking the script of the sensor information and checking the script of the network test information.
S140, setting network test data; the network test data includes: slot number, port rate and traffic information; the traffic information includes: traffic MAC address, traffic IP address, traffic line speed, etc.
And S150, setting a test result storage path.
S200, setting a test rule (namely a test step), testing the switch according to the test information and the test rule to obtain a test result, and modifying the test times according to the test result;
the test rule is as follows:
s210, establishing communication with the switch according to the communication data, detecting whether the communication condition of the switch is normal or not, if the communication condition of the switch is abnormal, sending an abnormal alarm signal, supplying power to the switch, troubleshooting the switch according to the abnormal alarm signal, establishing communication with the switch again after troubleshooting of the switch is finished, and if the communication condition is normal, powering off the switch.
And S220, if the communication condition of the switch is normal, adjusting the temperature of the environment where the switch is located to a first temperature, and simultaneously executing a temperature test measure.
The temperature test measures are as follows: detecting the temperature of the environment where the switch is located; when the absolute value of the difference between the temperature of the environment where the switch is located and the first temperature is smaller than the temperature threshold, judging that the environment temperature is normal, starting timing, generating first time, and executing a power-on test measure according to the first time;
when the absolute value of the difference between the temperature of the environment where the switch is located and the first temperature is larger than the temperature threshold, judging that the environment temperature is abnormal, and sending a first temperature alarm signal;
when the absolute value of the difference between the temperature of the environment where the switch is located and the first temperature is larger than the upper limit of the temperature threshold value, stopping the testing step and sending a second temperature alarm signal;
the executing of the power-on test measure according to the first time specifically comprises:
when the first time is the same as the unpowered test time, executing a power-on test measure on the switch;
the power-on test measures are as follows: powering up the switch; re-timing to generate second time, detecting the power-on condition of the switch, and if the power-on condition is normal, executing a starting confirmation measure on the switch to obtain a confirmation result; if the power-on condition is power-on abnormity, sending a power-on alarm signal;
the switch is provided with a serial port output log, and the starting confirmation measures are as follows: detecting whether an initialization keyword, such as 'please input a user name', appears in the serial port output log, if so, judging that the confirmation result is that the switch is started, and calling a start script; meanwhile, detecting whether abnormal information appears in the serial port output log, if so, stopping testing and sending a log alarm signal;
if not, judging that the running condition of the switch is normal, and after calling the start script, executing a network test initialization operation on the switch, wherein the network test initialization operation is as follows: acquiring a network transmission path of the switch; after the network test initialization operation is executed, a script for clearing network test information is called;
after the script for clearing the network test information is called, executing a network test measure, calling a pressurizing script and a sensor information checking script simultaneously to perform a pressurizing test on the switch, detecting whether abnormal information occurs in the serial port output log, if so, stopping the test and sending a log alarm signal; if not, judging the running condition of the switch to be normal, and continuing to execute network test measures;
when a network test measure is executed, generating corresponding network test information, detecting whether the network test information is the same as the network threshold value, if not, judging that the exchanger has packet loss or packet error phenomenon, stopping the test, and sending a network alarm signal;
when the absolute value of the difference between the second time and the power supply test time is equal to the power supply test time threshold value, the network test measures are executed, a stop script is called to stop the pressurization test, a network test information check script is called to obtain the network test information, the current time point is recorded, and the network test information is named and stored according to the test temperature and the current time point;
and when the second time is the same as the power supply test time, powering down the switch, and marking the first temperature as the tested temperature to obtain the test result, wherein the test result is that the test is successful.
S300, when the test result is that the test is successful, increasing the test times once, and when the test times are smaller than the test times threshold, executing a circulation measure; the circulation measures are as follows: re-timing to generate a third time; when the third time is equal to the power-down test time, performing the power-up test measure on the switch;
when the test times are equal to the test time threshold value, detecting whether a test temperature which is not marked as the tested temperature exists in the test temperatures; if so, adjusting the temperature of the environment where the switch is located to the test temperature except the tested temperature marked as the tested temperature in the test temperatures, and executing a temperature test measure; if not, completing the test of the switch at all the test temperatures, and executing the recovery test measures.
The recovery test measures are as follows: and setting a recovery temperature, adjusting the environment temperature to the recovery temperature, timing again to generate a fourth time, and when the fourth time is the same as the recovery temperature time, acquiring curve information corresponding to the environment temperature, storing the curve information and completing all tests.
When any one of the abnormal alarm signal, the temperature alarm signal, the log alarm signal, the power-on alarm signal and the network alarm signal is received, the mail or the information is sent to a manager.
In this embodiment, the method can also be applied to cold start tests of various switches besides the temperature test.
Example 2
The present embodiment provides a switch cold start test system, as shown in fig. 3 and fig. 4, including:
the device comprises an initialization module, a main test module and an alarm processing module; the switch is placed in the main test module;
the initialization module initializes the test information and stores the test information, and the configuration information can be modified according to the test condition, specifically:
setting communication data; wherein, the communication data includes: port number, communication protocol, and baud rate; setting configuration data so that the switch can receive correct requests or instructions; the plurality of switches can be tested simultaneously according to the plurality of port numbers;
setting a test item; the test items include: the method comprises the following steps of testing a time threshold value, a temperature threshold value upper limit, no-power-supply testing time, a power-supply testing time threshold value, power-off testing time, temperature recovery time, a network threshold value, a plurality of different testing temperatures, wherein the testing temperatures comprise a first temperature, a second temperature and the like;
setting a test script; the test script includes: starting a script, clearing a network test information script, pressurizing the script, stopping the script, checking the script of the sensor information and checking the script of the network test information;
setting network test data; the network test data includes: slot number, port rate and traffic information; the traffic information includes: a traffic MAC address, a traffic IP address, a traffic line speed, and the like;
and setting a test result saving path.
The main test module sets a test rule, tests the switch according to the test information and the test rule to obtain a test result, and modifies the test times according to the test result; the method specifically comprises the following steps:
the main test module is provided with a communication module, a temperature control module, a network test module, a timing module, a script calling module, a marking module and a power supply module; the switch is placed in the temperature control module;
the main testing module is communicated with the switch through the communication module and the configuration data, the communication module detects whether the communication condition is normal or not, if the communication condition is normal, the testing is started, if the communication condition is abnormal, the communication module sends an abnormal alarm signal to the alarm processing module, the power supply module supplies power to the switch, the switch is subjected to fault troubleshooting according to the abnormal alarm signal, after the troubleshooting of the switch is finished, the communication module is communicated with the switch again, and if the communication condition is normal at the moment, the power supply module cuts off the power to the switch;
the temperature control module adjusts the ambient temperature to a first temperature and detects the ambient temperature according to the test item; if the absolute value of the difference between the environment temperature and the first temperature is smaller than the temperature threshold, a timing module starts timing to generate first time; if the absolute value of the difference between the ambient temperature and the first temperature is greater than the temperature threshold, judging that the temperature control module is abnormal, and sending a first temperature alarm signal to an alarm processing module by the temperature control module; if the absolute value of the difference between the ambient temperature and the first temperature is greater than the upper limit of the temperature threshold, stopping the test, and sending a second temperature alarm signal to an alarm processing module by a temperature control module;
when the first time is the same as the initial test time of the equipment, a power supply module powers on the switch; the timing module counts again to generate second time, the power supply module detects the power-on condition of the switch, and if the power-on condition is abnormal, the power supply module sends a power-on alarm signal to the alarm processing module;
the switch is provided with a serial port output log, the script calling module detects whether an initialization keyword, such as 'please input a user name', appears in the serial port output log of the switch, if so, the script calling module judges that the switch is started, the script calling module calls a starting script, meanwhile, the script calling module detects whether abnormal information appears in the serial port output log, if so, the test is stopped, and the script calling module sends a log alarm signal to the alarm processing module;
the network test module executes network test initialization operation on the switch, and the network test initialization operation is as follows: the network test module acquires a network transmission path of the switch; after the network test initialization operation is executed, the script calling module calls a script for clearing network test information;
after the network test information clearing script is called, the network test module executes network test measures, the script calling module calls a pressurizing script and a sensor information checking script to simultaneously perform pressurizing test on the switch, meanwhile, the script calling module detects whether abnormal information occurs in the serial port output log, if so, the test is stopped, and the script calling module sends a log alarm signal to the alarm processing module;
when the network test module executes network test measures, generating corresponding network test information, detecting whether the network test information is the same as the network threshold value or not by the network test module, if not, judging that the switch has packet loss or packet error phenomenon by the network test module, stopping testing, and sending a network alarm signal to the alarm processing module by the network test module;
when the absolute value of the difference between the second time and the power supply test time is equal to the power supply time threshold, the network test module stops executing network test measures, the script calling module calls a stop script to stop the pressurization test, the script calling module calls the network test information to check the script to obtain the network test information and records the current time point, and the script calling module names and stores the network test information according to the test temperature and the current time point;
and when the second time is the same as the power supply test time, powering down the switch by the power supply module, marking the first temperature as the tested temperature by the marking module, and obtaining the test result, wherein the test result is successful.
When the test result is that the test is successful, the main control module increases the test times once, and the timing module counts again to generate a third time;
when the test times are smaller than the test times threshold value and the third time is equal to the power-off test time, the main control module executes the power-on test measures on the switch;
when the test times are equal to the test time threshold, the main control module detects whether a test temperature which is not marked as the tested temperature exists in the test temperatures; if so, adjusting the temperature of the environment where the switch is located to the test temperature except the tested temperature marked as the tested temperature by the temperature control module, and executing a temperature test measure; if not, completing the test of the switch at all the test temperatures, and executing the recovery test measures.
The recovery test measures are as follows: the temperature control module sets a recovery temperature, the temperature control module adjusts the ambient temperature to the recovery temperature, the timing module performs timing again to generate fourth time, and when the fourth time is the same as the recovery temperature, the main test module acquires curve information corresponding to the ambient temperature and stores the curve information to finish all tests.
The alarm processing module is used for receiving an abnormal alarm signal, a temperature alarm signal, a log alarm signal, a power-on alarm signal and a network alarm signal; and when the alarm processing module receives any alarm signal, sending a mail or information to a manager.
Based on the same inventive concept as one of the methods in the foregoing embodiments, an embodiment of the present specification further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the switch cold start testing method.
Different from the prior art, the cold start testing method, the cold start testing system and the cold start testing medium for the switch can realize full automation of cold start testing at different temperatures for the switch, different solutions are provided for different fault conditions, testing efficiency is greatly improved, testing time is saved, testing diversity is increased, and stability of the switch is further improved.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps of implementing the above embodiments may be implemented by hardware, and a program that can be implemented by the hardware and can be instructed by the program to be executed by the relevant hardware may be stored in a computer readable storage medium, where the storage medium may be a read-only memory, a magnetic or optical disk, and the like.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A cold start test method for an exchanger is characterized by comprising the following steps:
initializing test information and testing steps; executing the testing step according to the testing information;
the testing step comprises:
executing a temperature test measure on the switch according to the test information to obtain a temperature test result; starting timing according to the temperature test result to generate first time; executing a power-on test measure on the switch according to the first time and the test information to obtain a power-on test result; modifying the test information according to the power-on test result, and executing a cycle measure and a recovery test measure on the switch according to the modified test information;
the test information includes: communication data, test items and test scripts; the power-on test result comprises success of the power-on test and failure of the power-on test;
the test items include: the system comprises a temperature threshold, power supply test time, a power supply test time threshold, power-off test time, recovery temperature time, a network threshold and a test temperature, wherein the test temperature comprises a first temperature;
the test script includes: starting a script, clearing a network test information script, pressurizing the script, stopping the script and checking the network test information script;
the temperature test measures are as follows:
detecting the temperature of the environment where the switch is located, calculating the absolute value of the difference between the temperature of the environment where the switch is located and the first temperature, comparing whether the absolute value is smaller than the temperature threshold value, and if so, judging that the environment temperature is normal according to the temperature test result;
the power-on test measures are as follows:
powering up the switch; clearing the first time, starting timing again to generate a second time, and detecting the power-on condition of the switch; the power-on condition comprises power-on normal and power-on abnormal; if the power-on condition is that the power-on is normal, executing a starting confirmation measure on the switch to obtain a confirmation result;
the confirmation result comprises the completion of the startup of the switch and the incomplete startup of the switch; if the confirmation result is that the switch is started, calling the starting script; after the starting script is called, detecting the running condition of the switch;
the operation condition comprises normal operation and abnormal operation; if the running condition is that the running is normal, network test initialization operation is executed on the switch; after the network test initialization operation is executed, calling the network test information clearing script; after the script for clearing the network test information is called, the running condition of the switch is detected again, if the running condition is that the running is normal, the network test measure is executed on the switch to generate the network test information, and meanwhile, the pressurizing script is called to perform pressurizing test on the switch; detecting whether the network test information is the same as the network threshold, if so, detecting whether the absolute value of the difference between the second time and the power supply test time is the same as the power supply test time threshold, and if so, finishing the execution of the network test measures;
when the network test measures are executed, calling the stop script to stop the pressurization test, calling the network test information check script to acquire the network test information, and recording the current time point; naming and storing the network test information according to the first temperature and the current time point; detecting whether the second time is the same as the power supply test time, if so, powering down the switch, marking the first temperature as a tested temperature, and judging that the power-up test is successful;
the circulation measures are as follows:
clearing the second time, and starting timing again to generate a third time; detecting whether the third time is equal to the power-off test time or not, and if so, executing the power-on test measure on the switch;
the recovery test measures are as follows:
setting a recovery temperature, and adjusting the temperature of the environment where the switch is located to the recovery temperature; clearing the third time, and starting timing again to generate a fourth time; and detecting whether the fourth time is the same as the temperature recovery time, if so, completing the execution of the recovery test measures.
2. The switch cold start test method of claim 1, characterized by: the test information comprises communication data, test items and test scripts; the power-on test result comprises success of the power-on test and failure of the power-on test;
the testing step further comprises:
establishing communication with the switch according to the communication data, detecting the communication condition of the switch, adjusting the temperature of the environment where the switch is located according to the communication condition and the test item, and executing the temperature test measure after adjusting the temperature of the environment where the switch is located to obtain a temperature test result corresponding to the test item;
when the power-on test result is that the power-on test is successful, modifying the test item; and executing the circulation measure and the recovery test measure on the switch according to the modified test item.
3. The switch cold start test method of claim 2, characterized by:
the test item further includes: testing times, a threshold value of the testing times and unpowered testing time;
the test temperature further includes a second temperature.
4. A switch cold start test method according to claim 3, characterized in that: the testing step further comprises:
the communication condition comprises normal communication and abnormal communication, and when the communication condition is normal communication, the temperature of the environment where the switch is located is adjusted to the first temperature;
when the temperature test result is that the environmental temperature is normal, timing is started to generate first time;
when the first time is the same as the unpowered test time, executing a power-on test measure on the switch;
when the power-on test result is that the power-on test is successful, modifying the test times, and detecting whether the test times reach the test time threshold value; if yes, executing the recovery test measure according to the test temperature; and if not, executing the circulation measures.
5. The switch cold start test method of claim 4, characterized by: the step of executing the recovery test measure according to the test temperature further comprises:
detecting whether a test temperature which is not marked as the tested temperature exists in the test temperatures, if so, adjusting the temperature of the environment where the switch is located to the second temperature, and executing the temperature test measure on the switch; if not, executing the recovery test measure;
the first temperature is any one of the test temperatures; the second temperature is a test temperature of the test temperatures other than the marked as the tested temperature.
6. The switch cold start test system based on the switch cold start test method according to any one of claims 1 to 5, comprising: the device comprises an initialization module and a main test module;
the initialization module is used for initializing test information and testing steps;
the main test module is used for executing the test step according to the test information; the main test module executes a temperature test measure on the switch through the test step to obtain a temperature test result; the main test module executes a power-on test measure on the switch through the temperature test result to obtain a power-on test result; the main test module modifies the test information through the power-on test result to generate new test information; and the main test module executes a circulation measure and a recovery test measure through the new test information.
7. A computer-readable storage medium, having a computer program stored thereon, which, when executed by a processor, performs the steps of the switch cold start testing method of any one of claims 1 to 5.
CN202110063543.8A 2021-01-18 2021-01-18 Switch cold start testing method, system and medium Active CN112787889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110063543.8A CN112787889B (en) 2021-01-18 2021-01-18 Switch cold start testing method, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110063543.8A CN112787889B (en) 2021-01-18 2021-01-18 Switch cold start testing method, system and medium

Publications (2)

Publication Number Publication Date
CN112787889A CN112787889A (en) 2021-05-11
CN112787889B true CN112787889B (en) 2022-09-20

Family

ID=75757482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110063543.8A Active CN112787889B (en) 2021-01-18 2021-01-18 Switch cold start testing method, system and medium

Country Status (1)

Country Link
CN (1) CN112787889B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115174455B (en) * 2022-06-29 2023-09-08 中国航空无线电电子研究所 ARINC664 switch starting time test method based on asynchronous clock
CN115695265A (en) * 2022-10-20 2023-02-03 深圳市智微智能科技股份有限公司 Automatic circulation power-on and power-off test method and equipment for switch and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262646A (en) * 2015-11-10 2016-01-20 上海斐讯数据通信技术有限公司 A method for testing reliability of a switch
CN106789423A (en) * 2016-12-20 2017-05-31 深圳市菲菱科思通信技术股份有限公司 Interchanger automatic test device and method of testing
CN109274555A (en) * 2018-10-11 2019-01-25 深圳市菲菱科思通信技术股份有限公司 Interchanger automatic test device and test method
CN112073263A (en) * 2020-08-28 2020-12-11 苏州浪潮智能科技有限公司 Method, system, equipment and medium for testing and monitoring reliability of white box switch

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262646A (en) * 2015-11-10 2016-01-20 上海斐讯数据通信技术有限公司 A method for testing reliability of a switch
CN106789423A (en) * 2016-12-20 2017-05-31 深圳市菲菱科思通信技术股份有限公司 Interchanger automatic test device and method of testing
CN109274555A (en) * 2018-10-11 2019-01-25 深圳市菲菱科思通信技术股份有限公司 Interchanger automatic test device and test method
CN112073263A (en) * 2020-08-28 2020-12-11 苏州浪潮智能科技有限公司 Method, system, equipment and medium for testing and monitoring reliability of white box switch

Also Published As

Publication number Publication date
CN112787889A (en) 2021-05-11

Similar Documents

Publication Publication Date Title
CN112787889B (en) Switch cold start testing method, system and medium
CN104899120A (en) Server stability test method based on BMC startup and shutdown functions
CN111414285A (en) Test method, test device and test equipment for starting function of server system
US20180077232A1 (en) Method and Device for Establishing Communication Connection
CN111585841B (en) Automatic test method and related device
CN111338698A (en) Method and system for accurately booting server by BIOS (basic input output System)
CN114866365A (en) Arbitration machine election method and device, intelligent equipment and computer readable storage medium
CN116820820A (en) Server fault monitoring method and system
CN115665785B (en) LINUX board card-based wireless network card self-management application program module and method
CN107870840B (en) IPMI-based server multi-test instruction automatic execution method
CN116684302A (en) Method and device for testing vehicle-mounted Ethernet
CN116489046A (en) Reliability test method, device, equipment, medium and system of shunt equipment
CN111078484A (en) Power-off test method, device, equipment and storage medium for system upgrading
CN115437865A (en) Method, device, equipment and medium for testing abnormal power failure of hard disk
CN115361434A (en) Multipath heartbeat detection method under high load condition of distributed system
CN113595824B (en) Method for testing distribution network reliability of Wi-Fi Internet of things equipment and readable storage medium
CN110795293B (en) Method, system and device for testing soft shutdown of server
CN110581786A (en) Method, device, system and medium for testing communication stability of NCSI (network communication service) network
CN114338464A (en) Fault diagnosis method, device, equipment and computer readable storage medium
CN113032196A (en) Chip testing method and device
CN101567808A (en) Method for guarding network management system and the network management system
CN114553737B (en) Method and device for testing computer network wakeup and electronic equipment
CN111061597B (en) Method for testing KCS communication stability
CN117331762A (en) Test method, device, equipment and medium for link training of PCIe equipment
CN110708218B (en) Power failure protection equipment switching time detection method, device, equipment 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