CN106528354B - A kind of automatic method of burning memory power fru id - Google Patents

A kind of automatic method of burning memory power fru id Download PDF

Info

Publication number
CN106528354B
CN106528354B CN201610889691.4A CN201610889691A CN106528354B CN 106528354 B CN106528354 B CN 106528354B CN 201610889691 A CN201610889691 A CN 201610889691A CN 106528354 B CN106528354 B CN 106528354B
Authority
CN
China
Prior art keywords
burning
fru
memory
test
sequence number
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
CN201610889691.4A
Other languages
Chinese (zh)
Other versions
CN106528354A (en
Inventor
戈文龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201610889691.4A priority Critical patent/CN106528354B/en
Publication of CN106528354A publication Critical patent/CN106528354A/en
Application granted granted Critical
Publication of CN106528354B publication Critical patent/CN106528354B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention discloses the automatic method of burning memory power fru id a kind of, it is related to memory test technology, use the automatized script that perl language is write under linux, hardware information is grabbed by serial ports and SAS line, the automatized script is cooperated to complete burning and test to memory power fru id;Mainly include the following steps: 1) to scan memory cabinet and the sequence number of I/O, 2) I/O type and automatic load driver program are judged automatically, 3) hardware detection, 4) sequence number of scanning power supply, 5) burning power supply fru id, 6) burning complete, machine is restarted automatically, 7) restart after judge fru id whether burning successfully.The present invention reduces unnecessary human-computer interaction processes, save the resources such as manpower, time, cost, improve testing efficiency and accuracy, while the coverage rate tested is high, it is ensured that product turnout quality.

Description

