CN110008070A - A kind of AEP memory AC test method powered off at random based on power supervisor - Google Patents

A kind of AEP memory AC test method powered off at random based on power supervisor Download PDF

Info

Publication number
CN110008070A
CN110008070A CN201910180175.8A CN201910180175A CN110008070A CN 110008070 A CN110008070 A CN 110008070A CN 201910180175 A CN201910180175 A CN 201910180175A CN 110008070 A CN110008070 A CN 110008070A
Authority
CN
China
Prior art keywords
measured
server
test
random
test script
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.)
Pending
Application number
CN201910180175.8A
Other languages
Chinese (zh)
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 CN201910180175.8A priority Critical patent/CN110008070A/en
Publication of CN110008070A publication Critical patent/CN110008070A/en
Pending legal-status Critical Current

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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2231Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test interrupt circuits
    • 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/2273Test methods
    • 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/26Functional testing

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 provides a kind of AEP memory AC test method powered off at random based on power supervisor, is tested using AEP memory of the client computer to server to be measured;Client computer controls server to be measured by power supervisor and powers on, and powers on rear client computer and controls server booting to be measured, and client computer passes through power supervisor again and controls electricity under server to be measured, is repeatedly performed the AC loop test of AEP memory;After server to be measured is switched on every time, according to the random time that client computer generates, random collecting simultaneously compares server A EP memory information to be measured.Analog subscriber abnormal power-down scene of the present invention carries out disconnected AC simulation test to entire server system to be measured and its AEP memory, whether the working condition for verifying AEP memorymodel simultaneously is abnormal, the reliability for guaranteeing storing data in AEP memorymodel and AEP memory media, guarantees the stability and reliability of server product.

Description

