CN107390115B - Method for detecting SC serial port and MC serial port of IO in raid memory in batch - Google Patents

Method for detecting SC serial port and MC serial port of IO in raid memory in batch Download PDF

Info

Publication number
CN107390115B
CN107390115B CN201710560848.3A CN201710560848A CN107390115B CN 107390115 B CN107390115 B CN 107390115B CN 201710560848 A CN201710560848 A CN 201710560848A CN 107390115 B CN107390115 B CN 107390115B
Authority
CN
China
Prior art keywords
serial port
test
serial
information
memory
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
CN201710560848.3A
Other languages
Chinese (zh)
Other versions
CN107390115A (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 Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave 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 Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201710560848.3A priority Critical patent/CN107390115B/en
Publication of CN107390115A publication Critical patent/CN107390115A/en
Application granted granted Critical
Publication of CN107390115B publication Critical patent/CN107390115B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/317Testing of digital circuits
    • G01R31/31712Input or output aspects
    • G01R31/31716Testing of input or output with loop-back

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for detecting SC serial ports and MC serial ports of IO (input/output) in raid memories in batches, which comprises the following steps: s1, building a test environment; s2, executing test and scanning the serial number of the memory; s3, logging in an SC serial port and an MC serial port of a raid memory IO, judging whether IO transmission information is stable, if the IO transmission information is unstable, repeating the step for a plurality of times, and if the IO transmission information is stable, turning to the step S4; s4, checking whether the serial port information of the SC serial port and the MC serial port can be completely displayed, if not, the test fails, and if so, turning to the step S5; s5, automatically capturing information of the SC serial port and the MC serial port for matching; and S6, judging whether the information of the SC serial port and the MC serial port is the same, if so, judging that the serial port is normal in state, and if not, judging that the test is passed, otherwise, judging that the test is failed. Compared with the prior art, the test method is simple, high in test efficiency and reliable in test result.

Description

Method for detecting SC serial port and MC serial port of IO in raid memory in batch
Technical Field
The invention relates to the technical field of memory detection, in particular to a method for detecting SC serial ports and MC serial ports of IO (input/output) in a raid memory in batches.
Background
The method can achieve the production, arrangement and delivery on time, and not only has the credit on company representing the production capacity of companies, but also influences the satisfaction degree of customers.
The efficient completion of the product testing is links which are crucial in the memory development process, and no matter in the research and development stage or the production line testing stage, the efficiency becomes a serious game, and the cost control is also important, so that each testing project needs to improve the testing efficiency as much as possible and save the cost to the maximum extent, however, is the degree of automation.
The test of IO (which can be written as I/O, which is an abbreviation of input/output, i.e., input/output port) in the memory is key links, and there are many test items, which are relatively complex compared with other tests of the memory, and the current test management and control is not comprehensive enough.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention aims to provide simple and efficient methods for batch detection of SC serial ports and MC serial ports of IO in a raid memory.
The technical scheme adopted by the invention for solving the technical problems is as follows: the method for detecting the SC serial port and the MC serial port of IO in the raid memory in batch is characterized in that: comprises the following steps of (a) carrying out,
s1, building a test environment;
s2, executing test and scanning the serial number of the memory;
s3, logging in an SC serial port and an MC serial port of a raid memory IO, judging whether IO transmission information is stable, if the IO transmission information is unstable, repeating the step for a plurality of times, and if the IO transmission information is stable, turning to the step S4;
s4, checking whether the serial port information of the SC serial port and the MC serial port can be completely displayed, if not, the test fails, and if so, turning to the step S5;
s5, automatically capturing information of the SC serial port and the MC serial port for matching;
and S6, judging whether the information of the SC serial port and the MC serial port is the same, if so, judging that the serial port is normal in state, and if not, judging that the test is passed, otherwise, judging that the test is failed.
, the building of the test environment comprises building of a hardware test environment and a software test environment, the hardware test environment is built by connecting the servers and the memories through connecting wires, servers are connected with a plurality of memories simultaneously, and the software test environment is built by installing test scripts at the server end.
Further , the test data of steps S2-S6 are all recorded in log file.
Further , the test data includes start and stop time data of the test, process data of the test on the memory, and result data of the test recorded according to the serial number of the memory.
And , judging whether the IO is stable by sending the execution condition of the command detection command to the serial port, if so, judging that the IO is stable, otherwise, judging that the IO is unstable.
, the serial port information display process is that FRU information is obtained by sending command to the serial port, the serial number of the memory is extracted from the obtained FRU information to match with the serial number scanned in the step S2, if the serial number matches the serial number scanned in the step S2, the serial port information is completely displayed, otherwise, the serial port information is not completely displayed.
, the process of matching the information of the two serial ports is to send the same command to the two serial ports through the serial port line to check the MAC addresses of the serial ports, and compare whether the character strings of the two MAC addresses are identical.
Further , the number of times is 5 times.
The invention has the beneficial effects that:
1. servers can be connected with a plurality of storages to test at the same time, the operation is convenient, and the test efficiency is improved.
2. The test data is recorded according to the serial number of the memory and a log file is generated in the test process, when the test is abnormal, the log file can be checked to obtain the reason and the position of the test abnormality, the abnormal problem is accurately positioned, the pertinence of a tester is strong during the subsequent abnormal repair, and the working efficiency is improved.
3. The whole testing process realizes automatic testing, reduces manual participation, avoids problems of errors, leakage and the like which are considered to be possibly caused by configuration, and ensures the reliability of testing results.
Drawings
FIG. 1 is a flow chart of the method of the present invention.
Detailed Description
The invention is described in detail below with reference to specific embodiments and examples for achieving different structures of the invention, in order to simplify the disclosure of the invention, furthermore, reference numerals and/or letters may be repeated in different examples, the repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or arrangements discussed.
As shown in fig. 1, the method for detecting SC serial ports and MC serial ports of IO in bulk storage of the present invention includes the following steps:
s1, building a test environment;
s2, executing test and scanning the serial number of the memory;
s3, logging in an SC serial port and an MC serial port of a raid memory IO, judging whether IO transmission information is stable, if the IO transmission information is unstable, repeating the step for a plurality of times, and if the IO transmission information is stable, turning to the step S4;
s4, checking whether the serial port information of the SC serial port and the MC serial port can be completely displayed, if not, the test fails, and if so, turning to the step S5;
s5, automatically capturing information of the SC serial port and the MC serial port for matching;
and S6, judging whether the information of the SC serial port and the MC serial port is the same, if so, judging that the serial port is normal in state, and if not, judging that the test is passed, otherwise, judging that the test is failed.
The test environment building in the step S1 comprises a hardware test environment and a software test environment, the hardware test environment is built by connecting the servers and the memories through connecting wires, servers are simultaneously connected with a plurality of memories, and the software test environment is built by installing test scripts at the server end.
The connecting line comprises USB serial ports and network cables, memories correspond to 2 USB serial ports and are respectively connected with MC serial ports and SC serial ports, servers can be matched with 4 memories at most at the same time, the SC serial ports and the MC serial ports are in IO serial port forms, and the process of installing the test script at the server end comprises the steps of gradually downloading the script into a U disk, hanging the U disk on the server, and copying the test script onto the server.
In step S2, by adding the execution permission chmod + x mc _ sc _ check, the execution command/mc _ sc _ check starts to execute a test, scans the IO serial number of the memory according to the prompt of the server terminal, and starts to record test data of each IO according to the scanned serial number, including all the test data of steps S2-S6, thereby generating a log file. The test data includes start-stop time data of the test recorded according to the serial number of the memory, process data of the test on the memory, and result data of the test.
In step S3, the command is sent to the serial port, and the execution condition of the command is detected to determine whether the IO is stable, if the command is executed by the serial port, the IO is determined to be stable, otherwise, the IO is unstable. And after the IO is judged to be unstable, repeatedly executing the step for multiple times, preferably 5 times in the invention, if the IO is still judged to be unstable, quitting the test on the memory, checking the abnormal record of the log file, performing corresponding abnormal processing, and after the abnormal processing is finished, returning to the step S2 to execute the test again.
The process of displaying the serial port information in the step S4 is to acquire FRU information by sending a command to the serial port, extract the serial number of the memory from the acquired FRU information to match the serial number scanned in the step S2, and if the matching is the same, display all the serial port information, otherwise display the serial port information incompletely. And directly returning the information of test failure in the case of incomplete display.
The process of matching the information of the two serial ports in the step S6 and the step S7 is to send the same command to the two serial ports through the serial port line to check the MAC addresses of the serial ports, and compare whether the character strings of the two MAC addresses are completely the same. If the IO data of the two serial ports are the same, the serial port state is normally tested to pass, otherwise, test failure information is returned.
The above test process only needs human participation when exception handling is performed in step S3, and the rest processes are all completed automatically, so that the test efficiency is improved, and the accuracy and reliability of the test result are ensured.
The foregoing is only a preferred embodiment of the present invention, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the invention, and such modifications and improvements are also considered to be within the scope of the invention.

Claims (7)

1. The method for detecting the SC serial port and the MC serial port of IO in the raid memory in batch is characterized in that: comprises the following steps of (a) carrying out,
s1, building a test environment,
s2, a test is performed, the serial number of the memory is scanned,
s3, logging in the SC serial port and the MC serial port of the raid memory IO, judging whether the IO transmission information is stable, if the IO transmission information is unstable, repeating the step for a plurality of times, if the IO transmission information is stable, going to the step S4,
s4, checking whether the serial port information of the SC serial port and the MC serial port can be completely displayed, if not, the test fails, if so, going to the step S5,
s5, automatically capturing information of the SC serial port and the MC serial port for matching;
s6, judging whether the information of the SC serial port and the MC serial port is the same, if so, judging that the serial port is normal, and if not, judging that the test is passed, otherwise, judging that the test is failed;
the process of serial port information display is that FRU information is obtained by sending a command to the serial port, the serial number of the memory is extracted from the obtained FRU information and matched with the serial number scanned in the step S2, if the serial port information is matched with the serial number scanned in the step S2, the serial port information is completely displayed, otherwise, the serial port information is not completely displayed.
2. The method for detecting the SC serial port and the MC serial port of the IO in the raid memories in batch according to the claim 1, wherein the building of the test environment comprises building a hardware test environment and a software test environment, the server and the memories are connected through connecting wires to build the hardware test environment, servers are connected with a plurality of memories simultaneously, and the software test environment is built by installing test scripts at a server end.
3. The method for detecting the SC serial port and the MC serial port of the IO in the raid memory in batch according to the claim 1, wherein the method comprises the following steps: the test data of steps S2-S6 are all recorded in log files.
4. The method for detecting the SC serial port and the MC serial port of the IO in the raid memory in batch according to the claim 3, wherein the method comprises the following steps: the test data comprises start-stop time data of the test recorded according to the serial number of the memory, process data of the test on the memory and result data of the test.
5. The method for detecting the SC serial port and the MC serial port of the IO in the raid memory in batch according to the claim 1, wherein the method comprises the following steps: whether IO is stable or not is judged by sending the execution condition of the command detection command to the serial port, if the serial port executes the command, the IO is judged to be stable, and if not, the IO is unstable.
6. The method for detecting the SC serial port and the MC serial port of the IO in the raid memory in batch according to the claim 1, wherein the method comprises the following steps: the process of matching the information of the two serial ports comprises the steps of sending the same command to the two serial ports through serial port lines to check the MAC addresses of the serial ports and comparing whether the character strings of the two MAC addresses are completely the same or not.
7. The method for batch testing of SC serial port and MC serial port of IO in raid memory according to any one of claims 1 to 6 and , wherein said plurality of times is 5 times.
CN201710560848.3A 2017-07-11 2017-07-11 Method for detecting SC serial port and MC serial port of IO in raid memory in batch Active CN107390115B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710560848.3A CN107390115B (en) 2017-07-11 2017-07-11 Method for detecting SC serial port and MC serial port of IO in raid memory in batch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710560848.3A CN107390115B (en) 2017-07-11 2017-07-11 Method for detecting SC serial port and MC serial port of IO in raid memory in batch

Publications (2)

Publication Number Publication Date
CN107390115A CN107390115A (en) 2017-11-24
CN107390115B true CN107390115B (en) 2020-01-31

Family

ID=60340324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710560848.3A Active CN107390115B (en) 2017-07-11 2017-07-11 Method for detecting SC serial port and MC serial port of IO in raid memory in batch

Country Status (1)

Country Link
CN (1) CN107390115B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8880802B1 (en) * 2011-08-18 2014-11-04 Lsi Corporation I/O control, synchronization method in a raid environment with co-existing hardware and software-based I/O paths
CN104217768A (en) * 2014-09-04 2014-12-17 青岛海信电器股份有限公司 Detection method and device of eMMC (Embedded multi media card) embedded memory
CN104459514A (en) * 2014-11-04 2015-03-25 兵器工业卫生研究所 I/O port logical detection method and system
CN106502844A (en) * 2016-10-11 2017-03-15 郑州云海信息技术有限公司 A kind of method of the sAS port bandwidths of test RAID memory Is O

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8880802B1 (en) * 2011-08-18 2014-11-04 Lsi Corporation I/O control, synchronization method in a raid environment with co-existing hardware and software-based I/O paths
CN104217768A (en) * 2014-09-04 2014-12-17 青岛海信电器股份有限公司 Detection method and device of eMMC (Embedded multi media card) embedded memory
CN104459514A (en) * 2014-11-04 2015-03-25 兵器工业卫生研究所 I/O port logical detection method and system
CN106502844A (en) * 2016-10-11 2017-03-15 郑州云海信息技术有限公司 A kind of method of the sAS port bandwidths of test RAID memory Is O

Also Published As

Publication number Publication date
CN107390115A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN104484274B (en) A kind of internal memory taking turn audit function method of testing based on ITP instruments
CN107391333B (en) OSD disk fault testing method and system
CN107193699A (en) One kind tests the wide time-delay method of HCA cassette tapes automatically by RDMA modes
CN109032887A (en) A kind of faulty hard disk method for rapidly positioning and system
CN109710479B (en) Processing method, first device and second device
CN114510381A (en) Fault injection method, device, equipment and storage medium
CN112905403B (en) Batch synchronous testing method and system for multiple computers
CN107390115B (en) Method for detecting SC serial port and MC serial port of IO in raid memory in batch
CN105469831B (en) The test method of memory module
CN107145415A (en) A kind of method of the batch testing HDD LED under Linux system
CN107612786B (en) Method and system for testing router
CN111666200A (en) Testing method and terminal for time consumption of cold start of PC software
CN115794525A (en) BMC (baseboard management controller) pressure testing method, device, equipment and storage medium
CN112463481B (en) Method and system for testing BMC fault diagnosis function based on remote XDP function
CN115454856A (en) Multi-application security detection method, device, medium and electronic equipment
KR101626581B1 (en) Test method for error applition of portable communication terminal
CN114461458A (en) Server memory test method, system, terminal and storage medium
CN114281611A (en) Method, system, equipment and storage medium for comprehensively detecting system disk
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN113190391A (en) Burn-in real-time detection method and system thereof
CN112910736A (en) Delivery detection method and device for communication equipment and storage medium
CN109688013B (en) Method and system for detecting matching between host name and SN of multi-stage cascade BOX
CN110795142A (en) Configuration file generation method and device
CN115250249B (en) IPv6 Ready-based automatic testing method, device, medium and equipment
CN113094221B (en) Fault injection method, device, computer equipment and readable 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20191220

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: Suzhou Wave Intelligent Technology Co., Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: Zhengzhou Yunhai Information Technology Co. Ltd.

GR01 Patent grant
GR01 Patent grant