A kind of automatic method of burning memory power fru id
Technical field
The present invention relates to memory test technology, specifically a kind of burning memory power fru id's is automatic Change method.
Background technique
With the arriving in information processing epoch, computer system widely applies to every profession and trade, and some attention are communicated The mechanism of quality, important information is stored in computer system, therefore the running quality of computer system is extremely important.
Memory is the important component of computer, for storing the information (program and data) of computer operation needs Component, constitute the imformation memory function of computer.Running quality of the stable power-supplying of memory power for computer system Play crucial decisive role.In order to save cost, memory power is designed as comprising multiple power supply FRU(Field Replace Unit, Field Replaceable Unit), when memory power breaks down, it is only necessary to detect that trouble power FRU is replaced i.e. Can, greatly maintain the stability of system operation.
Now with the continuous development of IT field technology, memory becomes the mainstream product of big data era, also with relating to Sufficient field is gradually increased, and market accessor demand is gradually increased.Company's memory product all comes into the volume production stage and goes out Goods amount is very big, can reach the production punctual shipment of deploying on time, and the prestige for being not only related to company also represents a company Production capacity, while also affecting the satisfaction of client.Enterprise focuses on also requiring quality secure while speed of production, for The test request of research and development and production is higher and higher.The test of section or production line is either researched and developed, the test of product can be efficient Completion be a vital link.
It is especially particularly important one to memory power fru id burning and test in the test of memory Testing process.Memory power fru id burning at present and test need a large amount of human-computer interaction processes mainly by manual operation, this The problems such as just inevitably appearance is made mistakes as caused by human factor, causes test inaccuracy, and testing time long efficiency is low, The coverage rate of test is lower simultaneously, and test control is not comprehensive enough, cannot completely intercept defective product, cause product quality It cannot ensure.The pressure next day at memory test end increases, it is desirable that each test item needs to improve efficiency, while guaranteeing The product of goods has test pass, and has test log as foundation.Therefore it is badly in need of designing a kind of burning, test memory electricity The method in source, to meet the market demand.
Summary of the invention
The present invention is directed to the demand and shortcoming of current technology development, provides a kind of burning memory power fru id Automatic method.
The automatic method of burning memory power fru id of the present invention a kind of solves above-mentioned technical problem and uses Technical solution it is as follows: a kind of automatic method of burning memory power fru id uses perl under Linux system The automatized script that language is write grabs hardware information by serial ports and SAS line, cooperates the automatized script to memory electricity Source fru id completes burning and test;Mainly include the following steps: 1) to scan memory cabinet and the sequence number of I/O, 2) it is automatic Judge I/O type and automatic load driver program, 3) hardware detection, the 4) sequence number of scanning power supply, 5) burning power supply fru id, 6) burning complete, machine is restarted automatically, 7) restart after judge fru id whether burning successfully.
Preferably, the I/O of memory is connected to server end using SAS line, Serial Port Line, and installs survey in server end The automatized script of examination.
Preferably, the step 3) hardware detection grabs information by Serial Port Line and SAS line, judge automatically server with The connection status of memory and the situation in place of modules, automatized script continues to run if in good condition, if judging Memory end and server end have exception then to report an error " test fail " in terminal, while printing error information, after queueing problem Continue to retest.
Preferably, the sequence number of the step 4) scanning power supply, which is compared into database, if sequence number exists Exist in database, then finds out the corresponding power information of this sequence number in the database;If judging power supply OK, automatized script after It is continuous to carry out, if fail, reports an error " test fail " in terminal, while printing error information, continue to survey again after queueing problem Examination.
Preferably, the step 7) judge after restarting fru id whether burning success, report an error if no success in terminal " test fail ", while error information is printed, continue to retest after queueing problem;If burning success, in end print Test pass out, EP (end of program).
What the automatic method of burning memory power fru id of the present invention a kind of had compared with prior art has Beneficial effect is: the present invention passes through the automatized script that perl language is write under linux, and whole-course automation burning, test are deposited Reservoir power supply fru id, and print, save test log, reduces unnecessary human-computer interaction process, save manpower, the time, at The resources such as this improve testing efficiency and accuracy, while the coverage rate tested is high, it is ensured that product turnout quality;This method It is easy to operate, it is not necessarily to experience also achievable relevant operation, any problem product can all be blocked and be accurately positioned problem, It can be applied to most of memory products, there is preferable popularizing value.
Detailed description of the invention
Attached drawing 1 is a kind of implementation flow chart of the automatic method of burning memory power fru id.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, to this hair A kind of bright automatic method further description of burning memory power fru id.
Embodiment:
The automatic method of burning memory power fru id described in the present embodiment, uses perl language under Linux system The automatized script write grabs hardware information by serial ports and SAS line, cooperates the automatized script to memory power Fru id completes burning and test;Whole process is executed automatically by the automatized script, and generates test log, will be tested Log is printed upon terminal, while being saved on the server, and test is allowed to have absolute guarantee.
Attached drawing 1 is the implementation flow chart of the automatic method of the burning memory power fru id, as shown in Fig. 1, The automatic method specific implementation process is as follows:
1, test environment is built, server end installs automatized script (carry USB flash disk mount/dev/sdb4 of test /mnt ;Duplication can cp/mnt/fruid/usr/local/bin/Neptune/;), connect the SAS of memory end I/O Line and Serial Port Line are to server end;
2, automatized script is executed under system (to add and execute permission chmod+x fruid;Execute order ./fruid);log Synchronous production (log can be write on automatically in the file of time name, path oneself can be specified);
3, memory cabinet and the sequence number of I/O are scanned;
print "Please scan uiom sn[]: ";
chomp($uiom_dhsn=<STDIN>);
4, I/O type and automatic load driver program are judged automatically;
sub load_driver;
if($fc) {`modprobe mptfc`}
if($sas){`modprobe mptsas`};
5, hardware detection grabs information by Serial Port Line and SAS line, judges automatically the connection status of server and memory And the situation in place of modules, automatized script will continue to run if state all OK, if judge memory end and Server end has exception that can then report an error in terminal " test fail ", while printing error information, continues again after queueing problem Test;
sub get_device
my ($encl) = @_;
my @sg_map = `sg_map -x -i`;
6, the sequence number of scanning power supply compares the sequence number into database, if sequence number exists in the database, The corresponding power information of this sequence number is found out in the database, passes through the testing station of front, such as Hi-pot test when judging power supply; If OK, automatized script continues, if fail, reports an error " test fail " in terminal, while printing error information, excludes Continue to retest after problem
print "Please scan PSU sn[]: ";
7, start burning power supply fru id;
sub write_fruid;
if ($rps_status == 0){
$cmd="frugen --rps --noconfirm --dev=" . $sg_master . " --dhrev=" . $dhrev_rps . " --oempn_rev=" . $rps_pn_rev . " --oemsn=" . $ rps_sn;
printout("both","\n[DEBUG] COMMAND: $cmd\n");
@results=`$cmd`;
8, burning is completed, and automatically restarts machine;
sub power_cycle_test;
9, fru id is judged after restarting, and whether burning is successful;It is not successful then to report an error " test fail " in terminal, it prints simultaneously Error information continues to retest after queueing problem;If burning success, goes out test pass, EP (end of program) in end print.
The automatic method of burning memory power fru id, the tool of used automatized script described in the present embodiment Hold in vivo as follows:
sub load_driver {
#fill something
if($fc) {`modprobe mptfc`}
if($sas){`modprobe mptsas`}
@lsmod_out=`lsmod | grep mptsas`;
until(@lsmod_out) {
printout("both","SAS driver not loaded\n");
printout("both","loading SAS driver...\n");
system("modprobe mptsas");
sleep 5;
@lsmod_out=`lsmod | grep mptsas`;
}
if(@lsmod_out) {
printout("both","SAS driver already loaded...\n");
}
}
sub write_fruid {
if ($rps_status == 0){
$cmd="frugen --rps --noconfirm --dev=" . $sg_master . " --dhrev=" . $dhrev_rps . " --oempn_rev=" . $rps_pn_rev . " --oemsn=" . $ rps_sn;
printout("both","\n[DEBUG] COMMAND: $cmd\n");
@results=`$cmd`;
if (grep {/FRUID updated successfully/} @results){
printout("both","RIGHT PSU FRUID updated successfully!!!\n\n");
printPass;
$rps_status = 1;
}else{
printout("both","@results\n");
printFail;
exit(0);
}
}
if ($lps_status == 0){
$cmd="frugen --lps --noconfirm --dev=" . $sg_master . " --dhrev=" . $dhrev_lps . " --oempn_rev=" . $lps_pn_rev . " --oemsn=" . $ lps_sn;
printout("both","[DEBUG] COMMAND: $cmd\n");
@results=`$cmd`;
if (grep {/FRUID updated successfully/} @results){
printout("both","LEFT PSU FRUID updated successfully!!!\n\n");
printPass;
$lps_status = 1;
}else{
printout("both","@results\n");
printFail;
exit(0);
}
}
if ($mp_status == 0){
$cmd="frugen --midplane --noconfirm --dev=" . $sg_ master . " --oempn_rev=" . $UUTpn . " --oemrev=" . $UUTrev . " --oemsn=" . $ UUTsn;
printout("both","\n[DEBUG] COMMAND: $cmd\n");
@results=`$cmd`;
if (grep {/FRUID updated successfully/} @results){
printout("both","Chassis/Midplane FRUID updated successfully!!!\n\n");
printPass;
$sfc_postfix = "PASS";
sfc_final;
$mp_status = 1;
}else{
printout("both","@results\n");
printFail;
}。
Above-mentioned specific embodiment is only specific case of the invention, and scope of patent protection of the invention includes but is not limited to Above-mentioned specific embodiment, any person of an ordinary skill in the technical field that meet claims of the present invention and any The appropriate change or replacement done to it, all shall fall within the protection scope of the present invention.

Claims (2)

1. a kind of automatic method of burning memory power fru id, which is characterized in that use perl language under Linux system The I/O of memory is connected to server end using SAS line, Serial Port Line, and installed in server end by the automatized script write The automatized script of test;Hardware information is grabbed by serial ports and SAS line, cooperates the automatized script to memory power Fru id completes burning and test;Include the following steps: 1) to scan memory cabinet and the sequence number of I/O, 2) judge automatically I/O Type and automatic load driver program;
3) hardware detection grabs information by Serial Port Line and SAS line, judges automatically the connection status of server and memory and each The situation in place of a module, automatized script continues to run if in good condition, if judging, memory end and server end have It is abnormal then report an error " test fail " in terminal, while error information is printed, continue to retest after queueing problem;
4) sequence number of scanning power supply compares the sequence number into database, if sequence number exists in the database, in number According to finding out the corresponding power information of this sequence number in library;If judging power supply OK, automatized script continues, if fail, Terminal reports an error " test fail ", while printing error information, continues to retest after queueing problem;
5) burning power supply fru id, 6) burning is completed, and is automatically restarted machine, 7) restart after judge fru id whether burning at Function.
2. a kind of automatic method of burning memory power fru id according to claim 1, which is characterized in that the step It is rapid 7) restart after judge fru id whether burning success, report an error " test fail " if no success in terminal, print simultaneously Error information continues to retest after queueing problem;If burning success, goes out test pass, EP (end of program) in end print.
CN201610889691.4A 2016-10-12 2016-10-12 A kind of automatic method of burning memory power fru id Active CN106528354B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610889691.4A CN106528354B (en) 2016-10-12 2016-10-12 A kind of automatic method of burning memory power fru id

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610889691.4A CN106528354B (en) 2016-10-12 2016-10-12 A kind of automatic method of burning memory power fru id