A kind of AEP memory AC test method powered off at random based on power supervisor
Technical field
The invention belongs to server A EP memory test technical fields, and in particular to one kind is broken at random based on power supervisor The AEP memory AC test method of electricity.
Background technique
AEP memory abbreviation Apache Pass DIMMs is designed, The for high-performance and flexibility OptaneTMDC persistent memory (DCPMM) is direct current long-time memory non-volatile memory module of new generation, is drawn Enter OptaneTMMedium technique memory media DDR4 desktop, laptop.Support that internal memory operation mode is Memory Mode (volatile) With App Direct (persistent memory).
AC test, exactly constantly powers off power on operation to server, and AC test is a reliability in server test Test item.
Power supervisor, also known as IP power supply, intelligence PDU, rack power distribution unit, are a New Generation of Intelligent electric power Management equipment is distributed, by introducing the novel means of communications such as Ethernet, voice service, increases traditional PDU, PCU equipment The intelligent management control module and control chip that cannot be provided constitute remote controlled and planning management power distribution list Member.Through distal end network control technology, network electric power controller be may be implemented to equipment power supply with outer long-range control, and not Limited to by particular device or separate procedure, be not required to open device housings, it is only necessary to, can be in office by connection local area network or internet The electrical equipment power switch in its permission is controlled on what network computer, and the power supply of each equipment of its second line of a couplet port is looked into It askes, be connected to, disconnect or restart.
AEP memory is the memory device that Intel will be released, and the difference with convential memory is that AEP can freely be set Operating mode, AD mode and Memory mode to be set, convential memory is compared, the power consumption of AEP is bigger, and usage mode is more diversified, Lack the test method to storage data reliability in AEP memorymodel and AEP memory media at present.
This is the deficiencies in the prior art, therefore, in view of the above-mentioned drawbacks in the prior art, is provided a kind of based on power management The AEP memory AC test method that device powers off at random, is necessary.
Summary of the invention
For the prior art it is above-mentioned lack storage data reliability in AEP memorymodel and AEP memory media is surveyed The defect of method for testing, the present invention provide a kind of AEP memory AC test method powered off at random based on power supervisor, on solving State technical problem.
In a first aspect, the present invention provides a kind of AEP memory AC test method powered off at random based on power supervisor,
It is tested using AEP memory of the client computer to server to be measured;
Client computer controls server to be measured by power supervisor and powers on, and powers on rear client computer control server to be measured and opens Machine, client computer pass through power supervisor again and control electricity under server to be measured, are repeatedly performed the AC loop test of AEP memory;
After server to be measured is switched on every time, according to the random time that client computer generates, random collecting simultaneously compares service to be measured Device AEP memory information.
Further, specific step is as follows for the AEP memory AC test method that should be powered off at random based on power supervisor:
S1. server to be measured executes the first test script, and the first test script obtains the first test parameter;
S2. system information, facility information and AEP memory information are formed the first test script collection server to be measured for the first time Sample information;
S3. client computer executes the second test script, and the second test script obtains the second test parameter;
S4. server to be measured is in open state, and the second test script controls server to be measured by power supervisor It is electric under power input interface, server power-off to be measured, meanwhile, client recording log, current AC number of run and current time;
S5. the second test script is powered on by the power input interface that power supervisor controls server to be measured, clothes to be measured Business device powers on, and the second test script controls server to be measured booting, meanwhile, client recording log, current AC number of run and Current time;
S6. the second test script generates random time section, and the random time section is located in specified section, client computer judgement Random time section size;
When random time section is greater than threshold value, during waiting random time section, S7 is entered step;
When random time section is less than or equal to threshold value, after waiting random time section, S8 is entered step;
S7. the first test script obtains system information, facility information and AEP memory information in server to be measured, and with First sample information comparison, enters step S8;
S8. the second test script controls electricity, clothes to be measured under the power input interface of server to be measured by power supervisor Business device power-off, meanwhile, client recording log, current AC number of run and current time;
S9. judge whether AC test run number has reached;
If so, test terminates, test log is exported;
If it is not, then return step S5.- electricity, which is descended ,-by powering on-being switched on powers on-be switched on-descend AC survey of electric movement completion Examination;In each AC test process, according to the size of random time section, random time is long, then server collection system information to be measured, Facility information and AEP memory information, and with after first sample information comparison, electric under server to be measured, random time is short, then not Collection system information, facility information and AEP memory information, directly electricity under server to be measured.Random time section is set, without every Secondary collection system information, facility information and AEP memory information save the testing time, improve testing efficiency.
Further, the first test parameter includes test pattern and AC testing time;
Second test parameter includes the BMC IP for transmitting server to be measured, the IP of server to be measured, and AC testing time is to be measured Server B MC user name, server B MC password to be measured, the IP address of the power supervisor of server connection to be measured, service to be measured The output port of power source of the power supervisor of device connection.When operation, obtain test parameter, for tester to test process into The step of row setting improves test flexibility, and parameter can also directly be arranged in script, and omission gets parms.
Further, specific step is as follows by step S2:
S21. the first test script detects the AEP memory configurations mode of server to be measured;
S22. when detecting in AEP memory without AD mode, S23 is entered step;
When detecting there is the part for being configured to AD mode in AEP memory, server to be measured automatically creates random file, generates The MD5 value of random file, and random file is copied to the NameSpace of the AEP memory of each AD mode, enter step S23;
S23. the first test script collects server to be measured system information, facility information and AEP memory information for the first time.At random File and its MD5 value are used in AC test process, are verified to the storage stability of the AD mode of AEP memory.
Further, specific step is as follows by step S3:
S31. the second test script judges whether be equipped with ipmitool tool under the Linux system of client computer;
If S32. nothing, ipmitool tool is installed;
If so, then entering step S33;
S33. client computer executes the second test script, and the second test script obtains the second test parameter.Client computer is connected with BMC, BMC connect server to be measured, and client computer carries out server to be measured after BMC by the IPMI order of ipmitool tool It is switched on and obtains the power supply status of server to be measured.
Further, specific step is as follows by step S4:
S41. after waiting the first set period of time, the second test script reads the power supply of server to be measured by IPMI order State judges whether server power supply state to be measured is booting;
S42. if so, the second test script is controlled by power supervisor under the power input interface of server to be measured Electricity, server power-off to be measured, meanwhile, client recording log, current AC number of run and current time;
If it is not, then entering step S10;
S10. the second test script prompts and records preservation information, and out of service, record log records current AC operation time Several and current time.It waits the first set period of time to guarantee that client computer configuration is completed, can sufficiently obtain the power supply of server to be measured State;When determining server to be measured booting, is powered off, simulate the scene of abnormal power-down.
Further, specific step is as follows by step S5:
S51. after waiting the second set period of time, the second test script sends control command to power supervisor, passes through electricity The power input interface that source manager controls server to be measured powers on, and server to be measured powers on;
S52. after waiting third set period of time, the second test script obtains server power supply shape to be measured by IPMI order State;
S53. when obtaining server power supply status command to be measured success, S54 is entered step;
When obtaining server power supply status command to be measured failure, after waiting the 4th set period of time, reacquire to be measured Server power supply state;
If reacquiring server power supply state success to be measured, S54 is entered step;
If reacquiring server power supply state failure to be measured, S10 is entered step;
S54. judge whether server to be measured is switched on;
If it is not, client computer executes boot action to server to be measured by IPMI order, S55 is entered step;
If so, entering step S55;
S55. record log records AC number of run and current time.Ensure to obtain server electricity to be measured in test process The success of source state, and when server to be measured booting, carry out the movement for generating random time section in next step, booting guarantee random time It when segment length, is powered off after sufficiently obtaining server info to be measured, and is switched on and guarantees random time section in short-term, directly powered off.
Further, specific step is as follows by step S7:
S71. the first test script obtains AEP memory information, and is compared with the AEP memory information in first sample information It is right;
S72. the first test script obtain AEP memory configurations information, and with the AEP memory information in first sample information into Row compares;
S73. the first test script obtains the system information and facility information of server to be measured, and in first sample information System information and facility information be compared;
S74. exception is judged whether there is;
If so, then printing exception and saving log, while recording current AC number of run and current time;
If nothing, printing test passes through and saves log, while recording current AC number of run and current time.When random Between segment length when, carry out server info collection to be measured, including AEP memory information, AEP memory configurations information and system information and Facility information, when for abnormal power-down, the stability of server to be measured is verified.
Further, specific step is as follows by step S72:
S721. the first test script obtains AD pattern configurations information in AEP memory;
S722. obtain random file MD5 value, successively with the random text in the AEP memory NameSpace of each AD mode Part is compared, and judges whether there is exception;Enter step S74.After random file and its MD5 value are used to verify abnormal power-down, AEP Inside there is the stability of AD mode storing data.
Further, specific step is as follows by step S8:
S81. the second test script judges whether the power supply status of server to be measured is booting;
S82. if so, entering step S83;
If it is not, entering step S10;
S83. the second test script checks whether server to be measured enters operating system by ping order;
If so, into operating system and recording current time to journal file, S84 is entered step;
If it is not, then not record log, is directly entered step S84;
S84. the second test script sends control command to power supervisor, controls server to be measured by power supervisor Power input interface under electricity, server to be measured power-off, meanwhile, record log, current AC number of run and current time.Ensure After the completion of the boot action of step S5, electronic work is carried out down, completes the last one step of AC test, meanwhile, to be measured When server enters operating system, a log is recorded.
The beneficial effects of the present invention are,
Analog subscriber abnormal power-down scene of the present invention carries out disconnected AC mould to entire server system to be measured and its AEP memory Quasi- test, while whether the working condition for verifying AEP memorymodel is abnormal, guarantees in AEP memorymodel and AEP memory media The reliability of storing data guarantees the stability and reliability of server product.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
It can be seen that compared with prior art, the present invention implementing with substantive distinguishing features outstanding and significant progress Beneficial effect be also obvious.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without creative efforts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the method for the present invention flow diagram one;
Fig. 2 is the method for the present invention flow diagram two;
Fig. 3 is the method for the present invention flow diagram three;
Fig. 4 is test environment connection schematic diagram of the invention.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without making creative work, all should belong to protection of the present invention Range.
Embodiment 1:
The present invention provides a kind of AEP memory AC test method powered off at random based on power supervisor, using client computer pair The AEP memory of server to be measured is tested;
It is powered on as shown in figure 4, client computer controls server to be measured by power supervisor, it is to be measured to power on rear client computer control Server booting, client computer pass through power supervisor again and control electricity under server to be measured, and the AC circulation for being repeatedly performed AEP memory is surveyed Examination;
After server to be measured is switched on every time, according to the random time that client computer generates, random collecting simultaneously compares service to be measured Device AEP memory information;
As shown in Figure 1, this is based on the AEP memory AC test method that power supervisor powers off at random, specific step is as follows:
The server to be measured of S 1. executes the first test script, and the first test script obtains the first test parameter;First test Parameter includes test pattern and AC testing time;
S2. system information, facility information and AEP memory information are formed the first test script collection server to be measured for the first time Sample information;
S3. client computer executes the second test script, and the second test script obtains the second test parameter;Second test parameter packet Include the BMC IP for transmitting server to be measured, the IP of server to be measured, AC testing time, server B MC user name to be measured, clothes to be measured Business device BMC password, the IP address of the power supervisor of server connection to be measured, the IP of the power supervisor of server connection to be measured Address;
S4. server to be measured is in open state, and the second test script controls server to be measured by power supervisor It is electric under power input interface, server power-off to be measured, meanwhile, client recording log, current AC number of run and current time;
S5. the second test script is powered on by the power input interface that power supervisor controls server to be measured, clothes to be measured Business device powers on, and the second test script controls server to be measured booting, meanwhile, client recording log, current AC number of run and Current time;
S6. the second test script generates random time section, and the random time section is located in specified section, client computer judgement Random time section size;
When random time section is greater than threshold value, during waiting random time section, S7 is entered step;
When random time section is less than or equal to threshold value, after waiting random time section, S8 is entered step;
S7. the first test script obtains system information, facility information and AEP memory information in server to be measured, and with First sample information comparison, enters step S8;
S8. the second test script controls electricity, clothes to be measured under the power input interface of server to be measured by power supervisor Business device power-off, meanwhile, client recording log, current AC number of run and current time;
S9. judge whether AC test run number has reached;
If so, test terminates, test log is exported;
If it is not, then return step S5.- electricity, which is descended ,-by powering on-being switched on powers on-be switched on-descend AC survey of electric movement completion Examination;In each AC test process, according to the size of random time section, random time is long, then server collection system information to be measured, Facility information and AEP memory information, and with after first sample information comparison, electric under server to be measured, random time is short, then not Collection system information, facility information and AEP memory information, directly electricity under server to be measured.Random time section is set, without every Secondary collection system information, facility information and AEP memory information save the testing time, improve testing efficiency;When operation, obtain Test parameter is configured test process for tester, improves test flexibility, and ginseng can also directly be arranged in script The step of number, omission gets parms.
Embodiment 2:
As shown in Figure 1, Figure 2 and Figure 3, the present invention provides a kind of AEP memory AC survey powered off at random based on power supervisor Method for testing, the specific steps are as follows:
S1. server to be measured executes the first test script, and the first test script obtains the first test parameter;
S2. system information, facility information and AEP memory information are formed the first test script collection server to be measured for the first time Sample information;Specific step is as follows:
S21. the first test script detects the AEP memory configurations mode of server to be measured;
S22. when detecting in AEP memory without AD mode, S23 is entered step;
When detecting there is the part for being configured to AD mode in AEP memory, server to be measured automatically creates random file, generates The MD5 value of random file, and random file is copied to the NameSpace of the AEP memory of each AD mode, enter step S23;
S23. the first test script collects server to be measured system information, facility information and AEP memory information for the first time;At random File and its MD5 value are used in AC test process, are verified to the storage stability of the AD mode of AEP memory;
S3. client computer executes the second test script, and the second test script obtains the second test parameter;Specific step is as follows:
S31. the second test script judges whether be equipped with ipmitool tool under the Linux system of client computer;
If S32. nothing, ipmitool tool is installed;
If so, then entering step S33;
S33. client computer executes the second test script, and the second test script obtains the second test parameter;Client computer is connected with BMC, BMC connect server to be measured, and client computer carries out server to be measured after BMC by the IPMI order of ipmitool tool It is switched on and obtains the power supply status of server to be measured;
S4. server to be measured is in open state, and the second test script controls server to be measured by power supervisor It is electric under power input interface, server power-off to be measured, meanwhile, client recording log, current AC number of run and current time; Specific step is as follows:
S41. after waiting the first set period of time, the second test script reads the power supply of server to be measured by IPMI order State judges whether server power supply state to be measured is booting;
S42. if so, the second test script is controlled by power supervisor under the power input interface of server to be measured Electricity, server power-off to be measured, meanwhile, client recording log, current AC number of run and current time;When waiting the first setting Between section guarantee client computer configuration complete, can sufficiently obtain the power supply status of server to be measured;When determining server to be measured booting, into Row power-off, simulates the scene of abnormal power-down;
If it is not, then entering step S10;
S5. the second test script is powered on by the power input interface that power supervisor controls server to be measured, clothes to be measured Business device powers on, and the second test script controls server to be measured booting, meanwhile, client recording log, current AC number of run and Current time;Specific step is as follows:
S51. after waiting the second set period of time, the second test script sends control command to power supervisor, passes through electricity The power input interface that source manager controls server to be measured powers on, and server to be measured powers on;
S52. after waiting third set period of time, the second test script obtains server power supply shape to be measured by IPMI order State;
S53. when obtaining server power supply status command to be measured success, S54 is entered step;
When obtaining server power supply status command to be measured failure, after waiting the 4th set period of time, reacquire to be measured Server power supply state;
If reacquiring server power supply state success to be measured, S54 is entered step;
If reacquiring server power supply state failure to be measured, S10 is entered step;
S54. judge whether server to be measured is switched on;
If it is not, client computer executes boot action to server to be measured by IPMI order, S55 is entered step;
If so, entering step S55;
S55. record log records AC number of run and current time;Ensure to obtain server electricity to be measured in test process The success of source state, and when server to be measured booting, carry out the movement for generating random time section in next step, booting guarantee random time It when segment length, is powered off after sufficiently obtaining server info to be measured, and is switched on and guarantees random time section in short-term, directly powered off;
S6. the second test script generates random time section, and the random time section is located in specified section, client computer judgement Random time section size;
When random time section is greater than threshold value, during waiting random time section, S7 is entered step;
When random time section is less than or equal to threshold value, after waiting random time section, S8 is entered step;
S7. the first test script obtains system information, facility information and AEP memory information in server to be measured, and with First sample information comparison, the specific steps are as follows:
S71. the first test script obtains AEP memory information, and is compared with the AEP memory information in first sample information It is right;
S72. the first test script obtain AEP memory configurations information, and with the AEP memory information in first sample information into Row compares;Specific step is as follows:
S721. the first test script obtains AD pattern configurations information in AEP memory;
S722. obtain random file MD5 value, successively with the random text in the AEP memory NameSpace of each AD mode Part is compared, and judges whether there is exception;Enter step S74;After random file and its MD5 value are used to verify abnormal power-down, AEP Inside there is the stability of AD mode storing data;
S73. the first test script obtains the system information and facility information of server to be measured, and in first sample information System information and facility information be compared;
S74. exception is judged whether there is;
If so, then printing exception and saving log, while recording current AC number of run and current time;
If nothing, printing test passes through and saves log, while recording current AC number of run and current time;When random Between segment length when, carry out server info collection to be measured, including AEP memory information, AEP memory configurations information and system information and Facility information, when for abnormal power-down, the stability of server to be measured is verified;
S8. the second test script controls electricity, clothes to be measured under the power input interface of server to be measured by power supervisor Business device power-off, meanwhile, client recording log, current AC number of run and current time;Specific step is as follows:
S81. the second test script judges whether the power supply status of server to be measured is booting;
S82. if so, entering step S83;
If it is not, entering step S10;
S83. the second test script checks whether server to be measured enters operating system by ping order;
If so, into operating system and recording current time to journal file, S84 is entered step;
If it is not, then not record log, is directly entered step S84;
S84. the second test script sends control command to power supervisor, controls server to be measured by power supervisor Power input interface under electricity, server to be measured power-off, meanwhile, record log, current AC number of run and current time;Ensure After the completion of the boot action of step S5, electronic work is carried out down, completes the last one step of AC test, meanwhile, to be measured When server enters operating system, a log is recorded;
S9. judge whether AC test run number has reached;
If so, test terminates, test log is exported;
If it is not, then return step S5;
S10. the second test script prompts and records preservation information, and out of service, record log records current AC operation time Several and current time.
Embodiment 3:
The present invention provides a kind of AEP memory AC test method powered off at random based on power supervisor, and server to be measured connects It is connected on power supervisor and is powered, on the server to be measured for being equipped with AEP memory, after correct configuration AEP memorymodel Restart;Specific step is as follows:
S1. server to be measured executes the first test script, and the first test script obtains the first test parameter;By the first test Script SIT_REBOOT_TEST_LINUX script copies under the (SuSE) Linux OS of server to be measured, in this article after decompression Part folder is lower to execute sh SIT_REBOOT_TEST_LINUX.sh randac 100 (number);
S2. the first script judges automatically AEP memory configurations mode, if detecting the part for being configured to AD mode, Automatically create the random file file1 that a size is 2G, be saved in/home under, save the md5 value of file1 to a log text In part, successively random file is copied in the NameSpace of the AEP memory of all AD modes;First test script is automatically performed AEP memory information is collected, and collection system information and facility information (including Installed System Memory information);
S3. by the second test script, i.e., remotely control power-on and power-off script AC-TEST-console.zip copies client computer to On (SuSE) Linux OS, client network guarantees normal access power supervisor, and confirms under client Linux operating system There is installation ipmitool kit;
The second test script AC-TEST-console.zip is decompressed, and is switched under AC-TEST-console catalogue, The ac-randloop.sh script in the second test script is executed, server to be measured is transmitted by the parameter of Run Script BMCIP, IP under server operating system to be measured, AC execute number, server B MC user name to be measured, and server B MC to be measured is close Code, the IP address of the power supervisor of server connection to be measured, the IP address of the power supervisor of server connection to be measured;
S4. script reads the power supply of server to be measured after waiting the first set period of time 60s by operation ipmi order State;
When the power supply status read is open state, it is defeated that the second test script to power supervisor is assigned to corresponding power supply Electric order under outgoing interface, tested server directly powers off, while recording log log, and record current AC number of run and work as The preceding time;
When the power supply status read is off-mode, the second test script prompts and records error information and exits fortune Row, while log is recorded, record current AC number of run and current time;
S5. the second set period of time is waited to be assigned to corresponding power output interface to power supervisor again in 20 seconds after powering off The order powered on, tested server power on;
Server power supply state to be measured is checked by ipmi order after powering on waiting third set period of time 90 seconds;
If order executes failure, the 4th set period of time is waited to assign again after 40 seconds to be measured by ipmi order inspection The order of server power supply state;If order executes failure again, script prompt simultaneously records error information and out of service, together Shi Jilu log records current AC number of run and current time;
If reading server to be measured is off-mode, boot action is executed to server to be measured by ipmi order, Log is recorded simultaneously, records current AC number of run and current time;
If reading server to be measured is open state, any movement is not executed, records log, records AC number of run And current time;
S6. the second test script generates the random number R 1 (such as 30~500) in a specified section, after waiting R1 seconds, leads to The power supply status that server to be measured is read in operation ipmi order is crossed, judges random time section size;
When random number is greater than threshold value, during waiting the random number period, S7 is entered step;
When random number is less than or equal to threshold value, after waiting the random number period, S8 is entered step;
S7. break if power supervisor is preceding not in the case where server to be measured launches into operating system to server to be measured Electricity, operating system can execute the first test script SIT_REBOOT_TEST_LINUX.sh automatically;It reads AEP memory information and matches Set and be compared with the sample collected before, have it is abnormal then print exception and save log, while record current AC number of run and Current time;Without exception, printing is without PASS information and saves log, while recording current AC number of run and current time;
Script passes through the AEP configuration information collected for the first time and once checks in the NameSpace of AEP memory of all AD modes File1 the file information and MD5 value have exception then to print detailed exception and save log, while recording current AC number of run and working as The preceding time;It is without exception, it prints information without exception and saves log, while recording current AC number of run and current time;
Script reads AEP memory information and configuration information, and system information, system information and facility information (include system Memory information), it is compared with the sample collected before, there is exception then to print detailed exception and save log, while recorded current AC number of run and current time;It is without exception, print information without exception and save log, while record current AC number of run and Current time;
S8. when the power supply status read is open state, script orders the server to be measured brought by ping before IP checks whether server to be measured enters operating system under operating system, and current time is recorded if into operating system to specified In log file, does not enter operating system and do not record then;Then script is assigned under corresponding power output interface to power supervisor The order of electricity, tested server directly powers off, while recording log log, and record current AC number of run and current time;
When the power supply status read is off-mode, script prompt simultaneously records error information and out of service, remembers simultaneously Log is recorded, current AC number of run and current time are recorded;
S9. judge whether AC test run number has reached;
If so, test terminates, test log is exported;
If it is not, return step S5;The step of repeating S5 to S8 completes the AC test of 100 AEP memories;
S10. the second test script prompts and records preservation information, and out of service, record log records current AC operation time Several and current time.
Although by reference to attached drawing and combining the mode of preferred embodiment to the present invention have been described in detail, the present invention It is not limited to this.Without departing from the spirit and substance of the premise in the present invention, those of ordinary skill in the art can be to the present invention Embodiment carry out various equivalent modifications or substitutions, and these modifications or substitutions all should in covering scope of the invention/appoint What those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, answer It is included within the scope of the present invention.Therefore, protection scope of the present invention is answered described is with scope of protection of the claims It is quasi-.