Publications (2)

Publication Number Publication Date
CN106528354A CN106528354A (en) 2017-03-22
CN106528354B true CN106528354B (en) 2019-09-17

Family

ID=58331541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610889691.4A Active CN106528354B (en) 2016-10-12 2016-10-12 A kind of automatic method of burning memory power fru id

Country Status (1)

Country Link
CN (1) CN106528354B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107577552A (en) * 2017-09-22 2018-01-12 郑州云海信息技术有限公司 A kind of server power supply model detection method, system, device and storage medium
CN107943699A (en) * 2017-11-24 2018-04-20 郑州云海信息技术有限公司 A kind of method and system of test server FRU and DMI synchronizing information function
CN108038032A (en) * 2017-12-08 2018-05-15 伟创力电子技术(苏州)有限公司 A kind of automatic burning test method of full-automatic mouse track keying
CN109032887A (en) * 2018-06-22 2018-12-18 郑州云海信息技术有限公司 A kind of faulty hard disk method for rapidly positioning and system
CN109032624A (en) * 2018-08-08 2018-12-18 上海庆科信息技术有限公司 A kind of test method and its device based on programming system
CN110795294B (en) * 2019-10-10 2023-07-18 深圳创维-Rgb电子有限公司 Equipment abnormality analysis method, analysis device, analysis system, and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1916876A (en) * 2005-08-19 2007-02-21 鸿富锦精密工业(深圳)有限公司 Method for burning chip
CN102508685A (en) * 2011-11-21 2012-06-20 浪潮电子信息产业股份有限公司 Method for quickly burning Firmware on blade server
CN103399761A (en) * 2013-07-22 2013-11-20 珠海全志科技股份有限公司 Firmware burn method and firmware burn device
CN103559099A (en) * 2013-10-31 2014-02-05 惠州市蓝微电子有限公司 Chip burning checking method
CN104572386A (en) * 2015-01-08 2015-04-29 浪潮电子信息产业股份有限公司 Method for automatically testing HBA card bandwidth under Linux
CN205230025U (en) * 2015-11-18 2016-05-11 上海裕析电子科技有限公司 System is write to long -range self -service fever
CN105573792A (en) * 2015-12-16 2016-05-11 深圳市创维软件有限公司 Delivery parameter burning method, equipment to be burnt, burning tool equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201301039A (en) * 2011-06-24 2013-01-01 Hon Hai Prec Ind Co Ltd System and method for burning firmware

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1916876A (en) * 2005-08-19 2007-02-21 鸿富锦精密工业(深圳)有限公司 Method for burning chip
CN102508685A (en) * 2011-11-21 2012-06-20 浪潮电子信息产业股份有限公司 Method for quickly burning Firmware on blade server
CN103399761A (en) * 2013-07-22 2013-11-20 珠海全志科技股份有限公司 Firmware burn method and firmware burn device
CN103559099A (en) * 2013-10-31 2014-02-05 惠州市蓝微电子有限公司 Chip burning checking method
CN104572386A (en) * 2015-01-08 2015-04-29 浪潮电子信息产业股份有限公司 Method for automatically testing HBA card bandwidth under Linux
CN205230025U (en) * 2015-11-18 2016-05-11 上海裕析电子科技有限公司 System is write to long -range self -service fever
CN105573792A (en) * 2015-12-16 2016-05-11 深圳市创维软件有限公司 Delivery parameter burning method, equipment to be burnt, burning tool equipment