Claims (10)

1. a kind of AEP memory AC test method powered off at random based on power supervisor, which is characterized in that
It is tested using AEP memory of the client computer to server to be measured;
Client computer controls server to be measured by power supervisor and powers on, and powers on rear client computer and controls server booting to be measured, visitor Family machine passes through power supervisor again and controls electricity under server to be measured, is repeatedly performed the AC loop test of AEP memory;
After server to be measured is switched on every time, according to the random time that client computer generates, random collecting simultaneously compares server A EP to be measured Memory information.
2. the AEP memory AC test method powered off at random based on power supervisor as described in claim 1, which is characterized in that Based on the AEP memory AC test method that power supervisor powers off at random, specific step is as follows for this:
S1. server to be measured executes the first test script, and the first test script obtains the first test parameter;
S2. the first test script collects server to be measured system information, facility information and AEP memory information formation sample for the first time Information;
S3. client computer executes the second test script, and the second test script obtains the second test parameter;
S4. server to be measured is in open state, and the second test script controls the power supply of server to be measured by power supervisor It is electric under input interface, server power-off to be measured, meanwhile, client recording log, current AC number of run and current time;
S5. the second test script is powered on by the power input interface that power supervisor controls server to be measured, server to be measured It powering on, the second test script controls server to be measured booting, meanwhile, client recording log, current AC number of run and current Time;
S6. the second test script generates random time section, and the random time section is located in specified section, and client computer judgement is random Period size;
When random time section is greater than threshold value, during waiting random time section, S7 is entered step;
When random time section is less than or equal to threshold value, after waiting random time section, S8 is entered step;
S7. the first test script obtains system information, facility information and AEP memory information in server to be measured, and with for the first time Sample information compares, and enters step S8;
S8. the second test script controls electricity, server to be measured under the power input interface of server to be measured by power supervisor Power-off, meanwhile, client recording log, current AC number of run and current time;
S9. judge whether AC test run number has reached;
If so, test terminates, test log is exported;
If it is not, then return step S5.
3. the AEP memory AC test method powered off at random based on power supervisor as claimed in claim 2, which is characterized in that First test parameter includes test pattern and AC testing time;
Second test parameter includes the BMC IP for transmitting server to be measured, the IP of server to be measured, AC testing time, service to be measured Device BMC user name, server B MC password to be measured, the IP address of the power supervisor of server connection to be measured, server to be measured connect The output port of power source of the power supervisor connect.
4. the AEP memory AC test method powered off at random based on power supervisor as claimed in claim 2, which is characterized in that Specific step is as follows by step S2:
S21. the first test script detects the AEP memory configurations mode of server to be measured;
S22. when detecting in AEP memory without AD mode, S23 is entered step;
When detecting there is the part for being configured to AD mode in AEP memory, server to be measured automatically creates random file, generates random The MD5 value of file, and random file is copied to the NameSpace of the AEP memory of each AD mode, enter step S23;
S23. the first test script collects server to be measured system information, facility information and AEP memory information for the first time.
5. the AEP memory AC test method powered off at random based on power supervisor as claimed in claim 2, which is characterized in that Specific step is as follows by step S3:
S31. the second test script judges whether be equipped with ipmitool tool under the Linux system of client computer;
If S32. nothing, ipmitool tool is installed;
If so, then entering step S33;
S33. client computer executes the second test script, and the second test script obtains the second test parameter.
6. the AEP memory AC test method powered off at random based on power supervisor as claimed in claim 5, which is characterized in that Specific step is as follows by step S4:
S41. after waiting the first set period of time, the second test script reads the power supply shape of server to be measured by IPMI order State judges whether server power supply state to be measured is booting;
S42. if so, the second test script controls electricity under the power input interface of server to be measured by power supervisor, to Server power-off is surveyed, meanwhile, client recording log, current AC number of run and current time;
If it is not, then entering step S10;
S10. the second test script prompts and records preservation information, out of service, record log, record current AC number of run and Current time.
7. the AEP memory AC test method powered off at random based on power supervisor as claimed in claim 5, which is characterized in that Specific step is as follows by step S5:
S51. after waiting the second set period of time, the second test script sends control command to power supervisor, passes through power supply pipe The power input interface that reason device controls server to be measured powers on, and server to be measured powers on;
S52. after waiting third set period of time, the second test script obtains server power supply state to be measured by IPMI order;
S53. when obtaining server power supply status command to be measured success, S54 is entered step;
When obtaining server power supply status command to be measured failure, after waiting the 4th set period of time, service to be measured is reacquired Device power supply status;
If reacquiring server power supply state success to be measured, S54 is entered step;
If reacquiring server power supply state failure to be measured, S10 is entered step;
S54. judge whether server to be measured is switched on;
If it is not, client computer executes boot action to server to be measured by IPMI order, S55 is entered step;
If so, entering step S55;
S55. record log records AC number of run and current time.
8. the AEP memory AC test method powered off at random based on power supervisor as claimed in claim 4, which is characterized in that Specific step is as follows by step S7:
S71. the first test script obtains AEP memory information, and is compared with the AEP memory information in first sample information;
S72. the first test script obtains AEP memory configurations information, and is compared with the AEP memory information in first sample information It is right;
S73. the first test script obtains the system information and facility information of server to be measured, and is with first sample information System information and facility information are compared;
S74. exception is judged whether there is;
If so, then printing exception and saving log, while recording current AC number of run and current time;
If nothing, printing test passes through and saves log, while recording current AC number of run and current time.
9. the AEP memory AC test method powered off at random based on power supervisor as claimed in claim 8, which is characterized in that Specific step is as follows by step S72:
S721. the first test script obtains AD pattern configurations information in AEP memory;
S722. obtain random file MD5 value, successively with the random file in the AEP memory NameSpace of each AD mode into Row compares, and judges whether there is exception;Enter step S74.
10. the AEP memory AC test method powered off at random based on power supervisor as claimed in claim 6, which is characterized in that Specific step is as follows by step S8:
S81. the second test script judges whether the power supply status of server to be measured is booting;
S82. if so, entering step S83;
If it is not, entering step S10;
S83. the second test script checks whether server to be measured enters operating system by ping order;
If so, into operating system and recording current time to journal file, S84 is entered step;
If it is not, then not record log, is directly entered step S84;
S84. the second test script sends control command to power supervisor, and the electricity of server to be measured is controlled by power supervisor It is electric under the input interface of source, server power-off to be measured, meanwhile, record log, current AC number of run and current time.
CN201910180175.8A 2019-03-11 2019-03-11 A kind of AEP memory AC test method powered off at random based on power supervisor Pending CN110008070A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910180175.8A CN110008070A (en) 2019-03-11 2019-03-11 A kind of AEP memory AC test method powered off at random based on power supervisor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910180175.8A CN110008070A (en) 2019-03-11 2019-03-11 A kind of AEP memory AC test method powered off at random based on power supervisor

Publications (1)

Publication Number Publication Date
CN110008070A true CN110008070A (en) 2019-07-12

Family

ID=67166743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910180175.8A Pending CN110008070A (en) 2019-03-11 2019-03-11 A kind of AEP memory AC test method powered off at random based on power supervisor

Country Status (1)

Country Link
CN (1) CN110008070A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609765A (en) * 2019-08-16 2019-12-24 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for automatically and randomly restarting server
CN111352789A (en) * 2020-03-20 2020-06-30 苏州浪潮智能科技有限公司 Alternating current circulation test method and device for server and storage medium
CN111679943A (en) * 2020-06-10 2020-09-18 浪潮商用机器有限公司 Server test system
CN111694699A (en) * 2020-05-23 2020-09-22 苏州浪潮智能科技有限公司 Method and device for testing server BMC (baseboard management controller) automatic synchronization RTC (real time clock)
CN111984483A (en) * 2020-08-21 2020-11-24 苏州浪潮智能科技有限公司 Method for judging stability of power supply network of server mainboard

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201799A (en) * 2016-07-14 2016-12-07 浪潮电子信息产业股份有限公司 Test method for DC restart of server based on ipmi service
CN108763098A (en) * 2018-06-08 2018-11-06 郑州云海信息技术有限公司 A kind of internal storage data processing test system
CN109240865A (en) * 2018-09-06 2019-01-18 郑州云海信息技术有限公司 A kind of AC test method, device, terminal and the storage medium of AEP memory

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201799A (en) * 2016-07-14 2016-12-07 浪潮电子信息产业股份有限公司 Test method for DC restart of server based on ipmi service
CN108763098A (en) * 2018-06-08 2018-11-06 郑州云海信息技术有限公司 A kind of internal storage data processing test system
CN109240865A (en) * 2018-09-06 2019-01-18 郑州云海信息技术有限公司 A kind of AC test method, device, terminal and the storage medium of AEP memory

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609765A (en) * 2019-08-16 2019-12-24 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for automatically and randomly restarting server
CN110609765B (en) * 2019-08-16 2022-08-12 苏州浪潮智能科技有限公司 Method, system, equipment and storage medium for automatically and randomly restarting server
CN111352789A (en) * 2020-03-20 2020-06-30 苏州浪潮智能科技有限公司 Alternating current circulation test method and device for server and storage medium
CN111352789B (en) * 2020-03-20 2022-07-08 苏州浪潮智能科技有限公司 Alternating current circulation test method and device for server and storage medium
CN111694699A (en) * 2020-05-23 2020-09-22 苏州浪潮智能科技有限公司 Method and device for testing server BMC (baseboard management controller) automatic synchronization RTC (real time clock)
CN111679943A (en) * 2020-06-10 2020-09-18 浪潮商用机器有限公司 Server test system
CN111984483A (en) * 2020-08-21 2020-11-24 苏州浪潮智能科技有限公司 Method for judging stability of power supply network of server mainboard
CN111984483B (en) * 2020-08-21 2022-11-11 苏州浪潮智能科技有限公司 Method for judging stability of power supply network of server mainboard