Also Published As

Publication number Publication date
CN106528354A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN106528354B (en) A kind of automatic method of burning memory power fru id
US7694181B2 (en) Automated software testing framework
CN101145964A (en) An automatic smoke testing method and system for network management system
CN110008129B (en) Reliability test method, device and equipment for storage timing snapshot
CN110750396B (en) Server operating system compatibility testing method and device and storage medium
CN104536875A (en) IPMI-based method for carrying out automatic restart test on server
CN111274059B (en) Software exception handling method and device of slave device
CN109634825B (en) Virtualization platform stability testing method
CN113778898B (en) User interface automatic test method and device, electronic equipment and storage medium
US11257565B2 (en) Management of test resources to perform testing of memory components under different temperature conditions
CN106095680A (en) Verification disk out-of-order automatic test method applied to Linux
CN108431781A (en) The self diagnosis of the mistake of device driver detection and automatic diagnostic data are collected
CN106843966A (en) A kind of method and device for loading I/O module driver
CN104049999A (en) Automatic storage device repair system based on network and method thereof
CN106649020A (en) Detecting method and device for storage case burn information
CN101989220A (en) Pressure testing method
CN106502844A (en) A kind of method of the sAS port bandwidths of test RAID memory Is O
CN103092718A (en) Test data backup system and method
CN106504797A (en) The automatic mode of RAID IO LED lamps in test memory
CN109857583B (en) Processing method and device
US9354962B1 (en) Memory dump file collection and analysis using analysis server and cloud knowledge base
CN106649018A (en) Testing method of stability of storage system with expansion cabinet
CN114116330A (en) Server performance test method, system, terminal and storage medium
CN117851099A (en) Fault processing method of k8s cluster, computing equipment and cluster
CN107357700A (en) A kind of method and system of test NVME hard disk order stability

Legal Events

Date Code Title Description
C06 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