Similar Documents

Publication Publication Date Title
CN110008070A (en) A kind of AEP memory AC test method powered off at random based on power supervisor
CN106055438A (en) Method and system for rapidly locating anomaly of memory banks on mainboard
CN102546224A (en) Remote management system and method for server
CN106055440B (en) A kind of test method and system for realizing server exception power-off by BMC
CN109240865A (en) A kind of AC test method, device, terminal and the storage medium of AEP memory
CN107612775A (en) A kind of node two level connects the DC method of testings and system of server
CN101441589A (en) Detection method of substrate management controller and server thereof
CN106908738A (en) A kind of automatic testing method of SmartRack reserce cells
CN109257249A (en) A kind of network interface card stability test method, apparatus, terminal and storage medium
CN107273258A (en) Method of testing and system are restarted in the automation of interchanger built in a kind of blade server
CN110767259A (en) Power failure pressure test method for flash memory device
CN110489287B (en) Method, system and storage medium for testing hot plug through Ipomitool
CN109117335A (en) A kind of hard disk simulation hot plug test method, device, terminal and storage medium
CN104898070B (en) Power supply test method and device
CN109815070A (en) A kind of HOST-BOX server stability test method, apparatus, terminal and storage medium
CN109412819A (en) Method and device for warning device power down
CN108958996A (en) A kind of test memory RankMargin optimization method and system
CN109871329A (en) A kind of whole machine cabinet server carries out the method and system of multinode AC test
CN108804269A (en) A kind of system and method controlling test RAID board stability based on domain
CN110147299A (en) One kind being used for SSD complete machine powered-off fault test method and its system
CN113590397A (en) Storage product open type integrated test platform with complete machine power-down function
CN107273203B (en) Asset energy distribution method and device for data center business equipment
CN102325040A (en) Power management method based on MicroTCA system
CN107907762B (en) Test method and system for detecting influence of BBU on stability of whole cabinet
CN104660418A (en) Network awakening control system and method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190712